2 # From configure.ac Revision: 92463 .
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>
632 program_transform_name
881 AST_DECLARATION_AFTER_STATEMENT
914 ac_precious_vars
='build_alias
929 # Initialize some variables set by options.
931 ac_init_version
=false
932 # The variables have the same names as the options, with
933 # dashes changed to underlines.
941 program_transform_name
=s
,x
,x
,
949 # Installation directory options.
950 # These are left unexpanded so users can "make install exec_prefix=/foo"
951 # and all the variables that are supposed to be based on exec_prefix
952 # by default will actually change.
953 # Use braces instead of parens because sh, perl, etc. also accept them.
954 # (The list follows the same order as the GNU Coding Standards.)
955 bindir
='${exec_prefix}/bin'
956 sbindir
='${exec_prefix}/sbin'
957 libexecdir
='${exec_prefix}/libexec'
958 datarootdir
='${prefix}/share'
959 datadir
='${datarootdir}'
960 sysconfdir
='${prefix}/etc'
961 sharedstatedir
='${prefix}/com'
962 localstatedir
='${prefix}/var'
963 includedir
='${prefix}/include'
964 oldincludedir
='/usr/include'
965 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
966 infodir
='${datarootdir}/info'
971 libdir
='${exec_prefix}/lib'
972 localedir
='${datarootdir}/locale'
973 mandir
='${datarootdir}/man'
979 # If the previous option needs an argument, assign it.
980 if test -n "$ac_prev"; then
981 eval $ac_prev=\
$ac_option
987 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991 # Accept the important Cygnus configure options, so we can diagnose typos.
993 case $ac_dashdash$ac_option in
997 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
999 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1000 bindir
=$ac_optarg ;;
1002 -build |
--build |
--buil |
--bui |
--bu)
1003 ac_prev
=build_alias
;;
1004 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1005 build_alias
=$ac_optarg ;;
1007 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1008 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1009 ac_prev
=cache_file
;;
1010 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1011 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1012 cache_file
=$ac_optarg ;;
1014 --config-cache |
-C)
1015 cache_file
=config.cache
;;
1017 -datadir |
--datadir |
--datadi |
--datad)
1019 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1020 datadir
=$ac_optarg ;;
1022 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1023 |
--dataroo |
--dataro |
--datar)
1024 ac_prev
=datarootdir
;;
1025 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1026 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1027 datarootdir
=$ac_optarg ;;
1029 -disable-* |
--disable-*)
1030 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1033 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1036 eval enable_
$ac_feature=no
;;
1038 -docdir |
--docdir |
--docdi |
--doc |
--do)
1040 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1041 docdir
=$ac_optarg ;;
1043 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1045 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1046 dvidir
=$ac_optarg ;;
1048 -enable-* |
--enable-*)
1049 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1052 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1055 eval enable_
$ac_feature=\
$ac_optarg ;;
1057 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1058 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1059 |
--exec |
--exe |
--ex)
1060 ac_prev
=exec_prefix
;;
1061 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1062 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1063 |
--exec=* |
--exe=* |
--ex=*)
1064 exec_prefix
=$ac_optarg ;;
1066 -gas |
--gas |
--ga |
--g)
1067 # Obsolete; use --with-gas.
1070 -help |
--help |
--hel |
--he |
-h)
1071 ac_init_help
=long
;;
1072 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1073 ac_init_help
=recursive
;;
1074 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1075 ac_init_help
=short
;;
1077 -host |
--host |
--hos |
--ho)
1078 ac_prev
=host_alias
;;
1079 -host=* |
--host=* |
--hos=* |
--ho=*)
1080 host_alias
=$ac_optarg ;;
1082 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1084 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1086 htmldir
=$ac_optarg ;;
1088 -includedir |
--includedir |
--includedi |
--included |
--include \
1089 |
--includ |
--inclu |
--incl |
--inc)
1090 ac_prev
=includedir
;;
1091 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1092 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1093 includedir
=$ac_optarg ;;
1095 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1097 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1098 infodir
=$ac_optarg ;;
1100 -libdir |
--libdir |
--libdi |
--libd)
1102 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1103 libdir
=$ac_optarg ;;
1105 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1106 |
--libexe |
--libex |
--libe)
1107 ac_prev
=libexecdir
;;
1108 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1109 |
--libexe=* |
--libex=* |
--libe=*)
1110 libexecdir
=$ac_optarg ;;
1112 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1113 ac_prev
=localedir
;;
1114 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1115 localedir
=$ac_optarg ;;
1117 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1118 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1119 ac_prev
=localstatedir
;;
1120 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1121 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1122 localstatedir
=$ac_optarg ;;
1124 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1126 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1127 mandir
=$ac_optarg ;;
1129 -nfp |
--nfp |
--nf)
1130 # Obsolete; use --without-fp.
1133 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1134 |
--no-cr |
--no-c |
-n)
1137 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1138 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1141 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1142 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1143 |
--oldin |
--oldi |
--old |
--ol |
--o)
1144 ac_prev
=oldincludedir
;;
1145 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1146 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1147 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1148 oldincludedir
=$ac_optarg ;;
1150 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1152 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1153 prefix
=$ac_optarg ;;
1155 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1156 |
--program-pre |
--program-pr |
--program-p)
1157 ac_prev
=program_prefix
;;
1158 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1159 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1160 program_prefix
=$ac_optarg ;;
1162 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1163 |
--program-suf |
--program-su |
--program-s)
1164 ac_prev
=program_suffix
;;
1165 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1166 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1167 program_suffix
=$ac_optarg ;;
1169 -program-transform-name |
--program-transform-name \
1170 |
--program-transform-nam |
--program-transform-na \
1171 |
--program-transform-n |
--program-transform- \
1172 |
--program-transform |
--program-transfor \
1173 |
--program-transfo |
--program-transf \
1174 |
--program-trans |
--program-tran \
1175 |
--progr-tra |
--program-tr |
--program-t)
1176 ac_prev
=program_transform_name
;;
1177 -program-transform-name=* |
--program-transform-name=* \
1178 |
--program-transform-nam=* |
--program-transform-na=* \
1179 |
--program-transform-n=* |
--program-transform-=* \
1180 |
--program-transform=* |
--program-transfor=* \
1181 |
--program-transfo=* |
--program-transf=* \
1182 |
--program-trans=* |
--program-tran=* \
1183 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1184 program_transform_name
=$ac_optarg ;;
1186 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1188 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1189 pdfdir
=$ac_optarg ;;
1191 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1193 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1196 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1197 |
-silent |
--silent |
--silen |
--sile |
--sil)
1200 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1202 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1204 sbindir
=$ac_optarg ;;
1206 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1207 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1208 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1210 ac_prev
=sharedstatedir
;;
1211 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1212 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1213 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1215 sharedstatedir
=$ac_optarg ;;
1217 -site |
--site |
--sit)
1219 -site=* |
--site=* |
--sit=*)
1222 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1224 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1225 srcdir
=$ac_optarg ;;
1227 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1228 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1229 ac_prev
=sysconfdir
;;
1230 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1231 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1232 sysconfdir
=$ac_optarg ;;
1234 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1235 ac_prev
=target_alias
;;
1236 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1237 target_alias
=$ac_optarg ;;
1239 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1242 -version |
--version |
--versio |
--versi |
--vers |
-V)
1243 ac_init_version
=: ;;
1246 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1249 { echo "$as_me: error: invalid package name: $ac_package" >&2
1250 { (exit 1); exit 1; }; }
1251 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1252 eval with_
$ac_package=\
$ac_optarg ;;
1254 -without-* |
--without-*)
1255 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no
;;
1264 # Obsolete; use --with-x.
1267 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1268 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1269 ac_prev
=x_includes
;;
1270 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1271 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1272 x_includes
=$ac_optarg ;;
1274 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1275 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1276 ac_prev
=x_libraries
;;
1277 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1278 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1279 x_libraries
=$ac_optarg ;;
1281 -*) { echo "$as_me: error: unrecognized option: $ac_option
1282 Try \`$0 --help' for more information." >&2
1283 { (exit 1); exit 1; }; }
1287 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1290 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1291 { (exit 1); exit 1; }; }
1292 eval $ac_envvar=\
$ac_optarg
1293 export $ac_envvar ;;
1296 # FIXME: should be removed in autoconf 3.0.
1297 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1299 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1306 if test -n "$ac_prev"; then
1307 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1308 { echo "$as_me: error: missing argument to $ac_option" >&2
1309 { (exit 1); exit 1; }; }
1312 # Be sure to have absolute directory names.
1313 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1318 eval ac_val
=\$
$ac_var
1320 [\\/$
]* | ?
:[\\/]* ) continue;;
1321 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1323 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1324 { (exit 1); exit 1; }; }
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1332 target
=$target_alias
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x
; then
1336 if test "x$build_alias" = x
; then
1337 cross_compiling
=maybe
1338 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339 If a cross compiler is detected then cross compile mode will be used." >&2
1340 elif test "x$build_alias" != "x$host_alias"; then
1346 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1348 test "$silent" = yes && exec 6>/dev
/null
1351 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di
=`ls -di .` &&
1353 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1354 { echo "$as_me: error: Working directory cannot be determined" >&2
1355 { (exit 1); exit 1; }; }
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 { echo "$as_me: error: pwd does not report name of working directory" >&2
1358 { (exit 1); exit 1; }; }
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted
=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir
=`$as_dirname -- "$0" ||
1366 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$0" : 'X\(//\)[^/]' \| \
1368 X"$0" : 'X\(//\)$' \| \
1369 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1393 ac_srcdir_defaulted
=no
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1397 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1398 { (exit 1); exit 1; }; }
1400 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1403 { (exit 1); exit 1; }; }
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1413 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 for ac_var
in $ac_precious_vars; do
1416 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1418 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1423 # Report the --help message.
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1429 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1436 Defaults for the options are specified in brackets.
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print \`checking...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for \`--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1460 For better control, use the options below.
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --libdir=DIR object code libraries [EPREFIX/lib]
1470 --includedir=DIR C header files [PREFIX/include]
1471 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1474 --infodir=DIR info documentation [DATAROOTDIR/info]
1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1476 --mandir=DIR man documentation [DATAROOTDIR/man]
1477 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1487 --build=BUILD configure
for building on BUILD
[guessed
]
1488 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1492 if test -n "$ac_init_help"; then
1493 case $ac_init_help in
1494 short | recursive
) echo "Configuration of asterisk 1.4:";;
1499 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1500 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1501 --enable-dev-mode Turn on developer mode
1502 --disable-largefile omit support
for large files
1505 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1506 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1507 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1508 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1509 --with-curl=PATH use cURL files
in PATH
1510 --with-curses=PATH use curses files
in PATH
1511 --with-gnutls=PATH use GNU TLS support
(used
for iksemel only
) files
in
1513 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1514 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1515 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1516 --with-isdnnet=PATH use ISDN4Linux Library files
in PATH
1517 --with-kde=PATH use KDE files
in PATH
1518 --with-ltdl=PATH use libtool files
in PATH
1519 --with-misdn=PATH use mISDN User Library files
in PATH
1520 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1521 --with-ncurses=PATH use ncurses files
in PATH
1522 --with-netsnmp=PATH use Net-SNMP files
in PATH
1523 --with-newt=PATH use newt files
in PATH
1524 --with-odbc=PATH use unixODBC files
in PATH
1525 --with-ogg=PATH use OGG files
in PATH
1526 --with-osptk=PATH use OSP Toolkit files
in PATH
1527 --with-oss=PATH use Open Sound System files
in PATH
1528 --with-popt=PATH use popt files
in PATH
1529 --with-postgres=PATH use PostgreSQL files
in PATH
1530 --with-pri=PATH use ISDN PRI files
in PATH
1531 --with-pwlib=PATH use PWlib files
in PATH
1532 --with-h323=PATH use OpenH323 files
in PATH
1533 --with-qt=PATH use Qt files
in PATH
1534 --with-radius=PATH use Radius Client files
in PATH
1535 --with-speex=PATH use Speex files
in PATH
1536 --with-sqlite=PATH use SQLite files
in PATH
1537 --with-suppserv=PATH use mISDN Supplemental Services files
in PATH
1538 --with-ssl=PATH use OpenSSL files
in PATH
1539 --with-tds=PATH use FreeTDS files
in PATH
1540 --with-termcap=PATH use Termcap files
in PATH
1541 --with-tinfo=PATH use Term Info files
in PATH
1542 --with-tonezone=PATH use tonezone files
in PATH
1543 --with-usb=PATH use usb files
in PATH
1544 --with-vorbis=PATH use Vorbis files
in PATH
1545 --with-vpb=PATH use Voicetronix API files
in PATH
1546 --with-z=PATH use zlib files
in PATH
1547 --with-zaptel=PATH use Zaptel files
in PATH
1549 Some influential environment variables
:
1550 CC C compiler
command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1553 nonstandard directory
<lib dir
>
1554 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1555 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1556 you have headers
in a nonstandard directory
<include dir
>
1558 CXX C
++ compiler
command
1559 CXXFLAGS C
++ compiler flags
1560 CXXCPP C
++ preprocessor
1562 Use these variables to override the choices made by
`configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1565 Report bugs to <www.asterisk.org>.
1570 if test "$ac_init_help" = "recursive"; then
1571 # If there are subdirs, report their specific --help.
1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573 test -d "$ac_dir" || continue
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1593 .) # We are building in place.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1617 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1626 asterisk configure 1.4
1627 generated by GNU Autoconf 2.61
1629 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1638 cat >config.log <<_ACEOF
1639 This file contains any messages produced by compilers while
1640 running configure, to aid debugging if configure makes a mistake.
1642 It was created by asterisk $as_me 1.4, which was
1643 generated by GNU Autoconf 2.61. Invocation command line was
1655 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1656 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1657 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1658 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1659 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1661 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1662 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1664 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1665 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1666 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1667 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1668 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1669 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1670 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 test -z "$as_dir" && as_dir=.
1679 echo "PATH: $as_dir"
1695 # Keep a trace of the command line.
1696 # Strip out --no-create and --no-recursion so they do not pile up.
1697 # Strip out --silent because we don't want to record it for future runs.
1698 # Also quote any args containing shell meta-characters.
1699 # Make two passes to allow for proper duplicate-argument suppression.
1703 ac_must_keep_next=false
1709 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1711 | -silent | --silent | --silen | --sile | --sil)
1714 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1717 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1719 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1720 if test $ac_must_keep_next = true; then
1721 ac_must_keep_next=false # Got value, back to normal.
1724 *=* | --config-cache | -C | -disable-* | --disable-* \
1725 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1726 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1727 | -with-* | --with-* | -without-* | --without-* | --x)
1728 case "$ac_configure_args0 " in
1729 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1732 -* ) ac_must_keep_next=true ;;
1735 ac_configure_args="$ac_configure_args '$ac_arg'"
1740 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1741 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1743 # When interrupted or exit'd, cleanup temporary files, and complete
1744 # config.log. We remove comments because anyway the quotes in there
1745 # would cause problems or look ugly.
1746 # WARNING: Use '\'' to represent an apostrophe within the trap.
1747 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1748 trap 'exit_status=$?
1749 # Save into config.log some information that might help in debugging.
1754 ## ---------------- ##
1755 ## Cache variables. ##
1756 ## ---------------- ##
1759 # The following way of writing the cache mishandles newlines in values,
1761 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1762 eval ac_val=\$$ac_var
1766 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1767 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1770 _ | IFS | as_nl) ;; #(
1771 *) $as_unset $ac_var ;;
1776 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1777 *${as_nl}ac_space=\ *)
1779 "s/'\''/'\''\\\\'\'''\''/g;
1780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1796 for ac_var in $ac_subst_vars
1798 eval ac_val=\$$ac_var
1800 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1802 echo "$ac_var='\''$ac_val'\''"
1806 if test -n "$ac_subst_files"; then
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1813 for ac_var in $ac_subst_files
1815 eval ac_val=\$$ac_var
1817 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819 echo "$ac_var='\''$ac_val'\''"
1824 if test -s confdefs.h; then
1834 test "$ac_signal" != 0 &&
1835 echo "$as_me: caught signal $ac_signal"
1836 echo "$as_me: exit $exit_status"
1838 rm -f core *.core core.conftest.* &&
1839 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842 for ac_signal in 1 2 13 15; do
1843 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1850 # Predefined preprocessor variables.
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer explicitly selected file to automatically selected ones.
1879 if test -n "$CONFIG_SITE"; then
1880 set x "$CONFIG_SITE"
1881 elif test "x$prefix" != xNONE; then
1882 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1884 set x "$ac_default_prefix/share/config.site" \
1885 "$ac_default_prefix/etc/config.site"
1890 if test -r "$ac_site_file"; then
1891 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1892 echo "$as_me: loading site script $ac_site_file" >&6;}
1893 sed 's/^/| /' "$ac_site_file" >&5
1898 if test -r "$cache_file"; then
1899 # Some versions of bash will fail to source /dev/null (special
1900 # files actually), so we avoid doing that.
1901 if test -f "$cache_file"; then
1902 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1903 echo "$as_me: loading cache $cache_file" >&6;}
1905 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1906 *) . "./$cache_file";;
1910 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1911 echo "$as_me: creating cache $cache_file" >&6;}
1915 ac_header_list="$ac_header_list sys/time.h"
1916 ac_header_list="$ac_header_list unistd.h"
1917 ac_func_list="$ac_func_list alarm"
1918 ac_header_list="$ac_header_list utime.h"
1919 # Check that the precious variables saved in the cache have kept the same
1921 ac_cache_corrupted=false
1922 for ac_var in $ac_precious_vars; do
1923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924 eval ac_new_set=\$ac_env_${ac_var}_set
1925 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926 eval ac_new_val=\$ac_env_${ac_var}_value
1927 case $ac_old_set,$ac_new_set in
1929 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1930 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931 ac_cache_corrupted=: ;;
1933 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1934 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1938 if test "x$ac_old_val" != "x$ac_new_val"; then
1939 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1940 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1941 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1942 echo "$as_me: former value
: $ac_old_val" >&2;}
1943 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1944 echo "$as_me: current value
: $ac_new_val" >&2;}
1945 ac_cache_corrupted=:
1948 # Pass precious variables to config.status.
1949 if test "$ac_new_set" = set; then
1951 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1952 *) ac_arg=$ac_var=$ac_new_val ;;
1954 case " $ac_configure_args " in
1955 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1956 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1960 if $ac_cache_corrupted; then
1961 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1962 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1963 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1964 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1965 { (exit 1); exit 1; }; }
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000 # cross-compile macros
2002 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2003 if test -f "$ac_dir/install-sh"; then
2005 ac_install_sh="$ac_aux_dir/install-sh -c"
2007 elif test -f "$ac_dir/install.sh"; then
2009 ac_install_sh="$ac_aux_dir/install.sh -c"
2011 elif test -f "$ac_dir/shtool"; then
2013 ac_install_sh="$ac_aux_dir/shtool install -c"
2017 if test -z "$ac_aux_dir"; then
2018 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2019 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2020 { (exit 1); exit 1; }; }
2023 # These three variables are undocumented and unsupported,
2024 # and are intended to be withdrawn in a future Autoconf release.
2025 # They can cause serious problems if a builder's source tree is in a directory
2026 # whose full name contains unusual characters.
2027 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2028 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2029 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2032 # Make sure we can run config.sub.
2033 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2034 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2035 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2036 { (exit 1); exit 1; }; }
2038 { echo "$as_me:$LINENO: checking build system type" >&5
2039 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2040 if test "${ac_cv_build+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 ac_build_alias=$build_alias
2044 test "x$ac_build_alias" = x &&
2045 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2046 test "x$ac_build_alias" = x &&
2047 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2048 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2049 { (exit 1); exit 1; }; }
2050 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2051 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2052 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2053 { (exit 1); exit 1; }; }
2056 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2057 echo "${ECHO_T}$ac_cv_build" >&6; }
2058 case $ac_cv_build in
2060 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2061 echo "$as_me: error: invalid value of canonical build" >&2;}
2062 { (exit 1); exit 1; }; };;
2065 ac_save_IFS=$IFS; IFS='-'
2071 # Remember, the first character of IFS is used to create $*,
2072 # except with old shells:
2075 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2078 { echo "$as_me:$LINENO: checking host system type" >&5
2079 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2080 if test "${ac_cv_host+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 if test "x$host_alias" = x; then
2084 ac_cv_host=$ac_cv_build
2086 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2087 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2088 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2089 { (exit 1); exit 1; }; }
2093 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2094 echo "${ECHO_T}$ac_cv_host" >&6; }
2097 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2098 echo "$as_me: error: invalid value of canonical host" >&2;}
2099 { (exit 1); exit 1; }; };;
2102 ac_save_IFS=$IFS; IFS='-'
2108 # Remember, the first character of IFS is used to create $*,
2109 # except with old shells:
2112 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2116 # check existence of the package
2119 # specify output header file
2120 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2127 cat >>confdefs.h <<\_ACEOF
2128 #define _GNU_SOURCE 1
2133 ac_cpp='$CPP $CPPFLAGS'
2134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2137 if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2142 if test "${ac_cv_prog_CC+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 if test -n "$CC"; then
2167 { echo "$as_me:$LINENO: result: $CC" >&5
2168 echo "${ECHO_T}$CC" >&6; }
2170 { echo "$as_me:$LINENO: result: no" >&5
2171 echo "${ECHO_T}no" >&6; }
2176 if test -z "$ac_cv_prog_CC"; then
2178 # Extract the first word of "gcc", so it can be a program name with args.
2179 set dummy gcc; ac_word=$2
2180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 if test -n "$ac_ct_CC"; then
2186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 test -z "$as_dir" && as_dir=.
2193 for ac_exec_ext in '' $ac_executable_extensions; do
2194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2195 ac_cv_prog_ac_ct_CC="gcc"
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206 if test -n "$ac_ct_CC"; then
2207 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208 echo "${ECHO_T}$ac_ct_CC" >&6; }
2210 { echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6; }
2214 if test "x$ac_ct_CC" = x; then
2217 case $cross_compiling:$ac_tool_warned in
2219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2220 whose name does not start with the host triplet. If you think this
2221 configuration is useful to you, please write to autoconf@gnu.org." >&5
2222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2223 whose name does not start with the host triplet. If you think this
2224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2225 ac_tool_warned=yes ;;
2233 if test -z "$CC"; then
2234 if test -n "$ac_tool_prefix"; then
2235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2236 set dummy ${ac_tool_prefix}cc; ac_word=$2
2237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2239 if test "${ac_cv_prog_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 ac_cv_prog_CC="${ac_tool_prefix}cc"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 if test -n "$CC"; then
2264 { echo "$as_me:$LINENO: result: $CC" >&5
2265 echo "${ECHO_T}$CC" >&6; }
2267 { echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6; }
2274 if test -z "$CC"; then
2275 # Extract the first word of "cc", so it can be a program name with args.
2276 set dummy cc; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2294 ac_prog_rejected=yes
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 if test $ac_prog_rejected = yes; then
2306 # We found a bogon in the path, so make sure we never use it.
2307 set dummy $ac_cv_prog_CC
2309 if test $# != 0; then
2310 # We chose a different compiler from the bogus one.
2311 # However, it has the same basename, so the bogon will be chosen
2312 # first if we set CC to just the basename; use the full file name.
2314 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2320 if test -n "$CC"; then
2321 { echo "$as_me:$LINENO: result: $CC" >&5
2322 echo "${ECHO_T}$CC" >&6; }
2324 { echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6; }
2330 if test -z "$CC"; then
2331 if test -n "$ac_tool_prefix"; then
2332 for ac_prog in cl.exe
2334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2338 if test "${ac_cv_prog_CC+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 if test -n "$CC"; then
2342 ac_cv_prog_CC="$CC" # Let the user override the test.
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 if test -n "$CC"; then
2363 { echo "$as_me:$LINENO: result: $CC" >&5
2364 echo "${ECHO_T}$CC" >&6; }
2366 { echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6; }
2371 test -n "$CC" && break
2374 if test -z "$CC"; then
2376 for ac_prog in cl.exe
2378 # Extract the first word of "$ac_prog", so it can be a program name with args.
2379 set dummy $ac_prog; ac_word=$2
2380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 if test -n "$ac_ct_CC"; then
2386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2395 ac_cv_prog_ac_ct_CC="$ac_prog"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2406 if test -n "$ac_ct_CC"; then
2407 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2408 echo "${ECHO_T}$ac_ct_CC" >&6; }
2410 { echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6; }
2415 test -n "$ac_ct_CC" && break
2418 if test "x$ac_ct_CC" = x; then
2421 case $cross_compiling:$ac_tool_warned in
2423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet. If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&5
2426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet. If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2429 ac_tool_warned=yes ;;
2438 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2439 See \`config.log
' for more details." >&5
2440 echo "$as_me: error: no acceptable C compiler found in \$PATH
2441 See \`config.log' for more details.
" >&2;}
2442 { (exit 1); exit 1; }; }
2444 # Provide some information about the compiler.
2445 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2446 ac_compiler=`set X $ac_compile; echo $2`
2447 { (ac_try="$ac_compiler --version >&5"
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_compiler --version >&5") 2>&5
2455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2456 (exit $ac_status); }
2457 { (ac_try="$ac_compiler -v >&5"
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_compiler -v >&5") 2>&5
2465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2466 (exit $ac_status); }
2467 { (ac_try="$ac_compiler -V >&5"
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_compiler -V >&5") 2>&5
2475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2476 (exit $ac_status); }
2478 cat >conftest.$ac_ext <<_ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2493 ac_clean_files_save=$ac_clean_files
2494 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2495 # Try to create an executable without -o first, disregard a.out.
2496 # It will help us diagnose broken compilers, and finding out an intuition
2498 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2499 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2500 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2502 # List of possible output files, starting from the most likely.
2503 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2504 # only as a last resort. b.out is created by i960 compilers.
2505 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2507 # The IRIX 6 linker writes into existing files which may not be
2508 # executable, retaining their permissions. Remove them first so a
2509 # subsequent execution test works.
2511 for ac_file in $ac_files
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2515 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2520 if { (ac_try="$ac_link_default"
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_link_default") 2>&5
2528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2529 (exit $ac_status); }; then
2530 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2531 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2532 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2533 # so that the user can short-circuit this test for compilers unknown to
2535 for ac_file in $ac_files ''
2537 test -f "$ac_file" || continue
2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2542 # We found the default executable, but exeext='' is most
2546 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2548 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2550 # We set ac_cv_exeext here because the later test for it is not
2551 # safe: cross compilers may not add the suffix if given an `-o'
2552 # argument, so we may need to know it at that point already.
2553 # Even if this section looks crufty: it has the advantage of
2560 test "$ac_cv_exeext" = no && ac_cv_exeext=
2566 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2567 echo "${ECHO_T}$ac_file" >&6; }
2568 if test -z "$ac_file"; then
2569 echo "$as_me: failed program was
:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2572 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2573 See \
`config.log' for more details." >&5
2574 echo "$as_me: error: C compiler cannot create executables
2575 See \`config.log
' for more details." >&2;}
2576 { (exit 77); exit 77; }; }
2579 ac_exeext=$ac_cv_exeext
2581 # Check that the compiler produces executables we can run. If not, either
2582 # the compiler is broken, or we cross compile.
2583 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2584 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2585 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2586 # If not cross compiling, check that we can run a simple program.
2587 if test "$cross_compiling" != yes; then
2588 if { ac_try='.
/$ac_file'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2600 if test "$cross_compiling" = maybe; then
2603 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2604 If you meant to cross compile, use \`--host'.
2605 See \
`config.log' for more details." >&5
2606 echo "$as_me: error: cannot run C compiled programs.
2607 If you meant to cross compile, use \`--host'.
2608 See \`config.log' for more details.
" >&2;}
2609 { (exit 1); exit 1; }; }
2613 { echo "$as_me:$LINENO: result
: yes" >&5
2614 echo "${ECHO_T}yes" >&6; }
2616 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2617 ac_clean_files=$ac_clean_files_save
2618 # Check that the compiler produces executables we can run. If not, either
2619 # the compiler is broken, or we cross compile.
2620 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2621 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2622 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2623 echo "${ECHO_T}$cross_compiling" >&6; }
2625 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2626 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2627 if { (ac_try="$ac_link"
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2632 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_link") 2>&5
2635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2636 (exit $ac_status); }; then
2637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2638 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2639 # work properly (i.e., refer to `conftest.exe'), while it won't with
2641 for ac_file in conftest.exe conftest conftest.*; do
2642 test -f "$ac_file" || continue
2644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2651 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2652 See \
`config.log' for more details." >&5
2653 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log
' for more details." >&2;}
2655 { (exit 1); exit 1; }; }
2658 rm -f conftest$ac_cv_exeext
2659 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2660 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2662 rm -f conftest.$ac_ext
2663 EXEEXT=$ac_cv_exeext
2665 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2666 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2667 if test "${ac_cv_objext+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2685 rm -f conftest.o conftest.obj
2686 if { (ac_try="$ac_compile"
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; then
2696 for ac_file in conftest.o conftest.obj conftest.*; do
2697 test -f "$ac_file" || continue;
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2700 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2705 echo "$as_me: failed program was:" >&5
2706 sed 's
/^
/|
/' conftest.$ac_ext >&5
2708 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2709 See \`config.log' for more details.
" >&5
2710 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2711 See \
`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }
2715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2717 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2718 echo "${ECHO_T}$ac_cv_objext" >&6; }
2719 OBJEXT=$ac_cv_objext
2721 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2723 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 cat >conftest.$ac_ext <<_ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2744 rm -f conftest.$ac_objext
2745 if { (ac_try="$ac_compile"
2747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2748 *) ac_try_echo
=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compile") 2>conftest.er1
2753 grep -v '^ *+' conftest.er1
>conftest.err
2755 cat conftest.err
>&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } && {
2758 test -z "$ac_c_werror_flag" ||
2759 test ! -s conftest.err
2760 } && test -s conftest.
$ac_objext; then
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.
$ac_ext >&5
2769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2770 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2773 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2774 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2775 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2776 ac_test_CFLAGS
=${CFLAGS+set}
2777 ac_save_CFLAGS
=$CFLAGS
2778 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2779 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2780 if test "${ac_cv_prog_cc_g+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 ac_save_c_werror_flag
=$ac_c_werror_flag
2784 ac_c_werror_flag
=yes
2787 cat >conftest.
$ac_ext <<_ACEOF
2790 cat confdefs.h
>>conftest.
$ac_ext
2791 cat >>conftest.
$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2802 rm -f conftest.
$ac_objext
2803 if { (ac_try
="$ac_compile"
2805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_compile") 2>conftest.er1
2811 grep -v '^ *+' conftest.er1 >conftest.err
2813 cat conftest.err >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); } && {
2816 test -z "$ac_c_werror_flag" ||
2817 test ! -s conftest.err
2818 } && test -s conftest.$ac_objext; then
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2825 cat >conftest.$ac_ext <<_ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2840 rm -f conftest.$ac_objext
2841 if { (ac_try="$ac_compile"
2843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2844 *) ac_try_echo
=$ac_try;;
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compile") 2>conftest.er1
2849 grep -v '^ *+' conftest.er1
>conftest.err
2851 cat conftest.err
>&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } && {
2854 test -z "$ac_c_werror_flag" ||
2855 test ! -s conftest.err
2856 } && test -s conftest.
$ac_objext; then
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.
$ac_ext >&5
2862 ac_c_werror_flag
=$ac_save_c_werror_flag
2864 cat >conftest.
$ac_ext <<_ACEOF
2867 cat confdefs.h
>>conftest.
$ac_ext
2868 cat >>conftest.
$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2879 rm -f conftest.
$ac_objext
2880 if { (ac_try
="$ac_compile"
2882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_compile") 2>conftest.er1
2888 grep -v '^ *+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } && {
2893 test -z "$ac_c_werror_flag" ||
2894 test ! -s conftest.err
2895 } && test -s conftest.$ac_objext; then
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 ac_c_werror_flag=$ac_save_c_werror_flag
2913 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2914 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2915 if test "$ac_test_CFLAGS" = set; then
2916 CFLAGS=$ac_save_CFLAGS
2917 elif test $ac_cv_prog_cc_g = yes; then
2918 if test "$GCC" = yes; then
2924 if test "$GCC" = yes; then
2930 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2931 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2932 if test "${ac_cv_prog_cc_c89+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 ac_cv_prog_cc_c89=no
2937 cat >conftest.$ac_ext <<_ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2945 #include <sys/types.h>
2946 #include <sys/stat.h>
2947 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2948 struct buf { int x; };
2949 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2950 static char *e (p, i)
2956 static char *f (char * (*g) (char **, int), char **p, ...)
2961 s = g (p, va_arg (v,int));
2966 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2967 function prototypes and stuff, but not '\xHH' hex character constants.
2968 These don't provoke an error unfortunately, instead are silently treated
2969 as 'x'. The following induces an error, until -std is added to get
2970 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2971 array size at least. It's necessary to write '\x00'==0 to get something
2972 that's true only with -std. */
2973 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2975 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2976 inside strings and character constants. */
2978 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2980 int test (int i, double x);
2981 struct s1 {int (*f) (int a);};
2982 struct s2 {int (*f) (double a);};
2983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2989 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2994 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2995 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2997 CC="$ac_save_CC $ac_arg"
2998 rm -f conftest.$ac_objext
2999 if { (ac_try="$ac_compile"
3001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3002 *) ac_try_echo
=$ac_try;;
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compile") 2>conftest.er1
3007 grep -v '^ *+' conftest.er1
>conftest.err
3009 cat conftest.err
>&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.
$ac_objext; then
3015 ac_cv_prog_cc_c89
=$ac_arg
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.
$ac_ext >&5
3023 rm -f core conftest.err conftest.
$ac_objext
3024 test "x$ac_cv_prog_cc_c89" != "xno" && break
3026 rm -f conftest.
$ac_ext
3031 case "x$ac_cv_prog_cc_c89" in
3033 { echo "$as_me:$LINENO: result: none needed" >&5
3034 echo "${ECHO_T}none needed" >&6; } ;;
3036 { echo "$as_me:$LINENO: result: unsupported" >&5
3037 echo "${ECHO_T}unsupported" >&6; } ;;
3039 CC
="$CC $ac_cv_prog_cc_c89"
3040 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3041 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3046 ac_cpp
='$CPP $CPPFLAGS'
3047 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3053 ac_cpp
='$CPP $CPPFLAGS'
3054 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3057 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3058 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3059 # On Suns, sometimes $CPP names a directory.
3060 if test -n "$CPP" && test -d "$CPP"; then
3063 if test -z "$CPP"; then
3064 if test "${ac_cv_prog_CPP+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 # Double quotes because CPP needs to be expanded
3068 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3071 for ac_c_preproc_warn_flag
in '' yes
3073 # Use a header file that comes with gcc, so configuring glibc
3074 # with a fresh cross-compiler works.
3075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076 # <limits.h> exists even on freestanding compilers.
3077 # On the NeXT, cc -E runs the code through the compiler's parser,
3078 # not just through cpp. "Syntax error" is here to catch this case.
3079 cat >conftest.
$ac_ext <<_ACEOF
3082 cat confdefs.h
>>conftest.
$ac_ext
3083 cat >>conftest.
$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3086 # include <limits.h>
3088 # include <assert.h>
3092 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3100 grep -v '^ *+' conftest.er1 >conftest.err
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } >/dev/null && {
3105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3106 test ! -s conftest.err
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 # Broken: fails on valid input.
3117 rm -f conftest.err conftest.$ac_ext
3119 # OK, works on sane cases. Now check whether nonexistent headers
3120 # can be detected and how.
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <ac_nonexistent.h>
3129 if { (ac_try="$ac_cpp conftest.$ac_ext"
3131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3132 *) ac_try_echo
=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137 grep -v '^ *+' conftest.er1
>conftest.err
3139 cat conftest.err
>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } >/dev
/null
&& {
3142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3145 # Broken: success on invalid input.
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.
$ac_ext >&5
3151 # Passes both tests.
3156 rm -f conftest.err conftest.
$ac_ext
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.
$ac_ext
3161 if $ac_preproc_ok; then
3173 { echo "$as_me:$LINENO: result: $CPP" >&5
3174 echo "${ECHO_T}$CPP" >&6; }
3176 for ac_c_preproc_warn_flag
in '' yes
3178 # Use a header file that comes with gcc, so configuring glibc
3179 # with a fresh cross-compiler works.
3180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3181 # <limits.h> exists even on freestanding compilers.
3182 # On the NeXT, cc -E runs the code through the compiler's parser,
3183 # not just through cpp. "Syntax error" is here to catch this case.
3184 cat >conftest.
$ac_ext <<_ACEOF
3187 cat confdefs.h
>>conftest.
$ac_ext
3188 cat >>conftest.
$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3191 # include <limits.h>
3193 # include <assert.h>
3197 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3205 grep -v '^ *+' conftest.er1 >conftest.err
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } >/dev/null && {
3210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3211 test ! -s conftest.err
3215 echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3218 # Broken: fails on valid input.
3222 rm -f conftest.err conftest.$ac_ext
3224 # OK, works on sane cases. Now check whether nonexistent headers
3225 # can be detected and how.
3226 cat >conftest.$ac_ext <<_ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3232 #include <ac_nonexistent.h>
3234 if { (ac_try="$ac_cpp conftest.$ac_ext"
3236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3237 *) ac_try_echo
=$ac_try;;
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242 grep -v '^ *+' conftest.er1
>conftest.err
3244 cat conftest.err
>&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev
/null
&& {
3247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3248 test ! -s conftest.err
3250 # Broken: success on invalid input.
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.
$ac_ext >&5
3256 # Passes both tests.
3261 rm -f conftest.err conftest.
$ac_ext
3264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3265 rm -f conftest.err conftest.
$ac_ext
3266 if $ac_preproc_ok; then
3269 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3270 See \`config.log' for more details." >&5
3271 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3272 See \`config.log' for more details." >&2;}
3273 { (exit 1); exit 1; }; }
3277 ac_cpp
='$CPP $CPPFLAGS'
3278 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3283 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3284 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3285 if test "${ac_cv_path_GREP+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 # Extract the first word of "grep ggrep" to use in msg output
3289 if test -z "$GREP"; then
3290 set dummy
grep ggrep
; ac_prog_name
=$2
3291 if test "${ac_cv_path_GREP+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 ac_path_GREP_found
=false
3295 # Loop through the user's path and test for each of PROGNAME-LIST
3296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3297 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3300 test -z "$as_dir" && as_dir
=.
3301 for ac_prog
in grep ggrep
; do
3302 for ac_exec_ext
in '' $ac_executable_extensions; do
3303 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3304 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3305 # Check for GNU ac_path_GREP and select it if it is found.
3306 # Check for GNU $ac_path_GREP
3307 case `"$ac_path_GREP" --version 2>&1` in
3309 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3312 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3315 cat "conftest.in" "conftest.in" >"conftest.tmp"
3316 mv "conftest.tmp" "conftest.in"
3317 cp "conftest.in" "conftest.nl"
3318 echo 'GREP' >> "conftest.nl"
3319 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3320 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3321 ac_count
=`expr $ac_count + 1`
3322 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3323 # Best one so far, save it but keep looking for a better one
3324 ac_cv_path_GREP
="$ac_path_GREP"
3325 ac_path_GREP_max
=$ac_count
3327 # 10*(2^10) chars as input seems more than enough
3328 test $ac_count -gt 10 && break
3330 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3334 $ac_path_GREP_found && break 3
3344 GREP
="$ac_cv_path_GREP"
3345 if test -z "$GREP"; then
3346 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3347 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3348 { (exit 1); exit 1; }; }
3352 ac_cv_path_GREP
=$GREP
3357 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3358 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3359 GREP
="$ac_cv_path_GREP"
3362 { echo "$as_me:$LINENO: checking for egrep" >&5
3363 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3364 if test "${ac_cv_path_EGREP+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3368 then ac_cv_path_EGREP
="$GREP -E"
3370 # Extract the first word of "egrep" to use in msg output
3371 if test -z "$EGREP"; then
3372 set dummy
egrep; ac_prog_name
=$2
3373 if test "${ac_cv_path_EGREP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 ac_path_EGREP_found
=false
3377 # Loop through the user's path and test for each of PROGNAME-LIST
3378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3379 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3382 test -z "$as_dir" && as_dir
=.
3383 for ac_prog
in egrep; do
3384 for ac_exec_ext
in '' $ac_executable_extensions; do
3385 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3386 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3387 # Check for GNU ac_path_EGREP and select it if it is found.
3388 # Check for GNU $ac_path_EGREP
3389 case `"$ac_path_EGREP" --version 2>&1` in
3391 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3394 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3397 cat "conftest.in" "conftest.in" >"conftest.tmp"
3398 mv "conftest.tmp" "conftest.in"
3399 cp "conftest.in" "conftest.nl"
3400 echo 'EGREP' >> "conftest.nl"
3401 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3402 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3403 ac_count
=`expr $ac_count + 1`
3404 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3405 # Best one so far, save it but keep looking for a better one
3406 ac_cv_path_EGREP
="$ac_path_EGREP"
3407 ac_path_EGREP_max
=$ac_count
3409 # 10*(2^10) chars as input seems more than enough
3410 test $ac_count -gt 10 && break
3412 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3416 $ac_path_EGREP_found && break 3
3426 EGREP
="$ac_cv_path_EGREP"
3427 if test -z "$EGREP"; then
3428 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3429 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3430 { (exit 1); exit 1; }; }
3434 ac_cv_path_EGREP
=$EGREP
3440 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3441 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3442 EGREP
="$ac_cv_path_EGREP"
3446 { echo "$as_me:$LINENO: checking for AIX" >&5
3447 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3448 cat >conftest.
$ac_ext <<_ACEOF
3451 cat confdefs.h
>>conftest.
$ac_ext
3452 cat >>conftest.
$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3460 $EGREP "yes" >/dev
/null
2>&1; then
3461 { echo "$as_me:$LINENO: result: yes" >&5
3462 echo "${ECHO_T}yes" >&6; }
3463 cat >>confdefs.h
<<\_ACEOF
3464 #define _ALL_SOURCE 1
3468 { echo "$as_me:$LINENO: result: no" >&5
3469 echo "${ECHO_T}no" >&6; }
3474 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3475 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3476 if test "${ac_cv_header_stdc+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 cat >conftest.
$ac_ext <<_ACEOF
3482 cat confdefs.h
>>conftest.
$ac_ext
3483 cat >>conftest.
$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3498 rm -f conftest.
$ac_objext
3499 if { (ac_try
="$ac_compile"
3501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_compile") 2>conftest.er1
3507 grep -v '^ *+' conftest.er1 >conftest.err
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } && {
3512 test -z "$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3514 } && test -s conftest.$ac_objext; then
3515 ac_cv_header_stdc=yes
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 ac_cv_header_stdc=no
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 if test $ac_cv_header_stdc = yes; then
3526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3527 cat >conftest.$ac_ext <<_ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3537 $EGREP "memchr" >/dev/null 2>&1; then
3540 ac_cv_header_stdc=no
3546 if test $ac_cv_header_stdc = yes; then
3547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3548 cat >conftest.$ac_ext <<_ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3558 $EGREP "free" >/dev/null 2>&1; then
3561 ac_cv_header_stdc=no
3567 if test $ac_cv_header_stdc = yes; then
3568 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3569 if test "$cross_compiling" = yes; then
3572 cat >conftest.$ac_ext <<_ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3580 #if ((' ' & 0x0FF) == 0x020)
3581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3584 # define ISLOWER(c) \
3585 (('a' <= (c) && (c) <= 'i') \
3586 || ('j' <= (c) && (c) <= 'r') \
3587 || ('s' <= (c) && (c) <= 'z'))
3588 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3591 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3596 for (i = 0; i < 256; i++)
3597 if (XOR (islower (i), ISLOWER (i))
3598 || toupper (i) != TOUPPER (i))
3603 rm -f conftest$ac_exeext
3604 if { (ac_try="$ac_link"
3606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3607 *) ac_try_echo
=$ac_try;;
3609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_link") 2>&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3614 { (case "(($ac_try" in
3615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_try") 2>&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3625 echo "$as_me: program exited with status $ac_status" >&5
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3630 ac_cv_header_stdc=no
3632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3638 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3639 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3640 if test $ac_cv_header_stdc = yes; then
3642 cat >>confdefs.h <<\_ACEOF
3643 #define STDC_HEADERS 1
3648 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3658 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3659 inttypes.h stdint.h unistd.h
3661 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 cat >conftest.$ac_ext <<_ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3673 $ac_includes_default
3675 #include <$ac_header>
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3681 *) ac_try_echo
=$ac_try;;
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_compile") 2>conftest.er1
3686 grep -v '^ *+' conftest.er1
>conftest.err
3688 cat conftest.err
>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } && {
3691 test -z "$ac_c_werror_flag" ||
3692 test ! -s conftest.err
3693 } && test -s conftest.
$ac_objext; then
3694 eval "$as_ac_Header=yes"
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.
$ac_ext >&5
3699 eval "$as_ac_Header=no"
3702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3704 ac_res
=`eval echo '${'$as_ac_Header'}'`
3705 { echo "$as_me:$LINENO: result: $ac_res" >&5
3706 echo "${ECHO_T}$ac_res" >&6; }
3707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3708 cat >>confdefs.h
<<_ACEOF
3709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3717 if test "${ac_cv_header_minix_config_h+set}" = set; then
3718 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3719 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3720 if test "${ac_cv_header_minix_config_h+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3724 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3726 # Is the header compilable?
3727 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3728 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3729 cat >conftest.
$ac_ext <<_ACEOF
3732 cat confdefs.h
>>conftest.
$ac_ext
3733 cat >>conftest.
$ac_ext <<_ACEOF
3734 /* end confdefs.h. */
3735 $ac_includes_default
3736 #include <minix/config.h>
3738 rm -f conftest.
$ac_objext
3739 if { (ac_try
="$ac_compile"
3741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_compile") 2>conftest.er1
3747 grep -v '^ *+' conftest.er1 >conftest.err
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } && {
3752 test -z "$ac_c_werror_flag" ||
3753 test ! -s conftest.err
3754 } && test -s conftest.$ac_objext; then
3755 ac_header_compiler=yes
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3760 ac_header_compiler=no
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3765 echo "${ECHO_T}$ac_header_compiler" >&6; }
3767 # Is the header present?
3768 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3769 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3770 cat >conftest.$ac_ext <<_ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 #include <minix/config.h>
3778 if { (ac_try="$ac_cpp conftest.$ac_ext"
3780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3781 *) ac_try_echo
=$ac_try;;
3783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3786 grep -v '^ *+' conftest.er1
>conftest.err
3788 cat conftest.err
>&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } >/dev
/null
&& {
3791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3792 test ! -s conftest.err
3794 ac_header_preproc
=yes
3796 echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.
$ac_ext >&5
3799 ac_header_preproc
=no
3802 rm -f conftest.err conftest.
$ac_ext
3803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3804 echo "${ECHO_T}$ac_header_preproc" >&6; }
3806 # So? What about this header?
3807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3809 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3810 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3811 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3812 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3813 ac_header_preproc
=yes
3816 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3817 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3818 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3819 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3820 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3821 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3822 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3823 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3824 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3825 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3827 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3829 ## ------------------------------- ##
3830 ## Report this to www.asterisk.org ##
3831 ## ------------------------------- ##
3833 ) |
sed "s/^/$as_me: WARNING: /" >&2
3836 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3837 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3838 if test "${ac_cv_header_minix_config_h+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 ac_cv_header_minix_config_h
=$ac_header_preproc
3843 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3844 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3847 if test $ac_cv_header_minix_config_h = yes; then
3854 if test "$MINIX" = yes; then
3856 cat >>confdefs.h
<<\_ACEOF
3857 #define _POSIX_SOURCE 1
3861 cat >>confdefs.h
<<\_ACEOF
3862 #define _POSIX_1_SOURCE 2
3866 cat >>confdefs.h
<<\_ACEOF
3882 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3883 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3884 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 cat >conftest.
$ac_ext <<_ACEOF
3890 cat confdefs.h
>>conftest.
$ac_ext
3891 cat >>conftest.
$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3894 # define __EXTENSIONS__ 1
3895 $ac_includes_default
3904 rm -f conftest.
$ac_objext
3905 if { (ac_try
="$ac_compile"
3907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911 (eval "$ac_compile") 2>conftest.er1
3913 grep -v '^ *+' conftest.er1 >conftest.err
3915 cat conftest.err >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } && {
3918 test -z "$ac_c_werror_flag" ||
3919 test ! -s conftest.err
3920 } && test -s conftest.$ac_objext; then
3921 ac_cv_safe_to_define___extensions__=yes
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 ac_cv_safe_to_define___extensions__=no
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3932 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3933 test $ac_cv_safe_to_define___extensions__ = yes &&
3934 cat >>confdefs.h <<\_ACEOF
3935 #define __EXTENSIONS__ 1
3938 cat >>confdefs.h <<\_ACEOF
3939 #define _POSIX_PTHREAD_SEMANTICS 1
3942 cat >>confdefs.h <<\_ACEOF
3943 #define _TANDEM_SOURCE 1
3946 # note- does not work on FreeBSD
3948 case "${host_os}" in
3950 ac_default_prefix=/usr/local
3951 CPPFLAGS=-I/usr/local/include
3952 LDFLAGS=-L/usr/local/lib
3955 ac_default_prefix=/usr
3956 if test ${sysconfdir} = '${prefix}/etc'; then
3959 if test ${mandir} = '${prefix}/man'; then
3960 mandir=/usr/share/man
3965 if test ${localstatedir} = '${prefix}/var'; then
3969 BUILD_PLATFORM=${build}
3970 BUILD_CPU=${build_cpu}
3971 BUILD_VENDOR=${build_vendor}
3972 BUILD_OS=${build_os}
3979 HOST_PLATFORM=${host}
3980 HOST_CPU=${host_cpu}
3981 HOST_VENDOR=${host_vendor}
3989 case "${host_os}" in
4010 if test -n "$ac_tool_prefix"; then
4011 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4012 set dummy ${ac_tool_prefix}uname; ac_word=$2
4013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4015 if test "${ac_cv_path_UNAME+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4030 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 UNAME=$ac_cv_path_UNAME
4042 if test -n "$UNAME"; then
4043 { echo "$as_me:$LINENO: result: $UNAME" >&5
4044 echo "${ECHO_T}$UNAME" >&6; }
4046 { echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6; }
4052 if test -z "$ac_cv_path_UNAME"; then
4054 # Extract the first word of "uname", so it can be a program name with args.
4055 set dummy uname; ac_word=$2
4056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4058 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 case $ac_pt_UNAME in
4063 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4073 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4085 if test -n "$ac_pt_UNAME"; then
4086 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4087 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4089 { echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6; }
4093 if test "x$ac_pt_UNAME" = x; then
4096 case $cross_compiling:$ac_tool_warned in
4098 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4099 whose name does not start with the host triplet. If you think this
4100 configuration is useful to you, please write to autoconf@gnu.org." >&5
4101 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4102 whose name does not start with the host triplet. If you think this
4103 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4104 ac_tool_warned=yes ;;
4109 UNAME="$ac_cv_path_UNAME"
4112 if test ! x"${UNAME}" = xNo; then
4113 PBX_OSREV=$(${UNAME} -r)
4123 # cross-compile checks
4124 if test "${cross_compiling}" = "yes";
4126 if test -n "$ac_tool_prefix"; then
4127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4128 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4131 if test "${ac_cv_prog_CC+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 if test -n "$CC"; then
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 if test -n "$CC"; then
4156 { echo "$as_me:$LINENO: result: $CC" >&5
4157 echo "${ECHO_T}$CC" >&6; }
4159 { echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6; }
4165 if test -z "$ac_cv_prog_CC"; then
4167 # Extract the first word of "gcc", so it can be a program name with args.
4168 set dummy gcc; ac_word=$2
4169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 if test -n "$ac_ct_CC"; then
4175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_prog_ac_ct_CC="gcc"
4185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4195 if test -n "$ac_ct_CC"; then
4196 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4197 echo "${ECHO_T}$ac_ct_CC" >&6; }
4199 { echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6; }
4203 if test "x$ac_ct_CC" = x; then
4206 case $cross_compiling:$ac_tool_warned in
4208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4209 whose name does not start with the host triplet. If you think this
4210 configuration is useful to you, please write to autoconf@gnu.org." >&5
4211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4212 whose name does not start with the host triplet. If you think this
4213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4214 ac_tool_warned=yes ;;
4222 if test -n "$ac_tool_prefix"; then
4223 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4224 set dummy ${ac_tool_prefix}g++; ac_word=$2
4225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4227 if test "${ac_cv_prog_CXX+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 if test -n "$CXX"; then
4231 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 if test -n "$CXX"; then
4252 { echo "$as_me:$LINENO: result: $CXX" >&5
4253 echo "${ECHO_T}$CXX" >&6; }
4255 { echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6; }
4261 if test -z "$ac_cv_prog_CXX"; then
4263 # Extract the first word of "g++", so it can be a program name with args.
4264 set dummy g++; ac_word=$2
4265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4267 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 if test -n "$ac_ct_CXX"; then
4271 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_ac_ct_CXX="g++"
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4291 if test -n "$ac_ct_CXX"; then
4292 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4293 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4295 { echo "$as_me:$LINENO: result: no" >&5
4296 echo "${ECHO_T}no" >&6; }
4299 if test "x$ac_ct_CXX" = x; then
4302 case $cross_compiling:$ac_tool_warned in
4304 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4305 whose name does not start with the host triplet. If you think this
4306 configuration is useful to you, please write to autoconf@gnu.org." >&5
4307 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4308 whose name does not start with the host triplet. If you think this
4309 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4310 ac_tool_warned=yes ;;
4315 CXX="$ac_cv_prog_CXX"
4318 if test -n "$ac_tool_prefix"; then
4319 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4320 set dummy ${ac_tool_prefix}ld; ac_word=$2
4321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4323 if test "${ac_cv_prog_LD+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 if test -n "$LD"; then
4327 ac_cv_prog_LD="$LD" # Let the user override the test.
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336 ac_cv_prog_LD="${ac_tool_prefix}ld"
4337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 if test -n "$LD"; then
4348 { echo "$as_me:$LINENO: result: $LD" >&5
4349 echo "${ECHO_T}$LD" >&6; }
4351 { echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6; }
4357 if test -z "$ac_cv_prog_LD"; then
4359 # Extract the first word of "ld", so it can be a program name with args.
4360 set dummy ld; ac_word=$2
4361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4363 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 if test -n "$ac_ct_LD"; then
4367 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_ac_ct_LD="ld"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4387 if test -n "$ac_ct_LD"; then
4388 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4389 echo "${ECHO_T}$ac_ct_LD" >&6; }
4391 { echo "$as_me:$LINENO: result: no" >&5
4392 echo "${ECHO_T}no" >&6; }
4395 if test "x$ac_ct_LD" = x; then
4398 case $cross_compiling:$ac_tool_warned in
4400 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4401 whose name does not start with the host triplet. If you think this
4402 configuration is useful to you, please write to autoconf@gnu.org." >&5
4403 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4404 whose name does not start with the host triplet. If you think this
4405 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4406 ac_tool_warned=yes ;;
4414 if test -n "$ac_tool_prefix"; then
4415 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4416 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_prog_RANLIB+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 if test -n "$RANLIB"; then
4423 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 RANLIB=$ac_cv_prog_RANLIB
4443 if test -n "$RANLIB"; then
4444 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4445 echo "${ECHO_T}$RANLIB" >&6; }
4447 { echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6; }
4453 if test -z "$ac_cv_prog_RANLIB"; then
4454 ac_ct_RANLIB=$RANLIB
4455 # Extract the first word of "ranlib", so it can be a program name with args.
4456 set dummy ranlib; ac_word=$2
4457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4459 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 if test -n "$ac_ct_RANLIB"; then
4463 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_ac_ct_RANLIB="ranlib"
4473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4483 if test -n "$ac_ct_RANLIB"; then
4484 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4485 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4487 { echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6; }
4491 if test "x$ac_ct_RANLIB" = x; then
4494 case $cross_compiling:$ac_tool_warned in
4496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4497 whose name does not start with the host triplet. If you think this
4498 configuration is useful to you, please write to autoconf@gnu.org." >&5
4499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4500 whose name does not start with the host triplet. If you think this
4501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4502 ac_tool_warned=yes ;;
4504 RANLIB=$ac_ct_RANLIB
4507 RANLIB="$ac_cv_prog_RANLIB"
4512 # Checks for programs.
4514 ac_cpp='$CPP $CPPFLAGS'
4515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518 if test -n "$ac_tool_prefix"; then
4519 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4520 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4523 if test "${ac_cv_prog_CC+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 if test -n "$CC"; then
4527 ac_cv_prog_CC="$CC" # Let the user override the test.
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 if test -n "$CC"; then
4548 { echo "$as_me:$LINENO: result: $CC" >&5
4549 echo "${ECHO_T}$CC" >&6; }
4551 { echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6; }
4557 if test -z "$ac_cv_prog_CC"; then
4559 # Extract the first word of "gcc", so it can be a program name with args.
4560 set dummy gcc; ac_word=$2
4561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 if test -n "$ac_ct_CC"; then
4567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_ac_ct_CC="gcc"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4587 if test -n "$ac_ct_CC"; then
4588 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4589 echo "${ECHO_T}$ac_ct_CC" >&6; }
4591 { echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6; }
4595 if test "x$ac_ct_CC" = x; then
4598 case $cross_compiling:$ac_tool_warned in
4600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4601 whose name does not start with the host triplet. If you think this
4602 configuration is useful to you, please write to autoconf@gnu.org." >&5
4603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4604 whose name does not start with the host triplet. If you think this
4605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4606 ac_tool_warned=yes ;;
4614 if test -z "$CC"; then
4615 if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}cc; ac_word=$2
4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620 if test "${ac_cv_prog_CC+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 if test -n "$CC"; then
4624 ac_cv_prog_CC="$CC" # Let the user override the test.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_CC="${ac_tool_prefix}cc"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 if test -n "$CC"; then
4645 { echo "$as_me:$LINENO: result: $CC" >&5
4646 echo "${ECHO_T}$CC" >&6; }
4648 { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4655 if test -z "$CC"; then
4656 # Extract the first word of "cc", so it can be a program name with args.
4657 set dummy cc; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_prog_CC+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 if test -n "$CC"; then
4664 ac_cv_prog_CC="$CC" # Let the user override the test.
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4675 ac_prog_rejected=yes
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 if test $ac_prog_rejected = yes; then
4687 # We found a bogon in the path, so make sure we never use it.
4688 set dummy $ac_cv_prog_CC
4690 if test $# != 0; then
4691 # We chose a different compiler from the bogus one.
4692 # However, it has the same basename, so the bogon will be chosen
4693 # first if we set CC to just the basename; use the full file name.
4695 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4701 if test -n "$CC"; then
4702 { echo "$as_me:$LINENO: result: $CC" >&5
4703 echo "${ECHO_T}$CC" >&6; }
4705 { echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6; }
4711 if test -z "$CC"; then
4712 if test -n "$ac_tool_prefix"; then
4713 for ac_prog in cl.exe
4715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_prog_CC+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 if test -n "$CC"; then
4723 ac_cv_prog_CC="$CC" # Let the user override the test.
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 if test -n "$CC"; then
4744 { echo "$as_me:$LINENO: result: $CC" >&5
4745 echo "${ECHO_T}$CC" >&6; }
4747 { echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6; }
4752 test -n "$CC" && break
4755 if test -z "$CC"; then
4757 for ac_prog in cl.exe
4759 # Extract the first word of "$ac_prog", so it can be a program name with args.
4760 set dummy $ac_prog; ac_word=$2
4761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 if test -n "$ac_ct_CC"; then
4767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 ac_cv_prog_ac_ct_CC="$ac_prog"
4777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4787 if test -n "$ac_ct_CC"; then
4788 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4789 echo "${ECHO_T}$ac_ct_CC" >&6; }
4791 { echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6; }
4796 test -n "$ac_ct_CC" && break
4799 if test "x$ac_ct_CC" = x; then
4802 case $cross_compiling:$ac_tool_warned in
4804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4805 whose name does not start with the host triplet. If you think this
4806 configuration is useful to you, please write to autoconf@gnu.org." >&5
4807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4808 whose name does not start with the host triplet. If you think this
4809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4810 ac_tool_warned=yes ;;
4819 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4820 See \`config.log
' for more details." >&5
4821 echo "$as_me: error: no acceptable C compiler found in \$PATH
4822 See \`config.log' for more details.
" >&2;}
4823 { (exit 1); exit 1; }; }
4825 # Provide some information about the compiler.
4826 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4827 ac_compiler=`set X $ac_compile; echo $2`
4828 { (ac_try="$ac_compiler --version >&5"
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4833 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_compiler --version >&5") 2>&5
4836 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4837 (exit $ac_status); }
4838 { (ac_try="$ac_compiler -v >&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 -v >&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); }
4859 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
4860 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
4861 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4862 echo $ECHO_N "(cached
) $ECHO_C" >&6
4864 cat >conftest.$ac_ext <<_ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4882 rm -f conftest.$ac_objext
4883 if { (ac_try="$ac_compile"
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4889 (eval "$ac_compile") 2>conftest.er1
4891 grep -v '^ *+' conftest.er1 >conftest.err
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4895 (exit $ac_status); } && {
4896 test -z "$ac_c_werror_flag" ||
4897 test ! -s conftest.err
4898 } && test -s conftest.$ac_objext; then
4901 echo "$as_me: failed program was
:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4911 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
4912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4913 GCC=`test $ac_compiler_gnu = yes && echo yes`
4914 ac_test_CFLAGS=${CFLAGS+set}
4915 ac_save_CFLAGS=$CFLAGS
4916 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
4917 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
4918 if test "${ac_cv_prog_cc_g+set}" = set; then
4919 echo $ECHO_N "(cached
) $ECHO_C" >&6
4921 ac_save_c_werror_flag=$ac_c_werror_flag
4922 ac_c_werror_flag=yes
4925 cat >conftest.$ac_ext <<_ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4940 rm -f conftest.$ac_objext
4941 if { (ac_try="$ac_compile"
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_compile") 2>conftest.er1
4949 grep -v '^ *+' conftest.er1 >conftest.err
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4953 (exit $ac_status); } && {
4954 test -z "$ac_c_werror_flag" ||
4955 test ! -s conftest.err
4956 } && test -s conftest.$ac_objext; then
4959 echo "$as_me: failed program was
:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4963 cat >conftest.$ac_ext <<_ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4978 rm -f conftest.$ac_objext
4979 if { (ac_try="$ac_compile"
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4985 (eval "$ac_compile") 2>conftest.er1
4987 grep -v '^ *+' conftest.er1 >conftest.err
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4991 (exit $ac_status); } && {
4992 test -z "$ac_c_werror_flag" ||
4993 test ! -s conftest.err
4994 } && test -s conftest.$ac_objext; then
4997 echo "$as_me: failed program was
:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5000 ac_c_werror_flag=$ac_save_c_werror_flag
5002 cat >conftest.$ac_ext <<_ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5017 rm -f conftest.$ac_objext
5018 if { (ac_try="$ac_compile"
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5023 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_compile") 2>conftest.er1
5026 grep -v '^ *+' conftest.er1 >conftest.err
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5030 (exit $ac_status); } && {
5031 test -z "$ac_c_werror_flag" ||
5032 test ! -s conftest.err
5033 } && test -s conftest.$ac_objext; then
5036 echo "$as_me: failed program was
:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049 ac_c_werror_flag=$ac_save_c_werror_flag
5051 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
5052 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5053 if test "$ac_test_CFLAGS" = set; then
5054 CFLAGS=$ac_save_CFLAGS
5055 elif test $ac_cv_prog_cc_g = yes; then
5056 if test "$GCC" = yes; then
5062 if test "$GCC" = yes; then
5068 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
5069 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
5070 if test "${ac_cv_prog_cc_c89+set}" = set; then
5071 echo $ECHO_N "(cached
) $ECHO_C" >&6
5073 ac_cv_prog_cc_c89=no
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5083 #include <sys/types.h>
5084 #include <sys/stat.h>
5085 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5086 struct buf { int x; };
5087 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5088 static char *e (p, i)
5094 static char *f (char * (*g) (char **, int), char **p, ...)
5099 s = g (p, va_arg (v,int));
5104 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5105 function prototypes and stuff, but not '\xHH' hex character constants.
5106 These don't provoke an error unfortunately, instead are silently treated
5107 as 'x'. The following induces an error, until -std is added to get
5108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5109 array size at least. It's necessary to write '\x00'==0 to get something
5110 that's true only with -std. */
5111 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5113 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5114 inside strings and character constants. */
5116 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5118 int test (int i, double x);
5119 struct s1 {int (*f) (int a);};
5120 struct s2 {int (*f) (double a);};
5121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5132 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5133 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5135 CC="$ac_save_CC $ac_arg"
5136 rm -f conftest.$ac_objext
5137 if { (ac_try="$ac_compile"
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5143 (eval "$ac_compile") 2>conftest.er1
5145 grep -v '^ *+' conftest.er1 >conftest.err
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5149 (exit $ac_status); } && {
5150 test -z "$ac_c_werror_flag" ||
5151 test ! -s conftest.err
5152 } && test -s conftest.$ac_objext; then
5153 ac_cv_prog_cc_c89=$ac_arg
5155 echo "$as_me: failed program was
:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5161 rm -f core conftest.err conftest.$ac_objext
5162 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
5164 rm -f conftest.$ac_ext
5169 case "x
$ac_cv_prog_cc_c89" in
5171 { echo "$as_me:$LINENO: result
: none needed
" >&5
5172 echo "${ECHO_T}none needed
" >&6; } ;;
5174 { echo "$as_me:$LINENO: result
: unsupported
" >&5
5175 echo "${ECHO_T}unsupported
" >&6; } ;;
5177 CC="$CC $ac_cv_prog_cc_c89"
5178 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
5179 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5184 ac_cpp='$CPP $CPPFLAGS'
5185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5190 ac_cpp='$CXXCPP $CPPFLAGS'
5191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5194 if test -z "$CXX"; then
5195 if test -n "$CCC"; then
5198 if test -n "$ac_tool_prefix"; then
5199 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5203 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5204 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5205 if test "${ac_cv_prog_CXX+set}" = set; then
5206 echo $ECHO_N "(cached
) $ECHO_C" >&6
5208 if test -n "$CXX"; then
5209 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5219 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5229 if test -n "$CXX"; then
5230 { echo "$as_me:$LINENO: result
: $CXX" >&5
5231 echo "${ECHO_T}$CXX" >&6; }
5233 { echo "$as_me:$LINENO: result
: no
" >&5
5234 echo "${ECHO_T}no
" >&6; }
5238 test -n "$CXX" && break
5241 if test -z "$CXX"; then
5243 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5245 # Extract the first word of "$ac_prog", so it can be a program name with args.
5246 set dummy $ac_prog; ac_word=$2
5247 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5248 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5249 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5250 echo $ECHO_N "(cached
) $ECHO_C" >&6
5252 if test -n "$ac_ct_CXX"; then
5253 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_prog_ac_ct_CXX="$ac_prog"
5263 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5272 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5273 if test -n "$ac_ct_CXX"; then
5274 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
5275 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5277 { echo "$as_me:$LINENO: result
: no
" >&5
5278 echo "${ECHO_T}no
" >&6; }
5282 test -n "$ac_ct_CXX" && break
5285 if test "x
$ac_ct_CXX" = x; then
5288 case $cross_compiling:$ac_tool_warned in
5290 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5291 whose name does not start with the
host triplet. If you think this
5292 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5293 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5294 whose name does not start with the
host triplet. If you think this
5295 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5296 ac_tool_warned=yes ;;
5304 # Provide some information about the compiler.
5305 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
5306 ac_compiler=`set X $ac_compile; echo $2`
5307 { (ac_try="$ac_compiler --version >&5"
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_compiler --version >&5") 2>&5
5315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5316 (exit $ac_status); }
5317 { (ac_try="$ac_compiler -v >&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 -v >&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); }
5338 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
5339 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
5340 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5341 echo $ECHO_N "(cached
) $ECHO_C" >&6
5343 cat >conftest.$ac_ext <<_ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5361 rm -f conftest.$ac_objext
5362 if { (ac_try="$ac_compile"
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5368 (eval "$ac_compile") 2>conftest.er1
5370 grep -v '^ *+' conftest.er1 >conftest.err
5372 cat conftest.err >&5
5373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5374 (exit $ac_status); } && {
5375 test -z "$ac_cxx_werror_flag" ||
5376 test ! -s conftest.err
5377 } && test -s conftest.$ac_objext; then
5380 echo "$as_me: failed program was
:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5390 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
5391 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5392 GXX=`test $ac_compiler_gnu = yes && echo yes`
5393 ac_test_CXXFLAGS=${CXXFLAGS+set}
5394 ac_save_CXXFLAGS=$CXXFLAGS
5395 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
5396 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
5397 if test "${ac_cv_prog_cxx_g+set}" = set; then
5398 echo $ECHO_N "(cached
) $ECHO_C" >&6
5400 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5401 ac_cxx_werror_flag=yes
5404 cat >conftest.$ac_ext <<_ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5419 rm -f conftest.$ac_objext
5420 if { (ac_try="$ac_compile"
5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423 *) ac_try_echo=$ac_try;;
5425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5426 (eval "$ac_compile") 2>conftest.er1
5428 grep -v '^ *+' conftest.er1 >conftest.err
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5432 (exit $ac_status); } && {
5433 test -z "$ac_cxx_werror_flag" ||
5434 test ! -s conftest.err
5435 } && test -s conftest.$ac_objext; then
5436 ac_cv_prog_cxx_g=yes
5438 echo "$as_me: failed program was
:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5442 cat >conftest.$ac_ext <<_ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5457 rm -f conftest.$ac_objext
5458 if { (ac_try="$ac_compile"
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compile") 2>conftest.er1
5466 grep -v '^ *+' conftest.er1 >conftest.err
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5470 (exit $ac_status); } && {
5471 test -z "$ac_cxx_werror_flag" ||
5472 test ! -s conftest.err
5473 } && test -s conftest.$ac_objext; then
5476 echo "$as_me: failed program was
:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5481 cat >conftest.$ac_ext <<_ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5496 rm -f conftest.$ac_objext
5497 if { (ac_try="$ac_compile"
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compile") 2>conftest.er1
5505 grep -v '^ *+' conftest.er1 >conftest.err
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5509 (exit $ac_status); } && {
5510 test -z "$ac_cxx_werror_flag" ||
5511 test ! -s conftest.err
5512 } && test -s conftest.$ac_objext; then
5513 ac_cv_prog_cxx_g=yes
5515 echo "$as_me: failed program was
:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5530 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
5531 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5532 if test "$ac_test_CXXFLAGS" = set; then
5533 CXXFLAGS=$ac_save_CXXFLAGS
5534 elif test $ac_cv_prog_cxx_g = yes; then
5535 if test "$GXX" = yes; then
5541 if test "$GXX" = yes; then
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5554 ac_cpp='$CPP $CPPFLAGS'
5555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5558 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5559 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
5560 # On Suns, sometimes $CPP names a directory.
5561 if test -n "$CPP" && test -d "$CPP"; then
5564 if test -z "$CPP"; then
5565 if test "${ac_cv_prog_CPP+set}" = set; then
5566 echo $ECHO_N "(cached
) $ECHO_C" >&6
5568 # Double quotes because CPP needs to be expanded
5569 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5572 for ac_c_preproc_warn_flag in '' yes
5574 # Use a header file that comes with gcc, so configuring glibc
5575 # with a fresh cross-compiler works.
5576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5577 # <limits.h> exists even on freestanding compilers.
5578 # On the NeXT, cc -E runs the code through the compiler's parser,
5579 # not just through cpp. "Syntax error
" is here to catch this case.
5580 cat >conftest.$ac_ext <<_ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5587 # include <limits.h>
5589 # include <assert.h>
5593 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5601 grep -v '^ *+' conftest.er1 >conftest.err
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5605 (exit $ac_status); } >/dev/null && {
5606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5611 echo "$as_me: failed program was
:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5614 # Broken: fails on valid input.
5618 rm -f conftest.err conftest.$ac_ext
5620 # OK, works on sane cases. Now check whether nonexistent headers
5621 # can be detected and how.
5622 cat >conftest.$ac_ext <<_ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #include <ac_nonexistent.h>
5630 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5635 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5638 grep -v '^ *+' conftest.er1 >conftest.err
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5642 (exit $ac_status); } >/dev/null && {
5643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5646 # Broken: success on invalid input.
5649 echo "$as_me: failed program was
:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5652 # Passes both tests.
5657 rm -f conftest.err conftest.$ac_ext
5660 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5661 rm -f conftest.err conftest.$ac_ext
5662 if $ac_preproc_ok; then
5674 { echo "$as_me:$LINENO: result
: $CPP" >&5
5675 echo "${ECHO_T}$CPP" >&6; }
5677 for ac_c_preproc_warn_flag in '' yes
5679 # Use a header file that comes with gcc, so configuring glibc
5680 # with a fresh cross-compiler works.
5681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5682 # <limits.h> exists even on freestanding compilers.
5683 # On the NeXT, cc -E runs the code through the compiler's parser,
5684 # not just through cpp. "Syntax error
" is here to catch this case.
5685 cat >conftest.$ac_ext <<_ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5692 # include <limits.h>
5694 # include <assert.h>
5698 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5706 grep -v '^ *+' conftest.er1 >conftest.err
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5710 (exit $ac_status); } >/dev/null && {
5711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5716 echo "$as_me: failed program was
:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 # Broken: fails on valid input.
5723 rm -f conftest.err conftest.$ac_ext
5725 # OK, works on sane cases. Now check whether nonexistent headers
5726 # can be detected and how.
5727 cat >conftest.$ac_ext <<_ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <ac_nonexistent.h>
5735 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5743 grep -v '^ *+' conftest.er1 >conftest.err
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5747 (exit $ac_status); } >/dev/null && {
5748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5751 # Broken: success on invalid input.
5754 echo "$as_me: failed program was
:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5757 # Passes both tests.
5762 rm -f conftest.err conftest.$ac_ext
5765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5766 rm -f conftest.err conftest.$ac_ext
5767 if $ac_preproc_ok; then
5770 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5771 See \
`config.log' for more details." >&5
5772 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5773 See \`config.log
' for more details." >&2;}
5774 { (exit 1); exit 1; }; }
5778 ac_cpp='$CPP $CPPFLAGS'
5779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5780 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784 ac_cpp='$CXXCPP $CPPFLAGS'
5785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5786 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5788 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5789 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5790 if test -z "$CXXCPP"; then
5791 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 # Double quotes because CXXCPP needs to be expanded
5795 for CXXCPP in "$CXX -E" "/lib/cpp"
5798 for ac_cxx_preproc_warn_flag in '' yes
5800 # Use a header file that comes with gcc, so configuring glibc
5801 # with a fresh cross-compiler works.
5802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5803 # <limits.h> exists even on freestanding compilers.
5804 # On the NeXT, cc -E runs the code through the compiler's parser
,
5805 # not just through cpp. "Syntax error" is here to catch this case.
5806 cat >conftest.
$ac_ext <<_ACEOF
5809 cat confdefs.h
>>conftest.
$ac_ext
5810 cat >>conftest.
$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5813 # include <limits.h>
5815 # include <assert.h>
5819 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5827 grep -v '^ *+' conftest.er1 >conftest.err
5829 cat conftest.err >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } >/dev/null && {
5832 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5833 test ! -s conftest.err
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5840 # Broken: fails on valid input.
5844 rm -f conftest.err conftest.$ac_ext
5846 # OK, works on sane cases. Now check whether nonexistent headers
5847 # can be detected and how.
5848 cat >conftest.$ac_ext <<_ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 #include <ac_nonexistent.h>
5856 if { (ac_try="$ac_cpp conftest.$ac_ext"
5858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5859 *) ac_try_echo
=$ac_try;;
5861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5864 grep -v '^ *+' conftest.er1
>conftest.err
5866 cat conftest.err
>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } >/dev
/null
&& {
5869 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5870 test ! -s conftest.err
5872 # Broken: success on invalid input.
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.
$ac_ext >&5
5878 # Passes both tests.
5883 rm -f conftest.err conftest.
$ac_ext
5886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5887 rm -f conftest.err conftest.
$ac_ext
5888 if $ac_preproc_ok; then
5893 ac_cv_prog_CXXCPP
=$CXXCPP
5896 CXXCPP
=$ac_cv_prog_CXXCPP
5898 ac_cv_prog_CXXCPP
=$CXXCPP
5900 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5901 echo "${ECHO_T}$CXXCPP" >&6; }
5903 for ac_cxx_preproc_warn_flag
in '' yes
5905 # Use a header file that comes with gcc, so configuring glibc
5906 # with a fresh cross-compiler works.
5907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5908 # <limits.h> exists even on freestanding compilers.
5909 # On the NeXT, cc -E runs the code through the compiler's parser,
5910 # not just through cpp. "Syntax error" is here to catch this case.
5911 cat >conftest.
$ac_ext <<_ACEOF
5914 cat confdefs.h
>>conftest.
$ac_ext
5915 cat >>conftest.
$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5918 # include <limits.h>
5920 # include <assert.h>
5924 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5932 grep -v '^ *+' conftest.er1 >conftest.err
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } >/dev/null && {
5937 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5938 test ! -s conftest.err
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 # Broken: fails on valid input.
5949 rm -f conftest.err conftest.$ac_ext
5951 # OK, works on sane cases. Now check whether nonexistent headers
5952 # can be detected and how.
5953 cat >conftest.$ac_ext <<_ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 #include <ac_nonexistent.h>
5961 if { (ac_try="$ac_cpp conftest.$ac_ext"
5963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5964 *) ac_try_echo
=$ac_try;;
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5969 grep -v '^ *+' conftest.er1
>conftest.err
5971 cat conftest.err
>&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } >/dev
/null
&& {
5974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5975 test ! -s conftest.err
5977 # Broken: success on invalid input.
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.
$ac_ext >&5
5983 # Passes both tests.
5988 rm -f conftest.err conftest.
$ac_ext
5991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5992 rm -f conftest.err conftest.
$ac_ext
5993 if $ac_preproc_ok; then
5996 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5997 See \`config.log' for more details." >&5
5998 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5999 See \`config.log' for more details." >&2;}
6000 { (exit 1); exit 1; }; }
6004 ac_cpp
='$CPP $CPPFLAGS'
6005 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6009 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6010 # the developers regenerating the configure script don't have to install libtool.
6011 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6012 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6013 if test "${ac_cv_path_SED+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6017 for ac_i
in 1 2 3 4 5 6 7; do
6018 ac_script
="$ac_script$as_nl$ac_script"
6020 echo "$ac_script" |
sed 99q
>conftest.
sed
6021 $as_unset ac_script || ac_script
=
6022 # Extract the first word of "sed gsed" to use in msg output
6023 if test -z "$SED"; then
6024 set dummy
sed gsed
; ac_prog_name
=$2
6025 if test "${ac_cv_path_SED+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 ac_path_SED_found
=false
6029 # Loop through the user's path and test for each of PROGNAME-LIST
6030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6034 test -z "$as_dir" && as_dir
=.
6035 for ac_prog
in sed gsed
; do
6036 for ac_exec_ext
in '' $ac_executable_extensions; do
6037 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6038 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6039 # Check for GNU ac_path_SED and select it if it is found.
6040 # Check for GNU $ac_path_SED
6041 case `"$ac_path_SED" --version 2>&1` in
6043 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6046 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6049 cat "conftest.in" "conftest.in" >"conftest.tmp"
6050 mv "conftest.tmp" "conftest.in"
6051 cp "conftest.in" "conftest.nl"
6052 echo '' >> "conftest.nl"
6053 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6054 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6055 ac_count
=`expr $ac_count + 1`
6056 if test $ac_count -gt ${ac_path_SED_max-0}; then
6057 # Best one so far, save it but keep looking for a better one
6058 ac_cv_path_SED
="$ac_path_SED"
6059 ac_path_SED_max
=$ac_count
6061 # 10*(2^10) chars as input seems more than enough
6062 test $ac_count -gt 10 && break
6064 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6068 $ac_path_SED_found && break 3
6078 SED
="$ac_cv_path_SED"
6079 if test -z "$SED"; then
6080 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6081 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6082 { (exit 1); exit 1; }; }
6090 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6091 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6092 SED
="$ac_cv_path_SED"
6095 { echo "$as_me:$LINENO: checking for egrep" >&5
6096 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6097 if test "${ac_cv_prog_egrep+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6101 then ac_cv_prog_egrep
='grep -E'
6102 else ac_cv_prog_egrep
='egrep'
6105 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6106 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6107 EGREP
=$ac_cv_prog_egrep
6111 # Check whether --with-gnu-ld was given.
6112 if test "${with_gnu_ld+set}" = set; then
6113 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6119 if test "$GCC" = yes; then
6120 # Check if gcc -print-prog-name=ld gives a path.
6121 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6122 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6125 # gcc leaves a trailing carriage return which upsets mingw
6126 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6128 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6131 # Accept absolute paths.
6133 re_direlt
='/[^/][^/]*/\.\./'
6134 # Canonicalize the pathname of ld
6135 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
6136 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6137 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6139 test -z "$LD" && LD
="$ac_prog"
6142 # If it fails, then pretend we aren't using GCC.
6146 # If it is relative, then search for the first ld in PATH.
6150 elif test "$with_gnu_ld" = yes; then
6151 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6152 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6154 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6155 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6157 if test "${lt_cv_path_LD+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 if test -z "$LD"; then
6161 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6162 for ac_dir
in $PATH; do
6164 test -z "$ac_dir" && ac_dir
=.
6165 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6166 lt_cv_path_LD
="$ac_dir/$ac_prog"
6167 # Check to see if the program is GNU ld. I'd rather use --version,
6168 # but apparently some variants of GNU ld only accept -v.
6169 # Break only if it was the GNU/non-GNU ld that we prefer.
6170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6171 *GNU
* |
*'with BFD'*)
6172 test "$with_gnu_ld" != no
&& break
6175 test "$with_gnu_ld" != yes && break
6182 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6187 if test -n "$LD"; then
6188 { echo "$as_me:$LINENO: result: $LD" >&5
6189 echo "${ECHO_T}$LD" >&6; }
6191 { echo "$as_me:$LINENO: result: no" >&5
6192 echo "${ECHO_T}no" >&6; }
6194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6196 { (exit 1); exit 1; }; }
6197 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6203 case `$LD -v 2>&1 </dev/null` in
6204 *GNU
* |
*'with BFD'*)
6205 lt_cv_prog_gnu_ld
=yes
6208 lt_cv_prog_gnu_ld
=no
6212 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6213 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6214 with_gnu_ld
=$lt_cv_prog_gnu_ld
6216 # note - does not work on freebsd
6217 for ac_prog
in gawk mawk nawk
awk
6219 # Extract the first word of "$ac_prog", so it can be a program name with args.
6220 set dummy
$ac_prog; ac_word
=$2
6221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223 if test "${ac_cv_prog_AWK+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 if test -n "$AWK"; then
6227 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6233 test -z "$as_dir" && as_dir
=.
6234 for ac_exec_ext
in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_prog_AWK
="$ac_prog"
6237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 if test -n "$AWK"; then
6248 { echo "$as_me:$LINENO: result: $AWK" >&5
6249 echo "${ECHO_T}$AWK" >&6; }
6251 { echo "$as_me:$LINENO: result: no" >&5
6252 echo "${ECHO_T}no" >&6; }
6256 test -n "$AWK" && break
6259 # Find a good install program. We prefer a C program (faster),
6260 # so one script is as good as another. But avoid the broken or
6261 # incompatible versions:
6262 # SysV /etc/install, /usr/sbin/install
6263 # SunOS /usr/etc/install
6264 # IRIX /sbin/install
6266 # AmigaOS /C/install, which installs bootblocks on floppy discs
6267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6270 # OS/2's system install, which has a completely different semantic
6271 # ./install, which can be erroneously created by make from ./install.sh.
6272 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6273 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6274 if test -z "$INSTALL"; then
6275 if test "${ac_cv_path_install+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6282 test -z "$as_dir" && as_dir
=.
6283 # Account for people who put trailing slashes in PATH elements.
6285 .
/ | .
// |
/cC
/* | \
6286 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6287 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6290 # OSF1 and SCO ODT 3.0 have their own names for install.
6291 # Don't use installbsd from OSF since it installs stuff as root
6293 for ac_prog
in ginstall scoinst
install; do
6294 for ac_exec_ext
in '' $ac_executable_extensions; do
6295 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6296 if test $ac_prog = install &&
6297 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6298 # AIX install. It has an incompatible calling convention.
6300 elif test $ac_prog = install &&
6301 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6302 # program-specific install script used by HP pwplus--don't use.
6305 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6318 if test "${ac_cv_path_install+set}" = set; then
6319 INSTALL
=$ac_cv_path_install
6321 # As a last resort, use the slow shell script. Don't cache a
6322 # value for INSTALL within a source directory, because that will
6323 # break other packages using the cache if that directory is
6324 # removed, or if the value is a relative name.
6325 INSTALL
=$ac_install_sh
6328 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6329 echo "${ECHO_T}$INSTALL" >&6; }
6331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6332 # It thinks the first close brace ends the variable substitution.
6333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6337 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6339 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6340 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6342 if test "$LN_S" = "ln -s"; then
6343 { echo "$as_me:$LINENO: result: yes" >&5
6344 echo "${ECHO_T}yes" >&6; }
6346 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6347 echo "${ECHO_T}no, using $LN_S" >&6; }
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6352 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355 if test "${ac_cv_prog_RANLIB+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 if test -n "$RANLIB"; then
6359 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6365 test -z "$as_dir" && as_dir
=.
6366 for ac_exec_ext
in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 RANLIB
=$ac_cv_prog_RANLIB
6379 if test -n "$RANLIB"; then
6380 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6381 echo "${ECHO_T}$RANLIB" >&6; }
6383 { echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6; }
6389 if test -z "$ac_cv_prog_RANLIB"; then
6390 ac_ct_RANLIB
=$RANLIB
6391 # Extract the first word of "ranlib", so it can be a program name with args.
6392 set dummy ranlib
; ac_word
=$2
6393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 if test -n "$ac_ct_RANLIB"; then
6399 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir
=.
6406 for ac_exec_ext
in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6419 if test -n "$ac_ct_RANLIB"; then
6420 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6421 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6423 { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6427 if test "x$ac_ct_RANLIB" = x
; then
6430 case $cross_compiling:$ac_tool_warned in
6432 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6433 whose name does not start with the host triplet. If you think this
6434 configuration is useful to you, please write to autoconf@gnu.org." >&5
6435 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6436 whose name does not start with the host triplet. If you think this
6437 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6438 ac_tool_warned
=yes ;;
6440 RANLIB
=$ac_ct_RANLIB
6443 RANLIB
="$ac_cv_prog_RANLIB"
6446 { echo "$as_me:$LINENO: checking for GNU make" >&5
6447 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6448 if test "${GNU_MAKE+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 GNU_MAKE
='Not Found' ;
6452 GNU_MAKE_VERSION_MAJOR
=0 ;
6453 GNU_MAKE_VERSION_MINOR
=0 ;
6454 for a
in make gmake gnumake
; do
6455 if test -z "$a" ; then continue ; fi ;
6456 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
6458 GNU_MAKE_VERSION_MAJOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6459 GNU_MAKE_VERSION_MINOR
=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6465 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6466 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6467 if test "x$GNU_MAKE" = "xNot Found" ; then
6468 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6469 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6470 { (exit 1); exit 1; }; }
6476 if test -n "$ac_tool_prefix"; then
6477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6478 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_path_STRIP+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
6489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir
=.
6494 for ac_exec_ext
in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_path_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 STRIP
=$ac_cv_path_STRIP
6508 if test -n "$STRIP"; then
6509 { echo "$as_me:$LINENO: result: $STRIP" >&5
6510 echo "${ECHO_T}$STRIP" >&6; }
6512 { echo "$as_me:$LINENO: result: no" >&5
6513 echo "${ECHO_T}no" >&6; }
6518 if test -z "$ac_cv_path_STRIP"; then
6520 # Extract the first word of "strip", so it can be a program name with args.
6521 set dummy strip
; ac_word
=$2
6522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6524 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 case $ac_pt_STRIP in
6529 ac_cv_path_ac_pt_STRIP
="$ac_pt_STRIP" # Let the user override the test with a path.
6532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6536 test -z "$as_dir" && as_dir
=.
6537 for ac_exec_ext
in '' $ac_executable_extensions; do
6538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539 ac_cv_path_ac_pt_STRIP
="$as_dir/$ac_word$ac_exec_ext"
6540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 ac_pt_STRIP
=$ac_cv_path_ac_pt_STRIP
6551 if test -n "$ac_pt_STRIP"; then
6552 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6553 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6555 { echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6; }
6559 if test "x$ac_pt_STRIP" = x
; then
6562 case $cross_compiling:$ac_tool_warned in
6564 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6565 whose name does not start with the host triplet. If you think this
6566 configuration is useful to you, please write to autoconf@gnu.org." >&5
6567 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6568 whose name does not start with the host triplet. If you think this
6569 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6570 ac_tool_warned
=yes ;;
6575 STRIP
="$ac_cv_path_STRIP"
6578 if test -n "$ac_tool_prefix"; then
6579 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6580 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583 if test "${ac_cv_path_AR+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
6591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir
=.
6596 for ac_exec_ext
in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 if test -n "$AR"; then
6611 { echo "$as_me:$LINENO: result: $AR" >&5
6612 echo "${ECHO_T}$AR" >&6; }
6614 { echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6; }
6620 if test -z "$ac_cv_path_AR"; then
6622 # Extract the first word of "ar", so it can be a program name with args.
6623 set dummy
ar; ac_word
=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 ac_cv_path_ac_pt_AR
="$ac_pt_AR" # Let the user override the test with a path.
6634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir
=.
6639 for ac_exec_ext
in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_path_ac_pt_AR
="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 ac_pt_AR
=$ac_cv_path_ac_pt_AR
6653 if test -n "$ac_pt_AR"; then
6654 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6655 echo "${ECHO_T}$ac_pt_AR" >&6; }
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6661 if test "x$ac_pt_AR" = x
; then
6664 case $cross_compiling:$ac_tool_warned in
6666 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6667 whose name does not start with the host triplet. If you think this
6668 configuration is useful to you, please write to autoconf@gnu.org." >&5
6669 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6670 whose name does not start with the host triplet. If you think this
6671 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6672 ac_tool_warned
=yes ;;
6682 if test "x$with_gnu_ld" = "xyes" ; then
6687 # Extract the first word of "awk", so it can be a program name with args.
6688 set dummy
awk; ac_word
=$2
6689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691 if test "${ac_cv_path_AWK+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 ac_cv_path_AWK
="$AWK" # Let the user override the test with a path.
6699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir
=.
6704 for ac_exec_ext
in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_path_AWK
="$as_dir/$ac_word$ac_exec_ext"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK
=":"
6719 if test -n "$AWK"; then
6720 { echo "$as_me:$LINENO: result: $AWK" >&5
6721 echo "${ECHO_T}$AWK" >&6; }
6723 { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6728 # Extract the first word of "grep", so it can be a program name with args.
6729 set dummy
grep; ac_word
=$2
6730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6732 if test "${ac_cv_path_GREP+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6744 test -z "$as_dir" && as_dir
=.
6745 for ac_exec_ext
in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
6759 GREP
=$ac_cv_path_GREP
6760 if test -n "$GREP"; then
6761 { echo "$as_me:$LINENO: result: $GREP" >&5
6762 echo "${ECHO_T}$GREP" >&6; }
6764 { echo "$as_me:$LINENO: result: no" >&5
6765 echo "${ECHO_T}no" >&6; }
6769 # Extract the first word of "find", so it can be a program name with args.
6770 set dummy
find; ac_word
=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_path_FIND+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6785 test -z "$as_dir" && as_dir
=.
6786 for ac_exec_ext
in '' $ac_executable_extensions; do
6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
6800 FIND
=$ac_cv_path_FIND
6801 if test -n "$FIND"; then
6802 { echo "$as_me:$LINENO: result: $FIND" >&5
6803 echo "${ECHO_T}$FIND" >&6; }
6805 { echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6; }
6810 # Extract the first word of "compress", so it can be a program name with args.
6811 set dummy
compress; ac_word
=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_path_COMPRESS+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
6822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6826 test -z "$as_dir" && as_dir
=.
6827 for ac_exec_ext
in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
6841 COMPRESS
=$ac_cv_path_COMPRESS
6842 if test -n "$COMPRESS"; then
6843 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6844 echo "${ECHO_T}$COMPRESS" >&6; }
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6851 # Extract the first word of "basename", so it can be a program name with args.
6852 set dummy
basename; ac_word
=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_path_BASENAME+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
6863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6867 test -z "$as_dir" && as_dir
=.
6868 for ac_exec_ext
in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
6882 BASENAME
=$ac_cv_path_BASENAME
6883 if test -n "$BASENAME"; then
6884 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6885 echo "${ECHO_T}$BASENAME" >&6; }
6887 { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6892 # Extract the first word of "id", so it can be a program name with args.
6893 set dummy id
; ac_word
=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_path_ID+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 ac_cv_path_ID
="$ID" # Let the user override the test with a path.
6904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir
=.
6909 for ac_exec_ext
in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_path_ID
="$as_dir/$ac_word$ac_exec_ext"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 test -z "$ac_cv_path_ID" && ac_cv_path_ID
=":"
6924 if test -n "$ID"; then
6925 { echo "$as_me:$LINENO: result: $ID" >&5
6926 echo "${ECHO_T}$ID" >&6; }
6928 { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6933 # Extract the first word of "dirname", so it can be a program name with args.
6934 set dummy
dirname; ac_word
=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_path_DIRNAME+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
6945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6949 test -z "$as_dir" && as_dir
=.
6950 for ac_exec_ext
in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
6964 DIRNAME
=$ac_cv_path_DIRNAME
6965 if test -n "$DIRNAME"; then
6966 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6967 echo "${ECHO_T}$DIRNAME" >&6; }
6969 { echo "$as_me:$LINENO: result: no" >&5
6970 echo "${ECHO_T}no" >&6; }
6974 # Extract the first word of "sh", so it can be a program name with args.
6975 set dummy sh
; ac_word
=$2
6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978 if test "${ac_cv_path_SHELL+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
6986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6990 test -z "$as_dir" && as_dir
=.
6991 for ac_exec_ext
in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
6994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
7005 SHELL
=$ac_cv_path_SHELL
7006 if test -n "$SHELL"; then
7007 { echo "$as_me:$LINENO: result: $SHELL" >&5
7008 echo "${ECHO_T}$SHELL" >&6; }
7010 { echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6; }
7015 # Extract the first word of "ln", so it can be a program name with args.
7016 set dummy
ln; ac_word
=$2
7017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019 if test "${ac_cv_path_LN+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
7027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir
=.
7032 for ac_exec_ext
in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
7035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
7047 if test -n "$LN"; then
7048 { echo "$as_me:$LINENO: result: $LN" >&5
7049 echo "${ECHO_T}$LN" >&6; }
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7056 # Extract the first word of "dot", so it can be a program name with args.
7057 set dummy dot
; ac_word
=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_path_DOT+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7072 test -z "$as_dir" && as_dir
=.
7073 for ac_exec_ext
in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
7088 if test -n "$DOT"; then
7089 { echo "$as_me:$LINENO: result: $DOT" >&5
7090 echo "${ECHO_T}$DOT" >&6; }
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7097 # Extract the first word of "wget", so it can be a program name with args.
7098 set dummy wget
; ac_word
=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_WGET+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 ac_cv_path_WGET
="$WGET" # Let the user override the test with a path.
7109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7113 test -z "$as_dir" && as_dir
=.
7114 for ac_exec_ext
in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_path_WGET
="$as_dir/$ac_word$ac_exec_ext"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET
=":"
7128 WGET
=$ac_cv_path_WGET
7129 if test -n "$WGET"; then
7130 { echo "$as_me:$LINENO: result: $WGET" >&5
7131 echo "${ECHO_T}$WGET" >&6; }
7133 { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7138 if test "${WGET}" != ":" ; then
7141 # Extract the first word of "fetch", so it can be a program name with args.
7142 set dummy fetch
; ac_word
=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_path_FETCH+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 ac_cv_path_FETCH
="$FETCH" # Let the user override the test with a path.
7153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir
=.
7158 for ac_exec_ext
in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7160 ac_cv_path_FETCH
="$as_dir/$ac_word$ac_exec_ext"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH
=":"
7172 FETCH
=$ac_cv_path_FETCH
7173 if test -n "$FETCH"; then
7174 { echo "$as_me:$LINENO: result: $FETCH" >&5
7175 echo "${ECHO_T}$FETCH" >&6; }
7177 { echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6; }
7190 ac_cpp
='$CPP $CPPFLAGS'
7191 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7192 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7193 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7197 # We used to check for pthread.h first, but this fails if pthread.h
7198 # requires special compiler flags (e.g. on True64 or Sequent).
7199 # It gets checked for in the link test anyway.
7201 # First of all, check if the user has set any of the PTHREAD_LIBS,
7202 # etcetera environment variables, and if threads linking works using
7204 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
7205 save_CFLAGS
="$CFLAGS"
7206 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7208 LIBS
="$PTHREAD_LIBS $LIBS"
7209 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7210 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7211 cat >conftest.
$ac_ext <<_ACEOF
7214 cat confdefs.h
>>conftest.
$ac_ext
7215 cat >>conftest.
$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7218 /* Override any GCC internal prototype to avoid an error.
7219 Use char because int might match the return type of a GCC
7220 builtin and then its argument prototype would still apply. */
7224 char pthread_join ();
7228 return pthread_join ();
7233 rm -f conftest.
$ac_objext conftest
$ac_exeext
7234 if { (ac_try
="$ac_link"
7236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7237 *) ac_try_echo=$ac_try;;
7239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7240 (eval "$ac_link") 2>conftest.er1
7242 grep -v '^ *+' conftest.er1 >conftest.err
7244 cat conftest.err >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } && {
7247 test -z "$ac_c_werror_flag" ||
7248 test ! -s conftest.err
7249 } && test -s conftest$ac_exeext &&
7250 $as_test_x conftest$ac_exeext; then
7253 echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7260 conftest$ac_exeext conftest.$ac_ext
7261 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7262 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7263 if test x"$acx_pthread_ok" = xno; then
7268 CFLAGS="$save_CFLAGS"
7271 # We must check for the threads library under a number of different
7272 # names; the ordering is very important because some systems
7273 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7274 # libraries is broken (non-POSIX).
7276 # Create a list of thread flags to try. Items starting with a "-" are
7277 # C compiler flags, and other items are library names, except for "none"
7278 # which indicates that we try without any flags at all, and "pthread-config"
7279 # which is a program returning the flags for the Pth emulation library.
7281 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7283 # The ordering *is* (sometimes) important. Some notes on the
7284 # individual items follow:
7286 # pthreads: AIX (must check this before -lpthread)
7287 # none: in case threads are in libc; should be tried before -Kthread and
7288 # other compiler flags to prevent continual compiler warnings
7289 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7290 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7291 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7292 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7293 # -pthreads: Solaris/gcc
7294 # -mthreads: Mingw32/gcc, Lynx/gcc
7295 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7296 # doesn't hurt to check since this sometimes defines pthreads too;
7297 # also defines -D_REENTRANT)
7298 # ... -mt is also the pthreads flag for HP/aCC
7299 # pthread: Linux, etcetera
7300 # --thread-safe: KAI C++
7301 # pthread-config: use pthread-config program (for GNU Pth library)
7303 case "${host_cpu}-${host_os}" in
7306 # On Solaris (at least, for some versions), libc contains stubbed
7307 # (non-functional) versions of the pthreads routines, so link-based
7308 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7309 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7310 # a function called by this macro, so we could check for that, but
7311 # who knows whether they'll stub that too in a future libc.) So,
7312 # we'll just look for -pthreads and -lpthread first:
7314 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7318 if test x"$acx_pthread_ok" = xno; then
7319 for flag in $acx_pthread_flags; do
7323 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7324 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7328 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7329 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7330 PTHREAD_CFLAGS="$flag"
7334 # Extract the first word of "pthread-config", so it can be a program name with args.
7335 set dummy pthread-config; ac_word=$2
7336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 if test -n "$acx_pthread_config"; then
7342 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_acx_pthread_config="yes"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7362 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7363 if test -n "$acx_pthread_config"; then
7364 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7365 echo "${ECHO_T}$acx_pthread_config" >&6; }
7367 { echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6; }
7372 if test x"$acx_pthread_config" = xno; then continue; fi
7373 PTHREAD_CFLAGS="`pthread-config
--cflags`"
7374 PTHREAD_LIBS="`pthread-config
--ldflags` `pthread-config
--libs`"
7378 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7379 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7380 PTHREAD_LIBS="-l$flag"
7385 save_CFLAGS="$CFLAGS"
7386 LIBS="$PTHREAD_LIBS $LIBS"
7387 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7389 # Check for various functions. We must include pthread.h,
7390 # since some functions may be macros. (On the Sequent, we
7391 # need a special flag -Kthread to make this header compile.)
7392 # We check for pthread_join because it is in -lpthread on IRIX
7393 # while pthread_create is in libc. We check for pthread_attr_init
7394 # due to DEC craziness with -lpthreads. We check for
7395 # pthread_cleanup_push because it is one of the few pthread
7396 # functions on Solaris that doesn't have a non-functional libc stub.
7397 # We try pthread_create on general principles.
7398 cat >conftest.$ac_ext <<_ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 #include <pthread.h>
7408 pthread_t th; pthread_join(th, 0);
7409 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7410 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7415 rm -f conftest.$ac_objext conftest$ac_exeext
7416 if { (ac_try="$ac_link"
7418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7419 *) ac_try_echo
=$ac_try;;
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422 (eval "$ac_link") 2>conftest.er1
7424 grep -v '^ *+' conftest.er1
>conftest.err
7426 cat conftest.err
>&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } && {
7429 test -z "$ac_c_werror_flag" ||
7430 test ! -s conftest.err
7431 } && test -s conftest
$ac_exeext &&
7432 $as_test_x conftest
$ac_exeext; then
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.
$ac_ext >&5
7441 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7442 conftest
$ac_exeext conftest.
$ac_ext
7445 CFLAGS
="$save_CFLAGS"
7447 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7448 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7449 if test "x$acx_pthread_ok" = xyes
; then
7458 # Various other checks:
7459 if test "x$acx_pthread_ok" = xyes
; then
7461 LIBS
="$PTHREAD_LIBS $LIBS"
7462 save_CFLAGS
="$CFLAGS"
7463 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7465 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7466 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7467 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7469 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7470 cat >conftest.
$ac_ext <<_ACEOF
7473 cat confdefs.h
>>conftest.
$ac_ext
7474 cat >>conftest.
$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 #include <pthread.h>
7480 int attr=$attr; return attr;
7485 rm -f conftest.
$ac_objext conftest
$ac_exeext
7486 if { (ac_try
="$ac_link"
7488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7489 *) ac_try_echo=$ac_try;;
7491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7492 (eval "$ac_link") 2>conftest.er1
7494 grep -v '^ *+' conftest.er1 >conftest.err
7496 cat conftest.err >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } && {
7499 test -z "$ac_c_werror_flag" ||
7500 test ! -s conftest.err
7501 } && test -s conftest$ac_exeext &&
7502 $as_test_x conftest$ac_exeext; then
7503 attr_name=$attr; break
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7512 conftest$ac_exeext conftest.$ac_ext
7514 { echo "$as_me:$LINENO: result: $attr_name" >&5
7515 echo "${ECHO_T}$attr_name" >&6; }
7516 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7518 cat >>confdefs.h <<_ACEOF
7519 #define PTHREAD_CREATE_JOINABLE $attr_name
7524 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7525 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7527 case "${host_cpu}-${host_os}" in
7528 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7529 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7531 { echo "$as_me:$LINENO: result: ${flag}" >&5
7532 echo "${ECHO_T}${flag}" >&6; }
7533 if test "x$flag" != xno; then
7534 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7538 CFLAGS="$save_CFLAGS"
7540 # More AIX lossage: must compile with xlc_r or cc_r
7541 if test x"$GCC" != xyes; then
7542 for ac_prog in xlc_r cc_r
7544 # Extract the first word of "$ac_prog", so it can be a program name with args.
7545 set dummy $ac_prog; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 if test -n "$PTHREAD_CC"; then
7552 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7561 ac_cv_prog_PTHREAD_CC="$ac_prog"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7572 if test -n "$PTHREAD_CC"; then
7573 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7574 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7576 { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7581 test -n "$PTHREAD_CC" && break
7583 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7596 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7597 if test x"$acx_pthread_ok" = xyes; then
7599 cat >>confdefs.h <<\_ACEOF
7600 #define HAVE_PTHREAD 1
7609 ac_cpp='$CPP $CPPFLAGS'
7610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7617 ac_cpp='$CPP $CPPFLAGS'
7618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623 # Check whether --enable-dev-mode was given.
7624 if test "${enable_dev_mode+set}" = set; then
7625 enableval=$enable_dev_mode; case "${enableval}" in
7626 y|ye|yes) AST_DEVMODE=yes ;;
7627 n|no) AST_DEVMODE=no ;;
7628 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7629 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7630 { (exit 1); exit 1; }; } ;;
7636 # package option names should be in alphabetical order
7637 # by the --with option name, to make things easier for the users :-)
7640 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7641 ALSA_OPTION="asound"
7643 # Check whether --with-asound was given.
7644 if test "${with_asound+set}" = set; then
7645 withval=$with_asound;
7651 ALSA_MANDATORY="yes"
7654 ALSA_DIR="${withval}"
7655 ALSA_MANDATORY="yes"
7671 # Check whether --with-curl was given.
7672 if test "${with_curl+set}" = set; then
7679 CURL_MANDATORY="yes"
7682 CURL_DIR="${withval}"
7683 CURL_MANDATORY="yes"
7696 CURSES_DESCRIP="curses"
7697 CURSES_OPTION="curses"
7699 # Check whether --with-curses was given.
7700 if test "${with_curses+set}" = set; then
7701 withval=$with_curses;
7707 CURSES_MANDATORY="yes"
7710 CURSES_DIR="${withval}"
7711 CURSES_MANDATORY="yes"
7724 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7725 GNUTLS_OPTION="gnutls"
7727 # Check whether --with-gnutls was given.
7728 if test "${with_gnutls+set}" = set; then
7729 withval=$with_gnutls;
7735 GNUTLS_MANDATORY="yes"
7738 GNUTLS_DIR="${withval}"
7739 GNUTLS_MANDATORY="yes"
7755 # Check whether --with-gsm was given.
7756 if test "${with_gsm+set}" = set; then
7766 GSM_DIR="${withval}"
7780 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7781 IKSEMEL_OPTION="iksemel"
7783 # Check whether --with-iksemel was given.
7784 if test "${with_iksemel+set}" = set; then
7785 withval=$with_iksemel;
7791 IKSEMEL_MANDATORY="yes"
7794 IKSEMEL_DIR="${withval}"
7795 IKSEMEL_MANDATORY="yes"
7808 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7809 IMAP_TK_OPTION="imap"
7811 # Check whether --with-imap was given.
7812 if test "${with_imap+set}" = set; then
7819 IMAP_TK_MANDATORY="yes"
7822 IMAP_TK_DIR="${withval}"
7823 IMAP_TK_MANDATORY="yes"
7836 ISDNNET_DESCRIP="ISDN4Linux Library"
7837 ISDNNET_OPTION="isdnnet"
7839 # Check whether --with-isdnnet was given.
7840 if test "${with_isdnnet+set}" = set; then
7841 withval=$with_isdnnet;
7847 ISDNNET_MANDATORY="yes"
7850 ISDNNET_DIR="${withval}"
7851 ISDNNET_MANDATORY="yes"
7867 # Check whether --with-kde was given.
7868 if test "${with_kde+set}" = set; then
7878 KDE_DIR="${withval}"
7892 LTDL_DESCRIP="libtool"
7895 # Check whether --with-ltdl was given.
7896 if test "${with_ltdl+set}" = set; then
7903 LTDL_MANDATORY="yes"
7906 LTDL_DIR="${withval}"
7907 LTDL_MANDATORY="yes"
7920 MISDN_DESCRIP="mISDN User Library"
7921 MISDN_OPTION="misdn"
7923 # Check whether --with-misdn was given.
7924 if test "${with_misdn+set}" = set; then
7925 withval=$with_misdn;
7931 MISDN_MANDATORY="yes"
7934 MISDN_DIR="${withval}"
7935 MISDN_MANDATORY="yes"
7948 NBS_DESCRIP="Network Broadcast Sound"
7951 # Check whether --with-nbs was given.
7952 if test "${with_nbs+set}" = set; then
7962 NBS_DIR="${withval}"
7976 NCURSES_DESCRIP="ncurses"
7977 NCURSES_OPTION="ncurses"
7979 # Check whether --with-ncurses was given.
7980 if test "${with_ncurses+set}" = set; then
7981 withval=$with_ncurses;
7987 NCURSES_MANDATORY="yes"
7990 NCURSES_DIR="${withval}"
7991 NCURSES_MANDATORY="yes"
8004 NETSNMP_DESCRIP="Net-SNMP"
8005 NETSNMP_OPTION="netsnmp"
8007 # Check whether --with-netsnmp was given.
8008 if test "${with_netsnmp+set}" = set; then
8009 withval=$with_netsnmp;
8015 NETSNMP_MANDATORY="yes"
8018 NETSNMP_DIR="${withval}"
8019 NETSNMP_MANDATORY="yes"
8035 # Check whether --with-newt was given.
8036 if test "${with_newt+set}" = set; then
8043 NEWT_MANDATORY="yes"
8046 NEWT_DIR="${withval}"
8047 NEWT_MANDATORY="yes"
8060 UNIXODBC_DESCRIP="unixODBC"
8061 UNIXODBC_OPTION="odbc"
8063 # Check whether --with-odbc was given.
8064 if test "${with_odbc+set}" = set; then
8071 UNIXODBC_MANDATORY="yes"
8074 UNIXODBC_DIR="${withval}"
8075 UNIXODBC_MANDATORY="yes"
8091 # Check whether --with-ogg was given.
8092 if test "${with_ogg+set}" = set; then
8102 OGG_DIR="${withval}"
8116 OSPTK_DESCRIP="OSP Toolkit"
8117 OSPTK_OPTION="osptk"
8119 # Check whether --with-osptk was given.
8120 if test "${with_osptk+set}" = set; then
8121 withval=$with_osptk;
8127 OSPTK_MANDATORY="yes"
8130 OSPTK_DIR="${withval}"
8131 OSPTK_MANDATORY="yes"
8144 OSS_DESCRIP="Open Sound System"
8147 # Check whether --with-oss was given.
8148 if test "${with_oss+set}" = set; then
8158 OSS_DIR="${withval}"
8175 # Check whether --with-popt was given.
8176 if test "${with_popt+set}" = set; then
8183 POPT_MANDATORY="yes"
8186 POPT_DIR="${withval}"
8187 POPT_MANDATORY="yes"
8200 PGSQL_DESCRIP="PostgreSQL"
8201 PGSQL_OPTION="postgres"
8203 # Check whether --with-postgres was given.
8204 if test "${with_postgres+set}" = set; then
8205 withval=$with_postgres;
8211 PGSQL_MANDATORY="yes"
8214 PGSQL_DIR="${withval}"
8215 PGSQL_MANDATORY="yes"
8228 PRI_DESCRIP="ISDN PRI"
8231 # Check whether --with-pri was given.
8232 if test "${with_pri+set}" = set; then
8242 PRI_DIR="${withval}"
8256 PWLIB_DESCRIP="PWlib"
8257 PWLIB_OPTION="pwlib"
8259 # Check whether --with-pwlib was given.
8260 if test "${with_pwlib+set}" = set; then
8261 withval=$with_pwlib;
8267 PWLIB_MANDATORY="yes"
8270 PWLIB_DIR="${withval}"
8271 PWLIB_MANDATORY="yes"
8284 OPENH323_DESCRIP="OpenH323"
8285 OPENH323_OPTION="h323"
8287 # Check whether --with-h323 was given.
8288 if test "${with_h323+set}" = set; then
8295 OPENH323_MANDATORY="yes"
8298 OPENH323_DIR="${withval}"
8299 OPENH323_MANDATORY="yes"
8315 # Check whether --with-qt was given.
8316 if test "${with_qt+set}" = set; then
8340 RADIUS_DESCRIP="Radius Client"
8341 RADIUS_OPTION="radius"
8343 # Check whether --with-radius was given.
8344 if test "${with_radius+set}" = set; then
8345 withval=$with_radius;
8351 RADIUS_MANDATORY="yes"
8354 RADIUS_DIR="${withval}"
8355 RADIUS_MANDATORY="yes"
8368 SPEEX_DESCRIP="Speex"
8369 SPEEX_OPTION="speex"
8371 # Check whether --with-speex was given.
8372 if test "${with_speex+set}" = set; then
8373 withval=$with_speex;
8379 SPEEX_MANDATORY="yes"
8382 SPEEX_DIR="${withval}"
8383 SPEEX_MANDATORY="yes"
8396 SQLITE_DESCRIP="SQLite"
8397 SQLITE_OPTION="sqlite"
8399 # Check whether --with-sqlite was given.
8400 if test "${with_sqlite+set}" = set; then
8401 withval=$with_sqlite;
8407 SQLITE_MANDATORY="yes"
8410 SQLITE_DIR="${withval}"
8411 SQLITE_MANDATORY="yes"
8424 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8425 SUPPSERV_OPTION="suppserv"
8427 # Check whether --with-suppserv was given.
8428 if test "${with_suppserv+set}" = set; then
8429 withval=$with_suppserv;
8435 SUPPSERV_MANDATORY="yes"
8438 SUPPSERV_DIR="${withval}"
8439 SUPPSERV_MANDATORY="yes"
8452 OPENSSL_DESCRIP="OpenSSL"
8453 OPENSSL_OPTION="ssl"
8455 # Check whether --with-ssl was given.
8456 if test "${with_ssl+set}" = set; then
8463 OPENSSL_MANDATORY="yes"
8466 OPENSSL_DIR="${withval}"
8467 OPENSSL_MANDATORY="yes"
8480 FREETDS_DESCRIP="FreeTDS"
8481 FREETDS_OPTION="tds"
8483 # Check whether --with-tds was given.
8484 if test "${with_tds+set}" = set; then
8491 FREETDS_MANDATORY="yes"
8494 FREETDS_DIR="${withval}"
8495 FREETDS_MANDATORY="yes"
8508 TERMCAP_DESCRIP="Termcap"
8509 TERMCAP_OPTION="termcap"
8511 # Check whether --with-termcap was given.
8512 if test "${with_termcap+set}" = set; then
8513 withval=$with_termcap;
8519 TERMCAP_MANDATORY="yes"
8522 TERMCAP_DIR="${withval}"
8523 TERMCAP_MANDATORY="yes"
8536 TINFO_DESCRIP="Term Info"
8537 TINFO_OPTION="tinfo"
8539 # Check whether --with-tinfo was given.
8540 if test "${with_tinfo+set}" = set; then
8541 withval=$with_tinfo;
8547 TINFO_MANDATORY="yes"
8550 TINFO_DIR="${withval}"
8551 TINFO_MANDATORY="yes"
8564 TONEZONE_DESCRIP="tonezone"
8565 TONEZONE_OPTION="tonezone"
8567 # Check whether --with-tonezone was given.
8568 if test "${with_tonezone+set}" = set; then
8569 withval=$with_tonezone;
8575 TONEZONE_MANDATORY="yes"
8578 TONEZONE_DIR="${withval}"
8579 TONEZONE_MANDATORY="yes"
8595 # Check whether --with-usb was given.
8596 if test "${with_usb+set}" = set; then
8606 USB_DIR="${withval}"
8620 VORBIS_DESCRIP="Vorbis"
8621 VORBIS_OPTION="vorbis"
8623 # Check whether --with-vorbis was given.
8624 if test "${with_vorbis+set}" = set; then
8625 withval=$with_vorbis;
8631 VORBIS_MANDATORY="yes"
8634 VORBIS_DIR="${withval}"
8635 VORBIS_MANDATORY="yes"
8648 VPB_DESCRIP="Voicetronix API"
8651 # Check whether --with-vpb was given.
8652 if test "${with_vpb+set}" = set; then
8662 VPB_DIR="${withval}"
8679 # Check whether --with-z was given.
8680 if test "${with_z+set}" = set; then
8687 ZLIB_MANDATORY="yes"
8690 ZLIB_DIR="${withval}"
8691 ZLIB_MANDATORY="yes"
8704 ZAPTEL_DESCRIP="Zaptel"
8705 ZAPTEL_OPTION="zaptel"
8707 # Check whether --with-zaptel was given.
8708 if test "${with_zaptel+set}" = set; then
8709 withval=$with_zaptel;
8715 ZAPTEL_MANDATORY="yes"
8718 ZAPTEL_DIR="${withval}"
8719 ZAPTEL_MANDATORY="yes"
8732 # check for basic system features and functionality before
8733 # checking for package libraries
8735 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8736 # for constant arguments. Useless!
8737 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8738 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8739 if test "${ac_cv_working_alloca_h+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 cat >conftest.$ac_ext <<_ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8752 char *p = (char *) alloca (2 * sizeof (int));
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (ac_try="$ac_link"
8761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8762 *) ac_try_echo
=$ac_try;;
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_link") 2>conftest.er1
8767 grep -v '^ *+' conftest.er1
>conftest.err
8769 cat conftest.err
>&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } && {
8772 test -z "$ac_c_werror_flag" ||
8773 test ! -s conftest.err
8774 } && test -s conftest
$ac_exeext &&
8775 $as_test_x conftest
$ac_exeext; then
8776 ac_cv_working_alloca_h
=yes
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.
$ac_ext >&5
8781 ac_cv_working_alloca_h
=no
8784 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8785 conftest
$ac_exeext conftest.
$ac_ext
8787 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8788 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8789 if test $ac_cv_working_alloca_h = yes; then
8791 cat >>confdefs.h
<<\_ACEOF
8792 #define HAVE_ALLOCA_H 1
8797 { echo "$as_me:$LINENO: checking for alloca" >&5
8798 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8799 if test "${ac_cv_func_alloca_works+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8802 cat >conftest.
$ac_ext <<_ACEOF
8805 cat confdefs.h
>>conftest.
$ac_ext
8806 cat >>conftest.
$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8809 # define alloca __builtin_alloca
8812 # include <malloc.h>
8813 # define alloca _alloca
8815 # ifdef HAVE_ALLOCA_H
8816 # include <alloca.h>
8821 # ifndef alloca /* predefined by HP cc +Olibcalls */
8832 char *p = (char *) alloca (1);
8838 rm -f conftest.
$ac_objext conftest
$ac_exeext
8839 if { (ac_try
="$ac_link"
8841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_link") 2>conftest.er1
8847 grep -v '^ *+' conftest.er1 >conftest.err
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } && {
8852 test -z "$ac_c_werror_flag" ||
8853 test ! -s conftest.err
8854 } && test -s conftest$ac_exeext &&
8855 $as_test_x conftest$ac_exeext; then
8856 ac_cv_func_alloca_works=yes
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_cv_func_alloca_works=no
8864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8865 conftest$ac_exeext conftest.$ac_ext
8867 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8868 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8870 if test $ac_cv_func_alloca_works = yes; then
8872 cat >>confdefs.h <<\_ACEOF
8873 #define HAVE_ALLOCA 1
8877 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8878 # that cause trouble. Some versions do not even contain alloca or
8879 # contain a buggy version. If you still want to use their alloca,
8880 # use ar to extract alloca.o from them instead of compiling alloca.c.
8882 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8884 cat >>confdefs.h <<\_ACEOF
8889 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
8890 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
8891 if test "${ac_cv_os_cray+set}" = set; then
8892 echo $ECHO_N "(cached
) $ECHO_C" >&6
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 #if defined CRAY && ! defined CRAY2
8907 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8908 $EGREP "webecray
" >/dev/null 2>&1; then
8916 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
8917 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8918 if test $ac_cv_os_cray = yes; then
8919 for ac_func in _getb67 GETB67 getb67; do
8920 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
8921 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
8922 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
8923 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
8924 echo $ECHO_N "(cached
) $ECHO_C" >&6
8926 cat >conftest.$ac_ext <<_ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8934 #define $ac_func innocuous_$ac_func
8936 /* System header to define __stub macros and hopefully few prototypes,
8937 which can conflict with char $ac_func (); below.
8938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8939 <limits.h> exists even on freestanding compilers. */
8942 # include <limits.h>
8944 # include <assert.h>
8949 /* Override any GCC internal prototype to avoid an error.
8950 Use char because int might match the return type of a GCC
8951 builtin and then its argument prototype would still apply. */
8956 /* The GNU C library defines this for functions which it implements
8957 to always fail with ENOSYS. Some functions are actually named
8958 something starting with __ and the normal name is an alias. */
8959 #if defined __stub_$ac_func || defined __stub___$ac_func
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (ac_try="$ac_link"
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_link") 2>conftest.er1
8980 grep -v '^ *+' conftest.er1 >conftest.err
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8984 (exit $ac_status); } && {
8985 test -z "$ac_c_werror_flag" ||
8986 test ! -s conftest.err
8987 } && test -s conftest$ac_exeext &&
8988 $as_test_x conftest$ac_exeext; then
8989 eval "$as_ac_var=yes"
8991 echo "$as_me: failed program was
:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 eval "$as_ac_var=no
"
8997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8998 conftest$ac_exeext conftest.$ac_ext
9000 ac_res=`eval echo '${'$as_ac_var'}'`
9001 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9002 echo "${ECHO_T}$ac_res" >&6; }
9003 if test `eval echo '${'$as_ac_var'}'` = yes; then
9005 cat >>confdefs.h <<_ACEOF
9006 #define CRAY_STACKSEG_END $ac_func
9015 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
9016 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
9017 if test "${ac_cv_c_stack_direction+set}" = set; then
9018 echo $ECHO_N "(cached
) $ECHO_C" >&6
9020 if test "$cross_compiling" = yes; then
9021 ac_cv_c_stack_direction=0
9023 cat >conftest.$ac_ext <<_ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 $ac_includes_default
9031 find_stack_direction ()
9033 static char *addr = 0;
9038 return find_stack_direction ();
9041 return (&dummy > addr) ? 1 : -1;
9047 return find_stack_direction () < 0;
9050 rm -f conftest$ac_exeext
9051 if { (ac_try="$ac_link"
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_link") 2>&5
9059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9061 { (case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9065 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_try") 2>&5
9068 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 ac_cv_c_stack_direction=1
9072 echo "$as_me: program exited with status
$ac_status" >&5
9073 echo "$as_me: failed program was
:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9077 ac_cv_c_stack_direction=-1
9079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9084 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
9085 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9087 cat >>confdefs.h <<_ACEOF
9088 #define STACK_DIRECTION $ac_cv_c_stack_direction
9100 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9101 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
9102 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
9103 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
9104 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9105 echo $ECHO_N "(cached
) $ECHO_C" >&6
9107 cat >conftest.$ac_ext <<_ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113 #include <sys/types.h>
9125 rm -f conftest.$ac_objext
9126 if { (ac_try="$ac_compile"
9128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129 *) ac_try_echo=$ac_try;;
9131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9132 (eval "$ac_compile") 2>conftest.er1
9134 grep -v '^ *+' conftest.er1 >conftest.err
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9138 (exit $ac_status); } && {
9139 test -z "$ac_c_werror_flag" ||
9140 test ! -s conftest.err
9141 } && test -s conftest.$ac_objext; then
9142 eval "$as_ac_Header=yes"
9144 echo "$as_me: failed program was
:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9147 eval "$as_ac_Header=no
"
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 ac_res=`eval echo '${'$as_ac_Header'}'`
9153 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9154 echo "${ECHO_T}$ac_res" >&6; }
9155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9156 cat >>confdefs.h <<_ACEOF
9157 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
9160 ac_header_dirent=$ac_hdr; break
9164 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9165 if test $ac_header_dirent = dirent.h; then
9166 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9167 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9168 if test "${ac_cv_search_opendir+set}" = set; then
9169 echo $ECHO_N "(cached
) $ECHO_C" >&6
9171 ac_func_search_save_LIBS=$LIBS
9172 cat >conftest.$ac_ext <<_ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9179 /* Override any GCC internal prototype to avoid an error.
9180 Use char because int might match the return type of a GCC
9181 builtin and then its argument prototype would still apply. */
9194 for ac_lib in '' dir; do
9195 if test -z "$ac_lib"; then
9196 ac_res="none required
"
9199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9201 rm -f conftest.$ac_objext conftest$ac_exeext
9202 if { (ac_try="$ac_link"
9204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9205 *) ac_try_echo=$ac_try;;
9207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9208 (eval "$ac_link") 2>conftest.er1
9210 grep -v '^ *+' conftest.er1 >conftest.err
9212 cat conftest.err >&5
9213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9214 (exit $ac_status); } && {
9215 test -z "$ac_c_werror_flag" ||
9216 test ! -s conftest.err
9217 } && test -s conftest$ac_exeext &&
9218 $as_test_x conftest$ac_exeext; then
9219 ac_cv_search_opendir=$ac_res
9221 echo "$as_me: failed program was
:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9229 if test "${ac_cv_search_opendir+set}" = set; then
9233 if test "${ac_cv_search_opendir+set}" = set; then
9236 ac_cv_search_opendir=no
9239 LIBS=$ac_func_search_save_LIBS
9241 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9242 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9243 ac_res=$ac_cv_search_opendir
9244 if test "$ac_res" != no; then
9245 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9250 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9251 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9252 if test "${ac_cv_search_opendir+set}" = set; then
9253 echo $ECHO_N "(cached
) $ECHO_C" >&6
9255 ac_func_search_save_LIBS=$LIBS
9256 cat >conftest.$ac_ext <<_ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9263 /* Override any GCC internal prototype to avoid an error.
9264 Use char because int might match the return type of a GCC
9265 builtin and then its argument prototype would still apply. */
9278 for ac_lib in '' x; do
9279 if test -z "$ac_lib"; then
9280 ac_res="none required
"
9283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9285 rm -f conftest.$ac_objext conftest$ac_exeext
9286 if { (ac_try="$ac_link"
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9291 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_link") 2>conftest.er1
9294 grep -v '^ *+' conftest.er1 >conftest.err
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9298 (exit $ac_status); } && {
9299 test -z "$ac_c_werror_flag" ||
9300 test ! -s conftest.err
9301 } && test -s conftest$ac_exeext &&
9302 $as_test_x conftest$ac_exeext; then
9303 ac_cv_search_opendir=$ac_res
9305 echo "$as_me: failed program was
:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9313 if test "${ac_cv_search_opendir+set}" = set; then
9317 if test "${ac_cv_search_opendir+set}" = set; then
9320 ac_cv_search_opendir=no
9323 LIBS=$ac_func_search_save_LIBS
9325 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9326 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9327 ac_res=$ac_cv_search_opendir
9328 if test "$ac_res" != no; then
9329 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9335 { echo "$as_me:$LINENO: checking
for ANSI C header files
" >&5
9336 echo $ECHO_N "checking
for ANSI C header files...
$ECHO_C" >&6; }
9337 if test "${ac_cv_header_stdc+set}" = set; then
9338 echo $ECHO_N "(cached
) $ECHO_C" >&6
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9359 rm -f conftest.$ac_objext
9360 if { (ac_try="$ac_compile"
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9365 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_compile") 2>conftest.er1
9368 grep -v '^ *+' conftest.er1 >conftest.err
9370 cat conftest.err >&5
9371 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest.$ac_objext; then
9376 ac_cv_header_stdc=yes
9378 echo "$as_me: failed program was
:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 ac_cv_header_stdc=no
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386 if test $ac_cv_header_stdc = yes; then
9387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9388 cat >conftest.$ac_ext <<_ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9397 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9398 $EGREP "memchr
" >/dev/null 2>&1; then
9401 ac_cv_header_stdc=no
9407 if test $ac_cv_header_stdc = yes; then
9408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9409 cat >conftest.$ac_ext <<_ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9418 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
9419 $EGREP "free
" >/dev/null 2>&1; then
9422 ac_cv_header_stdc=no
9428 if test $ac_cv_header_stdc = yes; then
9429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9430 if test "$cross_compiling" = yes; then
9433 cat >conftest.$ac_ext <<_ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9441 #if ((' ' & 0x0FF) == 0x020)
9442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9445 # define ISLOWER(c) \
9446 (('a' <= (c) && (c) <= 'i') \
9447 || ('j' <= (c) && (c) <= 'r') \
9448 || ('s' <= (c) && (c) <= 'z'))
9449 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9457 for (i = 0; i < 256; i++)
9458 if (XOR (islower (i), ISLOWER (i))
9459 || toupper (i) != TOUPPER (i))
9464 rm -f conftest$ac_exeext
9465 if { (ac_try="$ac_link"
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9471 (eval "$ac_link") 2>&5
9473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9475 { (case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_try") 2>&5
9482 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9483 (exit $ac_status); }; }; then
9486 echo "$as_me: program exited with status
$ac_status" >&5
9487 echo "$as_me: failed program was
:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9491 ac_cv_header_stdc=no
9493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9499 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdc" >&5
9500 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9501 if test $ac_cv_header_stdc = yes; then
9503 cat >>confdefs.h <<\_ACEOF
9504 #define STDC_HEADERS 1
9509 { echo "$as_me:$LINENO: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
9510 echo $ECHO_N "checking
for sys
/wait.h that is POSIX
.1 compatible...
$ECHO_C" >&6; }
9511 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9512 echo $ECHO_N "(cached
) $ECHO_C" >&6
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 #include <sys/types.h>
9521 #include <sys/wait.h>
9523 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9526 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9534 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9539 rm -f conftest.$ac_objext
9540 if { (ac_try="$ac_compile"
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_compile") 2>conftest.er1
9548 grep -v '^ *+' conftest.er1 >conftest.err
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9552 (exit $ac_status); } && {
9553 test -z "$ac_c_werror_flag" ||
9554 test ! -s conftest.err
9555 } && test -s conftest.$ac_objext; then
9556 ac_cv_header_sys_wait_h=yes
9558 echo "$as_me: failed program was
:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9561 ac_cv_header_sys_wait_h=no
9564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9566 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_wait_h" >&5
9567 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9568 if test $ac_cv_header_sys_wait_h = yes; then
9570 cat >>confdefs.h <<\_ACEOF
9571 #define HAVE_SYS_WAIT_H 1
9599 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
9601 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9602 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9603 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9604 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9605 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9606 echo $ECHO_N "(cached
) $ECHO_C" >&6
9608 ac_res=`eval echo '${'$as_ac_Header'}'`
9609 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9610 echo "${ECHO_T}$ac_res" >&6; }
9612 # Is the header compilable?
9613 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9614 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9615 cat >conftest.$ac_ext <<_ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9621 $ac_includes_default
9622 #include <$ac_header>
9624 rm -f conftest.$ac_objext
9625 if { (ac_try="$ac_compile"
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9630 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_compile") 2>conftest.er1
9633 grep -v '^ *+' conftest.er1 >conftest.err
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest.$ac_objext; then
9641 ac_header_compiler=yes
9643 echo "$as_me: failed program was
:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_header_compiler=no
9649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9650 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9651 echo "${ECHO_T}$ac_header_compiler" >&6; }
9653 # Is the header present?
9654 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9655 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9656 cat >conftest.$ac_ext <<_ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 #include <$ac_header>
9664 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9672 grep -v '^ *+' conftest.er1 >conftest.err
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9676 (exit $ac_status); } >/dev/null && {
9677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9680 ac_header_preproc=yes
9682 echo "$as_me: failed program was
:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 ac_header_preproc=no
9688 rm -f conftest.err conftest.$ac_ext
9689 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9690 echo "${ECHO_T}$ac_header_preproc" >&6; }
9692 # So? What about this header?
9693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9695 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9696 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9697 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9699 ac_header_preproc=yes
9702 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9703 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9704 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9705 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9706 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9707 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9708 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9709 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9710 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9712 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9713 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9715 ## ------------------------------- ##
9716 ## Report this to www.asterisk.org ##
9717 ## ------------------------------- ##
9719 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9722 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9723 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9724 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9725 echo $ECHO_N "(cached
) $ECHO_C" >&6
9727 eval "$as_ac_Header=\
$ac_header_preproc"
9729 ac_res=`eval echo '${'$as_ac_Header'}'`
9730 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9731 echo "${ECHO_T}$ac_res" >&6; }
9734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9735 cat >>confdefs.h <<_ACEOF
9736 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9744 # Check whether --enable-largefile was given.
9745 if test "${enable_largefile+set}" = set; then
9746 enableval=$enable_largefile;
9749 if test "$enable_largefile" != no; then
9751 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
9752 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
9753 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9754 echo $ECHO_N "(cached
) $ECHO_C" >&6
9756 ac_cv_sys_largefile_CC=no
9757 if test "$GCC" != yes; then
9760 # IRIX 6.2 and later do not support large files by default,
9761 # so use the C compiler's -n32 option if that helps.
9762 cat >conftest.$ac_ext <<_ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9768 #include <sys/types.h>
9769 /* Check that off_t can represent 2**63 - 1 correctly.
9770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9771 since some C++ compilers masquerading as C compilers
9772 incorrectly reject 9223372036854775807. */
9773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9775 && LARGE_OFF_T % 2147483647 == 1)
9785 rm -f conftest.$ac_objext
9786 if { (ac_try="$ac_compile"
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_compile") 2>conftest.er1
9794 grep -v '^ *+' conftest.er1 >conftest.err
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest.$ac_objext; then
9804 echo "$as_me: failed program was
:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9810 rm -f core conftest.err conftest.$ac_objext
9812 rm -f conftest.$ac_objext
9813 if { (ac_try="$ac_compile"
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_compile") 2>conftest.er1
9821 grep -v '^ *+' conftest.er1 >conftest.err
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9825 (exit $ac_status); } && {
9826 test -z "$ac_c_werror_flag" ||
9827 test ! -s conftest.err
9828 } && test -s conftest.$ac_objext; then
9829 ac_cv_sys_largefile_CC=' -n32'; break
9831 echo "$as_me: failed program was
:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9837 rm -f core conftest.err conftest.$ac_objext
9841 rm -f conftest.$ac_ext
9844 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
9845 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9846 if test "$ac_cv_sys_largefile_CC" != no; then
9847 CC=$CC$ac_cv_sys_largefile_CC
9850 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
9851 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
9852 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9853 echo $ECHO_N "(cached
) $ECHO_C" >&6
9856 cat >conftest.$ac_ext <<_ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9862 #include <sys/types.h>
9863 /* Check that off_t can represent 2**63 - 1 correctly.
9864 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9865 since some C++ compilers masquerading as C compilers
9866 incorrectly reject 9223372036854775807. */
9867 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9868 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9869 && LARGE_OFF_T % 2147483647 == 1)
9879 rm -f conftest.$ac_objext
9880 if { (ac_try="$ac_compile"
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_compile") 2>conftest.er1
9888 grep -v '^ *+' conftest.er1 >conftest.err
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9892 (exit $ac_status); } && {
9893 test -z "$ac_c_werror_flag" ||
9894 test ! -s conftest.err
9895 } && test -s conftest.$ac_objext; then
9896 ac_cv_sys_file_offset_bits=no; break
9898 echo "$as_me: failed program was
:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9905 cat >conftest.$ac_ext <<_ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 #define _FILE_OFFSET_BITS 64
9912 #include <sys/types.h>
9913 /* Check that off_t can represent 2**63 - 1 correctly.
9914 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9915 since some C++ compilers masquerading as C compilers
9916 incorrectly reject 9223372036854775807. */
9917 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9918 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9919 && LARGE_OFF_T % 2147483647 == 1)
9929 rm -f conftest.$ac_objext
9930 if { (ac_try="$ac_compile"
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_compile") 2>conftest.er1
9938 grep -v '^ *+' conftest.er1 >conftest.err
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9942 (exit $ac_status); } && {
9943 test -z "$ac_c_werror_flag" ||
9944 test ! -s conftest.err
9945 } && test -s conftest.$ac_objext; then
9946 ac_cv_sys_file_offset_bits=64; break
9948 echo "$as_me: failed program was
:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9955 ac_cv_sys_file_offset_bits=unknown
9959 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
9960 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9961 case $ac_cv_sys_file_offset_bits in #(
9964 cat >>confdefs.h <<_ACEOF
9965 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9970 if test $ac_cv_sys_file_offset_bits = unknown; then
9971 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
9972 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
9973 if test "${ac_cv_sys_large_files+set}" = set; then
9974 echo $ECHO_N "(cached
) $ECHO_C" >&6
9977 cat >conftest.$ac_ext <<_ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983 #include <sys/types.h>
9984 /* Check that off_t can represent 2**63 - 1 correctly.
9985 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9986 since some C++ compilers masquerading as C compilers
9987 incorrectly reject 9223372036854775807. */
9988 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9989 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9990 && LARGE_OFF_T % 2147483647 == 1)
10000 rm -f conftest.$ac_objext
10001 if { (ac_try="$ac_compile"
10002 case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_compile") 2>conftest.er1
10009 grep -v '^ *+' conftest.er1 >conftest.err
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10013 (exit $ac_status); } && {
10014 test -z "$ac_c_werror_flag" ||
10015 test ! -s conftest.err
10016 } && test -s conftest.$ac_objext; then
10017 ac_cv_sys_large_files=no; break
10019 echo "$as_me: failed program was
:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10026 cat >conftest.$ac_ext <<_ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10032 #define _LARGE_FILES 1
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_large_files=1; 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 ac_cv_sys_large_files=unknown
10080 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
10081 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10082 case $ac_cv_sys_large_files in #(
10085 cat >>confdefs.h <<_ACEOF
10086 #define _LARGE_FILES $ac_cv_sys_large_files
10095 # Checks for typedefs, structures, and compiler characteristics.
10096 { echo "$as_me:$LINENO: checking
for stdbool.h that conforms to C99
" >&5
10097 echo $ECHO_N "checking
for stdbool.h that conforms to C99...
$ECHO_C" >&6; }
10098 if test "${ac_cv_header_stdbool_h+set}" = set; then
10099 echo $ECHO_N "(cached
) $ECHO_C" >&6
10101 cat >conftest.$ac_ext <<_ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h. */
10108 #include <stdbool.h>
10110 "error
: bool is not defined
"
10113 "error
: false is not defined
"
10116 "error
: false is not
0"
10119 "error
: true is not defined
"
10122 "error
: true is not
1"
10124 #ifndef __bool_true_false_are_defined
10125 "error
: __bool_true_false_are_defined is not defined
"
10128 struct s { _Bool s: 1; _Bool t; } s;
10130 char a[true == 1 ? 1 : -1];
10131 char b[false == 0 ? 1 : -1];
10132 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10133 char d[(bool) 0.5 == true ? 1 : -1];
10135 char f[(_Bool) 0.0 == false ? 1 : -1];
10137 char h[sizeof (_Bool)];
10138 char i[sizeof s.t];
10139 enum { j = false, k = true, l = false * true, m = true * 256 };
10141 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10142 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10143 # if defined __xlc__ || defined __GNUC__
10144 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10145 reported by James Lemley on 2005-10-05; see
10146 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10147 This test is not quite right, since xlc is allowed to
10148 reject this program, as the initializer for xlcbug is
10149 not one of the forms that C requires support for.
10150 However, doing the test right would require a runtime
10151 test, and that would make cross-compilation harder.
10152 Let us hope that IBM fixes the xlc bug, and also adds
10153 support for this kind of constant expression. In the
10154 meantime, this test will reject xlc, which is OK, since
10155 our stdbool.h substitute should suffice. We also test
10156 this with GCC, where it should work, to detect more
10157 quickly whether someone messes up the test in the
10159 char digs[] = "0123456789";
10160 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10162 /* Catch a bug in an HP-UX C compiler. See
10163 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10164 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10175 /* Refer to every declared value, to avoid compiler optimizations. */
10176 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10177 + !m + !n + !o + !p + !q + !pq);
10183 rm -f conftest.$ac_objext
10184 if { (ac_try="$ac_compile"
10185 case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10189 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_compile") 2>conftest.er1
10192 grep -v '^ *+' conftest.er1 >conftest.err
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10196 (exit $ac_status); } && {
10197 test -z "$ac_c_werror_flag" ||
10198 test ! -s conftest.err
10199 } && test -s conftest.$ac_objext; then
10200 ac_cv_header_stdbool_h=yes
10202 echo "$as_me: failed program was
:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ac_cv_header_stdbool_h=no
10208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdbool_h" >&5
10211 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10212 { echo "$as_me:$LINENO: checking
for _Bool
" >&5
10213 echo $ECHO_N "checking
for _Bool...
$ECHO_C" >&6; }
10214 if test "${ac_cv_type__Bool+set}" = set; then
10215 echo $ECHO_N "(cached
) $ECHO_C" >&6
10217 cat >conftest.$ac_ext <<_ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h. */
10223 $ac_includes_default
10224 typedef _Bool ac__type_new_;
10228 if ((ac__type_new_ *) 0)
10230 if (sizeof (ac__type_new_))
10236 rm -f conftest.$ac_objext
10237 if { (ac_try="$ac_compile"
10238 case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_compile") 2>conftest.er1
10245 grep -v '^ *+' conftest.er1 >conftest.err
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10249 (exit $ac_status); } && {
10250 test -z "$ac_c_werror_flag" ||
10251 test ! -s conftest.err
10252 } && test -s conftest.$ac_objext; then
10253 ac_cv_type__Bool=yes
10255 echo "$as_me: failed program was
:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 ac_cv_type__Bool=no
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10263 { echo "$as_me:$LINENO: result
: $ac_cv_type__Bool" >&5
10264 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10265 if test $ac_cv_type__Bool = yes; then
10267 cat >>confdefs.h <<_ACEOF
10268 #define HAVE__BOOL 1
10274 if test $ac_cv_header_stdbool_h = yes; then
10276 cat >>confdefs.h <<\_ACEOF
10277 #define HAVE_STDBOOL_H 1
10282 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
10283 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
10284 if test "${ac_cv_c_const+set}" = set; then
10285 echo $ECHO_N "(cached
) $ECHO_C" >&6
10287 cat >conftest.$ac_ext <<_ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10297 /* FIXME: Include the comments suggested by Paul. */
10298 #ifndef __cplusplus
10299 /* Ultrix mips cc rejects this. */
10300 typedef int charset[2];
10302 /* SunOS 4.1.1 cc rejects this. */
10303 char const *const *pcpcc;
10305 /* NEC SVR4.0.2 mips cc rejects this. */
10306 struct point {int x, y;};
10307 static struct point const zero = {0,0};
10308 /* AIX XL C 1.02.0.0 rejects this.
10309 It does not let you subtract one const X* pointer from another in
10310 an arm of an if-expression whose if-part is not a constant
10312 const char *g = "string
";
10313 pcpcc = &g + (g ? g-g : 0);
10314 /* HPUX 7.0 cc rejects these. */
10316 ppc = (char**) pcpcc;
10317 pcpcc = (char const *const *) ppc;
10318 { /* SCO 3.2v4 cc rejects this. */
10320 char const *s = 0 ? (char *) 0 : (char const *) 0;
10325 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10326 int x[] = {25, 17};
10327 const int *foo = &x[0];
10330 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10331 typedef const int *iptr;
10335 { /* AIX XL C 1.02.0.0 rejects this saying
10336 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10337 struct s { int j; const int *ap[3]; };
10338 struct s *b; b->j = 5;
10340 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10341 const int foo = 10;
10342 if (!foo) return 0;
10344 return !cs[0] && !zero.x;
10351 rm -f conftest.$ac_objext
10352 if { (ac_try="$ac_compile"
10353 case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_compile") 2>conftest.er1
10360 grep -v '^ *+' conftest.er1 >conftest.err
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10364 (exit $ac_status); } && {
10365 test -z "$ac_c_werror_flag" ||
10366 test ! -s conftest.err
10367 } && test -s conftest.$ac_objext; then
10370 echo "$as_me: failed program was
:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10378 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
10379 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10380 if test $ac_cv_c_const = no; then
10382 cat >>confdefs.h <<\_ACEOF
10388 { echo "$as_me:$LINENO: checking
for uid_t
in sys
/types.h
" >&5
10389 echo $ECHO_N "checking
for uid_t
in sys
/types.h...
$ECHO_C" >&6; }
10390 if test "${ac_cv_type_uid_t+set}" = set; then
10391 echo $ECHO_N "(cached
) $ECHO_C" >&6
10393 cat >conftest.$ac_ext <<_ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399 #include <sys/types.h>
10402 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10403 $EGREP "uid_t
" >/dev/null 2>&1; then
10404 ac_cv_type_uid_t=yes
10406 ac_cv_type_uid_t=no
10411 { echo "$as_me:$LINENO: result
: $ac_cv_type_uid_t" >&5
10412 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10413 if test $ac_cv_type_uid_t = no; then
10415 cat >>confdefs.h <<\_ACEOF
10420 cat >>confdefs.h <<\_ACEOF
10426 { echo "$as_me:$LINENO: checking
for inline
" >&5
10427 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
10428 if test "${ac_cv_c_inline+set}" = set; then
10429 echo $ECHO_N "(cached
) $ECHO_C" >&6
10432 for ac_kw in inline __inline__ __inline; do
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 #ifndef __cplusplus
10441 static $ac_kw foo_t static_foo () {return 0; }
10442 $ac_kw foo_t foo () {return 0; }
10446 rm -f conftest.$ac_objext
10447 if { (ac_try="$ac_compile"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_compile") 2>conftest.er1
10455 grep -v '^ *+' conftest.er1 >conftest.err
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest.$ac_objext; then
10463 ac_cv_c_inline=$ac_kw
10465 echo "$as_me: failed program was
:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10472 test "$ac_cv_c_inline" != no && break
10476 { echo "$as_me:$LINENO: result
: $ac_cv_c_inline" >&5
10477 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10480 case $ac_cv_c_inline in
10483 case $ac_cv_c_inline in
10485 *) ac_val=$ac_cv_c_inline;;
10487 cat >>confdefs.h <<_ACEOF
10488 #ifndef __cplusplus
10489 #define inline $ac_val
10495 { echo "$as_me:$LINENO: checking
for mode_t
" >&5
10496 echo $ECHO_N "checking
for mode_t...
$ECHO_C" >&6; }
10497 if test "${ac_cv_type_mode_t+set}" = set; then
10498 echo $ECHO_N "(cached
) $ECHO_C" >&6
10500 cat >conftest.$ac_ext <<_ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 $ac_includes_default
10507 typedef mode_t ac__type_new_;
10511 if ((ac__type_new_ *) 0)
10513 if (sizeof (ac__type_new_))
10519 rm -f conftest.$ac_objext
10520 if { (ac_try="$ac_compile"
10521 case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_compile") 2>conftest.er1
10528 grep -v '^ *+' conftest.er1 >conftest.err
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10532 (exit $ac_status); } && {
10533 test -z "$ac_c_werror_flag" ||
10534 test ! -s conftest.err
10535 } && test -s conftest.$ac_objext; then
10536 ac_cv_type_mode_t=yes
10538 echo "$as_me: failed program was
:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10541 ac_cv_type_mode_t=no
10544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10546 { echo "$as_me:$LINENO: result
: $ac_cv_type_mode_t" >&5
10547 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10548 if test $ac_cv_type_mode_t = yes; then
10552 cat >>confdefs.h <<_ACEOF
10558 { echo "$as_me:$LINENO: checking
for off_t
" >&5
10559 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
10560 if test "${ac_cv_type_off_t+set}" = set; then
10561 echo $ECHO_N "(cached
) $ECHO_C" >&6
10563 cat >conftest.$ac_ext <<_ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10569 $ac_includes_default
10570 typedef off_t ac__type_new_;
10574 if ((ac__type_new_ *) 0)
10576 if (sizeof (ac__type_new_))
10582 rm -f conftest.$ac_objext
10583 if { (ac_try="$ac_compile"
10584 case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_compile") 2>conftest.er1
10591 grep -v '^ *+' conftest.er1 >conftest.err
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10595 (exit $ac_status); } && {
10596 test -z "$ac_c_werror_flag" ||
10597 test ! -s conftest.err
10598 } && test -s conftest.$ac_objext; then
10599 ac_cv_type_off_t=yes
10601 echo "$as_me: failed program was
:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10604 ac_cv_type_off_t=no
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10609 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
10610 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10611 if test $ac_cv_type_off_t = yes; then
10615 cat >>confdefs.h <<_ACEOF
10616 #define off_t long int
10621 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
10622 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
10623 if test "${ac_cv_type_pid_t+set}" = set; then
10624 echo $ECHO_N "(cached
) $ECHO_C" >&6
10626 cat >conftest.$ac_ext <<_ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 $ac_includes_default
10633 typedef pid_t ac__type_new_;
10637 if ((ac__type_new_ *) 0)
10639 if (sizeof (ac__type_new_))
10645 rm -f conftest.$ac_objext
10646 if { (ac_try="$ac_compile"
10647 case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_compile") 2>conftest.er1
10654 grep -v '^ *+' conftest.er1 >conftest.err
10656 cat conftest.err >&5
10657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10658 (exit $ac_status); } && {
10659 test -z "$ac_c_werror_flag" ||
10660 test ! -s conftest.err
10661 } && test -s conftest.$ac_objext; then
10662 ac_cv_type_pid_t=yes
10664 echo "$as_me: failed program was
:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10667 ac_cv_type_pid_t=no
10670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
10673 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10674 if test $ac_cv_type_pid_t = yes; then
10678 cat >>confdefs.h <<_ACEOF
10684 { echo "$as_me:$LINENO: checking
for size_t
" >&5
10685 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
10686 if test "${ac_cv_type_size_t+set}" = set; then
10687 echo $ECHO_N "(cached
) $ECHO_C" >&6
10689 cat >conftest.$ac_ext <<_ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695 $ac_includes_default
10696 typedef size_t ac__type_new_;
10700 if ((ac__type_new_ *) 0)
10702 if (sizeof (ac__type_new_))
10708 rm -f conftest.$ac_objext
10709 if { (ac_try="$ac_compile"
10710 case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_compile") 2>conftest.er1
10717 grep -v '^ *+' conftest.er1 >conftest.err
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10721 (exit $ac_status); } && {
10722 test -z "$ac_c_werror_flag" ||
10723 test ! -s conftest.err
10724 } && test -s conftest.$ac_objext; then
10725 ac_cv_type_size_t=yes
10727 echo "$as_me: failed program was
:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ac_cv_type_size_t=no
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10735 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
10736 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10737 if test $ac_cv_type_size_t = yes; then
10741 cat >>confdefs.h <<_ACEOF
10742 #define size_t unsigned int
10747 { echo "$as_me:$LINENO: checking
for struct stat.st_blksize
" >&5
10748 echo $ECHO_N "checking
for struct stat.st_blksize...
$ECHO_C" >&6; }
10749 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10750 echo $ECHO_N "(cached
) $ECHO_C" >&6
10752 cat >conftest.$ac_ext <<_ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10758 $ac_includes_default
10762 static struct stat ac_aggr;
10763 if (ac_aggr.st_blksize)
10769 rm -f conftest.$ac_objext
10770 if { (ac_try="$ac_compile"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_compile") 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10782 (exit $ac_status); } && {
10783 test -z "$ac_c_werror_flag" ||
10784 test ! -s conftest.err
10785 } && test -s conftest.$ac_objext; then
10786 ac_cv_member_struct_stat_st_blksize=yes
10788 echo "$as_me: failed program was
:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 cat >conftest.$ac_ext <<_ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 $ac_includes_default
10801 static struct stat ac_aggr;
10802 if (sizeof ac_aggr.st_blksize)
10808 rm -f conftest.$ac_objext
10809 if { (ac_try="$ac_compile"
10810 case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10814 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_compile") 2>conftest.er1
10817 grep -v '^ *+' conftest.er1 >conftest.err
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10821 (exit $ac_status); } && {
10822 test -z "$ac_c_werror_flag" ||
10823 test ! -s conftest.err
10824 } && test -s conftest.$ac_objext; then
10825 ac_cv_member_struct_stat_st_blksize=yes
10827 echo "$as_me: failed program was
:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_cv_member_struct_stat_st_blksize=no
10833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10838 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_stat_st_blksize" >&5
10839 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10840 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10842 cat >>confdefs.h <<_ACEOF
10843 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10849 { echo "$as_me:$LINENO: checking whether
time.h and sys
/time.h may both be included
" >&5
10850 echo $ECHO_N "checking whether
time.h and sys
/time.h may both be included...
$ECHO_C" >&6; }
10851 if test "${ac_cv_header_time+set}" = set; then
10852 echo $ECHO_N "(cached
) $ECHO_C" >&6
10854 cat >conftest.$ac_ext <<_ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 #include <sys/types.h>
10861 #include <sys/time.h>
10867 if ((struct tm *) 0)
10873 rm -f conftest.$ac_objext
10874 if { (ac_try="$ac_compile"
10875 case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_compile") 2>conftest.er1
10882 grep -v '^ *+' conftest.er1 >conftest.err
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10886 (exit $ac_status); } && {
10887 test -z "$ac_c_werror_flag" ||
10888 test ! -s conftest.err
10889 } && test -s conftest.$ac_objext; then
10890 ac_cv_header_time=yes
10892 echo "$as_me: failed program was
:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 ac_cv_header_time=no
10898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10900 { echo "$as_me:$LINENO: result
: $ac_cv_header_time" >&5
10901 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10902 if test $ac_cv_header_time = yes; then
10904 cat >>confdefs.h <<\_ACEOF
10905 #define TIME_WITH_SYS_TIME 1
10910 { echo "$as_me:$LINENO: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
10911 echo $ECHO_N "checking whether struct tm is
in sys
/time.h or
time.h...
$ECHO_C" >&6; }
10912 if test "${ac_cv_struct_tm+set}" = set; then
10913 echo $ECHO_N "(cached
) $ECHO_C" >&6
10915 cat >conftest.$ac_ext <<_ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 #include <sys/types.h>
10928 int *p = &tm.tm_sec;
10934 rm -f conftest.$ac_objext
10935 if { (ac_try="$ac_compile"
10936 case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_compile") 2>conftest.er1
10943 grep -v '^ *+' conftest.er1 >conftest.err
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10947 (exit $ac_status); } && {
10948 test -z "$ac_c_werror_flag" ||
10949 test ! -s conftest.err
10950 } && test -s conftest.$ac_objext; then
10951 ac_cv_struct_tm=time.h
10953 echo "$as_me: failed program was
:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 ac_cv_struct_tm=sys/time.h
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 { echo "$as_me:$LINENO: result
: $ac_cv_struct_tm" >&5
10962 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10963 if test $ac_cv_struct_tm = sys/time.h; then
10965 cat >>confdefs.h <<\_ACEOF
10966 #define TM_IN_SYS_TIME 1
10971 { echo "$as_me:$LINENO: checking
for working volatile
" >&5
10972 echo $ECHO_N "checking
for working volatile...
$ECHO_C" >&6; }
10973 if test "${ac_cv_c_volatile+set}" = set; then
10974 echo $ECHO_N "(cached
) $ECHO_C" >&6
10976 cat >conftest.$ac_ext <<_ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10988 int * volatile y = (int *) 0;
10994 rm -f conftest.$ac_objext
10995 if { (ac_try="$ac_compile"
10996 case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
11000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_compile") 2>conftest.er1
11003 grep -v '^ *+' conftest.er1 >conftest.err
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11007 (exit $ac_status); } && {
11008 test -z "$ac_c_werror_flag" ||
11009 test ! -s conftest.err
11010 } && test -s conftest.$ac_objext; then
11011 ac_cv_c_volatile=yes
11013 echo "$as_me: failed program was
:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_cv_c_volatile=no
11019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021 { echo "$as_me:$LINENO: result
: $ac_cv_c_volatile" >&5
11022 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11023 if test $ac_cv_c_volatile = no; then
11025 cat >>confdefs.h <<\_ACEOF
11031 { echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
11032 echo $ECHO_N "checking
for ptrdiff_t...
$ECHO_C" >&6; }
11033 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11034 echo $ECHO_N "(cached
) $ECHO_C" >&6
11036 cat >conftest.$ac_ext <<_ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 $ac_includes_default
11043 typedef ptrdiff_t ac__type_new_;
11047 if ((ac__type_new_ *) 0)
11049 if (sizeof (ac__type_new_))
11055 rm -f conftest.$ac_objext
11056 if { (ac_try="$ac_compile"
11057 case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11062 (eval "$ac_compile") 2>conftest.er1
11064 grep -v '^ *+' conftest.er1 >conftest.err
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11068 (exit $ac_status); } && {
11069 test -z "$ac_c_werror_flag" ||
11070 test ! -s conftest.err
11071 } && test -s conftest.$ac_objext; then
11072 ac_cv_type_ptrdiff_t=yes
11074 echo "$as_me: failed program was
:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11077 ac_cv_type_ptrdiff_t=no
11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11082 { echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
11083 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11084 if test $ac_cv_type_ptrdiff_t = yes; then
11086 cat >>confdefs.h <<_ACEOF
11087 #define HAVE_PTRDIFF_T 1
11094 # Checks for library functions.
11096 for ac_header in unistd.h
11098 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11099 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11100 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11101 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11102 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11103 echo $ECHO_N "(cached
) $ECHO_C" >&6
11105 ac_res=`eval echo '${'$as_ac_Header'}'`
11106 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11107 echo "${ECHO_T}$ac_res" >&6; }
11109 # Is the header compilable?
11110 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11111 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11112 cat >conftest.$ac_ext <<_ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 $ac_includes_default
11119 #include <$ac_header>
11121 rm -f conftest.$ac_objext
11122 if { (ac_try="$ac_compile"
11123 case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11130 grep -v '^ *+' conftest.er1 >conftest.err
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11134 (exit $ac_status); } && {
11135 test -z "$ac_c_werror_flag" ||
11136 test ! -s conftest.err
11137 } && test -s conftest.$ac_objext; then
11138 ac_header_compiler=yes
11140 echo "$as_me: failed program was
:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 ac_header_compiler=no
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11148 echo "${ECHO_T}$ac_header_compiler" >&6; }
11150 # Is the header present?
11151 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11152 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11153 cat >conftest.$ac_ext <<_ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 #include <$ac_header>
11161 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11162 case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11169 grep -v '^ *+' conftest.er1 >conftest.err
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11173 (exit $ac_status); } >/dev/null && {
11174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11175 test ! -s conftest.err
11177 ac_header_preproc=yes
11179 echo "$as_me: failed program was
:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11182 ac_header_preproc=no
11185 rm -f conftest.err conftest.$ac_ext
11186 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11187 echo "${ECHO_T}$ac_header_preproc" >&6; }
11189 # So? What about this header?
11190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11192 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11193 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11194 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11196 ac_header_preproc=yes
11199 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11200 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11201 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11202 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11203 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11204 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11205 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11206 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11207 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11209 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11210 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11212 ## ------------------------------- ##
11213 ## Report this to www.asterisk.org ##
11214 ## ------------------------------- ##
11216 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11219 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11220 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11221 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11222 echo $ECHO_N "(cached
) $ECHO_C" >&6
11224 eval "$as_ac_Header=\
$ac_header_preproc"
11226 ac_res=`eval echo '${'$as_ac_Header'}'`
11227 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11228 echo "${ECHO_T}$ac_res" >&6; }
11231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11232 cat >>confdefs.h <<_ACEOF
11233 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11240 { echo "$as_me:$LINENO: checking
for working chown
" >&5
11241 echo $ECHO_N "checking
for working chown...
$ECHO_C" >&6; }
11242 if test "${ac_cv_func_chown_works+set}" = set; then
11243 echo $ECHO_N "(cached
) $ECHO_C" >&6
11245 if test "$cross_compiling" = yes; then
11246 ac_cv_func_chown_works=no
11248 cat >conftest.$ac_ext <<_ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11254 $ac_includes_default
11260 char *f = "conftest.chown
";
11261 struct stat before, after;
11263 if (creat (f, 0600) < 0)
11265 if (stat (f, &before) < 0)
11267 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11269 if (stat (f, &after) < 0)
11271 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11277 rm -f conftest$ac_exeext
11278 if { (ac_try="$ac_link"
11279 case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_link") 2>&5
11286 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11288 { (case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_try") 2>&5
11295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11296 (exit $ac_status); }; }; then
11297 ac_cv_func_chown_works=yes
11299 echo "$as_me: program exited with status
$ac_status" >&5
11300 echo "$as_me: failed program was
:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11303 ( exit $ac_status )
11304 ac_cv_func_chown_works=no
11306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11310 rm -f conftest.chown
11313 { echo "$as_me:$LINENO: result
: $ac_cv_func_chown_works" >&5
11314 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11315 if test $ac_cv_func_chown_works = yes; then
11317 cat >>confdefs.h <<\_ACEOF
11318 #define HAVE_CHOWN 1
11323 { echo "$as_me:$LINENO: checking whether closedir returns void
" >&5
11324 echo $ECHO_N "checking whether closedir returns void...
$ECHO_C" >&6; }
11325 if test "${ac_cv_func_closedir_void+set}" = set; then
11326 echo $ECHO_N "(cached
) $ECHO_C" >&6
11328 if test "$cross_compiling" = yes; then
11329 ac_cv_func_closedir_void=yes
11331 cat >conftest.$ac_ext <<_ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 $ac_includes_default
11338 #include <$ac_header_dirent>
11339 #ifndef __cplusplus
11346 return closedir (opendir (".
")) != 0;
11351 rm -f conftest$ac_exeext
11352 if { (ac_try="$ac_link"
11353 case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_link") 2>&5
11360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11362 { (case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_try") 2>&5
11369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 ac_cv_func_closedir_void=no
11373 echo "$as_me: program exited with status
$ac_status" >&5
11374 echo "$as_me: failed program was
:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11377 ( exit $ac_status )
11378 ac_cv_func_closedir_void=yes
11380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11385 { echo "$as_me:$LINENO: result
: $ac_cv_func_closedir_void" >&5
11386 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11387 if test $ac_cv_func_closedir_void = yes; then
11389 cat >>confdefs.h <<\_ACEOF
11390 #define CLOSEDIR_VOID 1
11395 { echo "$as_me:$LINENO: checking
for error_at_line
" >&5
11396 echo $ECHO_N "checking
for error_at_line...
$ECHO_C" >&6; }
11397 if test "${ac_cv_lib_error_at_line+set}" = set; then
11398 echo $ECHO_N "(cached
) $ECHO_C" >&6
11400 cat >conftest.$ac_ext <<_ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11410 error_at_line (0, 0, "", 0, "an error occurred
");
11415 rm -f conftest.$ac_objext conftest$ac_exeext
11416 if { (ac_try="$ac_link"
11417 case "(($ac_try" in
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419 *) ac_try_echo=$ac_try;;
11421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11422 (eval "$ac_link") 2>conftest.er1
11424 grep -v '^ *+' conftest.er1 >conftest.err
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11428 (exit $ac_status); } && {
11429 test -z "$ac_c_werror_flag" ||
11430 test ! -s conftest.err
11431 } && test -s conftest$ac_exeext &&
11432 $as_test_x conftest$ac_exeext; then
11433 ac_cv_lib_error_at_line=yes
11435 echo "$as_me: failed program was
:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11438 ac_cv_lib_error_at_line=no
11441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11442 conftest$ac_exeext conftest.$ac_ext
11444 { echo "$as_me:$LINENO: result
: $ac_cv_lib_error_at_line" >&5
11445 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11446 if test $ac_cv_lib_error_at_line = no; then
11447 case " $LIBOBJS " in
11448 *" error.
$ac_objext "* ) ;;
11449 *) LIBOBJS="$LIBOBJS error.
$ac_objext"
11456 for ac_header in vfork.h
11458 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11459 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11460 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11461 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11462 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11463 echo $ECHO_N "(cached
) $ECHO_C" >&6
11465 ac_res=`eval echo '${'$as_ac_Header'}'`
11466 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11467 echo "${ECHO_T}$ac_res" >&6; }
11469 # Is the header compilable?
11470 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11471 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11472 cat >conftest.$ac_ext <<_ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11478 $ac_includes_default
11479 #include <$ac_header>
11481 rm -f conftest.$ac_objext
11482 if { (ac_try="$ac_compile"
11483 case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11487 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_compile") 2>conftest.er1
11490 grep -v '^ *+' conftest.er1 >conftest.err
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11494 (exit $ac_status); } && {
11495 test -z "$ac_c_werror_flag" ||
11496 test ! -s conftest.err
11497 } && test -s conftest.$ac_objext; then
11498 ac_header_compiler=yes
11500 echo "$as_me: failed program was
:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11503 ac_header_compiler=no
11506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11507 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11508 echo "${ECHO_T}$ac_header_compiler" >&6; }
11510 # Is the header present?
11511 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11512 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11513 cat >conftest.$ac_ext <<_ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11519 #include <$ac_header>
11521 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11527 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11529 grep -v '^ *+' conftest.er1 >conftest.err
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11533 (exit $ac_status); } >/dev/null && {
11534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11535 test ! -s conftest.err
11537 ac_header_preproc=yes
11539 echo "$as_me: failed program was
:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11542 ac_header_preproc=no
11545 rm -f conftest.err conftest.$ac_ext
11546 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11547 echo "${ECHO_T}$ac_header_preproc" >&6; }
11549 # So? What about this header?
11550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11552 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11553 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11554 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11556 ac_header_preproc=yes
11559 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11560 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11561 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11562 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11563 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11564 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11565 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11566 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11567 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11569 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11570 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11572 ## ------------------------------- ##
11573 ## Report this to www.asterisk.org ##
11574 ## ------------------------------- ##
11576 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11579 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11580 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11581 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11582 echo $ECHO_N "(cached
) $ECHO_C" >&6
11584 eval "$as_ac_Header=\
$ac_header_preproc"
11586 ac_res=`eval echo '${'$as_ac_Header'}'`
11587 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11588 echo "${ECHO_T}$ac_res" >&6; }
11591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11592 cat >>confdefs.h <<_ACEOF
11593 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11602 for ac_func in fork vfork
11604 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11605 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11606 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11607 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11608 echo $ECHO_N "(cached
) $ECHO_C" >&6
11610 cat >conftest.$ac_ext <<_ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11618 #define $ac_func innocuous_$ac_func
11620 /* System header to define __stub macros and hopefully few prototypes,
11621 which can conflict with char $ac_func (); below.
11622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11623 <limits.h> exists even on freestanding compilers. */
11626 # include <limits.h>
11628 # include <assert.h>
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11640 /* The GNU C library defines this for functions which it implements
11641 to always fail with ENOSYS. Some functions are actually named
11642 something starting with __ and the normal name is an alias. */
11643 #if defined __stub_$ac_func || defined __stub___$ac_func
11650 return $ac_func ();
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (ac_try="$ac_link"
11657 case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_link") 2>conftest.er1
11664 grep -v '^ *+' conftest.er1 >conftest.err
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11668 (exit $ac_status); } && {
11669 test -z "$ac_c_werror_flag" ||
11670 test ! -s conftest.err
11671 } && test -s conftest$ac_exeext &&
11672 $as_test_x conftest$ac_exeext; then
11673 eval "$as_ac_var=yes"
11675 echo "$as_me: failed program was
:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 eval "$as_ac_var=no
"
11681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11682 conftest$ac_exeext conftest.$ac_ext
11684 ac_res=`eval echo '${'$as_ac_var'}'`
11685 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11686 echo "${ECHO_T}$ac_res" >&6; }
11687 if test `eval echo '${'$as_ac_var'}'` = yes; then
11688 cat >>confdefs.h <<_ACEOF
11689 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11695 if test "x
$ac_cv_func_fork" = xyes; then
11696 { echo "$as_me:$LINENO: checking
for working fork
" >&5
11697 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
11698 if test "${ac_cv_func_fork_works+set}" = set; then
11699 echo $ECHO_N "(cached
) $ECHO_C" >&6
11701 if test "$cross_compiling" = yes; then
11702 ac_cv_func_fork_works=cross
11704 cat >conftest.$ac_ext <<_ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11710 $ac_includes_default
11715 /* By Ruediger Kuhlmann. */
11716 return fork () < 0;
11722 rm -f conftest$ac_exeext
11723 if { (ac_try="$ac_link"
11724 case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_link") 2>&5
11731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11733 { (case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_try") 2>&5
11740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 ac_cv_func_fork_works=yes
11744 echo "$as_me: program exited with status
$ac_status" >&5
11745 echo "$as_me: failed program was
:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11748 ( exit $ac_status )
11749 ac_cv_func_fork_works=no
11751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11756 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
11757 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11760 ac_cv_func_fork_works=$ac_cv_func_fork
11762 if test "x
$ac_cv_func_fork_works" = xcross; then
11764 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11765 # Override, as these systems have only a dummy fork() stub
11766 ac_cv_func_fork_works=no
11769 ac_cv_func_fork_works=yes
11772 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
11773 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
11775 ac_cv_func_vfork_works=$ac_cv_func_vfork
11776 if test "x
$ac_cv_func_vfork" = xyes; then
11777 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
11778 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
11779 if test "${ac_cv_func_vfork_works+set}" = set; then
11780 echo $ECHO_N "(cached
) $ECHO_C" >&6
11782 if test "$cross_compiling" = yes; then
11783 ac_cv_func_vfork_works=cross
11785 cat >conftest.$ac_ext <<_ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 /* Thanks to Paul Eggert for this test. */
11792 $ac_includes_default
11793 #include <sys/wait.h>
11794 #ifdef HAVE_VFORK_H
11795 # include <vfork.h>
11797 /* On some sparc systems, changes by the child to local and incoming
11798 argument registers are propagated back to the parent. The compiler
11799 is told about this with #include <vfork.h>, but some compilers
11800 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11801 static variable whose address is put into a register that is
11802 clobbered by the vfork. */
11805 sparc_address_test (int arg)
11807 sparc_address_test (arg) int arg;
11810 static pid_t child;
11828 pid_t parent = getpid ();
11831 sparc_address_test (0);
11836 /* Here is another test for sparc vfork register problems. This
11837 test uses lots of local variables, at least as many local
11838 variables as main has allocated so far including compiler
11839 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11840 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11841 reuse the register of parent for one of the local variables,
11842 since it will think that parent can't possibly be used any more
11843 in this routine. Assigning to the local variable will thus
11844 munge parent in the parent process. */
11846 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11847 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11848 /* Convince the compiler that p..p7 are live; otherwise, it might
11849 use the same hardware register for all 8 local variables. */
11850 if (p != p1 || p != p2 || p != p3 || p != p4
11851 || p != p5 || p != p6 || p != p7)
11854 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11855 from child file descriptors. If the child closes a descriptor
11856 before it execs or exits, this munges the parent's descriptor
11857 as well. Test for this by closing stdout in the child. */
11858 _exit(close(fileno(stdout)) != 0);
11863 while (wait(&status) != child)
11866 /* Was there some problem with vforking? */
11869 /* Did the child fail? (This shouldn't happen.) */
11872 /* Did the vfork/compiler bug occur? */
11873 || parent != getpid()
11875 /* Did the file descriptor bug occur? */
11876 || fstat(fileno(stdout), &st) != 0
11881 rm -f conftest$ac_exeext
11882 if { (ac_try="$ac_link"
11883 case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_link") 2>&5
11890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 ac_cv_func_vfork_works=yes
11903 echo "$as_me: program exited with status
$ac_status" >&5
11904 echo "$as_me: failed program was
:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 ( exit $ac_status )
11908 ac_cv_func_vfork_works=no
11910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11915 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
11916 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11919 if test "x
$ac_cv_func_fork_works" = xcross; then
11920 ac_cv_func_vfork_works=$ac_cv_func_vfork
11921 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
11922 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
11925 if test "x
$ac_cv_func_vfork_works" = xyes; then
11927 cat >>confdefs.h <<\_ACEOF
11928 #define HAVE_WORKING_VFORK 1
11933 cat >>confdefs.h <<\_ACEOF
11938 if test "x
$ac_cv_func_fork_works" = xyes; then
11940 cat >>confdefs.h <<\_ACEOF
11941 #define HAVE_WORKING_FORK 1
11946 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
11947 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
11948 if test "${ac_cv_sys_largefile_source+set}" = set; then
11949 echo $ECHO_N "(cached
) $ECHO_C" >&6
11952 cat >conftest.$ac_ext <<_ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958 #include <sys/types.h> /* for off_t */
11963 int (*fp) (FILE *, off_t, int) = fseeko;
11964 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (ac_try="$ac_link"
11971 case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_link") 2>conftest.er1
11978 grep -v '^ *+' conftest.er1 >conftest.err
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11982 (exit $ac_status); } && {
11983 test -z "$ac_c_werror_flag" ||
11984 test ! -s conftest.err
11985 } && test -s conftest$ac_exeext &&
11986 $as_test_x conftest$ac_exeext; then
11987 ac_cv_sys_largefile_source=no; break
11989 echo "$as_me: failed program was
:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11996 conftest$ac_exeext conftest.$ac_ext
11997 cat >conftest.$ac_ext <<_ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 #define _LARGEFILE_SOURCE 1
12004 #include <sys/types.h> /* for off_t */
12009 int (*fp) (FILE *, off_t, int) = fseeko;
12010 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12015 rm -f conftest.$ac_objext conftest$ac_exeext
12016 if { (ac_try="$ac_link"
12017 case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_link") 2>conftest.er1
12024 grep -v '^ *+' conftest.er1 >conftest.err
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12028 (exit $ac_status); } && {
12029 test -z "$ac_c_werror_flag" ||
12030 test ! -s conftest.err
12031 } && test -s conftest$ac_exeext &&
12032 $as_test_x conftest$ac_exeext; then
12033 ac_cv_sys_largefile_source=1; break
12035 echo "$as_me: failed program was
:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12042 conftest$ac_exeext conftest.$ac_ext
12043 ac_cv_sys_largefile_source=unknown
12047 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
12048 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12049 case $ac_cv_sys_largefile_source in #(
12052 cat >>confdefs.h <<_ACEOF
12053 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12059 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12060 # in glibc 2.1.3, but that breaks too many other things.
12061 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12062 if test $ac_cv_sys_largefile_source != unknown; then
12064 cat >>confdefs.h <<\_ACEOF
12065 #define HAVE_FSEEKO 1
12070 if test $ac_cv_c_compiler_gnu = yes; then
12071 { echo "$as_me:$LINENO: checking whether
$CC needs
-traditional" >&5
12072 echo $ECHO_N "checking whether
$CC needs
-traditional...
$ECHO_C" >&6; }
12073 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12074 echo $ECHO_N "(cached
) $ECHO_C" >&6
12076 ac_pattern="Autoconf.
*'x'"
12077 cat >conftest.$ac_ext <<_ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12086 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12087 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12088 ac_cv_prog_gcc_traditional=yes
12090 ac_cv_prog_gcc_traditional=no
12095 if test $ac_cv_prog_gcc_traditional = no; then
12096 cat >conftest.$ac_ext <<_ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 #include <termio.h>
12105 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12106 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12107 ac_cv_prog_gcc_traditional=yes
12113 { echo "$as_me:$LINENO: result
: $ac_cv_prog_gcc_traditional" >&5
12114 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12115 if test $ac_cv_prog_gcc_traditional = yes; then
12116 CC="$CC -traditional"
12120 # XXX: these are commented out until we determine whether it matters if our malloc()
12121 # acts exactly like glibc's or not
12124 { echo "$as_me:$LINENO: checking
for working memcmp
" >&5
12125 echo $ECHO_N "checking
for working memcmp...
$ECHO_C" >&6; }
12126 if test "${ac_cv_func_memcmp_working+set}" = set; then
12127 echo $ECHO_N "(cached
) $ECHO_C" >&6
12129 if test "$cross_compiling" = yes; then
12130 ac_cv_func_memcmp_working=no
12132 cat >conftest.$ac_ext <<_ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 $ac_includes_default
12143 /* Some versions of memcmp are not 8-bit clean. */
12144 char c0 = '\100', c1 = '\200', c2 = '\201';
12145 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12148 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12149 or more and with at least one buffer not starting on a 4-byte boundary.
12150 William Lewis provided this test program. */
12155 for (i = 0; i < 4; i++)
12159 strcpy (a, "--------01111111");
12160 strcpy (b, "--------10000000");
12161 if (memcmp (a, b, 16) >= 0)
12171 rm -f conftest$ac_exeext
12172 if { (ac_try="$ac_link"
12173 case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_link") 2>&5
12180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12182 { (case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_try") 2>&5
12189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12190 (exit $ac_status); }; }; then
12191 ac_cv_func_memcmp_working=yes
12193 echo "$as_me: program exited with status
$ac_status" >&5
12194 echo "$as_me: failed program was
:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ( exit $ac_status )
12198 ac_cv_func_memcmp_working=no
12200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12205 { echo "$as_me:$LINENO: result
: $ac_cv_func_memcmp_working" >&5
12206 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12207 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12208 *" memcmp.
$ac_objext "* ) ;;
12209 *) LIBOBJS="$LIBOBJS memcmp.
$ac_objext"
12218 for ac_header in $ac_header_list
12220 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12221 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12222 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12223 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12224 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12225 echo $ECHO_N "(cached
) $ECHO_C" >&6
12227 ac_res=`eval echo '${'$as_ac_Header'}'`
12228 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12229 echo "${ECHO_T}$ac_res" >&6; }
12231 # Is the header compilable?
12232 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12233 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240 $ac_includes_default
12241 #include <$ac_header>
12243 rm -f conftest.$ac_objext
12244 if { (ac_try="$ac_compile"
12245 case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_compile") 2>conftest.er1
12252 grep -v '^ *+' conftest.er1 >conftest.err
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12256 (exit $ac_status); } && {
12257 test -z "$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 } && test -s conftest.$ac_objext; then
12260 ac_header_compiler=yes
12262 echo "$as_me: failed program was
:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ac_header_compiler=no
12268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12270 echo "${ECHO_T}$ac_header_compiler" >&6; }
12272 # Is the header present?
12273 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12274 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12275 cat >conftest.$ac_ext <<_ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12281 #include <$ac_header>
12283 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12284 case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12291 grep -v '^ *+' conftest.er1 >conftest.err
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12295 (exit $ac_status); } >/dev/null && {
12296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12297 test ! -s conftest.err
12299 ac_header_preproc=yes
12301 echo "$as_me: failed program was
:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12304 ac_header_preproc=no
12307 rm -f conftest.err conftest.$ac_ext
12308 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12309 echo "${ECHO_T}$ac_header_preproc" >&6; }
12311 # So? What about this header?
12312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12314 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12315 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12316 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12318 ac_header_preproc=yes
12321 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12322 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12323 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12324 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12325 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12326 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12327 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12328 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12329 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12331 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12332 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12334 ## ------------------------------- ##
12335 ## Report this to www.asterisk.org ##
12336 ## ------------------------------- ##
12338 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12341 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12342 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12343 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12344 echo $ECHO_N "(cached
) $ECHO_C" >&6
12346 eval "$as_ac_Header=\
$ac_header_preproc"
12348 ac_res=`eval echo '${'$as_ac_Header'}'`
12349 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12350 echo "${ECHO_T}$ac_res" >&6; }
12353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12354 cat >>confdefs.h <<_ACEOF
12355 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12370 for ac_func in $ac_func_list
12372 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12373 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12374 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12375 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12376 echo $ECHO_N "(cached
) $ECHO_C" >&6
12378 cat >conftest.$ac_ext <<_ACEOF
12381 cat confdefs.h >>conftest.$ac_ext
12382 cat >>conftest.$ac_ext <<_ACEOF
12383 /* end confdefs.h. */
12384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12386 #define $ac_func innocuous_$ac_func
12388 /* System header to define __stub macros and hopefully few prototypes,
12389 which can conflict with char $ac_func (); below.
12390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12391 <limits.h> exists even on freestanding compilers. */
12394 # include <limits.h>
12396 # include <assert.h>
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12408 /* The GNU C library defines this for functions which it implements
12409 to always fail with ENOSYS. Some functions are actually named
12410 something starting with __ and the normal name is an alias. */
12411 #if defined __stub_$ac_func || defined __stub___$ac_func
12418 return $ac_func ();
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_link") 2>conftest.er1
12432 grep -v '^ *+' conftest.er1 >conftest.err
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12436 (exit $ac_status); } && {
12437 test -z "$ac_c_werror_flag" ||
12438 test ! -s conftest.err
12439 } && test -s conftest$ac_exeext &&
12440 $as_test_x conftest$ac_exeext; then
12441 eval "$as_ac_var=yes"
12443 echo "$as_me: failed program was
:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 eval "$as_ac_var=no
"
12449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12450 conftest$ac_exeext conftest.$ac_ext
12452 ac_res=`eval echo '${'$as_ac_var'}'`
12453 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12454 echo "${ECHO_T}$ac_res" >&6; }
12455 if test `eval echo '${'$as_ac_var'}'` = yes; then
12456 cat >>confdefs.h <<_ACEOF
12457 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12479 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
12480 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
12481 if test "${ac_cv_func_working_mktime+set}" = set; then
12482 echo $ECHO_N "(cached
) $ECHO_C" >&6
12484 if test "$cross_compiling" = yes; then
12485 ac_cv_func_working_mktime=no
12487 cat >conftest.$ac_ext <<_ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12493 /* Test program from Paul Eggert and Tony Leneis. */
12494 #ifdef TIME_WITH_SYS_TIME
12495 # include <sys/time.h>
12498 # ifdef HAVE_SYS_TIME_H
12499 # include <sys/time.h>
12505 #include <stdlib.h>
12507 #ifdef HAVE_UNISTD_H
12508 # include <unistd.h>
12512 # define alarm(X) /* empty */
12515 /* Work around redefinition to rpl_putenv by other config tests. */
12518 static time_t time_t_max;
12519 static time_t time_t_min;
12521 /* Values we'll use to set the TZ environment variable. */
12522 static char *tz_strings[] = {
12523 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
12524 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
12526 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12528 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
12529 Based on a problem report from Andreas Jaeger. */
12531 spring_forward_gap ()
12533 /* glibc (up to about 1998-10-07) failed this test. */
12536 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
12537 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
12538 on systems that don't support the Olson extension, or don't have the
12539 full zoneinfo tables installed. */
12540 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
12549 return mktime (&tm) != (time_t) -1;
12557 return ! (lt = localtime (&now)) || mktime (lt) == now;
12564 return (mktime_test1 (now)
12565 && mktime_test1 ((time_t) (time_t_max - now))
12566 && mktime_test1 ((time_t) (time_t_min + now)));
12572 /* Based on code from Ariel Faigon. */
12582 return tm.tm_mon == 2 && tm.tm_mday == 31;
12591 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12592 now = mktime (&tm);
12593 if (now != (time_t) -1)
12595 struct tm *lt = localtime (&now);
12597 && lt->tm_year == tm.tm_year
12598 && lt->tm_mon == tm.tm_mon
12599 && lt->tm_mday == tm.tm_mday
12600 && lt->tm_hour == tm.tm_hour
12601 && lt->tm_min == tm.tm_min
12602 && lt->tm_sec == tm.tm_sec
12603 && lt->tm_yday == tm.tm_yday
12604 && lt->tm_wday == tm.tm_wday
12605 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12606 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12615 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12616 ignoring leap seconds. */
12617 unsigned long int answer = 2527315200UL;
12621 tm.tm_year = 2050 - 1900;
12624 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12627 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
12628 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
12629 on systems that don't support the Olson extension, or don't have the
12630 full zoneinfo tables installed. */
12631 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
12635 /* Check that the result is either a failure, or close enough
12636 to the correct answer that we can assume the discrepancy is
12637 due to leap seconds. */
12638 return (t == (time_t) -1
12639 || (0 < t && answer - 120 <= t && t <= answer + 120));
12648 /* This test makes some buggy mktime implementations loop.
12649 Give up after 60 seconds; a mktime slower than that
12650 isn't worth using anyway. */
12653 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12656 if ((time_t) -1 < 0)
12657 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
12659 delta = time_t_max / 997; /* a suitable prime number */
12660 for (i = 0; i < N_STRINGS; i++)
12663 putenv (tz_strings[i]);
12665 for (t = 0; t <= time_t_max - delta; t += delta)
12666 if (! mktime_test (t))
12668 if (! (mktime_test ((time_t) 1)
12669 && mktime_test ((time_t) (60 * 60))
12670 && mktime_test ((time_t) (60 * 60 * 24))))
12673 for (j = 1; 0 < j; j *= 2)
12674 if (! bigtime_test (j))
12676 if (! bigtime_test (j - 1))
12679 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12682 rm -f conftest$ac_exeext
12683 if { (ac_try="$ac_link"
12684 case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_link") 2>&5
12691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12693 { (case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_try") 2>&5
12700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12701 (exit $ac_status); }; }; then
12702 ac_cv_func_working_mktime=yes
12704 echo "$as_me: program exited with status
$ac_status" >&5
12705 echo "$as_me: failed program was
:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12708 ( exit $ac_status )
12709 ac_cv_func_working_mktime=no
12711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12716 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
12717 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
12718 if test $ac_cv_func_working_mktime = no; then
12719 case " $LIBOBJS " in
12720 *" mktime.
$ac_objext "* ) ;;
12721 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
12729 for ac_header in stdlib.h unistd.h
12731 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12732 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12733 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12734 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12735 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12736 echo $ECHO_N "(cached
) $ECHO_C" >&6
12738 ac_res=`eval echo '${'$as_ac_Header'}'`
12739 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12740 echo "${ECHO_T}$ac_res" >&6; }
12742 # Is the header compilable?
12743 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12744 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12745 cat >conftest.$ac_ext <<_ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 $ac_includes_default
12752 #include <$ac_header>
12754 rm -f conftest.$ac_objext
12755 if { (ac_try="$ac_compile"
12756 case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12760 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_compile") 2>conftest.er1
12763 grep -v '^ *+' conftest.er1 >conftest.err
12765 cat conftest.err >&5
12766 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12767 (exit $ac_status); } && {
12768 test -z "$ac_c_werror_flag" ||
12769 test ! -s conftest.err
12770 } && test -s conftest.$ac_objext; then
12771 ac_header_compiler=yes
12773 echo "$as_me: failed program was
:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12776 ac_header_compiler=no
12779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12780 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12781 echo "${ECHO_T}$ac_header_compiler" >&6; }
12783 # Is the header present?
12784 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12785 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12786 cat >conftest.$ac_ext <<_ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12792 #include <$ac_header>
12794 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12795 case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12802 grep -v '^ *+' conftest.er1 >conftest.err
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12806 (exit $ac_status); } >/dev/null && {
12807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12810 ac_header_preproc=yes
12812 echo "$as_me: failed program was
:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 ac_header_preproc=no
12818 rm -f conftest.err conftest.$ac_ext
12819 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12820 echo "${ECHO_T}$ac_header_preproc" >&6; }
12822 # So? What about this header?
12823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12825 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12826 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12827 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12829 ac_header_preproc=yes
12832 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12833 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12834 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12835 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12836 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12837 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12838 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12839 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12840 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12842 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12843 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12845 ## ------------------------------- ##
12846 ## Report this to www.asterisk.org ##
12847 ## ------------------------------- ##
12849 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12852 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12853 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12854 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12855 echo $ECHO_N "(cached
) $ECHO_C" >&6
12857 eval "$as_ac_Header=\
$ac_header_preproc"
12859 ac_res=`eval echo '${'$as_ac_Header'}'`
12860 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12861 echo "${ECHO_T}$ac_res" >&6; }
12864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12865 cat >>confdefs.h <<_ACEOF
12866 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12874 for ac_func in getpagesize
12876 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12877 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12878 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12879 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12880 echo $ECHO_N "(cached
) $ECHO_C" >&6
12882 cat >conftest.$ac_ext <<_ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12890 #define $ac_func innocuous_$ac_func
12892 /* System header to define __stub macros and hopefully few prototypes,
12893 which can conflict with char $ac_func (); below.
12894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12895 <limits.h> exists even on freestanding compilers. */
12898 # include <limits.h>
12900 # include <assert.h>
12905 /* Override any GCC internal prototype to avoid an error.
12906 Use char because int might match the return type of a GCC
12907 builtin and then its argument prototype would still apply. */
12912 /* The GNU C library defines this for functions which it implements
12913 to always fail with ENOSYS. Some functions are actually named
12914 something starting with __ and the normal name is an alias. */
12915 #if defined __stub_$ac_func || defined __stub___$ac_func
12922 return $ac_func ();
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (ac_try="$ac_link"
12929 case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_link") 2>conftest.er1
12936 grep -v '^ *+' conftest.er1 >conftest.err
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12940 (exit $ac_status); } && {
12941 test -z "$ac_c_werror_flag" ||
12942 test ! -s conftest.err
12943 } && test -s conftest$ac_exeext &&
12944 $as_test_x conftest$ac_exeext; then
12945 eval "$as_ac_var=yes"
12947 echo "$as_me: failed program was
:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 eval "$as_ac_var=no
"
12953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12954 conftest$ac_exeext conftest.$ac_ext
12956 ac_res=`eval echo '${'$as_ac_var'}'`
12957 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12958 echo "${ECHO_T}$ac_res" >&6; }
12959 if test `eval echo '${'$as_ac_var'}'` = yes; then
12960 cat >>confdefs.h <<_ACEOF
12961 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12967 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
12968 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
12969 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12970 echo $ECHO_N "(cached
) $ECHO_C" >&6
12972 if test "$cross_compiling" = yes; then
12973 ac_cv_func_mmap_fixed_mapped=no
12975 cat >conftest.$ac_ext <<_ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12981 $ac_includes_default
12982 /* malloc might have been renamed as rpl_malloc. */
12985 /* Thanks to Mike Haertel and Jim Avera for this test.
12986 Here is a matrix of mmap possibilities:
12987 mmap private not fixed
12988 mmap private fixed at somewhere currently unmapped
12989 mmap private fixed at somewhere already mapped
12990 mmap shared not fixed
12991 mmap shared fixed at somewhere currently unmapped
12992 mmap shared fixed at somewhere already mapped
12993 For private mappings, we should verify that changes cannot be read()
12994 back from the file, nor mmap's back from the file at a different
12995 address. (There have been systems where private was not correctly
12996 implemented like the infamous i386 svr4.0, and systems where the
12997 VM page cache was not coherent with the file system buffer cache
12998 like early versions of FreeBSD and possibly contemporary NetBSD.)
12999 For shared mappings, we should conversely verify that changes get
13000 propagated back to all the places they're supposed to be.
13002 Grep wants private fixed already mapped.
13003 The main things grep needs to know about mmap are:
13004 * does it exist and is it safe to write into the mmap'd area
13005 * how to use it (BSD variants) */
13008 #include <sys/mman.h>
13010 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13014 /* This mess was copied from the GNU getpagesize.h. */
13015 #ifndef HAVE_GETPAGESIZE
13016 /* Assume that all systems that can run configure have sys/param.h. */
13017 # ifndef HAVE_SYS_PARAM_H
13018 # define HAVE_SYS_PARAM_H 1
13021 # ifdef _SC_PAGESIZE
13022 # define getpagesize() sysconf(_SC_PAGESIZE)
13023 # else /* no _SC_PAGESIZE */
13024 # ifdef HAVE_SYS_PARAM_H
13025 # include <sys/param.h>
13026 # ifdef EXEC_PAGESIZE
13027 # define getpagesize() EXEC_PAGESIZE
13028 # else /* no EXEC_PAGESIZE */
13030 # define getpagesize() NBPG * CLSIZE
13033 # endif /* no CLSIZE */
13034 # else /* no NBPG */
13036 # define getpagesize() NBPC
13037 # else /* no NBPC */
13039 # define getpagesize() PAGESIZE
13040 # endif /* PAGESIZE */
13041 # endif /* no NBPC */
13042 # endif /* no NBPG */
13043 # endif /* no EXEC_PAGESIZE */
13044 # else /* no HAVE_SYS_PARAM_H */
13045 # define getpagesize() 8192 /* punt totally */
13046 # endif /* no HAVE_SYS_PARAM_H */
13047 # endif /* no _SC_PAGESIZE */
13049 #endif /* no HAVE_GETPAGESIZE */
13054 char *data, *data2, *data3;
13058 pagesize = getpagesize ();
13060 /* First, make a file with some known garbage in it. */
13061 data = (char *) malloc (pagesize);
13064 for (i = 0; i < pagesize; ++i)
13065 *(data + i) = rand ();
13067 fd = creat ("conftest.mmap
", 0600);
13070 if (write (fd, data, pagesize) != pagesize)
13074 /* Next, try to mmap the file at a fixed address which already has
13075 something else allocated at it. If we can, also make sure that
13076 we see the same garbage. */
13077 fd = open ("conftest.mmap
", O_RDWR);
13080 data2 = (char *) malloc (2 * pagesize);
13083 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13084 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13085 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13087 for (i = 0; i < pagesize; ++i)
13088 if (*(data + i) != *(data2 + i))
13091 /* Finally, make sure that changes to the mapped area do not
13092 percolate back to the file as seen by read(). (This is a bug on
13093 some variants of i386 svr4.0.) */
13094 for (i = 0; i < pagesize; ++i)
13095 *(data2 + i) = *(data2 + i) + 1;
13096 data3 = (char *) malloc (pagesize);
13099 if (read (fd, data3, pagesize) != pagesize)
13101 for (i = 0; i < pagesize; ++i)
13102 if (*(data + i) != *(data3 + i))
13108 rm -f conftest$ac_exeext
13109 if { (ac_try="$ac_link"
13110 case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_link") 2>&5
13117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13119 { (case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13123 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_try") 2>&5
13126 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13127 (exit $ac_status); }; }; then
13128 ac_cv_func_mmap_fixed_mapped=yes
13130 echo "$as_me: program exited with status
$ac_status" >&5
13131 echo "$as_me: failed program was
:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13134 ( exit $ac_status )
13135 ac_cv_func_mmap_fixed_mapped=no
13137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13142 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
13143 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13144 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13146 cat >>confdefs.h <<\_ACEOF
13147 #define HAVE_MMAP 1
13151 rm -f conftest.mmap
13155 for ac_header in sys/select.h sys/socket.h
13157 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13158 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13159 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13160 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13161 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13162 echo $ECHO_N "(cached
) $ECHO_C" >&6
13164 ac_res=`eval echo '${'$as_ac_Header'}'`
13165 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13166 echo "${ECHO_T}$ac_res" >&6; }
13168 # Is the header compilable?
13169 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13170 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
13171 cat >conftest.$ac_ext <<_ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13177 $ac_includes_default
13178 #include <$ac_header>
13180 rm -f conftest.$ac_objext
13181 if { (ac_try="$ac_compile"
13182 case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_compile") 2>conftest.er1
13189 grep -v '^ *+' conftest.er1 >conftest.err
13191 cat conftest.err >&5
13192 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13193 (exit $ac_status); } && {
13194 test -z "$ac_c_werror_flag" ||
13195 test ! -s conftest.err
13196 } && test -s conftest.$ac_objext; then
13197 ac_header_compiler=yes
13199 echo "$as_me: failed program was
:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13202 ac_header_compiler=no
13205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13206 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13207 echo "${ECHO_T}$ac_header_compiler" >&6; }
13209 # Is the header present?
13210 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
13211 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 #include <$ac_header>
13220 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13221 case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13228 grep -v '^ *+' conftest.er1 >conftest.err
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13232 (exit $ac_status); } >/dev/null && {
13233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13236 ac_header_preproc=yes
13238 echo "$as_me: failed program was
:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13241 ac_header_preproc=no
13244 rm -f conftest.err conftest.$ac_ext
13245 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13246 echo "${ECHO_T}$ac_header_preproc" >&6; }
13248 # So? What about this header?
13249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13251 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
13252 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13253 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
13254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
13255 ac_header_preproc=yes
13258 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
13259 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
13260 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
13261 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
13262 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
13263 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
13264 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
13265 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
13266 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
13267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
13268 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
13269 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
13271 ## ------------------------------- ##
13272 ## Report this to www.asterisk.org ##
13273 ## ------------------------------- ##
13275 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
13278 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13279 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13280 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13281 echo $ECHO_N "(cached
) $ECHO_C" >&6
13283 eval "$as_ac_Header=\
$ac_header_preproc"
13285 ac_res=`eval echo '${'$as_ac_Header'}'`
13286 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13287 echo "${ECHO_T}$ac_res" >&6; }
13290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13291 cat >>confdefs.h <<_ACEOF
13292 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
13299 { echo "$as_me:$LINENO: checking types of arguments
for select" >&5
13300 echo $ECHO_N "checking types of arguments
for select...
$ECHO_C" >&6; }
13301 if test "${ac_cv_func_select_args+set}" = set; then
13302 echo $ECHO_N "(cached
) $ECHO_C" >&6
13304 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13305 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13306 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13307 cat >conftest.$ac_ext <<_ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 $ac_includes_default
13314 #ifdef HAVE_SYS_SELECT_H
13315 # include <sys/select.h>
13317 #ifdef HAVE_SYS_SOCKET_H
13318 # include <sys/socket.h>
13324 extern int select ($ac_arg1,
13325 $ac_arg234, $ac_arg234, $ac_arg234,
13331 rm -f conftest.$ac_objext
13332 if { (ac_try="$ac_compile"
13333 case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_compile") 2>conftest.er1
13340 grep -v '^ *+' conftest.er1 >conftest.err
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13344 (exit $ac_status); } && {
13345 test -z "$ac_c_werror_flag" ||
13346 test ! -s conftest.err
13347 } && test -s conftest.$ac_objext; then
13348 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13350 echo "$as_me: failed program was
:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13360 # Provide a safe default value.
13361 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13364 { echo "$as_me:$LINENO: result
: $ac_cv_func_select_args" >&5
13365 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13366 ac_save_IFS=$IFS; IFS=','
13367 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13371 cat >>confdefs.h <<_ACEOF
13372 #define SELECT_TYPE_ARG1 $1
13376 cat >>confdefs.h <<_ACEOF
13377 #define SELECT_TYPE_ARG234 ($2)
13381 cat >>confdefs.h <<_ACEOF
13382 #define SELECT_TYPE_ARG5 ($3)
13387 { echo "$as_me:$LINENO: checking
for function prototypes
" >&5
13388 echo $ECHO_N "checking
for function prototypes...
$ECHO_C" >&6; }
13389 if test "$ac_cv_prog_cc_c89" != no; then
13390 { echo "$as_me:$LINENO: result
: yes" >&5
13391 echo "${ECHO_T}yes" >&6; }
13393 cat >>confdefs.h <<\_ACEOF
13394 #define PROTOTYPES 1
13398 cat >>confdefs.h <<\_ACEOF
13399 #define __PROTOTYPES 1
13403 { echo "$as_me:$LINENO: result
: no
" >&5
13404 echo "${ECHO_T}no
" >&6; }
13407 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed
" >&5
13408 echo $ECHO_N "checking whether setvbuf arguments are reversed...
$ECHO_C" >&6; }
13409 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13410 echo $ECHO_N "(cached
) $ECHO_C" >&6
13412 ac_cv_func_setvbuf_reversed=no
13413 cat >conftest.$ac_ext <<_ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13421 int (setvbuf) (FILE *, int, char *, size_t);
13426 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13431 rm -f conftest.$ac_objext conftest$ac_exeext
13432 if { (ac_try="$ac_link"
13433 case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_link") 2>conftest.er1
13440 grep -v '^ *+' conftest.er1 >conftest.err
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13444 (exit $ac_status); } && {
13445 test -z "$ac_c_werror_flag" ||
13446 test ! -s conftest.err
13447 } && test -s conftest$ac_exeext &&
13448 $as_test_x conftest$ac_exeext; then
13449 cat >conftest.$ac_ext <<_ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13457 int (setvbuf) (FILE *, int, char *, size_t);
13462 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13467 rm -f conftest.$ac_objext conftest$ac_exeext
13468 if { (ac_try="$ac_link"
13469 case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_link") 2>conftest.er1
13476 grep -v '^ *+' conftest.er1 >conftest.err
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13480 (exit $ac_status); } && {
13481 test -z "$ac_c_werror_flag" ||
13482 test ! -s conftest.err
13483 } && test -s conftest$ac_exeext &&
13484 $as_test_x conftest$ac_exeext; then
13485 # It compiles and links either way, so it must not be declared
13486 # with a prototype and most likely this is a K&R C compiler.
13488 if test "$cross_compiling" = yes; then
13489 : # Assume setvbuf is not reversed when cross-compiling.
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 $ac_includes_default
13501 /* This call has the arguments reversed.
13502 A reversed system may check and see that the address of buf
13503 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13505 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13508 return 0; /* Non-reversed systems SEGV here. */
13513 rm -f conftest$ac_exeext
13514 if { (ac_try="$ac_link"
13515 case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13519 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_link") 2>&5
13522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13524 { (case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13528 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_try") 2>&5
13531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 ac_cv_func_setvbuf_reversed=yes
13535 echo "$as_me: program exited with status
$ac_status" >&5
13536 echo "$as_me: failed program was
:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13544 ac_cv_func_setvbuf_reversed=yes
13546 echo "$as_me: failed program was
:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13553 conftest$ac_exeext conftest.$ac_ext
13555 echo "$as_me: failed program was
:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13562 conftest$ac_exeext conftest.$ac_ext
13564 { echo "$as_me:$LINENO: result
: $ac_cv_func_setvbuf_reversed" >&5
13565 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13566 if test $ac_cv_func_setvbuf_reversed = yes; then
13568 cat >>confdefs.h <<\_ACEOF
13569 #define SETVBUF_REVERSED 1
13574 { echo "$as_me:$LINENO: checking
return type of signal handlers
" >&5
13575 echo $ECHO_N "checking
return type of signal handlers...
$ECHO_C" >&6; }
13576 if test "${ac_cv_type_signal+set}" = set; then
13577 echo $ECHO_N "(cached
) $ECHO_C" >&6
13579 cat >conftest.$ac_ext <<_ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13585 #include <sys/types.h>
13586 #include <signal.h>
13591 return *(signal (0, 0)) (0) == 1;
13596 rm -f conftest.$ac_objext
13597 if { (ac_try="$ac_compile"
13598 case "(($ac_try" in
13599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600 *) ac_try_echo=$ac_try;;
13602 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13603 (eval "$ac_compile") 2>conftest.er1
13605 grep -v '^ *+' conftest.er1 >conftest.err
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13609 (exit $ac_status); } && {
13610 test -z "$ac_c_werror_flag" ||
13611 test ! -s conftest.err
13612 } && test -s conftest.$ac_objext; then
13613 ac_cv_type_signal=int
13615 echo "$as_me: failed program was
:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13618 ac_cv_type_signal=void
13621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13623 { echo "$as_me:$LINENO: result
: $ac_cv_type_signal" >&5
13624 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13626 cat >>confdefs.h <<_ACEOF
13627 #define RETSIGTYPE $ac_cv_type_signal
13631 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash
" >&5
13632 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash...
$ECHO_C" >&6; }
13633 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13634 echo $ECHO_N "(cached
) $ECHO_C" >&6
13636 rm -f conftest.sym conftest.file
13637 echo >conftest.file
13638 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13639 if test "$cross_compiling" = yes; then
13640 ac_cv_func_lstat_dereferences_slashed_symlink=no
13642 cat >conftest.$ac_ext <<_ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 $ac_includes_default
13653 /* Linux will dereference the symlink and fail.
13654 That is better in the sense that it means we will not
13655 have to compile and use the lstat wrapper. */
13656 return lstat ("conftest.sym
/", &sbuf) == 0;
13661 rm -f conftest$ac_exeext
13662 if { (ac_try="$ac_link"
13663 case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_link") 2>&5
13670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13672 { (case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_try") 2>&5
13679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13683 echo "$as_me: program exited with status
$ac_status" >&5
13684 echo "$as_me: failed program was
:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13687 ( exit $ac_status )
13688 ac_cv_func_lstat_dereferences_slashed_symlink=no
13690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13695 # If the `ln -s' command failed, then we probably don't even
13696 # have an lstat function.
13697 ac_cv_func_lstat_dereferences_slashed_symlink=no
13699 rm -f conftest.sym conftest.file
13702 { echo "$as_me:$LINENO: result
: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13703 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13705 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13707 cat >>confdefs.h <<_ACEOF
13708 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13712 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13713 case " $LIBOBJS " in
13714 *" lstat.
$ac_objext "* ) ;;
13715 *) LIBOBJS="$LIBOBJS lstat.
$ac_objext"
13721 { echo "$as_me:$LINENO: checking whether stat accepts an empty string
" >&5
13722 echo $ECHO_N "checking whether stat accepts an empty string...
$ECHO_C" >&6; }
13723 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13724 echo $ECHO_N "(cached
) $ECHO_C" >&6
13726 if test "$cross_compiling" = yes; then
13727 ac_cv_func_stat_empty_string_bug=yes
13729 cat >conftest.$ac_ext <<_ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h. */
13735 $ac_includes_default
13740 return stat ("", &sbuf) == 0;
13745 rm -f conftest$ac_exeext
13746 if { (ac_try="$ac_link"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_link") 2>&5
13754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13756 { (case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_try") 2>&5
13763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13764 (exit $ac_status); }; }; then
13765 ac_cv_func_stat_empty_string_bug=no
13767 echo "$as_me: program exited with status
$ac_status" >&5
13768 echo "$as_me: failed program was
:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13771 ( exit $ac_status )
13772 ac_cv_func_stat_empty_string_bug=yes
13774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13779 { echo "$as_me:$LINENO: result
: $ac_cv_func_stat_empty_string_bug" >&5
13780 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13781 if test $ac_cv_func_stat_empty_string_bug = yes; then
13782 case " $LIBOBJS " in
13783 *" stat.
$ac_objext "* ) ;;
13784 *) LIBOBJS="$LIBOBJS stat.
$ac_objext"
13789 cat >>confdefs.h <<_ACEOF
13790 #define HAVE_STAT_EMPTY_STRING_BUG 1
13795 { echo "$as_me:$LINENO: checking
for working strcoll
" >&5
13796 echo $ECHO_N "checking
for working strcoll...
$ECHO_C" >&6; }
13797 if test "${ac_cv_func_strcoll_works+set}" = set; then
13798 echo $ECHO_N "(cached
) $ECHO_C" >&6
13800 if test "$cross_compiling" = yes; then
13801 ac_cv_func_strcoll_works=no
13803 cat >conftest.$ac_ext <<_ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13809 $ac_includes_default
13813 return (strcoll ("abc
", "def
") >= 0 ||
13814 strcoll ("ABC
", "DEF
") >= 0 ||
13815 strcoll ("123", "456") >= 0)
13820 rm -f conftest$ac_exeext
13821 if { (ac_try="$ac_link"
13822 case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_link") 2>&5
13829 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13831 { (case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_try") 2>&5
13838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 ac_cv_func_strcoll_works=yes
13842 echo "$as_me: program exited with status
$ac_status" >&5
13843 echo "$as_me: failed program was
:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13846 ( exit $ac_status )
13847 ac_cv_func_strcoll_works=no
13849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13854 { echo "$as_me:$LINENO: result
: $ac_cv_func_strcoll_works" >&5
13855 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13856 if test $ac_cv_func_strcoll_works = yes; then
13858 cat >>confdefs.h <<\_ACEOF
13859 #define HAVE_STRCOLL 1
13865 for ac_func in strftime
13867 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
13868 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
13869 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
13870 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
13871 echo $ECHO_N "(cached
) $ECHO_C" >&6
13873 cat >conftest.$ac_ext <<_ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13881 #define $ac_func innocuous_$ac_func
13883 /* System header to define __stub macros and hopefully few prototypes,
13884 which can conflict with char $ac_func (); below.
13885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13886 <limits.h> exists even on freestanding compilers. */
13889 # include <limits.h>
13891 # include <assert.h>
13896 /* Override any GCC internal prototype to avoid an error.
13897 Use char because int might match the return type of a GCC
13898 builtin and then its argument prototype would still apply. */
13903 /* The GNU C library defines this for functions which it implements
13904 to always fail with ENOSYS. Some functions are actually named
13905 something starting with __ and the normal name is an alias. */
13906 #if defined __stub_$ac_func || defined __stub___$ac_func
13913 return $ac_func ();
13918 rm -f conftest.$ac_objext conftest$ac_exeext
13919 if { (ac_try="$ac_link"
13920 case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_link") 2>conftest.er1
13927 grep -v '^ *+' conftest.er1 >conftest.err
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13931 (exit $ac_status); } && {
13932 test -z "$ac_c_werror_flag" ||
13933 test ! -s conftest.err
13934 } && test -s conftest$ac_exeext &&
13935 $as_test_x conftest$ac_exeext; then
13936 eval "$as_ac_var=yes"
13938 echo "$as_me: failed program was
:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 eval "$as_ac_var=no
"
13944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13945 conftest$ac_exeext conftest.$ac_ext
13947 ac_res=`eval echo '${'$as_ac_var'}'`
13948 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13949 echo "${ECHO_T}$ac_res" >&6; }
13950 if test `eval echo '${'$as_ac_var'}'` = yes; then
13951 cat >>confdefs.h <<_ACEOF
13952 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
13956 # strftime is in -lintl on SCO UNIX.
13957 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
13958 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
13959 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13960 echo $ECHO_N "(cached
) $ECHO_C" >&6
13962 ac_check_lib_save_LIBS=$LIBS
13963 LIBS="-lintl $LIBS"
13964 cat >conftest.$ac_ext <<_ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13981 return strftime ();
13986 rm -f conftest.$ac_objext conftest$ac_exeext
13987 if { (ac_try="$ac_link"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13992 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_link") 2>conftest.er1
13995 grep -v '^ *+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest$ac_exeext &&
14003 $as_test_x conftest$ac_exeext; then
14004 ac_cv_lib_intl_strftime=yes
14006 echo "$as_me: failed program was
:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14009 ac_cv_lib_intl_strftime=no
14012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14013 conftest$ac_exeext conftest.$ac_ext
14014 LIBS=$ac_check_lib_save_LIBS
14016 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
14017 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14018 if test $ac_cv_lib_intl_strftime = yes; then
14019 cat >>confdefs.h <<\_ACEOF
14020 #define HAVE_STRFTIME 1
14023 LIBS="-lintl $LIBS"
14029 { echo "$as_me:$LINENO: checking
for working strnlen
" >&5
14030 echo $ECHO_N "checking
for working strnlen...
$ECHO_C" >&6; }
14031 if test "${ac_cv_func_strnlen_working+set}" = set; then
14032 echo $ECHO_N "(cached
) $ECHO_C" >&6
14034 if test "$cross_compiling" = yes; then
14035 ac_cv_func_strnlen_working=no
14037 cat >conftest.$ac_ext <<_ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 $ac_includes_default
14049 #define S_LEN (sizeof S - 1)
14051 /* At least one implementation is buggy: that of AIX 4.3 would
14052 give strnlen (S, 1) == 3. */
14055 for (i = 0; i < S_LEN + 1; ++i)
14057 int expected = i <= S_LEN ? i : S_LEN;
14058 if (strnlen (S, i) != expected)
14067 rm -f conftest$ac_exeext
14068 if { (ac_try="$ac_link"
14069 case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_link") 2>&5
14076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14078 { (case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_try") 2>&5
14085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 ac_cv_func_strnlen_working=yes
14089 echo "$as_me: program exited with status
$ac_status" >&5
14090 echo "$as_me: failed program was
:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 ( exit $ac_status )
14094 ac_cv_func_strnlen_working=no
14096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14101 { echo "$as_me:$LINENO: result
: $ac_cv_func_strnlen_working" >&5
14102 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
14103 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
14104 *" strnlen.
$ac_objext "* ) ;;
14105 *) LIBOBJS="$LIBOBJS strnlen.
$ac_objext"
14110 { echo "$as_me:$LINENO: checking
for working strtod
" >&5
14111 echo $ECHO_N "checking
for working strtod...
$ECHO_C" >&6; }
14112 if test "${ac_cv_func_strtod+set}" = set; then
14113 echo $ECHO_N "(cached
) $ECHO_C" >&6
14115 if test "$cross_compiling" = yes; then
14116 ac_cv_func_strtod=no
14118 cat >conftest.$ac_ext <<_ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14125 $ac_includes_default
14133 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14134 char *string = " +69";
14137 value = strtod (string, &term);
14138 if (value != 69 || term != (string + 4))
14143 /* Under Solaris 2.4, strtod returns the wrong value for the
14144 terminating character under some conditions. */
14145 char *string = "NaN
";
14147 strtod (string, &term);
14148 if (term != string && *(term - 1) == 0)
14155 rm -f conftest$ac_exeext
14156 if { (ac_try="$ac_link"
14157 case "(($ac_try" in
14158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_link") 2>&5
14164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14166 { (case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_try") 2>&5
14173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 ac_cv_func_strtod=yes
14177 echo "$as_me: program exited with status
$ac_status" >&5
14178 echo "$as_me: failed program was
:" >&5
14179 sed 's/^/| /' conftest.$ac_ext >&5
14181 ( exit $ac_status )
14182 ac_cv_func_strtod=no
14184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14189 { echo "$as_me:$LINENO: result
: $ac_cv_func_strtod" >&5
14190 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14191 if test $ac_cv_func_strtod = no; then
14192 case " $LIBOBJS " in
14193 *" strtod.
$ac_objext "* ) ;;
14194 *) LIBOBJS="$LIBOBJS strtod.
$ac_objext"
14198 { echo "$as_me:$LINENO: checking
for pow
" >&5
14199 echo $ECHO_N "checking
for pow...
$ECHO_C" >&6; }
14200 if test "${ac_cv_func_pow+set}" = set; then
14201 echo $ECHO_N "(cached
) $ECHO_C" >&6
14203 cat >conftest.$ac_ext <<_ACEOF
14206 cat confdefs.h >>conftest.$ac_ext
14207 cat >>conftest.$ac_ext <<_ACEOF
14208 /* end confdefs.h. */
14209 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14211 #define pow innocuous_pow
14213 /* System header to define __stub macros and hopefully few prototypes,
14214 which can conflict with char pow (); below.
14215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14216 <limits.h> exists even on freestanding compilers. */
14219 # include <limits.h>
14221 # include <assert.h>
14226 /* Override any GCC internal prototype to avoid an error.
14227 Use char because int might match the return type of a GCC
14228 builtin and then its argument prototype would still apply. */
14233 /* The GNU C library defines this for functions which it implements
14234 to always fail with ENOSYS. Some functions are actually named
14235 something starting with __ and the normal name is an alias. */
14236 #if defined __stub_pow || defined __stub___pow
14248 rm -f conftest.$ac_objext conftest$ac_exeext
14249 if { (ac_try="$ac_link"
14250 case "(($ac_try" in
14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_link") 2>conftest.er1
14257 grep -v '^ *+' conftest.er1 >conftest.err
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14261 (exit $ac_status); } && {
14262 test -z "$ac_c_werror_flag" ||
14263 test ! -s conftest.err
14264 } && test -s conftest$ac_exeext &&
14265 $as_test_x conftest$ac_exeext; then
14268 echo "$as_me: failed program was
:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14275 conftest$ac_exeext conftest.$ac_ext
14277 { echo "$as_me:$LINENO: result
: $ac_cv_func_pow" >&5
14278 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14280 if test $ac_cv_func_pow = no; then
14281 { echo "$as_me:$LINENO: checking
for pow
in -lm" >&5
14282 echo $ECHO_N "checking
for pow
in -lm...
$ECHO_C" >&6; }
14283 if test "${ac_cv_lib_m_pow+set}" = set; then
14284 echo $ECHO_N "(cached
) $ECHO_C" >&6
14286 ac_check_lib_save_LIBS=$LIBS
14288 cat >conftest.$ac_ext <<_ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14295 /* Override any GCC internal prototype to avoid an error.
14296 Use char because int might match the return type of a GCC
14297 builtin and then its argument prototype would still apply. */
14310 rm -f conftest.$ac_objext conftest$ac_exeext
14311 if { (ac_try="$ac_link"
14312 case "(($ac_try" in
14313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314 *) ac_try_echo=$ac_try;;
14316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14317 (eval "$ac_link") 2>conftest.er1
14319 grep -v '^ *+' conftest.er1 >conftest.err
14321 cat conftest.err >&5
14322 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14323 (exit $ac_status); } && {
14324 test -z "$ac_c_werror_flag" ||
14325 test ! -s conftest.err
14326 } && test -s conftest$ac_exeext &&
14327 $as_test_x conftest$ac_exeext; then
14328 ac_cv_lib_m_pow=yes
14330 echo "$as_me: failed program was
:" >&5
14331 sed 's/^/| /' conftest.$ac_ext >&5
14336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14337 conftest$ac_exeext conftest.$ac_ext
14338 LIBS=$ac_check_lib_save_LIBS
14340 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_pow" >&5
14341 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14342 if test $ac_cv_lib_m_pow = yes; then
14345 { echo "$as_me:$LINENO: WARNING
: cannot
find library containing definition of pow
" >&5
14346 echo "$as_me: WARNING
: cannot
find library containing definition of pow
" >&2;}
14361 { echo "$as_me:$LINENO: checking whether utime accepts a null argument
" >&5
14362 echo $ECHO_N "checking whether utime accepts a null argument...
$ECHO_C" >&6; }
14363 if test "${ac_cv_func_utime_null+set}" = set; then
14364 echo $ECHO_N "(cached
) $ECHO_C" >&6
14366 rm -f conftest.data; >conftest.data
14367 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14368 if test "$cross_compiling" = yes; then
14369 ac_cv_func_utime_null=no
14371 cat >conftest.$ac_ext <<_ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14377 $ac_includes_default
14378 #ifdef HAVE_UTIME_H
14379 # include <utime.h>
14385 return ! (stat ("conftest.data
", &s) == 0
14386 && utime ("conftest.data
", 0) == 0
14387 && stat ("conftest.data
", &t) == 0
14388 && t.st_mtime >= s.st_mtime
14389 && t.st_mtime - s.st_mtime < 120);
14394 rm -f conftest$ac_exeext
14395 if { (ac_try="$ac_link"
14396 case "(($ac_try" in
14397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398 *) ac_try_echo=$ac_try;;
14400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14401 (eval "$ac_link") 2>&5
14403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14405 { (case "(($ac_try" in
14406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_try") 2>&5
14412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 ac_cv_func_utime_null=yes
14416 echo "$as_me: program exited with status
$ac_status" >&5
14417 echo "$as_me: failed program was
:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14420 ( exit $ac_status )
14421 ac_cv_func_utime_null=no
14423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14428 { echo "$as_me:$LINENO: result
: $ac_cv_func_utime_null" >&5
14429 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14430 if test $ac_cv_func_utime_null = yes; then
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_UTIME_NULL 1
14437 rm -f conftest.data
14440 for ac_func in vprintf
14442 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14443 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14444 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14445 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14446 echo $ECHO_N "(cached
) $ECHO_C" >&6
14448 cat >conftest.$ac_ext <<_ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14456 #define $ac_func innocuous_$ac_func
14458 /* System header to define __stub macros and hopefully few prototypes,
14459 which can conflict with char $ac_func (); below.
14460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14461 <limits.h> exists even on freestanding compilers. */
14464 # include <limits.h>
14466 # include <assert.h>
14471 /* Override any GCC internal prototype to avoid an error.
14472 Use char because int might match the return type of a GCC
14473 builtin and then its argument prototype would still apply. */
14478 /* The GNU C library defines this for functions which it implements
14479 to always fail with ENOSYS. Some functions are actually named
14480 something starting with __ and the normal name is an alias. */
14481 #if defined __stub_$ac_func || defined __stub___$ac_func
14488 return $ac_func ();
14493 rm -f conftest.$ac_objext conftest$ac_exeext
14494 if { (ac_try="$ac_link"
14495 case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14500 (eval "$ac_link") 2>conftest.er1
14502 grep -v '^ *+' conftest.er1 >conftest.err
14504 cat conftest.err >&5
14505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14506 (exit $ac_status); } && {
14507 test -z "$ac_c_werror_flag" ||
14508 test ! -s conftest.err
14509 } && test -s conftest$ac_exeext &&
14510 $as_test_x conftest$ac_exeext; then
14511 eval "$as_ac_var=yes"
14513 echo "$as_me: failed program was
:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14516 eval "$as_ac_var=no
"
14519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14520 conftest$ac_exeext conftest.$ac_ext
14522 ac_res=`eval echo '${'$as_ac_var'}'`
14523 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14524 echo "${ECHO_T}$ac_res" >&6; }
14525 if test `eval echo '${'$as_ac_var'}'` = yes; then
14526 cat >>confdefs.h <<_ACEOF
14527 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14530 { echo "$as_me:$LINENO: checking
for _doprnt
" >&5
14531 echo $ECHO_N "checking
for _doprnt...
$ECHO_C" >&6; }
14532 if test "${ac_cv_func__doprnt+set}" = set; then
14533 echo $ECHO_N "(cached
) $ECHO_C" >&6
14535 cat >conftest.$ac_ext <<_ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14541 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14543 #define _doprnt innocuous__doprnt
14545 /* System header to define __stub macros and hopefully few prototypes,
14546 which can conflict with char _doprnt (); below.
14547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14548 <limits.h> exists even on freestanding compilers. */
14551 # include <limits.h>
14553 # include <assert.h>
14558 /* Override any GCC internal prototype to avoid an error.
14559 Use char because int might match the return type of a GCC
14560 builtin and then its argument prototype would still apply. */
14565 /* The GNU C library defines this for functions which it implements
14566 to always fail with ENOSYS. Some functions are actually named
14567 something starting with __ and the normal name is an alias. */
14568 #if defined __stub__doprnt || defined __stub____doprnt
14580 rm -f conftest.$ac_objext conftest$ac_exeext
14581 if { (ac_try="$ac_link"
14582 case "(($ac_try" in
14583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14584 *) ac_try_echo=$ac_try;;
14586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14587 (eval "$ac_link") 2>conftest.er1
14589 grep -v '^ *+' conftest.er1 >conftest.err
14591 cat conftest.err >&5
14592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14593 (exit $ac_status); } && {
14594 test -z "$ac_c_werror_flag" ||
14595 test ! -s conftest.err
14596 } && test -s conftest$ac_exeext &&
14597 $as_test_x conftest$ac_exeext; then
14598 ac_cv_func__doprnt=yes
14600 echo "$as_me: failed program was
:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14603 ac_cv_func__doprnt=no
14606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14607 conftest$ac_exeext conftest.$ac_ext
14609 { echo "$as_me:$LINENO: result
: $ac_cv_func__doprnt" >&5
14610 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14611 if test $ac_cv_func__doprnt = yes; then
14613 cat >>confdefs.h <<\_ACEOF
14614 #define HAVE_DOPRNT 1
14672 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
14674 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14675 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14676 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14677 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14678 echo $ECHO_N "(cached
) $ECHO_C" >&6
14680 cat >conftest.$ac_ext <<_ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14688 #define $ac_func innocuous_$ac_func
14690 /* System header to define __stub macros and hopefully few prototypes,
14691 which can conflict with char $ac_func (); below.
14692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14693 <limits.h> exists even on freestanding compilers. */
14696 # include <limits.h>
14698 # include <assert.h>
14703 /* Override any GCC internal prototype to avoid an error.
14704 Use char because int might match the return type of a GCC
14705 builtin and then its argument prototype would still apply. */
14710 /* The GNU C library defines this for functions which it implements
14711 to always fail with ENOSYS. Some functions are actually named
14712 something starting with __ and the normal name is an alias. */
14713 #if defined __stub_$ac_func || defined __stub___$ac_func
14720 return $ac_func ();
14725 rm -f conftest.$ac_objext conftest$ac_exeext
14726 if { (ac_try="$ac_link"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14731 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_link") 2>conftest.er1
14734 grep -v '^ *+' conftest.er1 >conftest.err
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14738 (exit $ac_status); } && {
14739 test -z "$ac_c_werror_flag" ||
14740 test ! -s conftest.err
14741 } && test -s conftest$ac_exeext &&
14742 $as_test_x conftest$ac_exeext; then
14743 eval "$as_ac_var=yes"
14745 echo "$as_me: failed program was
:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14748 eval "$as_ac_var=no
"
14751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14752 conftest$ac_exeext conftest.$ac_ext
14754 ac_res=`eval echo '${'$as_ac_var'}'`
14755 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14756 echo "${ECHO_T}$ac_res" >&6; }
14757 if test `eval echo '${'$as_ac_var'}'` = yes; then
14758 cat >>confdefs.h <<_ACEOF
14759 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14766 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14767 { echo "$as_me:$LINENO: checking
for library containing gethostbyname_r
" >&5
14768 echo $ECHO_N "checking
for library containing gethostbyname_r...
$ECHO_C" >&6; }
14769 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14770 echo $ECHO_N "(cached
) $ECHO_C" >&6
14772 ac_func_search_save_LIBS=$LIBS
14773 cat >conftest.$ac_ext <<_ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h. */
14780 /* Override any GCC internal prototype to avoid an error.
14781 Use char because int might match the return type of a GCC
14782 builtin and then its argument prototype would still apply. */
14786 char gethostbyname_r ();
14790 return gethostbyname_r ();
14795 for ac_lib in '' socket nsl; do
14796 if test -z "$ac_lib"; then
14797 ac_res="none required
"
14800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14802 rm -f conftest.$ac_objext conftest$ac_exeext
14803 if { (ac_try="$ac_link"
14804 case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_link") 2>conftest.er1
14811 grep -v '^ *+' conftest.er1 >conftest.err
14813 cat conftest.err >&5
14814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14815 (exit $ac_status); } && {
14816 test -z "$ac_c_werror_flag" ||
14817 test ! -s conftest.err
14818 } && test -s conftest$ac_exeext &&
14819 $as_test_x conftest$ac_exeext; then
14820 ac_cv_search_gethostbyname_r=$ac_res
14822 echo "$as_me: failed program was
:" >&5
14823 sed 's/^/| /' conftest.$ac_ext >&5
14828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14830 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14834 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14837 ac_cv_search_gethostbyname_r=no
14839 rm conftest.$ac_ext
14840 LIBS=$ac_func_search_save_LIBS
14842 { echo "$as_me:$LINENO: result
: $ac_cv_search_gethostbyname_r" >&5
14843 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14844 ac_res=$ac_cv_search_gethostbyname_r
14845 if test "$ac_res" != no; then
14846 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14851 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
6 arguments
" >&5
14852 echo $ECHO_N "checking
for gethostbyname_r with
6 arguments...
$ECHO_C" >&6; }
14853 cat >conftest.$ac_ext <<_ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 #include <stdlib.h>
14864 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14869 rm -f conftest.$ac_objext conftest$ac_exeext
14870 if { (ac_try="$ac_link"
14871 case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14875 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_link") 2>conftest.er1
14878 grep -v '^ *+' conftest.er1 >conftest.err
14880 cat conftest.err >&5
14881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14882 (exit $ac_status); } && {
14883 test -z "$ac_c_werror_flag" ||
14884 test ! -s conftest.err
14885 } && test -s conftest$ac_exeext &&
14886 $as_test_x conftest$ac_exeext; then
14887 { echo "$as_me:$LINENO: result
: yes" >&5
14888 echo "${ECHO_T}yes" >&6; }
14890 cat >>confdefs.h <<\_ACEOF
14891 #define HAVE_GETHOSTBYNAME_R_6 1
14895 echo "$as_me: failed program was
:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14898 { echo "$as_me:$LINENO: result
: no
" >&5
14899 echo "${ECHO_T}no
" >&6; }
14903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14904 conftest$ac_exeext conftest.$ac_ext
14906 { echo "$as_me:$LINENO: checking
for gethostbyname_r with
5 arguments
" >&5
14907 echo $ECHO_N "checking
for gethostbyname_r with
5 arguments...
$ECHO_C" >&6; }
14908 cat >conftest.$ac_ext <<_ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14914 #include <stdlib.h>
14919 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14924 rm -f conftest.$ac_objext conftest$ac_exeext
14925 if { (ac_try="$ac_link"
14926 case "(($ac_try" in
14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14930 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14931 (eval "$ac_link") 2>conftest.er1
14933 grep -v '^ *+' conftest.er1 >conftest.err
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14937 (exit $ac_status); } && {
14938 test -z "$ac_c_werror_flag" ||
14939 test ! -s conftest.err
14940 } && test -s conftest$ac_exeext &&
14941 $as_test_x conftest$ac_exeext; then
14942 { echo "$as_me:$LINENO: result
: yes" >&5
14943 echo "${ECHO_T}yes" >&6; }
14945 cat >>confdefs.h <<\_ACEOF
14946 #define HAVE_GETHOSTBYNAME_R_5 1
14950 echo "$as_me: failed program was
:" >&5
14951 sed 's/^/| /' conftest.$ac_ext >&5
14953 { echo "$as_me:$LINENO: result
: no
" >&5
14954 echo "${ECHO_T}no
" >&6; }
14958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14959 conftest$ac_exeext conftest.$ac_ext
14961 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_INITIALIZER
" >&5
14962 echo $ECHO_N "checking
for PTHREAD_RWLOCK_INITIALIZER...
$ECHO_C" >&6; }
14963 cat >conftest.$ac_ext <<_ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14969 #include <pthread.h>
14973 int foo = PTHREAD_RWLOCK_INITIALIZER;
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (ac_try="$ac_link"
14980 case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_link") 2>conftest.er1
14987 grep -v '^ *+' conftest.er1 >conftest.err
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14991 (exit $ac_status); } && {
14992 test -z "$ac_c_werror_flag" ||
14993 test ! -s conftest.err
14994 } && test -s conftest$ac_exeext &&
14995 $as_test_x conftest$ac_exeext; then
14996 { echo "$as_me:$LINENO: result
: yes" >&5
14997 echo "${ECHO_T}yes" >&6; }
14999 cat >>confdefs.h <<\_ACEOF
15000 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
15004 echo "$as_me: failed program was
:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15007 { echo "$as_me:$LINENO: result
: no
" >&5
15008 echo "${ECHO_T}no
" >&6; }
15012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15013 conftest$ac_exeext conftest.$ac_ext
15015 { echo "$as_me:$LINENO: checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP
" >&5
15016 echo $ECHO_N "checking
for PTHREAD_RWLOCK_PREFER_WRITER_NP...
$ECHO_C" >&6; }
15017 cat >conftest.$ac_ext <<_ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 #include <pthread.h>
15027 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
15032 rm -f conftest.$ac_objext conftest$ac_exeext
15033 if { (ac_try="$ac_link"
15034 case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_link") 2>conftest.er1
15041 grep -v '^ *+' conftest.er1 >conftest.err
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15045 (exit $ac_status); } && {
15046 test -z "$ac_c_werror_flag" ||
15047 test ! -s conftest.err
15048 } && test -s conftest$ac_exeext &&
15049 $as_test_x conftest$ac_exeext; then
15050 { echo "$as_me:$LINENO: result
: yes" >&5
15051 echo "${ECHO_T}yes" >&6; }
15053 cat >>confdefs.h <<\_ACEOF
15054 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
15058 echo "$as_me: failed program was
:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 { echo "$as_me:$LINENO: result
: no
" >&5
15062 echo "${ECHO_T}no
" >&6; }
15066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15067 conftest$ac_exeext conftest.$ac_ext
15069 { echo "$as_me:$LINENO: checking
for compiler atomic operations
" >&5
15070 echo $ECHO_N "checking
for compiler atomic operations...
$ECHO_C" >&6; }
15071 cat >conftest.$ac_ext <<_ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15081 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
15086 rm -f conftest.$ac_objext conftest$ac_exeext
15087 if { (ac_try="$ac_link"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_link") 2>conftest.er1
15095 grep -v '^ *+' conftest.er1 >conftest.err
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15099 (exit $ac_status); } && {
15100 test -z "$ac_c_werror_flag" ||
15101 test ! -s conftest.err
15102 } && test -s conftest$ac_exeext &&
15103 $as_test_x conftest$ac_exeext; then
15104 { echo "$as_me:$LINENO: result
: yes" >&5
15105 echo "${ECHO_T}yes" >&6; }
15107 cat >>confdefs.h <<\_ACEOF
15108 #define HAVE_GCC_ATOMICS 1
15112 echo "$as_me: failed program was
:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 { echo "$as_me:$LINENO: result
: no
" >&5
15116 echo "${ECHO_T}no
" >&6; }
15120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15121 conftest$ac_exeext conftest.$ac_ext
15124 { echo "$as_me:$LINENO: checking
for compiler
'attribute pure' support
" >&5
15125 echo $ECHO_N "checking
for compiler
'attribute pure' support...
$ECHO_C" >&6; }
15126 cat >conftest.$ac_ext <<_ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15132 static int __attribute__((pure)) test(void) {}
15141 rm -f conftest.$ac_objext
15142 if { (ac_try="$ac_compile"
15143 case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_compile") 2>conftest.er1
15150 grep -v '^ *+' conftest.er1 >conftest.err
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15154 (exit $ac_status); } && {
15155 test -z "$ac_c_werror_flag" ||
15156 test ! -s conftest.err
15157 } && test -s conftest.$ac_objext; then
15158 { echo "$as_me:$LINENO: result
: yes" >&5
15159 echo "${ECHO_T}yes" >&6; }
15161 cat >>confdefs.h <<_ACEOF
15162 #define HAVE_ATTRIBUTE_pure 1
15166 echo "$as_me: failed program was
:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 { echo "$as_me:$LINENO: result
: no
" >&5
15170 echo "${ECHO_T}no
" >&6; }
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176 { echo "$as_me:$LINENO: checking
for compiler
'attribute malloc' support
" >&5
15177 echo $ECHO_N "checking
for compiler
'attribute malloc' support...
$ECHO_C" >&6; }
15178 cat >conftest.$ac_ext <<_ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15184 static int __attribute__((malloc)) test(void) {}
15193 rm -f conftest.$ac_objext
15194 if { (ac_try="$ac_compile"
15195 case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_compile") 2>conftest.er1
15202 grep -v '^ *+' conftest.er1 >conftest.err
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15206 (exit $ac_status); } && {
15207 test -z "$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 } && test -s conftest.$ac_objext; then
15210 { echo "$as_me:$LINENO: result
: yes" >&5
15211 echo "${ECHO_T}yes" >&6; }
15213 cat >>confdefs.h <<_ACEOF
15214 #define HAVE_ATTRIBUTE_malloc 1
15218 echo "$as_me: failed program was
:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15221 { echo "$as_me:$LINENO: result
: no
" >&5
15222 echo "${ECHO_T}no
" >&6; }
15225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228 { echo "$as_me:$LINENO: checking
for compiler
'attribute const' support
" >&5
15229 echo $ECHO_N "checking
for compiler
'attribute const' support...
$ECHO_C" >&6; }
15230 cat >conftest.$ac_ext <<_ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h. */
15236 static int __attribute__((const)) test(void) {}
15245 rm -f conftest.$ac_objext
15246 if { (ac_try="$ac_compile"
15247 case "(($ac_try" in
15248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249 *) ac_try_echo=$ac_try;;
15251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15252 (eval "$ac_compile") 2>conftest.er1
15254 grep -v '^ *+' conftest.er1 >conftest.err
15256 cat conftest.err >&5
15257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15258 (exit $ac_status); } && {
15259 test -z "$ac_c_werror_flag" ||
15260 test ! -s conftest.err
15261 } && test -s conftest.$ac_objext; then
15262 { echo "$as_me:$LINENO: result
: yes" >&5
15263 echo "${ECHO_T}yes" >&6; }
15265 cat >>confdefs.h <<_ACEOF
15266 #define HAVE_ATTRIBUTE_const 1
15270 echo "$as_me: failed program was
:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15273 { echo "$as_me:$LINENO: result
: no
" >&5
15274 echo "${ECHO_T}no
" >&6; }
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 { echo "$as_me:$LINENO: checking
for compiler
'attribute unused' support
" >&5
15281 echo $ECHO_N "checking
for compiler
'attribute unused' support...
$ECHO_C" >&6; }
15282 cat >conftest.$ac_ext <<_ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15288 static int __attribute__((unused)) test(void) {}
15297 rm -f conftest.$ac_objext
15298 if { (ac_try="$ac_compile"
15299 case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_compile") 2>conftest.er1
15306 grep -v '^ *+' conftest.er1 >conftest.err
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15310 (exit $ac_status); } && {
15311 test -z "$ac_c_werror_flag" ||
15312 test ! -s conftest.err
15313 } && test -s conftest.$ac_objext; then
15314 { echo "$as_me:$LINENO: result
: yes" >&5
15315 echo "${ECHO_T}yes" >&6; }
15317 cat >>confdefs.h <<_ACEOF
15318 #define HAVE_ATTRIBUTE_unused 1
15322 echo "$as_me: failed program was
:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 { echo "$as_me:$LINENO: result
: no
" >&5
15326 echo "${ECHO_T}no
" >&6; }
15329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15332 { echo "$as_me:$LINENO: checking
for compiler
'attribute always_inline' support
" >&5
15333 echo $ECHO_N "checking
for compiler
'attribute always_inline' support...
$ECHO_C" >&6; }
15334 cat >conftest.$ac_ext <<_ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 static int __attribute__((always_inline)) test(void) {}
15349 rm -f conftest.$ac_objext
15350 if { (ac_try="$ac_compile"
15351 case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_compile") 2>conftest.er1
15358 grep -v '^ *+' conftest.er1 >conftest.err
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15362 (exit $ac_status); } && {
15363 test -z "$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15365 } && test -s conftest.$ac_objext; then
15366 { echo "$as_me:$LINENO: result
: yes" >&5
15367 echo "${ECHO_T}yes" >&6; }
15369 cat >>confdefs.h <<_ACEOF
15370 #define HAVE_ATTRIBUTE_always_inline 1
15374 echo "$as_me: failed program was
:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 { echo "$as_me:$LINENO: result
: no
" >&5
15378 echo "${ECHO_T}no
" >&6; }
15381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15384 { echo "$as_me:$LINENO: checking
for compiler
'attribute deprecated' support
" >&5
15385 echo $ECHO_N "checking
for compiler
'attribute deprecated' support...
$ECHO_C" >&6; }
15386 cat >conftest.$ac_ext <<_ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15392 static int __attribute__((deprecated)) test(void) {}
15401 rm -f conftest.$ac_objext
15402 if { (ac_try="$ac_compile"
15403 case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_compile") 2>conftest.er1
15410 grep -v '^ *+' conftest.er1 >conftest.err
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15414 (exit $ac_status); } && {
15415 test -z "$ac_c_werror_flag" ||
15416 test ! -s conftest.err
15417 } && test -s conftest.$ac_objext; then
15418 { echo "$as_me:$LINENO: result
: yes" >&5
15419 echo "${ECHO_T}yes" >&6; }
15421 cat >>confdefs.h <<_ACEOF
15422 #define HAVE_ATTRIBUTE_deprecated 1
15426 echo "$as_me: failed program was
:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15429 { echo "$as_me:$LINENO: result
: no
" >&5
15430 echo "${ECHO_T}no
" >&6; }
15433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15436 { echo "$as_me:$LINENO: checking
for -ffunction-sections support
" >&5
15437 echo $ECHO_N "checking
for -ffunction-sections support...
$ECHO_C" >&6; }
15438 saved_CFLAGS="${CFLAGS}"
15439 CFLAGS="${CFLAGS} -ffunction-sections"
15440 cat >conftest.$ac_ext <<_ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15455 rm -f conftest.$ac_objext
15456 if { (ac_try="$ac_compile"
15457 case "(($ac_try" in
15458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15462 (eval "$ac_compile") 2>conftest.er1
15464 grep -v '^ *+' conftest.er1 >conftest.err
15466 cat conftest.err >&5
15467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15468 (exit $ac_status); } && {
15469 test -z "$ac_c_werror_flag" ||
15470 test ! -s conftest.err
15471 } && test -s conftest.$ac_objext; then
15472 { echo "$as_me:$LINENO: result
: yes" >&5
15473 echo "${ECHO_T}yes" >&6; }
15474 saved_LDFLAGS="${LDFLAGS}"
15475 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15476 { echo "$as_me:$LINENO: checking
for --gc-sections support
" >&5
15477 echo $ECHO_N "checking
for --gc-sections support...
$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. */
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (ac_try="$ac_link"
15495 case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_link") 2>conftest.er1
15502 grep -v '^ *+' conftest.er1 >conftest.err
15504 cat conftest.err >&5
15505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15506 (exit $ac_status); } && {
15507 test -z "$ac_c_werror_flag" ||
15508 test ! -s conftest.err
15509 } && test -s conftest$ac_exeext &&
15510 $as_test_x conftest$ac_exeext; then
15511 { echo "$as_me:$LINENO: result
: yes" >&5
15512 echo "${ECHO_T}yes" >&6; }
15513 GC_CFLAGS="-ffunction-sections"
15514 GC_LDFLAGS="-Wl,--gc-sections"
15516 echo "$as_me: failed program was
:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15519 { echo "$as_me:$LINENO: result
: no
" >&5
15520 echo "${ECHO_T}no
" >&6; }
15524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15525 conftest$ac_exeext conftest.$ac_ext
15526 LDFLAGS="${saved_LDFLAGS}"
15528 echo "$as_me: failed program was
:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15531 { echo "$as_me:$LINENO: result
: no
" >&5
15532 echo "${ECHO_T}no
" >&6; }
15536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15537 CFLAGS="${saved_CFLAGS}"
15541 { echo "$as_me:$LINENO: checking
for -Wdeclaration-after-statement support
" >&5
15542 echo $ECHO_N "checking
for -Wdeclaration-after-statement support...
$ECHO_C" >&6; }
15543 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15544 { echo "$as_me:$LINENO: result
: yes" >&5
15545 echo "${ECHO_T}yes" >&6; }
15546 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15548 { echo "$as_me:$LINENO: result
: no
" >&5
15549 echo "${ECHO_T}no
" >&6; }
15550 AST_DECLARATION_AFTER_STATEMENT=
15554 { echo "$as_me:$LINENO: checking
for res_ninit
" >&5
15555 echo $ECHO_N "checking
for res_ninit...
$ECHO_C" >&6; }
15556 cat >conftest.$ac_ext <<_ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15562 #include <resolv.h>
15566 int foo = res_ninit(NULL);
15571 rm -f conftest.$ac_objext conftest$ac_exeext
15572 if { (ac_try="$ac_link"
15573 case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15578 (eval "$ac_link") 2>conftest.er1
15580 grep -v '^ *+' conftest.er1 >conftest.err
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15584 (exit $ac_status); } && {
15585 test -z "$ac_c_werror_flag" ||
15586 test ! -s conftest.err
15587 } && test -s conftest$ac_exeext &&
15588 $as_test_x conftest$ac_exeext; then
15589 { echo "$as_me:$LINENO: result
: yes" >&5
15590 echo "${ECHO_T}yes" >&6; }
15592 cat >>confdefs.h <<\_ACEOF
15593 #define HAVE_RES_NINIT 1
15596 { echo "$as_me:$LINENO: checking
for res_ndestroy
" >&5
15597 echo $ECHO_N "checking
for res_ndestroy...
$ECHO_C" >&6; }
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 #include <resolv.h>
15608 int foo = res_ndestroy(NULL);
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (ac_try="$ac_link"
15615 case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15619 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15620 (eval "$ac_link") 2>conftest.er1
15622 grep -v '^ *+' conftest.er1 >conftest.err
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15626 (exit $ac_status); } && {
15627 test -z "$ac_c_werror_flag" ||
15628 test ! -s conftest.err
15629 } && test -s conftest$ac_exeext &&
15630 $as_test_x conftest$ac_exeext; then
15631 { echo "$as_me:$LINENO: result
: yes" >&5
15632 echo "${ECHO_T}yes" >&6; }
15634 cat >>confdefs.h <<\_ACEOF
15635 #define HAVE_RES_NDESTROY 1
15639 echo "$as_me: failed program was
:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15642 { echo "$as_me:$LINENO: result
: no
" >&5
15643 echo "${ECHO_T}no
" >&6; }
15647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15648 conftest$ac_exeext conftest.$ac_ext
15650 echo "$as_me: failed program was
:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15653 { echo "$as_me:$LINENO: result
: no
" >&5
15654 echo "${ECHO_T}no
" >&6; }
15658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15659 conftest$ac_exeext conftest.$ac_ext
15661 { echo "$as_me:$LINENO: checking
for RTLD_NOLOAD
" >&5
15662 echo $ECHO_N "checking
for RTLD_NOLOAD...
$ECHO_C" >&6; }
15663 cat >conftest.$ac_ext <<_ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15673 int foo = RTLD_NOLOAD;
15678 rm -f conftest.$ac_objext conftest$ac_exeext
15679 if { (ac_try="$ac_link"
15680 case "(($ac_try" in
15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682 *) ac_try_echo=$ac_try;;
15684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15685 (eval "$ac_link") 2>conftest.er1
15687 grep -v '^ *+' conftest.er1 >conftest.err
15689 cat conftest.err >&5
15690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15691 (exit $ac_status); } && {
15692 test -z "$ac_c_werror_flag" ||
15693 test ! -s conftest.err
15694 } && test -s conftest$ac_exeext &&
15695 $as_test_x conftest$ac_exeext; then
15696 { echo "$as_me:$LINENO: result
: yes" >&5
15697 echo "${ECHO_T}yes" >&6; }
15699 cat >>confdefs.h <<\_ACEOF
15700 #define HAVE_RTLD_NOLOAD 1
15704 echo "$as_me: failed program was
:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 { echo "$as_me:$LINENO: result
: no
" >&5
15708 echo "${ECHO_T}no
" >&6; }
15712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15713 conftest$ac_exeext conftest.$ac_ext
15715 { echo "$as_me:$LINENO: checking
for IP_MTU_DISCOVER
" >&5
15716 echo $ECHO_N "checking
for IP_MTU_DISCOVER...
$ECHO_C" >&6; }
15717 cat >conftest.$ac_ext <<_ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 #include <netinet/in.h>
15727 int foo = IP_MTU_DISCOVER;
15732 rm -f conftest.$ac_objext conftest$ac_exeext
15733 if { (ac_try="$ac_link"
15734 case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_link") 2>conftest.er1
15741 grep -v '^ *+' conftest.er1 >conftest.err
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15745 (exit $ac_status); } && {
15746 test -z "$ac_c_werror_flag" ||
15747 test ! -s conftest.err
15748 } && test -s conftest$ac_exeext &&
15749 $as_test_x conftest$ac_exeext; then
15750 { echo "$as_me:$LINENO: result
: yes" >&5
15751 echo "${ECHO_T}yes" >&6; }
15753 cat >>confdefs.h <<\_ACEOF
15754 #define HAVE_IP_MTU_DISCOVER 1
15758 echo "$as_me: failed program was
:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15761 { echo "$as_me:$LINENO: result
: no
" >&5
15762 echo "${ECHO_T}no
" >&6; }
15766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15767 conftest$ac_exeext conftest.$ac_ext
15769 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15770 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15771 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15772 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15773 echo $ECHO_N "(cached
) $ECHO_C" >&6
15775 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15776 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15778 # Is the header compilable?
15779 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h usability
" >&5
15780 echo $ECHO_N "checking libkern
/OSAtomic.h usability...
$ECHO_C" >&6; }
15781 cat >conftest.$ac_ext <<_ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 $ac_includes_default
15788 #include <libkern/OSAtomic.h>
15790 rm -f conftest.$ac_objext
15791 if { (ac_try="$ac_compile"
15792 case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15796 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_compile") 2>conftest.er1
15799 grep -v '^ *+' conftest.er1 >conftest.err
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15803 (exit $ac_status); } && {
15804 test -z "$ac_c_werror_flag" ||
15805 test ! -s conftest.err
15806 } && test -s conftest.$ac_objext; then
15807 ac_header_compiler=yes
15809 echo "$as_me: failed program was
:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15812 ac_header_compiler=no
15815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15816 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15817 echo "${ECHO_T}$ac_header_compiler" >&6; }
15819 # Is the header present?
15820 { echo "$as_me:$LINENO: checking libkern
/OSAtomic.h presence
" >&5
15821 echo $ECHO_N "checking libkern
/OSAtomic.h presence...
$ECHO_C" >&6; }
15822 cat >conftest.$ac_ext <<_ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828 #include <libkern/OSAtomic.h>
15830 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15831 case "(($ac_try" in
15832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833 *) ac_try_echo=$ac_try;;
15835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15836 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15838 grep -v '^ *+' conftest.er1 >conftest.err
15840 cat conftest.err >&5
15841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15842 (exit $ac_status); } >/dev/null && {
15843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15844 test ! -s conftest.err
15846 ac_header_preproc=yes
15848 echo "$as_me: failed program was
:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15851 ac_header_preproc=no
15854 rm -f conftest.err conftest.$ac_ext
15855 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15856 echo "${ECHO_T}$ac_header_preproc" >&6; }
15858 # So? What about this header?
15859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15861 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15862 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15863 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the compiler
's result" >&5
15864 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result
" >&2;}
15865 ac_header_preproc=yes
15868 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&5
15869 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: present but cannot be compiled
" >&2;}
15870 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&5
15871 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: check
for missing prerequisite headers?
" >&2;}
15872 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&5
15873 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: see the Autoconf documentation
" >&2;}
15874 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15875 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15876 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: proceeding with the preprocessor
's result" >&5
15877 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result
" >&2;}
15878 { echo "$as_me:$LINENO: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&5
15879 echo "$as_me: WARNING
: libkern
/OSAtomic.h
: in the future
, the compiler will take precedence
" >&2;}
15881 ## ------------------------------- ##
15882 ## Report this to www.asterisk.org ##
15883 ## ------------------------------- ##
15885 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
15888 { echo "$as_me:$LINENO: checking
for libkern
/OSAtomic.h
" >&5
15889 echo $ECHO_N "checking
for libkern
/OSAtomic.h...
$ECHO_C" >&6; }
15890 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15891 echo $ECHO_N "(cached
) $ECHO_C" >&6
15893 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15895 { echo "$as_me:$LINENO: result
: $ac_cv_header_libkern_OSAtomic_h" >&5
15896 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15899 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15901 cat >>confdefs.h <<_ACEOF
15902 #define HAVE_OSX_ATOMICS 1
15909 { echo "$as_me:$LINENO: checking
for int
" >&5
15910 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
15911 if test "${ac_cv_type_int+set}" = set; then
15912 echo $ECHO_N "(cached
) $ECHO_C" >&6
15914 cat >conftest.$ac_ext <<_ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h. */
15920 $ac_includes_default
15921 typedef int ac__type_new_;
15925 if ((ac__type_new_ *) 0)
15927 if (sizeof (ac__type_new_))
15933 rm -f conftest.$ac_objext
15934 if { (ac_try="$ac_compile"
15935 case "(($ac_try" in
15936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937 *) ac_try_echo=$ac_try;;
15939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15940 (eval "$ac_compile") 2>conftest.er1
15942 grep -v '^ *+' conftest.er1 >conftest.err
15944 cat conftest.err >&5
15945 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15946 (exit $ac_status); } && {
15947 test -z "$ac_c_werror_flag" ||
15948 test ! -s conftest.err
15949 } && test -s conftest.$ac_objext; then
15952 echo "$as_me: failed program was
:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15960 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
15961 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15963 # The cast to long int works around a bug in the HP C Compiler
15964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15966 # This bug is HP SR number 8606223364.
15967 { echo "$as_me:$LINENO: checking size of int
" >&5
15968 echo $ECHO_N "checking size of int...
$ECHO_C" >&6; }
15969 if test "${ac_cv_sizeof_int+set}" = set; then
15970 echo $ECHO_N "(cached
) $ECHO_C" >&6
15972 if test "$cross_compiling" = yes; then
15973 # Depending upon the size, compute the lo and hi bounds.
15974 cat >conftest.$ac_ext <<_ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15980 $ac_includes_default
15981 typedef int ac__type_sizeof_;
15985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15992 rm -f conftest.$ac_objext
15993 if { (ac_try="$ac_compile"
15994 case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15999 (eval "$ac_compile") 2>conftest.er1
16001 grep -v '^ *+' conftest.er1 >conftest.err
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16005 (exit $ac_status); } && {
16006 test -z "$ac_c_werror_flag" ||
16007 test ! -s conftest.err
16008 } && test -s conftest.$ac_objext; then
16011 cat >conftest.$ac_ext <<_ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 $ac_includes_default
16018 typedef int ac__type_sizeof_;
16022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16029 rm -f conftest.$ac_objext
16030 if { (ac_try="$ac_compile"
16031 case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16035 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16036 (eval "$ac_compile") 2>conftest.er1
16038 grep -v '^ *+' conftest.er1 >conftest.err
16040 cat conftest.err >&5
16041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_c_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest.$ac_objext; then
16046 ac_hi=$ac_mid; break
16048 echo "$as_me: failed program was
:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16051 ac_lo=`expr $ac_mid + 1`
16052 if test $ac_lo -le $ac_mid; then
16056 ac_mid=`expr 2 '*' $ac_mid + 1`
16059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062 echo "$as_me: failed program was
:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16065 cat >conftest.$ac_ext <<_ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h. */
16071 $ac_includes_default
16072 typedef int ac__type_sizeof_;
16076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
16083 rm -f conftest.$ac_objext
16084 if { (ac_try="$ac_compile"
16085 case "(($ac_try" in
16086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087 *) ac_try_echo=$ac_try;;
16089 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16090 (eval "$ac_compile") 2>conftest.er1
16092 grep -v '^ *+' conftest.er1 >conftest.err
16094 cat conftest.err >&5
16095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16096 (exit $ac_status); } && {
16097 test -z "$ac_c_werror_flag" ||
16098 test ! -s conftest.err
16099 } && test -s conftest.$ac_objext; then
16102 cat >conftest.$ac_ext <<_ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h. */
16108 $ac_includes_default
16109 typedef int ac__type_sizeof_;
16113 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
16120 rm -f conftest.$ac_objext
16121 if { (ac_try="$ac_compile"
16122 case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_compile") 2>conftest.er1
16129 grep -v '^ *+' conftest.er1 >conftest.err
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16133 (exit $ac_status); } && {
16134 test -z "$ac_c_werror_flag" ||
16135 test ! -s conftest.err
16136 } && test -s conftest.$ac_objext; then
16137 ac_lo=$ac_mid; break
16139 echo "$as_me: failed program was
:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 ac_hi=`expr '(' $ac_mid ')' - 1`
16143 if test $ac_mid -le $ac_hi; then
16147 ac_mid=`expr 2 '*' $ac_mid`
16150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16153 echo "$as_me: failed program was
:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163 # Binary search between lo and hi bounds.
16164 while test "x
$ac_lo" != "x
$ac_hi"; do
16165 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16166 cat >conftest.$ac_ext <<_ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16172 $ac_includes_default
16173 typedef int ac__type_sizeof_;
16177 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16184 rm -f conftest.$ac_objext
16185 if { (ac_try="$ac_compile"
16186 case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_compile") 2>conftest.er1
16193 grep -v '^ *+' conftest.er1 >conftest.err
16195 cat conftest.err >&5
16196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16197 (exit $ac_status); } && {
16198 test -z "$ac_c_werror_flag" ||
16199 test ! -s conftest.err
16200 } && test -s conftest.$ac_objext; then
16203 echo "$as_me: failed program was
:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16206 ac_lo=`expr '(' $ac_mid ')' + 1`
16209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212 ?*) ac_cv_sizeof_int=$ac_lo;;
16213 '') if test "$ac_cv_type_int" = yes; then
16214 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
16215 See \
`config.log' for more details." >&5
16216 echo "$as_me: error: cannot compute sizeof (int)
16217 See \`config.log
' for more details." >&2;}
16218 { (exit 77); exit 77; }; }
16224 cat >conftest.$ac_ext <<_ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 $ac_includes_default
16231 typedef int ac__type_sizeof_;
16232 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16233 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16235 #include <stdlib.h>
16240 FILE *f = fopen ("conftest.val", "w");
16243 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16245 long int i = longval ();
16246 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16248 fprintf (f, "%ld\n", i);
16252 unsigned long int i = ulongval ();
16253 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16255 fprintf (f, "%lu\n", i);
16257 return ferror (f) || fclose (f) != 0;
16263 rm -f conftest$ac_exeext
16264 if { (ac_try="$ac_link"
16265 case "(($ac_try" in
16266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267 *) ac_try_echo=$ac_try;;
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270 (eval "$ac_link") 2>&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_try") 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_cv_sizeof_int=`cat conftest.val`
16285 echo "$as_me: program exited with status $ac_status" >&5
16286 echo "$as_me: failed program was:" >&5
16287 sed 's
/^
/|
/' conftest.$ac_ext >&5
16289 ( exit $ac_status )
16290 if test "$ac_cv_type_int" = yes; then
16291 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16292 See \`config.log' for more details.
" >&5
16293 echo "$as_me: error
: cannot compute sizeof
(int
)
16294 See \
`config.log' for more details." >&2;}
16295 { (exit 77); exit 77; }; }
16300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16304 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16305 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16309 cat >>confdefs.h <<_ACEOF
16310 #define SIZEOF_INT $ac_cv_sizeof_int
16315 # do the package library checks now
16318 if test "${USE_ALSA}" != "no"; then
16320 if test "x${ALSA_DIR}" != "x"; then
16321 if test -d ${ALSA_DIR}/lib; then
16322 pbxlibdir="-L${ALSA_DIR}/lib"
16324 pbxlibdir="-L${ALSA_DIR}"
16327 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16328 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16329 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 ac_check_lib_save_LIBS=$LIBS
16333 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16334 cat >conftest.$ac_ext <<_ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16341 /* Override any GCC internal prototype to avoid an error.
16342 Use char because int might match the return type of a GCC
16343 builtin and then its argument prototype would still apply. */
16347 char snd_spcm_init ();
16351 return snd_spcm_init ();
16356 rm -f conftest.$ac_objext conftest$ac_exeext
16357 if { (ac_try="$ac_link"
16358 case "(($ac_try" in
16359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16360 *) ac_try_echo
=$ac_try;;
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_link") 2>conftest.er1
16365 grep -v '^ *+' conftest.er1
>conftest.err
16367 cat conftest.err
>&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } && {
16370 test -z "$ac_c_werror_flag" ||
16371 test ! -s conftest.err
16372 } && test -s conftest
$ac_exeext &&
16373 $as_test_x conftest
$ac_exeext; then
16374 ac_cv_lib_asound_snd_spcm_init
=yes
16376 echo "$as_me: failed program was:" >&5
16377 sed 's/^/| /' conftest.
$ac_ext >&5
16379 ac_cv_lib_asound_snd_spcm_init
=no
16382 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16383 conftest
$ac_exeext conftest.
$ac_ext
16384 LIBS
=$ac_check_lib_save_LIBS
16386 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16387 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16388 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16395 if test "${AST_ALSA_FOUND}" = "yes"; then
16396 ALSA_LIB
="-lasound -lm -ldl"
16397 ALSA_HEADER_FOUND
="1"
16398 if test "x${ALSA_DIR}" != "x"; then
16399 ALSA_LIB
="${pbxlibdir} ${ALSA_LIB}"
16400 ALSA_INCLUDE
="-I${ALSA_DIR}/include"
16401 saved_cppflags
="${CPPFLAGS}"
16402 CPPFLAGS
="${CPPFLAGS} -I${ALSA_DIR}/include"
16403 if test "xalsa/asoundlib.h" != "x" ; then
16404 as_ac_Header
=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
16405 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16406 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16407 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16408 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 ac_res
=`eval echo '${'$as_ac_Header'}'`
16412 { echo "$as_me:$LINENO: result: $ac_res" >&5
16413 echo "${ECHO_T}$ac_res" >&6; }
16415 # Is the header compilable?
16416 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
16417 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
16418 cat >conftest.
$ac_ext <<_ACEOF
16421 cat confdefs.h
>>conftest.
$ac_ext
16422 cat >>conftest.
$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 $ac_includes_default
16425 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16427 rm -f conftest.
$ac_objext
16428 if { (ac_try
="$ac_compile"
16429 case "(($ac_try" in
16430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_compile") 2>conftest.er1
16436 grep -v '^ *+' conftest.er1 >conftest.err
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } && {
16441 test -z "$ac_c_werror_flag" ||
16442 test ! -s conftest.err
16443 } && test -s conftest.$ac_objext; then
16444 ac_header_compiler=yes
16446 echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16449 ac_header_compiler=no
16452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16454 echo "${ECHO_T}$ac_header_compiler" >&6; }
16456 # Is the header present?
16457 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16458 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16459 cat >conftest.$ac_ext <<_ACEOF
16462 cat confdefs.h >>conftest.$ac_ext
16463 cat >>conftest.$ac_ext <<_ACEOF
16464 /* end confdefs.h. */
16465 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16467 if { (ac_try="$ac_cpp conftest.$ac_ext"
16468 case "(($ac_try" in
16469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16470 *) ac_try_echo
=$ac_try;;
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16475 grep -v '^ *+' conftest.er1
>conftest.err
16477 cat conftest.err
>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } >/dev
/null
&& {
16480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16481 test ! -s conftest.err
16483 ac_header_preproc
=yes
16485 echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.
$ac_ext >&5
16488 ac_header_preproc
=no
16491 rm -f conftest.err conftest.
$ac_ext
16492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16493 echo "${ECHO_T}$ac_header_preproc" >&6; }
16495 # So? What about this header?
16496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16498 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16499 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16501 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16502 ac_header_preproc
=yes
16505 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16506 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16508 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16510 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16512 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16513 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16514 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16515 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16516 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16518 ## ------------------------------- ##
16519 ## Report this to www.asterisk.org ##
16520 ## ------------------------------- ##
16522 ) |
sed "s/^/$as_me: WARNING: /" >&2
16525 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16526 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16527 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 eval "$as_ac_Header=\$ac_header_preproc"
16532 ac_res
=`eval echo '${'$as_ac_Header'}'`
16533 { echo "$as_me:$LINENO: result: $ac_res" >&5
16534 echo "${ECHO_T}$ac_res" >&6; }
16537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16538 ALSA_HEADER_FOUND
=1
16540 ALSA_HEADER_FOUND
=0
16545 CPPFLAGS
="${saved_cppflags}"
16547 if test "xalsa/asoundlib.h" != "x" ; then
16548 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16549 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16550 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16551 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16555 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16557 # Is the header compilable?
16558 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16559 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16560 cat >conftest.
$ac_ext <<_ACEOF
16563 cat confdefs.h
>>conftest.
$ac_ext
16564 cat >>conftest.
$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16566 $ac_includes_default
16567 #include <alsa/asoundlib.h>
16569 rm -f conftest.
$ac_objext
16570 if { (ac_try
="$ac_compile"
16571 case "(($ac_try" in
16572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_compile") 2>conftest.er1
16578 grep -v '^ *+' conftest.er1 >conftest.err
16580 cat conftest.err >&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } && {
16583 test -z "$ac_c_werror_flag" ||
16584 test ! -s conftest.err
16585 } && test -s conftest.$ac_objext; then
16586 ac_header_compiler=yes
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ac_header_compiler=no
16594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16596 echo "${ECHO_T}$ac_header_compiler" >&6; }
16598 # Is the header present?
16599 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16600 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16601 cat >conftest.$ac_ext <<_ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h. */
16607 #include <alsa/asoundlib.h>
16609 if { (ac_try="$ac_cpp conftest.$ac_ext"
16610 case "(($ac_try" in
16611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16612 *) ac_try_echo
=$ac_try;;
16614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16617 grep -v '^ *+' conftest.er1
>conftest.err
16619 cat conftest.err
>&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } >/dev
/null
&& {
16622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16623 test ! -s conftest.err
16625 ac_header_preproc
=yes
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.
$ac_ext >&5
16630 ac_header_preproc
=no
16633 rm -f conftest.err conftest.
$ac_ext
16634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16635 echo "${ECHO_T}$ac_header_preproc" >&6; }
16637 # So? What about this header?
16638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16640 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16641 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16642 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16643 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16644 ac_header_preproc
=yes
16647 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16648 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16650 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16651 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16652 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16653 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16654 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16655 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16656 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16657 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16658 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16660 ## ------------------------------- ##
16661 ## Report this to www.asterisk.org ##
16662 ## ------------------------------- ##
16664 ) |
sed "s/^/$as_me: WARNING: /" >&2
16667 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16668 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16669 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16672 ac_cv_header_alsa_asoundlib_h
=$ac_header_preproc
16674 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16675 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16678 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16679 ALSA_HEADER_FOUND
=1
16681 ALSA_HEADER_FOUND
=0
16687 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16688 if test -n "${ALSA_MANDATORY}" ;
16690 { echo "$as_me:$LINENO: ***" >&5
16691 echo "$as_me: ***" >&6;}
16692 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16693 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16694 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16695 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16696 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16697 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16706 cat >>confdefs.h
<<_ACEOF
16707 #define HAVE_ALSA 1
16711 elif test -n "${ALSA_MANDATORY}";
16713 { echo "$as_me:$LINENO: ***" >&5
16714 echo "$as_me: ***" >&6;}
16715 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16716 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16717 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16718 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16719 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16720 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16727 if test "${USE_CURSES}" != "no"; then
16729 if test "x${CURSES_DIR}" != "x"; then
16730 if test -d ${CURSES_DIR}/lib
; then
16731 pbxlibdir
="-L${CURSES_DIR}/lib"
16733 pbxlibdir
="-L${CURSES_DIR}"
16736 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16737 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16738 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16741 ac_check_lib_save_LIBS
=$LIBS
16742 LIBS
="-lcurses ${pbxlibdir} $LIBS"
16743 cat >conftest.
$ac_ext <<_ACEOF
16746 cat confdefs.h
>>conftest.
$ac_ext
16747 cat >>conftest.
$ac_ext <<_ACEOF
16748 /* end confdefs.h. */
16750 /* Override any GCC internal prototype to avoid an error.
16751 Use char because int might match the return type of a GCC
16752 builtin and then its argument prototype would still apply. */
16765 rm -f conftest.
$ac_objext conftest
$ac_exeext
16766 if { (ac_try
="$ac_link"
16767 case "(($ac_try" in
16768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_link") 2>conftest.er1
16774 grep -v '^ *+' conftest.er1 >conftest.err
16776 cat conftest.err >&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } && {
16779 test -z "$ac_c_werror_flag" ||
16780 test ! -s conftest.err
16781 } && test -s conftest$ac_exeext &&
16782 $as_test_x conftest$ac_exeext; then
16783 ac_cv_lib_curses_initscr=yes
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16788 ac_cv_lib_curses_initscr=no
16791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16792 conftest$ac_exeext conftest.$ac_ext
16793 LIBS=$ac_check_lib_save_LIBS
16795 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16796 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16797 if test $ac_cv_lib_curses_initscr = yes; then
16798 AST_CURSES_FOUND=yes
16800 AST_CURSES_FOUND=no
16804 if test "${AST_CURSES_FOUND}" = "yes"; then
16805 CURSES_LIB="-lcurses "
16806 CURSES_HEADER_FOUND="1"
16807 if test "x${CURSES_DIR}" != "x"; then
16808 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16809 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16810 saved_cppflags="${CPPFLAGS}"
16811 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16812 if test "xcurses.h" != "x" ; then
16813 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" |
$as_tr_sh`
16814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16815 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16816 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 ac_res=`eval echo '${'$as_ac_Header'}'`
16821 { echo "$as_me:$LINENO: result: $ac_res" >&5
16822 echo "${ECHO_T}$ac_res" >&6; }
16824 # Is the header compilable?
16825 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16826 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 $ac_includes_default
16834 #include <${CURSES_DIR}/include/curses.h>
16836 rm -f conftest.$ac_objext
16837 if { (ac_try="$ac_compile"
16838 case "(($ac_try" in
16839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16840 *) ac_try_echo
=$ac_try;;
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_compile") 2>conftest.er1
16845 grep -v '^ *+' conftest.er1
>conftest.err
16847 cat conftest.err
>&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } && {
16850 test -z "$ac_c_werror_flag" ||
16851 test ! -s conftest.err
16852 } && test -s conftest.
$ac_objext; then
16853 ac_header_compiler
=yes
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.
$ac_ext >&5
16858 ac_header_compiler
=no
16861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16863 echo "${ECHO_T}$ac_header_compiler" >&6; }
16865 # Is the header present?
16866 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16867 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16868 cat >conftest.
$ac_ext <<_ACEOF
16871 cat confdefs.h
>>conftest.
$ac_ext
16872 cat >>conftest.
$ac_ext <<_ACEOF
16873 /* end confdefs.h. */
16874 #include <${CURSES_DIR}/include/curses.h>
16876 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16877 case "(($ac_try" in
16878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16884 grep -v '^ *+' conftest.er1 >conftest.err
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } >/dev/null && {
16889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16890 test ! -s conftest.err
16892 ac_header_preproc=yes
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16897 ac_header_preproc=no
16900 rm -f conftest.err conftest.$ac_ext
16901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16902 echo "${ECHO_T}$ac_header_preproc" >&6; }
16904 # So? What about this header?
16905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16907 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16908 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16910 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16911 ac_header_preproc=yes
16914 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16915 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16917 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16919 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16920 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16921 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16922 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16923 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16924 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16925 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16927 ## ------------------------------- ##
16928 ## Report this to www.asterisk.org ##
16929 ## ------------------------------- ##
16931 ) | sed "s/^/$as_me: WARNING: /" >&2
16934 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16935 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16939 eval "$as_ac_Header=\$ac_header_preproc"
16941 ac_res=`eval echo '${'$as_ac_Header'}'`
16942 { echo "$as_me:$LINENO: result: $ac_res" >&5
16943 echo "${ECHO_T}$ac_res" >&6; }
16946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16947 CURSES_HEADER_FOUND=1
16949 CURSES_HEADER_FOUND=0
16954 CPPFLAGS="${saved_cppflags}"
16956 if test "xcurses.h" != "x" ; then
16957 if test "${ac_cv_header_curses_h+set}" = set; then
16958 { echo "$as_me:$LINENO: checking for curses.h" >&5
16959 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16960 if test "${ac_cv_header_curses_h+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16964 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16966 # Is the header compilable?
16967 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16968 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16969 cat >conftest.$ac_ext <<_ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h. */
16975 $ac_includes_default
16976 #include <curses.h>
16978 rm -f conftest.$ac_objext
16979 if { (ac_try="$ac_compile"
16980 case "(($ac_try" in
16981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16982 *) ac_try_echo
=$ac_try;;
16984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16985 (eval "$ac_compile") 2>conftest.er1
16987 grep -v '^ *+' conftest.er1
>conftest.err
16989 cat conftest.err
>&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && {
16992 test -z "$ac_c_werror_flag" ||
16993 test ! -s conftest.err
16994 } && test -s conftest.
$ac_objext; then
16995 ac_header_compiler
=yes
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.
$ac_ext >&5
17000 ac_header_compiler
=no
17003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17005 echo "${ECHO_T}$ac_header_compiler" >&6; }
17007 # Is the header present?
17008 { echo "$as_me:$LINENO: checking curses.h presence" >&5
17009 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
17010 cat >conftest.
$ac_ext <<_ACEOF
17013 cat confdefs.h
>>conftest.
$ac_ext
17014 cat >>conftest.
$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 #include <curses.h>
17018 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17019 case "(($ac_try" in
17020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17026 grep -v '^ *+' conftest.er1 >conftest.err
17028 cat conftest.err >&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } >/dev/null && {
17031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17032 test ! -s conftest.err
17034 ac_header_preproc=yes
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_header_preproc=no
17042 rm -f conftest.err conftest.$ac_ext
17043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17044 echo "${ECHO_T}$ac_header_preproc" >&6; }
17046 # So? What about this header?
17047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17049 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
17050 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17051 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
17052 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
17053 ac_header_preproc=yes
17056 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
17057 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
17058 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
17059 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
17060 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
17061 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
17062 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
17063 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
17064 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
17065 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
17066 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
17067 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
17069 ## ------------------------------- ##
17070 ## Report this to www.asterisk.org ##
17071 ## ------------------------------- ##
17073 ) | sed "s/^/$as_me: WARNING: /" >&2
17076 { echo "$as_me:$LINENO: checking for curses.h" >&5
17077 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
17078 if test "${ac_cv_header_curses_h+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17081 ac_cv_header_curses_h=$ac_header_preproc
17083 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
17084 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
17087 if test $ac_cv_header_curses_h = yes; then
17088 CURSES_HEADER_FOUND=1
17090 CURSES_HEADER_FOUND=0
17096 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
17097 if test -n "${CURSES_MANDATORY}" ;
17099 { echo "$as_me:$LINENO: ***" >&5
17100 echo "$as_me: ***" >&6;}
17101 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
17102 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
17103 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
17104 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
17105 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
17106 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
17115 cat >>confdefs.h <<_ACEOF
17116 #define HAVE_CURSES 1
17120 elif test -n "${CURSES_MANDATORY}";
17122 { echo "$as_me:$LINENO: ***" >&5
17123 echo "$as_me: ***" >&6;}
17124 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
17125 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
17126 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17127 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17128 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
17129 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
17138 if test "${USE_GSM}" != "no"; then
17139 if test "${GSM_DIR}" = "internal"; then
17141 elif test "${GSM_DIR}" != ""; then
17144 if test "${GSM_SYSTEM}" = "yes"; then
17146 if test "x${GSM_DIR}" != "x"; then
17147 if test -d ${GSM_DIR}/lib; then
17148 gsmlibdir="-L${GSM_DIR}/lib"
17150 gsmlibdir="-L${GSM_DIR}"
17153 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17154 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17155 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17158 ac_check_lib_save_LIBS=$LIBS
17159 LIBS="-lgsm ${gsmlibdir} $LIBS"
17160 cat >conftest.$ac_ext <<_ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17167 /* Override any GCC internal prototype to avoid an error.
17168 Use char because int might match the return type of a GCC
17169 builtin and then its argument prototype would still apply. */
17173 char gsm_create ();
17177 return gsm_create ();
17182 rm -f conftest.$ac_objext conftest$ac_exeext
17183 if { (ac_try="$ac_link"
17184 case "(($ac_try" in
17185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17186 *) ac_try_echo
=$ac_try;;
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189 (eval "$ac_link") 2>conftest.er1
17191 grep -v '^ *+' conftest.er1
>conftest.err
17193 cat conftest.err
>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && {
17196 test -z "$ac_c_werror_flag" ||
17197 test ! -s conftest.err
17198 } && test -s conftest
$ac_exeext &&
17199 $as_test_x conftest
$ac_exeext; then
17200 ac_cv_lib_gsm_gsm_create
=yes
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.
$ac_ext >&5
17205 ac_cv_lib_gsm_gsm_create
=no
17208 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17209 conftest
$ac_exeext conftest.
$ac_ext
17210 LIBS
=$ac_check_lib_save_LIBS
17212 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17213 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17214 if test $ac_cv_lib_gsm_gsm_create = yes; then
17216 cat >>confdefs.h
<<_ACEOF
17222 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17223 if test "x${GSM_DIR}" != "x" ; then
17224 as_ac_Header
=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
17225 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17226 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17227 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17228 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 ac_res
=`eval echo '${'$as_ac_Header'}'`
17232 { echo "$as_me:$LINENO: result: $ac_res" >&5
17233 echo "${ECHO_T}$ac_res" >&6; }
17235 # Is the header compilable?
17236 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17237 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17238 cat >conftest.
$ac_ext <<_ACEOF
17241 cat confdefs.h
>>conftest.
$ac_ext
17242 cat >>conftest.
$ac_ext <<_ACEOF
17243 /* end confdefs.h. */
17244 $ac_includes_default
17245 #include <${GSM_DIR}/include/gsm.h>
17247 rm -f conftest.
$ac_objext
17248 if { (ac_try
="$ac_compile"
17249 case "(($ac_try" in
17250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_compile") 2>conftest.er1
17256 grep -v '^ *+' conftest.er1 >conftest.err
17258 cat conftest.err >&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } && {
17261 test -z "$ac_c_werror_flag" ||
17262 test ! -s conftest.err
17263 } && test -s conftest.$ac_objext; then
17264 ac_header_compiler=yes
17266 echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17269 ac_header_compiler=no
17272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17274 echo "${ECHO_T}$ac_header_compiler" >&6; }
17276 # Is the header present?
17277 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17278 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17279 cat >conftest.$ac_ext <<_ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17285 #include <${GSM_DIR}/include/gsm.h>
17287 if { (ac_try="$ac_cpp conftest.$ac_ext"
17288 case "(($ac_try" in
17289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17290 *) ac_try_echo
=$ac_try;;
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17295 grep -v '^ *+' conftest.er1
>conftest.err
17297 cat conftest.err
>&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } >/dev
/null
&& {
17300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17301 test ! -s conftest.err
17303 ac_header_preproc
=yes
17305 echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.
$ac_ext >&5
17308 ac_header_preproc
=no
17311 rm -f conftest.err conftest.
$ac_ext
17312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17313 echo "${ECHO_T}$ac_header_preproc" >&6; }
17315 # So? What about this header?
17316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17318 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17319 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17321 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17322 ac_header_preproc
=yes
17325 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17326 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17327 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17328 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17329 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17330 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17331 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17332 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17333 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17334 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17335 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17336 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17338 ## ------------------------------- ##
17339 ## Report this to www.asterisk.org ##
17340 ## ------------------------------- ##
17342 ) |
sed "s/^/$as_me: WARNING: /" >&2
17345 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17346 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17347 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 eval "$as_ac_Header=\$ac_header_preproc"
17352 ac_res
=`eval echo '${'$as_ac_Header'}'`
17353 { echo "$as_me:$LINENO: result: $ac_res" >&5
17354 echo "${ECHO_T}$ac_res" >&6; }
17357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17364 as_ac_Header
=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17365 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17366 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17367 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17368 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 ac_res
=`eval echo '${'$as_ac_Header'}'`
17372 { echo "$as_me:$LINENO: result: $ac_res" >&5
17373 echo "${ECHO_T}$ac_res" >&6; }
17375 # Is the header compilable?
17376 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17377 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17378 cat >conftest.
$ac_ext <<_ACEOF
17381 cat confdefs.h
>>conftest.
$ac_ext
17382 cat >>conftest.
$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17384 $ac_includes_default
17385 #include <${GSM_DIR}/include/gsm/gsm.h>
17387 rm -f conftest.
$ac_objext
17388 if { (ac_try
="$ac_compile"
17389 case "(($ac_try" in
17390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17391 *) ac_try_echo=$ac_try;;
17393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17394 (eval "$ac_compile") 2>conftest.er1
17396 grep -v '^ *+' conftest.er1 >conftest.err
17398 cat conftest.err >&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } && {
17401 test -z "$ac_c_werror_flag" ||
17402 test ! -s conftest.err
17403 } && test -s conftest.$ac_objext; then
17404 ac_header_compiler=yes
17406 echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17409 ac_header_compiler=no
17412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17414 echo "${ECHO_T}$ac_header_compiler" >&6; }
17416 # Is the header present?
17417 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17418 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17419 cat >conftest.$ac_ext <<_ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h. */
17425 #include <${GSM_DIR}/include/gsm/gsm.h>
17427 if { (ac_try="$ac_cpp conftest.$ac_ext"
17428 case "(($ac_try" in
17429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17430 *) ac_try_echo
=$ac_try;;
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17435 grep -v '^ *+' conftest.er1
>conftest.err
17437 cat conftest.err
>&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } >/dev
/null
&& {
17440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17441 test ! -s conftest.err
17443 ac_header_preproc
=yes
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.
$ac_ext >&5
17448 ac_header_preproc
=no
17451 rm -f conftest.err conftest.
$ac_ext
17452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17453 echo "${ECHO_T}$ac_header_preproc" >&6; }
17455 # So? What about this header?
17456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17458 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17459 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17460 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17461 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17462 ac_header_preproc
=yes
17465 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17466 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17467 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17468 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17469 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17470 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17471 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17472 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17473 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17474 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17475 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17476 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17478 ## ------------------------------- ##
17479 ## Report this to www.asterisk.org ##
17480 ## ------------------------------- ##
17482 ) |
sed "s/^/$as_me: WARNING: /" >&2
17485 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17486 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17487 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17490 eval "$as_ac_Header=\$ac_header_preproc"
17492 ac_res
=`eval echo '${'$as_ac_Header'}'`
17493 { echo "$as_me:$LINENO: result: $ac_res" >&5
17494 echo "${ECHO_T}$ac_res" >&6; }
17497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17498 GSM_GSM_HEADER_FOUND
=1
17500 GSM_GSM_HEADER_FOUND
=0
17505 if test "${ac_cv_header_gsm_h+set}" = set; then
17506 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17507 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17508 if test "${ac_cv_header_gsm_h+set}" = set; then
17509 echo $ECHO_N "(cached) $ECHO_C" >&6
17511 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17512 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17514 # Is the header compilable?
17515 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17516 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17517 cat >conftest.
$ac_ext <<_ACEOF
17520 cat confdefs.h
>>conftest.
$ac_ext
17521 cat >>conftest.
$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 $ac_includes_default
17526 rm -f conftest.
$ac_objext
17527 if { (ac_try
="$ac_compile"
17528 case "(($ac_try" in
17529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17530 *) ac_try_echo=$ac_try;;
17532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533 (eval "$ac_compile") 2>conftest.er1
17535 grep -v '^ *+' conftest.er1 >conftest.err
17537 cat conftest.err >&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } && {
17540 test -z "$ac_c_werror_flag" ||
17541 test ! -s conftest.err
17542 } && test -s conftest.$ac_objext; then
17543 ac_header_compiler=yes
17545 echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17548 ac_header_compiler=no
17551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17553 echo "${ECHO_T}$ac_header_compiler" >&6; }
17555 # Is the header present?
17556 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17557 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17558 cat >conftest.$ac_ext <<_ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17566 if { (ac_try="$ac_cpp conftest.$ac_ext"
17567 case "(($ac_try" in
17568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17569 *) ac_try_echo
=$ac_try;;
17571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17574 grep -v '^ *+' conftest.er1
>conftest.err
17576 cat conftest.err
>&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } >/dev
/null
&& {
17579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17580 test ! -s conftest.err
17582 ac_header_preproc
=yes
17584 echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.
$ac_ext >&5
17587 ac_header_preproc
=no
17590 rm -f conftest.err conftest.
$ac_ext
17591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17592 echo "${ECHO_T}$ac_header_preproc" >&6; }
17594 # So? What about this header?
17595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17597 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17598 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17599 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17600 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17601 ac_header_preproc
=yes
17604 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17605 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17606 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17607 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17608 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17609 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17610 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17611 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17612 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17613 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17614 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17615 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17617 ## ------------------------------- ##
17618 ## Report this to www.asterisk.org ##
17619 ## ------------------------------- ##
17621 ) |
sed "s/^/$as_me: WARNING: /" >&2
17624 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17625 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17626 if test "${ac_cv_header_gsm_h+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 ac_cv_header_gsm_h
=$ac_header_preproc
17631 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17632 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17635 if test $ac_cv_header_gsm_h = yes; then
17642 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17643 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17644 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17645 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17646 echo $ECHO_N "(cached) $ECHO_C" >&6
17648 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17649 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17651 # Is the header compilable?
17652 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17653 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17654 cat >conftest.
$ac_ext <<_ACEOF
17657 cat confdefs.h
>>conftest.
$ac_ext
17658 cat >>conftest.
$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17660 $ac_includes_default
17661 #include <gsm/gsm.h>
17663 rm -f conftest.
$ac_objext
17664 if { (ac_try
="$ac_compile"
17665 case "(($ac_try" in
17666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_compile") 2>conftest.er1
17672 grep -v '^ *+' conftest.er1 >conftest.err
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } && {
17677 test -z "$ac_c_werror_flag" ||
17678 test ! -s conftest.err
17679 } && test -s conftest.$ac_objext; then
17680 ac_header_compiler=yes
17682 echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17685 ac_header_compiler=no
17688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17690 echo "${ECHO_T}$ac_header_compiler" >&6; }
17692 # Is the header present?
17693 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17694 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17695 cat >conftest.$ac_ext <<_ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701 #include <gsm/gsm.h>
17703 if { (ac_try="$ac_cpp conftest.$ac_ext"
17704 case "(($ac_try" in
17705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17706 *) ac_try_echo
=$ac_try;;
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17711 grep -v '^ *+' conftest.er1
>conftest.err
17713 cat conftest.err
>&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } >/dev
/null
&& {
17716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17717 test ! -s conftest.err
17719 ac_header_preproc
=yes
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.
$ac_ext >&5
17724 ac_header_preproc
=no
17727 rm -f conftest.err conftest.
$ac_ext
17728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17729 echo "${ECHO_T}$ac_header_preproc" >&6; }
17731 # So? What about this header?
17732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17734 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17735 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17736 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
17737 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
17738 ac_header_preproc
=yes
17741 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
17742 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
17743 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
17744 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17745 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
17746 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17748 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
17750 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
17752 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17754 ## ------------------------------- ##
17755 ## Report this to www.asterisk.org ##
17756 ## ------------------------------- ##
17758 ) |
sed "s/^/$as_me: WARNING: /" >&2
17761 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17762 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17763 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17766 ac_cv_header_gsm_gsm_h
=$ac_header_preproc
17768 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17769 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17772 if test $ac_cv_header_gsm_gsm_h = yes; then
17773 GSM_GSM_HEADER_FOUND
=1
17775 GSM_GSM_HEADER_FOUND
=0
17780 if test "${GSM_HEADER_FOUND}" = "0" ; then
17781 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
17782 if test "x${GSM_MANDATORY}" = "xyes" ; then
17783 { echo "$as_me:$LINENO: ***" >&5
17784 echo "$as_me: ***" >&6;}
17785 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
17786 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
17787 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
17788 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
17789 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
17790 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
17796 if test "${GSM_HEADER_FOUND}" = "1" ; then
17798 cat >>confdefs.h
<<_ACEOF
17799 #define HAVE_GSM_HEADER 1
17804 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
17806 cat >>confdefs.h
<<_ACEOF
17807 #define HAVE_GSM_GSM_HEADER 1
17813 if test "${GSM_OK}" = "1" ; then
17815 if test "x${GSM_DIR}" != "x"; then
17816 GSM_LIB
="${gsmlibdir} ${GSM_LIB}"
17817 GSM_INCLUDE
="-I${GSM_DIR}/include"
17824 if test "${GSM_INTERNAL}" = "yes"; then
17827 cat >>confdefs.h
<<_ACEOF
17828 #define HAVE_GSM_HEADER 1
17835 if test "${USE_IKSEMEL}" != "no"; then
17837 if test "x${IKSEMEL_DIR}" != "x"; then
17838 if test -d ${IKSEMEL_DIR}/lib
; then
17839 pbxlibdir
="-L${IKSEMEL_DIR}/lib"
17841 pbxlibdir
="-L${IKSEMEL_DIR}"
17844 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
17845 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
17846 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17849 ac_check_lib_save_LIBS
=$LIBS
17850 LIBS
="-liksemel ${pbxlibdir} $LIBS"
17851 cat >conftest.
$ac_ext <<_ACEOF
17854 cat confdefs.h
>>conftest.
$ac_ext
17855 cat >>conftest.
$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17858 /* Override any GCC internal prototype to avoid an error.
17859 Use char because int might match the return type of a GCC
17860 builtin and then its argument prototype would still apply. */
17864 char iks_start_sasl ();
17868 return iks_start_sasl ();
17873 rm -f conftest.
$ac_objext conftest
$ac_exeext
17874 if { (ac_try
="$ac_link"
17875 case "(($ac_try" in
17876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_link") 2>conftest.er1
17882 grep -v '^ *+' conftest.er1 >conftest.err
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } && {
17887 test -z "$ac_c_werror_flag" ||
17888 test ! -s conftest.err
17889 } && test -s conftest$ac_exeext &&
17890 $as_test_x conftest$ac_exeext; then
17891 ac_cv_lib_iksemel_iks_start_sasl=yes
17893 echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17896 ac_cv_lib_iksemel_iks_start_sasl=no
17899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17900 conftest$ac_exeext conftest.$ac_ext
17901 LIBS=$ac_check_lib_save_LIBS
17903 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
17904 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
17905 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
17906 AST_IKSEMEL_FOUND=yes
17908 AST_IKSEMEL_FOUND=no
17912 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
17913 IKSEMEL_LIB="-liksemel "
17914 IKSEMEL_HEADER_FOUND="1"
17915 if test "x${IKSEMEL_DIR}" != "x"; then
17916 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
17917 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
17918 saved_cppflags="${CPPFLAGS}"
17919 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
17920 if test "xiksemel.h" != "x" ; then
17921 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" |
$as_tr_sh`
17922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17923 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
17924 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
17925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 ac_res=`eval echo '${'$as_ac_Header'}'`
17929 { echo "$as_me:$LINENO: result: $ac_res" >&5
17930 echo "${ECHO_T}$ac_res" >&6; }
17932 # Is the header compilable?
17933 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
17934 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
17935 cat >conftest.$ac_ext <<_ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h. */
17941 $ac_includes_default
17942 #include <${IKSEMEL_DIR}/include/iksemel.h>
17944 rm -f conftest.$ac_objext
17945 if { (ac_try="$ac_compile"
17946 case "(($ac_try" in
17947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17948 *) ac_try_echo
=$ac_try;;
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_compile") 2>conftest.er1
17953 grep -v '^ *+' conftest.er1
>conftest.err
17955 cat conftest.err
>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } && {
17958 test -z "$ac_c_werror_flag" ||
17959 test ! -s conftest.err
17960 } && test -s conftest.
$ac_objext; then
17961 ac_header_compiler
=yes
17963 echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.
$ac_ext >&5
17966 ac_header_compiler
=no
17969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17971 echo "${ECHO_T}$ac_header_compiler" >&6; }
17973 # Is the header present?
17974 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
17975 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
17976 cat >conftest.
$ac_ext <<_ACEOF
17979 cat confdefs.h
>>conftest.
$ac_ext
17980 cat >>conftest.
$ac_ext <<_ACEOF
17981 /* end confdefs.h. */
17982 #include <${IKSEMEL_DIR}/include/iksemel.h>
17984 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17985 case "(($ac_try" in
17986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17992 grep -v '^ *+' conftest.er1 >conftest.err
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } >/dev/null && {
17997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17998 test ! -s conftest.err
18000 ac_header_preproc=yes
18002 echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18005 ac_header_preproc=no
18008 rm -f conftest.err conftest.$ac_ext
18009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18010 echo "${ECHO_T}$ac_header_preproc" >&6; }
18012 # So? What about this header?
18013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18015 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18016 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18017 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
18018 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
18019 ac_header_preproc=yes
18022 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
18023 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
18024 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
18025 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
18026 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
18027 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
18028 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18029 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18030 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
18031 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
18032 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
18033 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
18035 ## ------------------------------- ##
18036 ## Report this to www.asterisk.org ##
18037 ## ------------------------------- ##
18039 ) | sed "s/^/$as_me: WARNING: /" >&2
18042 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18043 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 eval "$as_ac_Header=\$ac_header_preproc"
18049 ac_res=`eval echo '${'$as_ac_Header'}'`
18050 { echo "$as_me:$LINENO: result: $ac_res" >&5
18051 echo "${ECHO_T}$ac_res" >&6; }
18054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18055 IKSEMEL_HEADER_FOUND=1
18057 IKSEMEL_HEADER_FOUND=0
18062 CPPFLAGS="${saved_cppflags}"
18064 if test "xiksemel.h" != "x" ; then
18065 if test "${ac_cv_header_iksemel_h+set}" = set; then
18066 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18067 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18068 if test "${ac_cv_header_iksemel_h+set}" = set; then
18069 echo $ECHO_N "(cached) $ECHO_C" >&6
18071 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18072 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18074 # Is the header compilable?
18075 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18076 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
18077 cat >conftest.$ac_ext <<_ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18083 $ac_includes_default
18084 #include <iksemel.h>
18086 rm -f conftest.$ac_objext
18087 if { (ac_try="$ac_compile"
18088 case "(($ac_try" in
18089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18090 *) ac_try_echo
=$ac_try;;
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_compile") 2>conftest.er1
18095 grep -v '^ *+' conftest.er1
>conftest.err
18097 cat conftest.err
>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } && {
18100 test -z "$ac_c_werror_flag" ||
18101 test ! -s conftest.err
18102 } && test -s conftest.
$ac_objext; then
18103 ac_header_compiler
=yes
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.
$ac_ext >&5
18108 ac_header_compiler
=no
18111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18113 echo "${ECHO_T}$ac_header_compiler" >&6; }
18115 # Is the header present?
18116 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18117 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18118 cat >conftest.
$ac_ext <<_ACEOF
18121 cat confdefs.h
>>conftest.
$ac_ext
18122 cat >>conftest.
$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18124 #include <iksemel.h>
18126 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18127 case "(($ac_try" in
18128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18129 *) ac_try_echo=$ac_try;;
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18134 grep -v '^ *+' conftest.er1 >conftest.err
18136 cat conftest.err >&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } >/dev/null && {
18139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18140 test ! -s conftest.err
18142 ac_header_preproc=yes
18144 echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18147 ac_header_preproc=no
18150 rm -f conftest.err conftest.$ac_ext
18151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18152 echo "${ECHO_T}$ac_header_preproc" >&6; }
18154 # So? What about this header?
18155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18157 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18158 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18159 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18160 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18161 ac_header_preproc=yes
18164 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18165 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18166 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18167 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18168 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18169 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18170 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18171 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18172 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18173 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18174 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18175 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18177 ## ------------------------------- ##
18178 ## Report this to www.asterisk.org ##
18179 ## ------------------------------- ##
18181 ) | sed "s/^/$as_me: WARNING: /" >&2
18184 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18185 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18186 if test "${ac_cv_header_iksemel_h+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18189 ac_cv_header_iksemel_h=$ac_header_preproc
18191 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18192 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18195 if test $ac_cv_header_iksemel_h = yes; then
18196 IKSEMEL_HEADER_FOUND=1
18198 IKSEMEL_HEADER_FOUND=0
18204 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18205 if test -n "${IKSEMEL_MANDATORY}" ;
18207 { echo "$as_me:$LINENO: ***" >&5
18208 echo "$as_me: ***" >&6;}
18209 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18210 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18211 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18212 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18213 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18214 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18223 cat >>confdefs.h <<_ACEOF
18224 #define HAVE_IKSEMEL 1
18228 elif test -n "${IKSEMEL_MANDATORY}";
18230 { echo "$as_me:$LINENO: ***" >&5
18231 echo "$as_me: ***" >&6;}
18232 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18233 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18234 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18235 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18236 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18237 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18243 if test "${PBX_IKSEMEL}" = 1; then
18245 if test "${USE_GNUTLS}" != "no"; then
18247 if test "x${GNUTLS_DIR}" != "x"; then
18248 if test -d ${GNUTLS_DIR}/lib; then
18249 pbxlibdir="-L${GNUTLS_DIR}/lib"
18251 pbxlibdir="-L${GNUTLS_DIR}"
18254 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18255 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18256 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18257 echo $ECHO_N "(cached) $ECHO_C" >&6
18259 ac_check_lib_save_LIBS=$LIBS
18260 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18261 cat >conftest.$ac_ext <<_ACEOF
18264 cat confdefs.h >>conftest.$ac_ext
18265 cat >>conftest.$ac_ext <<_ACEOF
18266 /* end confdefs.h. */
18268 /* Override any GCC internal prototype to avoid an error.
18269 Use char because int might match the return type of a GCC
18270 builtin and then its argument prototype would still apply. */
18274 char gnutls_bye ();
18278 return gnutls_bye ();
18283 rm -f conftest.$ac_objext conftest$ac_exeext
18284 if { (ac_try="$ac_link"
18285 case "(($ac_try" in
18286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18287 *) ac_try_echo
=$ac_try;;
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_link") 2>conftest.er1
18292 grep -v '^ *+' conftest.er1
>conftest.err
18294 cat conftest.err
>&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); } && {
18297 test -z "$ac_c_werror_flag" ||
18298 test ! -s conftest.err
18299 } && test -s conftest
$ac_exeext &&
18300 $as_test_x conftest
$ac_exeext; then
18301 ac_cv_lib_gnutls_gnutls_bye
=yes
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.
$ac_ext >&5
18306 ac_cv_lib_gnutls_gnutls_bye
=no
18309 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18310 conftest
$ac_exeext conftest.
$ac_ext
18311 LIBS
=$ac_check_lib_save_LIBS
18313 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18314 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18315 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18316 AST_GNUTLS_FOUND
=yes
18318 AST_GNUTLS_FOUND
=no
18322 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18323 GNUTLS_LIB
="-lgnutls -lz -lgcrypt -lgpg-error"
18324 GNUTLS_HEADER_FOUND
="1"
18325 if test "x${GNUTLS_DIR}" != "x"; then
18326 GNUTLS_LIB
="${pbxlibdir} ${GNUTLS_LIB}"
18327 GNUTLS_INCLUDE
="-I${GNUTLS_DIR}/include"
18328 saved_cppflags
="${CPPFLAGS}"
18329 CPPFLAGS
="${CPPFLAGS} -I${GNUTLS_DIR}/include"
18330 if test "xgnutls/gnutls.h" != "x" ; then
18331 as_ac_Header
=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
18332 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18333 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18334 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18335 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18336 echo $ECHO_N "(cached) $ECHO_C" >&6
18338 ac_res
=`eval echo '${'$as_ac_Header'}'`
18339 { echo "$as_me:$LINENO: result: $ac_res" >&5
18340 echo "${ECHO_T}$ac_res" >&6; }
18342 # Is the header compilable?
18343 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
18344 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
18345 cat >conftest.
$ac_ext <<_ACEOF
18348 cat confdefs.h
>>conftest.
$ac_ext
18349 cat >>conftest.
$ac_ext <<_ACEOF
18350 /* end confdefs.h. */
18351 $ac_includes_default
18352 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18354 rm -f conftest.
$ac_objext
18355 if { (ac_try
="$ac_compile"
18356 case "(($ac_try" in
18357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18358 *) ac_try_echo=$ac_try;;
18360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18361 (eval "$ac_compile") 2>conftest.er1
18363 grep -v '^ *+' conftest.er1 >conftest.err
18365 cat conftest.err >&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } && {
18368 test -z "$ac_c_werror_flag" ||
18369 test ! -s conftest.err
18370 } && test -s conftest.$ac_objext; then
18371 ac_header_compiler=yes
18373 echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18376 ac_header_compiler=no
18379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18381 echo "${ECHO_T}$ac_header_compiler" >&6; }
18383 # Is the header present?
18384 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
18385 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
18386 cat >conftest.$ac_ext <<_ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18392 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18394 if { (ac_try="$ac_cpp conftest.$ac_ext"
18395 case "(($ac_try" in
18396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18397 *) ac_try_echo
=$ac_try;;
18399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18402 grep -v '^ *+' conftest.er1
>conftest.err
18404 cat conftest.err
>&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } >/dev
/null
&& {
18407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18408 test ! -s conftest.err
18410 ac_header_preproc
=yes
18412 echo "$as_me: failed program was:" >&5
18413 sed 's/^/| /' conftest.
$ac_ext >&5
18415 ac_header_preproc
=no
18418 rm -f conftest.err conftest.
$ac_ext
18419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18420 echo "${ECHO_T}$ac_header_preproc" >&6; }
18422 # So? What about this header?
18423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18425 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18426 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18427 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
18428 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18429 ac_header_preproc
=yes
18432 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
18433 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18435 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18436 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
18437 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18438 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18439 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18440 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18441 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18442 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18443 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18445 ## ------------------------------- ##
18446 ## Report this to www.asterisk.org ##
18447 ## ------------------------------- ##
18449 ) |
sed "s/^/$as_me: WARNING: /" >&2
18452 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18453 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18454 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18455 echo $ECHO_N "(cached) $ECHO_C" >&6
18457 eval "$as_ac_Header=\$ac_header_preproc"
18459 ac_res
=`eval echo '${'$as_ac_Header'}'`
18460 { echo "$as_me:$LINENO: result: $ac_res" >&5
18461 echo "${ECHO_T}$ac_res" >&6; }
18464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18465 GNUTLS_HEADER_FOUND
=1
18467 GNUTLS_HEADER_FOUND
=0
18472 CPPFLAGS
="${saved_cppflags}"
18474 if test "xgnutls/gnutls.h" != "x" ; then
18475 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18476 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18477 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18478 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18482 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18484 # Is the header compilable?
18485 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18486 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18487 cat >conftest.
$ac_ext <<_ACEOF
18490 cat confdefs.h
>>conftest.
$ac_ext
18491 cat >>conftest.
$ac_ext <<_ACEOF
18492 /* end confdefs.h. */
18493 $ac_includes_default
18494 #include <gnutls/gnutls.h>
18496 rm -f conftest.
$ac_objext
18497 if { (ac_try
="$ac_compile"
18498 case "(($ac_try" in
18499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_compile") 2>conftest.er1
18505 grep -v '^ *+' conftest.er1 >conftest.err
18507 cat conftest.err >&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); } && {
18510 test -z "$ac_c_werror_flag" ||
18511 test ! -s conftest.err
18512 } && test -s conftest.$ac_objext; then
18513 ac_header_compiler=yes
18515 echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18518 ac_header_compiler=no
18521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18523 echo "${ECHO_T}$ac_header_compiler" >&6; }
18525 # Is the header present?
18526 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18527 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18528 cat >conftest.$ac_ext <<_ACEOF
18531 cat confdefs.h >>conftest.$ac_ext
18532 cat >>conftest.$ac_ext <<_ACEOF
18533 /* end confdefs.h. */
18534 #include <gnutls/gnutls.h>
18536 if { (ac_try="$ac_cpp conftest.$ac_ext"
18537 case "(($ac_try" in
18538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18539 *) ac_try_echo
=$ac_try;;
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18544 grep -v '^ *+' conftest.er1
>conftest.err
18546 cat conftest.err
>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } >/dev
/null
&& {
18549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18550 test ! -s conftest.err
18552 ac_header_preproc
=yes
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.
$ac_ext >&5
18557 ac_header_preproc
=no
18560 rm -f conftest.err conftest.
$ac_ext
18561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18562 echo "${ECHO_T}$ac_header_preproc" >&6; }
18564 # So? What about this header?
18565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18567 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18568 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18569 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18570 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18571 ac_header_preproc
=yes
18574 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18575 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18576 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18577 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18578 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18579 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18580 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18581 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18582 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18583 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18584 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18585 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18587 ## ------------------------------- ##
18588 ## Report this to www.asterisk.org ##
18589 ## ------------------------------- ##
18591 ) |
sed "s/^/$as_me: WARNING: /" >&2
18594 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18595 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18596 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18597 echo $ECHO_N "(cached) $ECHO_C" >&6
18599 ac_cv_header_gnutls_gnutls_h
=$ac_header_preproc
18601 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18602 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18605 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18606 GNUTLS_HEADER_FOUND
=1
18608 GNUTLS_HEADER_FOUND
=0
18614 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18615 if test -n "${GNUTLS_MANDATORY}" ;
18617 { echo "$as_me:$LINENO: ***" >&5
18618 echo "$as_me: ***" >&6;}
18619 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18620 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18621 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18622 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18623 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18624 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18633 cat >>confdefs.h
<<_ACEOF
18634 #define HAVE_GNUTLS 1
18638 elif test -n "${GNUTLS_MANDATORY}";
18640 { echo "$as_me:$LINENO: ***" >&5
18641 echo "$as_me: ***" >&6;}
18642 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18643 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18644 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18645 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18646 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18647 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18654 if test "${USE_IMAP_TK}" != "no"; then
18655 if test "${IMAP_TK_DIR}" = ""; then
18656 IMAP_TK_DIR
=`pwd`"/../imap-2004g"
18657 if test -n "${IMAP_TK_MANDATORY}"; then
18658 { echo "$as_me:$LINENO: The --with-imap option does not search your system for installed" >&5
18659 echo "$as_me: The --with-imap option does not search your system for installed" >&6;}
18660 { echo "$as_me:$LINENO: c-client library/header files. Since you did not provide a path" >&5
18661 echo "$as_me: c-client library/header files. Since you did not provide a path" >&6;}
18662 { echo "$as_me:$LINENO: the configure script will assume you have placed built the c-client" >&5
18663 echo "$as_me: the configure script will assume you have placed built the c-client" >&6;}
18664 { echo "$as_me:$LINENO: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&5
18665 echo "$as_me: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&6;}
18668 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18669 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18670 saved_cppflags
="${CPPFLAGS}"
18671 saved_libs
="${LIBS}"
18672 if test -f ${IMAP_TK_DIR}/c-client
/LDFLAGS
; then
18673 imap_ldflags
=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
18675 CPPFLAGS
="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
18676 LIBS
="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
18677 cat >conftest.$ac_ext <<_ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18683 #include "c-client.h
"
18684 void mm_searched (MAILSTREAM *stream,unsigned long number)
18687 void mm_exists (MAILSTREAM *stream,unsigned long number)
18690 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18693 void mm_flags (MAILSTREAM *stream,unsigned long number)
18696 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18699 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18702 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18705 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18708 void mm_log (char *string,long errflg)
18711 void mm_dlog (char *string)
18714 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18717 void mm_critical (MAILSTREAM *stream)
18720 void mm_nocritical (MAILSTREAM *stream)
18723 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18726 void mm_fatal (char *string)
18733 MAILSTREAM *foo = mail_open(NULL, "", 0);
18740 rm -f conftest.$ac_objext conftest$ac_exeext
18741 if { (ac_try="$ac_link"
18742 case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18746 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_link") 2>conftest.er1
18749 grep -v '^ *+' conftest.er1 >conftest.err
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18753 (exit $ac_status); } && {
18754 test -z "$ac_c_werror_flag" ||
18755 test ! -s conftest.err
18756 } && test -s conftest$ac_exeext &&
18757 $as_test_x conftest$ac_exeext; then
18758 ac_cv_imap_tk="yes"
18760 echo "$as_me: failed program was
:" >&5
18761 sed 's/^/| /' conftest.$ac_ext >&5
18767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18768 conftest$ac_exeext conftest.$ac_ext
18769 if test "${ac_cv_imap_tk}" = "yes"; then
18770 cat >conftest.$ac_ext <<_ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18776 #include "c-client.h
"
18777 void mm_searched (MAILSTREAM *stream,unsigned long number)
18780 void mm_exists (MAILSTREAM *stream,unsigned long number)
18783 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18786 void mm_flags (MAILSTREAM *stream,unsigned long number)
18789 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18792 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18795 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18798 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18801 void mm_log (char *string,long errflg)
18804 void mm_dlog (char *string)
18807 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18810 void mm_critical (MAILSTREAM *stream)
18813 void mm_nocritical (MAILSTREAM *stream)
18816 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18819 void mm_fatal (char *string)
18826 long check = mail_expunge_full(NULL, "", 0);
18833 rm -f conftest.$ac_objext conftest$ac_exeext
18834 if { (ac_try="$ac_link"
18835 case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_link") 2>conftest.er1
18842 grep -v '^ *+' conftest.er1 >conftest.err
18844 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18846 (exit $ac_status); } && {
18847 test -z "$ac_c_werror_flag" ||
18848 test ! -s conftest.err
18849 } && test -s conftest$ac_exeext &&
18850 $as_test_x conftest$ac_exeext; then
18851 ac_cv_imap_tk2006="yes"
18853 echo "$as_me: failed program was
:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18856 ac_cv_imap_tk2006="no
"
18860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18861 conftest$ac_exeext conftest.$ac_ext
18863 CPPFLAGS="${saved_cppflags}"
18864 LIBS="${saved_libs}"
18865 if test "${ac_cv_imap_tk}" = "yes"; then
18866 { echo "$as_me:$LINENO: result
: yes" >&5
18867 echo "${ECHO_T}yes" >&6; }
18868 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client
/c-client.a
"`echo ${imap_ldflags}`
18869 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client
"
18872 cat >>confdefs.h <<\_ACEOF
18873 #define HAVE_IMAP_TK 1
18876 if test "${ac_cv_imap_tk2006}" = "yes"; then
18878 cat >>confdefs.h <<\_ACEOF
18879 #define HAVE_IMAP_TK2006 1
18883 elif test -n "${IMAP_TK_MANDATORY}"; then
18884 { echo "$as_me:$LINENO: result
: no
" >&5
18885 echo "${ECHO_T}no
" >&6; }
18886 { echo "$as_me:$LINENO: ***" >&5
18887 echo "$as_me: ***" >&6;}
18888 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken.
" >&5
18889 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken.
" >&6;}
18890 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
18891 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
18892 { echo "$as_me:$LINENO: *** including
--without-imap.
" >&5
18893 echo "$as_me: *** including
--without-imap.
" >&6;}
18896 { echo "$as_me:$LINENO: result
: no
" >&5
18897 echo "${ECHO_T}no
" >&6; }
18901 # Needed by unixodbc
18903 if test "${USE_LTDL}" != "no
"; then
18905 if test "x
${LTDL_DIR}" != "x
"; then
18906 if test -d ${LTDL_DIR}/lib; then
18907 pbxlibdir="-L${LTDL_DIR}/lib
"
18909 pbxlibdir="-L${LTDL_DIR}"
18912 { echo "$as_me:$LINENO: checking
for lt_dlinit
in -lltdl" >&5
18913 echo $ECHO_N "checking
for lt_dlinit
in -lltdl...
$ECHO_C" >&6; }
18914 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
18915 echo $ECHO_N "(cached
) $ECHO_C" >&6
18917 ac_check_lib_save_LIBS=$LIBS
18918 LIBS="-lltdl ${pbxlibdir} $LIBS"
18919 cat >conftest.$ac_ext <<_ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18926 /* Override any GCC internal prototype to avoid an error.
18927 Use char because int might match the return type of a GCC
18928 builtin and then its argument prototype would still apply. */
18936 return lt_dlinit ();
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (ac_try="$ac_link"
18943 case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18947 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_link") 2>conftest.er1
18950 grep -v '^ *+' conftest.er1 >conftest.err
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18954 (exit $ac_status); } && {
18955 test -z "$ac_c_werror_flag" ||
18956 test ! -s conftest.err
18957 } && test -s conftest$ac_exeext &&
18958 $as_test_x conftest$ac_exeext; then
18959 ac_cv_lib_ltdl_lt_dlinit=yes
18961 echo "$as_me: failed program was
:" >&5
18962 sed 's/^/| /' conftest.$ac_ext >&5
18964 ac_cv_lib_ltdl_lt_dlinit=no
18967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18968 conftest$ac_exeext conftest.$ac_ext
18969 LIBS=$ac_check_lib_save_LIBS
18971 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ltdl_lt_dlinit" >&5
18972 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
18973 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
18980 if test "${AST_LTDL_FOUND}" = "yes"; then
18982 LTDL_HEADER_FOUND="1"
18983 if test "x
${LTDL_DIR}" != "x
"; then
18984 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
18985 LTDL_INCLUDE="-I${LTDL_DIR}/include
"
18986 saved_cppflags="${CPPFLAGS}"
18987 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include
"
18988 if test "xltdl.h
" != "x
" ; then
18989 as_ac_Header=`echo "ac_cv_header_
${LTDL_DIR}/include
/ltdl.h
" | $as_tr_sh`
18990 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18991 { echo "$as_me:$LINENO: checking
for ${LTDL_DIR}/include
/ltdl.h
" >&5
18992 echo $ECHO_N "checking
for ${LTDL_DIR}/include
/ltdl.h...
$ECHO_C" >&6; }
18993 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18994 echo $ECHO_N "(cached
) $ECHO_C" >&6
18996 ac_res=`eval echo '${'$as_ac_Header'}'`
18997 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18998 echo "${ECHO_T}$ac_res" >&6; }
19000 # Is the header compilable?
19001 { echo "$as_me:$LINENO: checking
${LTDL_DIR}/include
/ltdl.h usability
" >&5
19002 echo $ECHO_N "checking
${LTDL_DIR}/include
/ltdl.h usability...
$ECHO_C" >&6; }
19003 cat >conftest.$ac_ext <<_ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h. */
19009 $ac_includes_default
19010 #include <${LTDL_DIR}/include/ltdl.h>
19012 rm -f conftest.$ac_objext
19013 if { (ac_try="$ac_compile"
19014 case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_compile") 2>conftest.er1
19021 grep -v '^ *+' conftest.er1 >conftest.err
19023 cat conftest.err >&5
19024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19025 (exit $ac_status); } && {
19026 test -z "$ac_c_werror_flag" ||
19027 test ! -s conftest.err
19028 } && test -s conftest.$ac_objext; then
19029 ac_header_compiler=yes
19031 echo "$as_me: failed program was
:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19034 ac_header_compiler=no
19037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19038 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19039 echo "${ECHO_T}$ac_header_compiler" >&6; }
19041 # Is the header present?
19042 { echo "$as_me:$LINENO: checking
${LTDL_DIR}/include
/ltdl.h presence
" >&5
19043 echo $ECHO_N "checking
${LTDL_DIR}/include
/ltdl.h presence...
$ECHO_C" >&6; }
19044 cat >conftest.$ac_ext <<_ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 #include <${LTDL_DIR}/include/ltdl.h>
19052 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19053 case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19060 grep -v '^ *+' conftest.er1 >conftest.err
19062 cat conftest.err >&5
19063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19064 (exit $ac_status); } >/dev/null && {
19065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19066 test ! -s conftest.err
19068 ac_header_preproc=yes
19070 echo "$as_me: failed program was
:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19073 ac_header_preproc=no
19076 rm -f conftest.err conftest.$ac_ext
19077 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19078 echo "${ECHO_T}$ac_header_preproc" >&6; }
19080 # So? What about this header?
19081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19083 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19084 echo "$as_me: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19085 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: proceeding with the compiler
's result" >&5
19086 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result
" >&2;}
19087 ac_header_preproc=yes
19090 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: present but cannot be compiled
" >&5
19091 echo "$as_me: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: present but cannot be compiled
" >&2;}
19092 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: check
for missing prerequisite headers?
" >&5
19093 echo "$as_me: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: check
for missing prerequisite headers?
" >&2;}
19094 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: see the Autoconf documentation
" >&5
19095 echo "$as_me: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: see the Autoconf documentation
" >&2;}
19096 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19097 echo "$as_me: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19098 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: proceeding with the preprocessor
's result" >&5
19099 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result
" >&2;}
19100 { echo "$as_me:$LINENO: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: in the future
, the compiler will take precedence
" >&5
19101 echo "$as_me: WARNING
: ${LTDL_DIR}/include
/ltdl.h
: in the future
, the compiler will take precedence
" >&2;}
19103 ## ------------------------------- ##
19104 ## Report this to www.asterisk.org ##
19105 ## ------------------------------- ##
19107 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
19110 { echo "$as_me:$LINENO: checking
for ${LTDL_DIR}/include
/ltdl.h
" >&5
19111 echo $ECHO_N "checking
for ${LTDL_DIR}/include
/ltdl.h...
$ECHO_C" >&6; }
19112 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19113 echo $ECHO_N "(cached
) $ECHO_C" >&6
19115 eval "$as_ac_Header=\
$ac_header_preproc"
19117 ac_res=`eval echo '${'$as_ac_Header'}'`
19118 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19119 echo "${ECHO_T}$ac_res" >&6; }
19122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19123 LTDL_HEADER_FOUND=1
19125 LTDL_HEADER_FOUND=0
19130 CPPFLAGS="${saved_cppflags}"
19132 if test "xltdl.h
" != "x
" ; then
19133 if test "${ac_cv_header_ltdl_h+set}" = set; then
19134 { echo "$as_me:$LINENO: checking
for ltdl.h
" >&5
19135 echo $ECHO_N "checking
for ltdl.h...
$ECHO_C" >&6; }
19136 if test "${ac_cv_header_ltdl_h+set}" = set; then
19137 echo $ECHO_N "(cached
) $ECHO_C" >&6
19139 { echo "$as_me:$LINENO: result
: $ac_cv_header_ltdl_h" >&5
19140 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
19142 # Is the header compilable?
19143 { echo "$as_me:$LINENO: checking ltdl.h usability
" >&5
19144 echo $ECHO_N "checking ltdl.h usability...
$ECHO_C" >&6; }
19145 cat >conftest.$ac_ext <<_ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151 $ac_includes_default
19154 rm -f conftest.$ac_objext
19155 if { (ac_try="$ac_compile"
19156 case "(($ac_try" in
19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158 *) ac_try_echo=$ac_try;;
19160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19161 (eval "$ac_compile") 2>conftest.er1
19163 grep -v '^ *+' conftest.er1 >conftest.err
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19167 (exit $ac_status); } && {
19168 test -z "$ac_c_werror_flag" ||
19169 test ! -s conftest.err
19170 } && test -s conftest.$ac_objext; then
19171 ac_header_compiler=yes
19173 echo "$as_me: failed program was
:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19176 ac_header_compiler=no
19179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19180 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19181 echo "${ECHO_T}$ac_header_compiler" >&6; }
19183 # Is the header present?
19184 { echo "$as_me:$LINENO: checking ltdl.h presence
" >&5
19185 echo $ECHO_N "checking ltdl.h presence...
$ECHO_C" >&6; }
19186 cat >conftest.$ac_ext <<_ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19194 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19206 (exit $ac_status); } >/dev/null && {
19207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19208 test ! -s conftest.err
19210 ac_header_preproc=yes
19212 echo "$as_me: failed program was
:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19215 ac_header_preproc=no
19218 rm -f conftest.err conftest.$ac_ext
19219 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19220 echo "${ECHO_T}$ac_header_preproc" >&6; }
19222 # So? What about this header?
19223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19225 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19226 echo "$as_me: WARNING
: ltdl.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19227 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: proceeding with the compiler
's result" >&5
19228 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result
" >&2;}
19229 ac_header_preproc=yes
19232 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: present but cannot be compiled
" >&5
19233 echo "$as_me: WARNING
: ltdl.h
: present but cannot be compiled
" >&2;}
19234 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: check
for missing prerequisite headers?
" >&5
19235 echo "$as_me: WARNING
: ltdl.h
: check
for missing prerequisite headers?
" >&2;}
19236 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: see the Autoconf documentation
" >&5
19237 echo "$as_me: WARNING
: ltdl.h
: see the Autoconf documentation
" >&2;}
19238 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19239 echo "$as_me: WARNING
: ltdl.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19240 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: proceeding with the preprocessor
's result" >&5
19241 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result
" >&2;}
19242 { echo "$as_me:$LINENO: WARNING
: ltdl.h
: in the future
, the compiler will take precedence
" >&5
19243 echo "$as_me: WARNING
: ltdl.h
: in the future
, the compiler will take precedence
" >&2;}
19245 ## ------------------------------- ##
19246 ## Report this to www.asterisk.org ##
19247 ## ------------------------------- ##
19249 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
19252 { echo "$as_me:$LINENO: checking
for ltdl.h
" >&5
19253 echo $ECHO_N "checking
for ltdl.h...
$ECHO_C" >&6; }
19254 if test "${ac_cv_header_ltdl_h+set}" = set; then
19255 echo $ECHO_N "(cached
) $ECHO_C" >&6
19257 ac_cv_header_ltdl_h=$ac_header_preproc
19259 { echo "$as_me:$LINENO: result
: $ac_cv_header_ltdl_h" >&5
19260 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
19263 if test $ac_cv_header_ltdl_h = yes; then
19264 LTDL_HEADER_FOUND=1
19266 LTDL_HEADER_FOUND=0
19272 if test "x
${LTDL_HEADER_FOUND}" = "x0
" ; then
19273 if test -n "${LTDL_MANDATORY}" ;
19275 { echo "$as_me:$LINENO: ***" >&5
19276 echo "$as_me: ***" >&6;}
19277 { echo "$as_me:$LINENO: *** It appears that you
do not have the ltdl development package installed.
" >&5
19278 echo "$as_me: *** It appears that you
do not have the ltdl development package installed.
" >&6;}
19279 { echo "$as_me:$LINENO: *** Please
install it to include
${LTDL_DESCRIP} support
, or re-run configure
" >&5
19280 echo "$as_me: *** Please
install it to include
${LTDL_DESCRIP} support
, or re-run configure
" >&6;}
19281 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${LTDL_OPTION}" >&5
19282 echo "$as_me: *** without explicitly specifying
--with-${LTDL_OPTION}" >&6;}
19291 cat >>confdefs.h <<_ACEOF
19292 #define HAVE_LTDL 1
19296 elif test -n "${LTDL_MANDATORY}";
19298 { echo "$as_me:$LINENO: ***" >&5
19299 echo "$as_me: ***" >&6;}
19300 { echo "$as_me:$LINENO: *** The
${LTDL_DESCRIP} installation on this system appears to be broken.
" >&5
19301 echo "$as_me: *** The
${LTDL_DESCRIP} installation on this system appears to be broken.
" >&6;}
19302 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
19303 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
19304 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${LTDL_OPTION}" >&5
19305 echo "$as_me: *** without explicitly specifying
--with-${LTDL_OPTION}" >&6;}
19312 ac_cpp='$CXXCPP $CPPFLAGS'
19313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19318 if test "${USE_KDE}" != "no
"; then
19319 { echo "$as_me:$LINENO: checking
for crashHandler
in -lkdecore" >&5
19320 echo $ECHO_N "checking
for crashHandler
in -lkdecore...
$ECHO_C" >&6; }
19321 saved_libs="${LIBS}"
19322 saved_cppflags="${CPPFLAGS}"
19323 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include
"
19324 if test -d ${KDE_DIR}/lib; then
19325 kdelibdir="${KDE_DIR}/lib
"
19327 kdelibdir="${KDE_DIR}"
19329 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
19332 cat >conftest.$ac_ext <<_ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19338 #include "kcrash.h
"
19342 KCrash::defaultCrashHandler(1);
19348 rm -f conftest.$ac_objext conftest$ac_exeext
19349 if { (ac_try="$ac_link"
19350 case "(($ac_try" in
19351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352 *) ac_try_echo=$ac_try;;
19354 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19355 (eval "$ac_link") 2>conftest.er1
19357 grep -v '^ *+' conftest.er1 >conftest.err
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19361 (exit $ac_status); } && {
19362 test -z "$ac_cxx_werror_flag" ||
19363 test ! -s conftest.err
19364 } && test -s conftest$ac_exeext &&
19365 $as_test_x conftest$ac_exeext; then
19366 ac_cv_lib_kde_crash="yes"
19368 echo "$as_me: failed program was
:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19371 ac_cv_lib_kde_crash="no
"
19374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19375 conftest$ac_exeext conftest.$ac_ext
19377 LIBS="${saved_libs}"
19378 CPPFLAGS="${saved_cppflags}"
19380 if test "${ac_cv_lib_kde_crash}" = "yes"; then
19381 { echo "$as_me:$LINENO: result
: yes" >&5
19382 echo "${ECHO_T}yes" >&6; }
19383 KDE_LIB="-lkdecore -lkdeui"
19384 if test "${KDE_DIR}" != ""; then
19385 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
19386 KDE_INCLUDE="-I${KDE_DIR}/include
"
19390 cat >>confdefs.h <<\_ACEOF
19391 #define HAVE_LIBKDE 1
19394 elif test -n "${KDE_MANDATORY}"; then
19395 { echo "$as_me:$LINENO: result
: no
" >&5
19396 echo "${ECHO_T}no
" >&6; }
19397 { echo "$as_me:$LINENO: ***" >&5
19398 echo "$as_me: ***" >&6;}
19399 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken.
" >&5
19400 echo "$as_me: *** The KDE installation on this system appears to be broken.
" >&6;}
19401 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
19402 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
19403 { echo "$as_me:$LINENO: *** including
--without-kde.
" >&5
19404 echo "$as_me: *** including
--without-kde.
" >&6;}
19407 { echo "$as_me:$LINENO: result
: no
" >&5
19408 echo "${ECHO_T}no
" >&6; }
19411 if test "${PBX_KDE}" = 1; then
19412 if test -n "$ac_tool_prefix"; then
19413 # Extract the first word of "${ac_tool_prefix}kdeinit
", so it can be a program name with args.
19414 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
19415 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
19416 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
19417 if test "${ac_cv_path_KDEINIT+set}" = set; then
19418 echo $ECHO_N "(cached
) $ECHO_C" >&6
19422 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
19425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19426 for as_dir in $PATH
19429 test -z "$as_dir" && as_dir=.
19430 for ac_exec_ext in '' $ac_executable_extensions; do
19431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19432 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
19433 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
19443 KDEINIT=$ac_cv_path_KDEINIT
19444 if test -n "$KDEINIT"; then
19445 { echo "$as_me:$LINENO: result
: $KDEINIT" >&5
19446 echo "${ECHO_T}$KDEINIT" >&6; }
19448 { echo "$as_me:$LINENO: result
: no
" >&5
19449 echo "${ECHO_T}no
" >&6; }
19454 if test -z "$ac_cv_path_KDEINIT"; then
19455 ac_pt_KDEINIT=$KDEINIT
19456 # Extract the first word of "kdeinit
", so it can be a program name with args.
19457 set dummy kdeinit; ac_word=$2
19458 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
19459 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
19460 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
19461 echo $ECHO_N "(cached
) $ECHO_C" >&6
19463 case $ac_pt_KDEINIT in
19465 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
19468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19469 for as_dir in $PATH
19472 test -z "$as_dir" && as_dir=.
19473 for ac_exec_ext in '' $ac_executable_extensions; do
19474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19475 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
19476 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
19486 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
19487 if test -n "$ac_pt_KDEINIT"; then
19488 { echo "$as_me:$LINENO: result
: $ac_pt_KDEINIT" >&5
19489 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
19491 { echo "$as_me:$LINENO: result
: no
" >&5
19492 echo "${ECHO_T}no
" >&6; }
19495 if test "x
$ac_pt_KDEINIT" = x; then
19498 case $cross_compiling:$ac_tool_warned in
19500 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
19501 whose name does not start with the
host triplet. If you think this
19502 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
19503 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
19504 whose name does not start with the
host triplet. If you think this
19505 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
19506 ac_tool_warned=yes ;;
19508 KDEINIT=$ac_pt_KDEINIT
19511 KDEINIT="$ac_cv_path_KDEINIT"
19514 if test ! x"${KDEINIT}" = xNo; then
19515 KDEDIR=$(${DIRNAME} ${KDEINIT})
19516 KDEDIR=$(${DIRNAME} ${KDEDIR})
19522 ac_cpp='$CPP $CPPFLAGS'
19523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19529 if test "${USE_MISDN}" != "no
"; then
19531 if test "x
${MISDN_DIR}" != "x
"; then
19532 if test -d ${MISDN_DIR}/lib; then
19533 pbxlibdir="-L${MISDN_DIR}/lib
"
19535 pbxlibdir="-L${MISDN_DIR}"
19538 { echo "$as_me:$LINENO: checking
for mISDN_open
in -lmISDN" >&5
19539 echo $ECHO_N "checking
for mISDN_open
in -lmISDN...
$ECHO_C" >&6; }
19540 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
19541 echo $ECHO_N "(cached
) $ECHO_C" >&6
19543 ac_check_lib_save_LIBS=$LIBS
19544 LIBS="-lmISDN ${pbxlibdir} $LIBS"
19545 cat >conftest.$ac_ext <<_ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19552 /* Override any GCC internal prototype to avoid an error.
19553 Use char because int might match the return type of a GCC
19554 builtin and then its argument prototype would still apply. */
19558 char mISDN_open ();
19562 return mISDN_open ();
19567 rm -f conftest.$ac_objext conftest$ac_exeext
19568 if { (ac_try="$ac_link"
19569 case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_link") 2>conftest.er1
19576 grep -v '^ *+' conftest.er1 >conftest.err
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19580 (exit $ac_status); } && {
19581 test -z "$ac_c_werror_flag" ||
19582 test ! -s conftest.err
19583 } && test -s conftest$ac_exeext &&
19584 $as_test_x conftest$ac_exeext; then
19585 ac_cv_lib_mISDN_mISDN_open=yes
19587 echo "$as_me: failed program was
:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 ac_cv_lib_mISDN_mISDN_open=no
19593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19594 conftest$ac_exeext conftest.$ac_ext
19595 LIBS=$ac_check_lib_save_LIBS
19597 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mISDN_mISDN_open" >&5
19598 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
19599 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
19600 AST_MISDN_FOUND=yes
19606 if test "${AST_MISDN_FOUND}" = "yes"; then
19607 MISDN_LIB="-lmISDN "
19608 MISDN_HEADER_FOUND="1"
19609 if test "x
${MISDN_DIR}" != "x
"; then
19610 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
19611 MISDN_INCLUDE="-I${MISDN_DIR}/include
"
19612 saved_cppflags="${CPPFLAGS}"
19613 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include
"
19614 if test "xmISDNuser
/mISDNlib.h
" != "x
" ; then
19615 as_ac_Header=`echo "ac_cv_header_
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
" | $as_tr_sh`
19616 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19617 { echo "$as_me:$LINENO: checking
for ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
" >&5
19618 echo $ECHO_N "checking
for ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h...
$ECHO_C" >&6; }
19619 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19620 echo $ECHO_N "(cached
) $ECHO_C" >&6
19622 ac_res=`eval echo '${'$as_ac_Header'}'`
19623 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19624 echo "${ECHO_T}$ac_res" >&6; }
19626 # Is the header compilable?
19627 { echo "$as_me:$LINENO: checking
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h usability
" >&5
19628 echo $ECHO_N "checking
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h usability...
$ECHO_C" >&6; }
19629 cat >conftest.$ac_ext <<_ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 $ac_includes_default
19636 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
19638 rm -f conftest.$ac_objext
19639 if { (ac_try="$ac_compile"
19640 case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19644 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_compile") 2>conftest.er1
19647 grep -v '^ *+' conftest.er1 >conftest.err
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19651 (exit $ac_status); } && {
19652 test -z "$ac_c_werror_flag" ||
19653 test ! -s conftest.err
19654 } && test -s conftest.$ac_objext; then
19655 ac_header_compiler=yes
19657 echo "$as_me: failed program was
:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19660 ac_header_compiler=no
19663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19664 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19665 echo "${ECHO_T}$ac_header_compiler" >&6; }
19667 # Is the header present?
19668 { echo "$as_me:$LINENO: checking
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h presence
" >&5
19669 echo $ECHO_N "checking
${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h presence...
$ECHO_C" >&6; }
19670 cat >conftest.$ac_ext <<_ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
19678 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19679 case "(($ac_try" in
19680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19681 *) ac_try_echo=$ac_try;;
19683 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19684 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19686 grep -v '^ *+' conftest.er1 >conftest.err
19688 cat conftest.err >&5
19689 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19690 (exit $ac_status); } >/dev/null && {
19691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19692 test ! -s conftest.err
19694 ac_header_preproc=yes
19696 echo "$as_me: failed program was
:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19699 ac_header_preproc=no
19702 rm -f conftest.err conftest.$ac_ext
19703 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19704 echo "${ECHO_T}$ac_header_preproc" >&6; }
19706 # So? What about this header?
19707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19709 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19710 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19711 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: proceeding with the compiler
's result" >&5
19712 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result
" >&2;}
19713 ac_header_preproc=yes
19716 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: present but cannot be compiled
" >&5
19717 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: present but cannot be compiled
" >&2;}
19718 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: check
for missing prerequisite headers?
" >&5
19719 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: check
for missing prerequisite headers?
" >&2;}
19720 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: see the Autoconf documentation
" >&5
19721 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: see the Autoconf documentation
" >&2;}
19722 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19723 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19724 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: proceeding with the preprocessor
's result" >&5
19725 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result
" >&2;}
19726 { echo "$as_me:$LINENO: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: in the future
, the compiler will take precedence
" >&5
19727 echo "$as_me: WARNING
: ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
: in the future
, the compiler will take precedence
" >&2;}
19729 ## ------------------------------- ##
19730 ## Report this to www.asterisk.org ##
19731 ## ------------------------------- ##
19733 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
19736 { echo "$as_me:$LINENO: checking
for ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h
" >&5
19737 echo $ECHO_N "checking
for ${MISDN_DIR}/include
/mISDNuser
/mISDNlib.h...
$ECHO_C" >&6; }
19738 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19739 echo $ECHO_N "(cached
) $ECHO_C" >&6
19741 eval "$as_ac_Header=\
$ac_header_preproc"
19743 ac_res=`eval echo '${'$as_ac_Header'}'`
19744 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19745 echo "${ECHO_T}$ac_res" >&6; }
19748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19749 MISDN_HEADER_FOUND=1
19751 MISDN_HEADER_FOUND=0
19756 CPPFLAGS="${saved_cppflags}"
19758 if test "xmISDNuser
/mISDNlib.h
" != "x
" ; then
19759 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19760 { echo "$as_me:$LINENO: checking
for mISDNuser
/mISDNlib.h
" >&5
19761 echo $ECHO_N "checking
for mISDNuser
/mISDNlib.h...
$ECHO_C" >&6; }
19762 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19763 echo $ECHO_N "(cached
) $ECHO_C" >&6
19765 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
19766 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
19768 # Is the header compilable?
19769 { echo "$as_me:$LINENO: checking mISDNuser
/mISDNlib.h usability
" >&5
19770 echo $ECHO_N "checking mISDNuser
/mISDNlib.h usability...
$ECHO_C" >&6; }
19771 cat >conftest.$ac_ext <<_ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19777 $ac_includes_default
19778 #include <mISDNuser/mISDNlib.h>
19780 rm -f conftest.$ac_objext
19781 if { (ac_try="$ac_compile"
19782 case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_compile") 2>conftest.er1
19789 grep -v '^ *+' conftest.er1 >conftest.err
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19793 (exit $ac_status); } && {
19794 test -z "$ac_c_werror_flag" ||
19795 test ! -s conftest.err
19796 } && test -s conftest.$ac_objext; then
19797 ac_header_compiler=yes
19799 echo "$as_me: failed program was
:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 ac_header_compiler=no
19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19807 echo "${ECHO_T}$ac_header_compiler" >&6; }
19809 # Is the header present?
19810 { echo "$as_me:$LINENO: checking mISDNuser
/mISDNlib.h presence
" >&5
19811 echo $ECHO_N "checking mISDNuser
/mISDNlib.h presence...
$ECHO_C" >&6; }
19812 cat >conftest.$ac_ext <<_ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19818 #include <mISDNuser/mISDNlib.h>
19820 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19821 case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19828 grep -v '^ *+' conftest.er1 >conftest.err
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19832 (exit $ac_status); } >/dev/null && {
19833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19836 ac_header_preproc=yes
19838 echo "$as_me: failed program was
:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19841 ac_header_preproc=no
19844 rm -f conftest.err conftest.$ac_ext
19845 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19846 echo "${ECHO_T}$ac_header_preproc" >&6; }
19848 # So? What about this header?
19849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19851 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19852 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19853 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: proceeding with the compiler
's result" >&5
19854 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result
" >&2;}
19855 ac_header_preproc=yes
19858 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: present but cannot be compiled
" >&5
19859 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: present but cannot be compiled
" >&2;}
19860 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: check
for missing prerequisite headers?
" >&5
19861 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: check
for missing prerequisite headers?
" >&2;}
19862 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: see the Autoconf documentation
" >&5
19863 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: see the Autoconf documentation
" >&2;}
19864 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19865 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19866 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: proceeding with the preprocessor
's result" >&5
19867 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result
" >&2;}
19868 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/mISDNlib.h
: in the future
, the compiler will take precedence
" >&5
19869 echo "$as_me: WARNING
: mISDNuser
/mISDNlib.h
: in the future
, the compiler will take precedence
" >&2;}
19871 ## ------------------------------- ##
19872 ## Report this to www.asterisk.org ##
19873 ## ------------------------------- ##
19875 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
19878 { echo "$as_me:$LINENO: checking
for mISDNuser
/mISDNlib.h
" >&5
19879 echo $ECHO_N "checking
for mISDNuser
/mISDNlib.h...
$ECHO_C" >&6; }
19880 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19881 echo $ECHO_N "(cached
) $ECHO_C" >&6
19883 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
19885 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
19886 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
19889 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
19890 MISDN_HEADER_FOUND=1
19892 MISDN_HEADER_FOUND=0
19898 if test "x
${MISDN_HEADER_FOUND}" = "x0
" ; then
19899 if test -n "${MISDN_MANDATORY}" ;
19901 { echo "$as_me:$LINENO: ***" >&5
19902 echo "$as_me: ***" >&6;}
19903 { echo "$as_me:$LINENO: *** It appears that you
do not have the mISDN development package installed.
" >&5
19904 echo "$as_me: *** It appears that you
do not have the mISDN development package installed.
" >&6;}
19905 { echo "$as_me:$LINENO: *** Please
install it to include
${MISDN_DESCRIP} support
, or re-run configure
" >&5
19906 echo "$as_me: *** Please
install it to include
${MISDN_DESCRIP} support
, or re-run configure
" >&6;}
19907 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${MISDN_OPTION}" >&5
19908 echo "$as_me: *** without explicitly specifying
--with-${MISDN_OPTION}" >&6;}
19917 cat >>confdefs.h <<_ACEOF
19918 #define HAVE_MISDN 1
19922 elif test -n "${MISDN_MANDATORY}";
19924 { echo "$as_me:$LINENO: ***" >&5
19925 echo "$as_me: ***" >&6;}
19926 { echo "$as_me:$LINENO: *** The
${MISDN_DESCRIP} installation on this system appears to be broken.
" >&5
19927 echo "$as_me: *** The
${MISDN_DESCRIP} installation on this system appears to be broken.
" >&6;}
19928 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
19929 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
19930 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${MISDN_OPTION}" >&5
19931 echo "$as_me: *** without explicitly specifying
--with-${MISDN_OPTION}" >&6;}
19937 if test "${PBX_MISDN}" = 1; then
19939 if test "${USE_ISDNNET}" != "no
"; then
19941 if test "x
${ISDNNET_DIR}" != "x
"; then
19942 if test -d ${ISDNNET_DIR}/lib; then
19943 pbxlibdir="-L${ISDNNET_DIR}/lib
"
19945 pbxlibdir="-L${ISDNNET_DIR}"
19948 { echo "$as_me:$LINENO: checking
for init_manager
in -lisdnnet" >&5
19949 echo $ECHO_N "checking
for init_manager
in -lisdnnet...
$ECHO_C" >&6; }
19950 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
19951 echo $ECHO_N "(cached
) $ECHO_C" >&6
19953 ac_check_lib_save_LIBS=$LIBS
19954 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
19955 cat >conftest.$ac_ext <<_ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19962 /* Override any GCC internal prototype to avoid an error.
19963 Use char because int might match the return type of a GCC
19964 builtin and then its argument prototype would still apply. */
19968 char init_manager ();
19972 return init_manager ();
19977 rm -f conftest.$ac_objext conftest$ac_exeext
19978 if { (ac_try="$ac_link"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_link") 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19990 (exit $ac_status); } && {
19991 test -z "$ac_c_werror_flag" ||
19992 test ! -s conftest.err
19993 } && test -s conftest$ac_exeext &&
19994 $as_test_x conftest$ac_exeext; then
19995 ac_cv_lib_isdnnet_init_manager=yes
19997 echo "$as_me: failed program was
:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_cv_lib_isdnnet_init_manager=no
20003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20004 conftest$ac_exeext conftest.$ac_ext
20005 LIBS=$ac_check_lib_save_LIBS
20007 { echo "$as_me:$LINENO: result
: $ac_cv_lib_isdnnet_init_manager" >&5
20008 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
20009 if test $ac_cv_lib_isdnnet_init_manager = yes; then
20010 AST_ISDNNET_FOUND=yes
20012 AST_ISDNNET_FOUND=no
20016 if test "${AST_ISDNNET_FOUND}" = "yes"; then
20017 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
20018 ISDNNET_HEADER_FOUND="1"
20019 if test "x
${ISDNNET_DIR}" != "x
"; then
20020 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
20021 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include
"
20022 saved_cppflags="${CPPFLAGS}"
20023 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include
"
20024 if test "xmISDNuser
/isdn_net.h
" != "x
" ; then
20025 as_ac_Header=`echo "ac_cv_header_
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
" | $as_tr_sh`
20026 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20027 { echo "$as_me:$LINENO: checking
for ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
" >&5
20028 echo $ECHO_N "checking
for ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h...
$ECHO_C" >&6; }
20029 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20030 echo $ECHO_N "(cached
) $ECHO_C" >&6
20032 ac_res=`eval echo '${'$as_ac_Header'}'`
20033 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20034 echo "${ECHO_T}$ac_res" >&6; }
20036 # Is the header compilable?
20037 { echo "$as_me:$LINENO: checking
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h usability
" >&5
20038 echo $ECHO_N "checking
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h usability...
$ECHO_C" >&6; }
20039 cat >conftest.$ac_ext <<_ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20045 $ac_includes_default
20046 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20048 rm -f conftest.$ac_objext
20049 if { (ac_try="$ac_compile"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_compile") 2>conftest.er1
20057 grep -v '^ *+' conftest.er1 >conftest.err
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20061 (exit $ac_status); } && {
20062 test -z "$ac_c_werror_flag" ||
20063 test ! -s conftest.err
20064 } && test -s conftest.$ac_objext; then
20065 ac_header_compiler=yes
20067 echo "$as_me: failed program was
:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20070 ac_header_compiler=no
20073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20074 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20075 echo "${ECHO_T}$ac_header_compiler" >&6; }
20077 # Is the header present?
20078 { echo "$as_me:$LINENO: checking
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h presence
" >&5
20079 echo $ECHO_N "checking
${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h presence...
$ECHO_C" >&6; }
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20088 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20089 case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20094 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20096 grep -v '^ *+' conftest.er1 >conftest.err
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20100 (exit $ac_status); } >/dev/null && {
20101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20102 test ! -s conftest.err
20104 ac_header_preproc=yes
20106 echo "$as_me: failed program was
:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20109 ac_header_preproc=no
20112 rm -f conftest.err conftest.$ac_ext
20113 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20114 echo "${ECHO_T}$ac_header_preproc" >&6; }
20116 # So? What about this header?
20117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20119 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
20120 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20121 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: proceeding with the compiler
's result" >&5
20122 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result
" >&2;}
20123 ac_header_preproc=yes
20126 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: present but cannot be compiled
" >&5
20127 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: present but cannot be compiled
" >&2;}
20128 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: check
for missing prerequisite headers?
" >&5
20129 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: check
for missing prerequisite headers?
" >&2;}
20130 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: see the Autoconf documentation
" >&5
20131 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: see the Autoconf documentation
" >&2;}
20132 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: section
\"Present But Cannot Be Compiled
\"" >&5
20133 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
20134 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: proceeding with the preprocessor
's result" >&5
20135 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result
" >&2;}
20136 { echo "$as_me:$LINENO: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: in the future
, the compiler will take precedence
" >&5
20137 echo "$as_me: WARNING
: ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
: in the future
, the compiler will take precedence
" >&2;}
20139 ## ------------------------------- ##
20140 ## Report this to www.asterisk.org ##
20141 ## ------------------------------- ##
20143 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
20146 { echo "$as_me:$LINENO: checking
for ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h
" >&5
20147 echo $ECHO_N "checking
for ${ISDNNET_DIR}/include
/mISDNuser
/isdn_net.h...
$ECHO_C" >&6; }
20148 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20149 echo $ECHO_N "(cached
) $ECHO_C" >&6
20151 eval "$as_ac_Header=\
$ac_header_preproc"
20153 ac_res=`eval echo '${'$as_ac_Header'}'`
20154 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20155 echo "${ECHO_T}$ac_res" >&6; }
20158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20159 ISDNNET_HEADER_FOUND=1
20161 ISDNNET_HEADER_FOUND=0
20166 CPPFLAGS="${saved_cppflags}"
20168 if test "xmISDNuser
/isdn_net.h
" != "x
" ; then
20169 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20170 { echo "$as_me:$LINENO: checking
for mISDNuser
/isdn_net.h
" >&5
20171 echo $ECHO_N "checking
for mISDNuser
/isdn_net.h...
$ECHO_C" >&6; }
20172 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20173 echo $ECHO_N "(cached
) $ECHO_C" >&6
20175 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_isdn_net_h" >&5
20176 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
20178 # Is the header compilable?
20179 { echo "$as_me:$LINENO: checking mISDNuser
/isdn_net.h usability
" >&5
20180 echo $ECHO_N "checking mISDNuser
/isdn_net.h usability...
$ECHO_C" >&6; }
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 $ac_includes_default
20188 #include <mISDNuser/isdn_net.h>
20190 rm -f conftest.$ac_objext
20191 if { (ac_try="$ac_compile"
20192 case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_compile") 2>conftest.er1
20199 grep -v '^ *+' conftest.er1 >conftest.err
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20203 (exit $ac_status); } && {
20204 test -z "$ac_c_werror_flag" ||
20205 test ! -s conftest.err
20206 } && test -s conftest.$ac_objext; then
20207 ac_header_compiler=yes
20209 echo "$as_me: failed program was
:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20212 ac_header_compiler=no
20215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20216 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20217 echo "${ECHO_T}$ac_header_compiler" >&6; }
20219 # Is the header present?
20220 { echo "$as_me:$LINENO: checking mISDNuser
/isdn_net.h presence
" >&5
20221 echo $ECHO_N "checking mISDNuser
/isdn_net.h presence...
$ECHO_C" >&6; }
20222 cat >conftest.$ac_ext <<_ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20228 #include <mISDNuser/isdn_net.h>
20230 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20231 case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20238 grep -v '^ *+' conftest.er1 >conftest.err
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20242 (exit $ac_status); } >/dev/null && {
20243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20244 test ! -s conftest.err
20246 ac_header_preproc=yes
20248 echo "$as_me: failed program was
:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 ac_header_preproc=no
20254 rm -f conftest.err conftest.$ac_ext
20255 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20256 echo "${ECHO_T}$ac_header_preproc" >&6; }
20258 # So? What about this header?
20259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20261 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
20262 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20263 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: proceeding with the compiler
's result" >&5
20264 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result
" >&2;}
20265 ac_header_preproc=yes
20268 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: present but cannot be compiled
" >&5
20269 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: present but cannot be compiled
" >&2;}
20270 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: check
for missing prerequisite headers?
" >&5
20271 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: check
for missing prerequisite headers?
" >&2;}
20272 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: see the Autoconf documentation
" >&5
20273 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: see the Autoconf documentation
" >&2;}
20274 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: section
\"Present But Cannot Be Compiled
\"" >&5
20275 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
20276 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: proceeding with the preprocessor
's result" >&5
20277 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result
" >&2;}
20278 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/isdn_net.h
: in the future
, the compiler will take precedence
" >&5
20279 echo "$as_me: WARNING
: mISDNuser
/isdn_net.h
: in the future
, the compiler will take precedence
" >&2;}
20281 ## ------------------------------- ##
20282 ## Report this to www.asterisk.org ##
20283 ## ------------------------------- ##
20285 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
20288 { echo "$as_me:$LINENO: checking
for mISDNuser
/isdn_net.h
" >&5
20289 echo $ECHO_N "checking
for mISDNuser
/isdn_net.h...
$ECHO_C" >&6; }
20290 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20291 echo $ECHO_N "(cached
) $ECHO_C" >&6
20293 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
20295 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_isdn_net_h" >&5
20296 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
20299 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
20300 ISDNNET_HEADER_FOUND=1
20302 ISDNNET_HEADER_FOUND=0
20308 if test "x
${ISDNNET_HEADER_FOUND}" = "x0
" ; then
20309 if test -n "${ISDNNET_MANDATORY}" ;
20311 { echo "$as_me:$LINENO: ***" >&5
20312 echo "$as_me: ***" >&6;}
20313 { echo "$as_me:$LINENO: *** It appears that you
do not have the isdnnet development package installed.
" >&5
20314 echo "$as_me: *** It appears that you
do not have the isdnnet development package installed.
" >&6;}
20315 { echo "$as_me:$LINENO: *** Please
install it to include
${ISDNNET_DESCRIP} support
, or re-run configure
" >&5
20316 echo "$as_me: *** Please
install it to include
${ISDNNET_DESCRIP} support
, or re-run configure
" >&6;}
20317 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ISDNNET_OPTION}" >&5
20318 echo "$as_me: *** without explicitly specifying
--with-${ISDNNET_OPTION}" >&6;}
20327 cat >>confdefs.h <<_ACEOF
20328 #define HAVE_ISDNNET 1
20332 elif test -n "${ISDNNET_MANDATORY}";
20334 { echo "$as_me:$LINENO: ***" >&5
20335 echo "$as_me: ***" >&6;}
20336 { echo "$as_me:$LINENO: *** The
${ISDNNET_DESCRIP} installation on this system appears to be broken.
" >&5
20337 echo "$as_me: *** The
${ISDNNET_DESCRIP} installation on this system appears to be broken.
" >&6;}
20338 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
20339 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
20340 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${ISDNNET_OPTION}" >&5
20341 echo "$as_me: *** without explicitly specifying
--with-${ISDNNET_OPTION}" >&6;}
20347 if test "${USE_SUPPSERV}" != "no
"; then
20349 if test "x
${SUPPSERV_DIR}" != "x
"; then
20350 if test -d ${SUPPSERV_DIR}/lib; then
20351 pbxlibdir="-L${SUPPSERV_DIR}/lib
"
20353 pbxlibdir="-L${SUPPSERV_DIR}"
20356 { echo "$as_me:$LINENO: checking
for encodeFac
in -lsuppserv" >&5
20357 echo $ECHO_N "checking
for encodeFac
in -lsuppserv...
$ECHO_C" >&6; }
20358 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
20359 echo $ECHO_N "(cached
) $ECHO_C" >&6
20361 ac_check_lib_save_LIBS=$LIBS
20362 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
20363 cat >conftest.$ac_ext <<_ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20370 /* Override any GCC internal prototype to avoid an error.
20371 Use char because int might match the return type of a GCC
20372 builtin and then its argument prototype would still apply. */
20380 return encodeFac ();
20385 rm -f conftest.$ac_objext conftest$ac_exeext
20386 if { (ac_try="$ac_link"
20387 case "(($ac_try" in
20388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389 *) ac_try_echo=$ac_try;;
20391 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20392 (eval "$ac_link") 2>conftest.er1
20394 grep -v '^ *+' conftest.er1 >conftest.err
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20398 (exit $ac_status); } && {
20399 test -z "$ac_c_werror_flag" ||
20400 test ! -s conftest.err
20401 } && test -s conftest$ac_exeext &&
20402 $as_test_x conftest$ac_exeext; then
20403 ac_cv_lib_suppserv_encodeFac=yes
20405 echo "$as_me: failed program was
:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20408 ac_cv_lib_suppserv_encodeFac=no
20411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20412 conftest$ac_exeext conftest.$ac_ext
20413 LIBS=$ac_check_lib_save_LIBS
20415 { echo "$as_me:$LINENO: result
: $ac_cv_lib_suppserv_encodeFac" >&5
20416 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
20417 if test $ac_cv_lib_suppserv_encodeFac = yes; then
20418 AST_SUPPSERV_FOUND=yes
20420 AST_SUPPSERV_FOUND=no
20424 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
20425 SUPPSERV_LIB="-lsuppserv "
20426 SUPPSERV_HEADER_FOUND="1"
20427 if test "x
${SUPPSERV_DIR}" != "x
"; then
20428 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
20429 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include
"
20430 saved_cppflags="${CPPFLAGS}"
20431 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include
"
20432 if test "xmISDNuser
/suppserv.h
" != "x
" ; then
20433 as_ac_Header=`echo "ac_cv_header_
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
" | $as_tr_sh`
20434 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20435 { echo "$as_me:$LINENO: checking
for ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
" >&5
20436 echo $ECHO_N "checking
for ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h...
$ECHO_C" >&6; }
20437 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20438 echo $ECHO_N "(cached
) $ECHO_C" >&6
20440 ac_res=`eval echo '${'$as_ac_Header'}'`
20441 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20442 echo "${ECHO_T}$ac_res" >&6; }
20444 # Is the header compilable?
20445 { echo "$as_me:$LINENO: checking
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h usability
" >&5
20446 echo $ECHO_N "checking
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h usability...
$ECHO_C" >&6; }
20447 cat >conftest.$ac_ext <<_ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20453 $ac_includes_default
20454 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
20456 rm -f conftest.$ac_objext
20457 if { (ac_try="$ac_compile"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_compile") 2>conftest.er1
20465 grep -v '^ *+' conftest.er1 >conftest.err
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20469 (exit $ac_status); } && {
20470 test -z "$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20472 } && test -s conftest.$ac_objext; then
20473 ac_header_compiler=yes
20475 echo "$as_me: failed program was
:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20478 ac_header_compiler=no
20481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20482 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20483 echo "${ECHO_T}$ac_header_compiler" >&6; }
20485 # Is the header present?
20486 { echo "$as_me:$LINENO: checking
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h presence
" >&5
20487 echo $ECHO_N "checking
${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h presence...
$ECHO_C" >&6; }
20488 cat >conftest.$ac_ext <<_ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20494 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
20496 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20497 case "(($ac_try" in
20498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499 *) ac_try_echo=$ac_try;;
20501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20502 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20504 grep -v '^ *+' conftest.er1 >conftest.err
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20508 (exit $ac_status); } >/dev/null && {
20509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20510 test ! -s conftest.err
20512 ac_header_preproc=yes
20514 echo "$as_me: failed program was
:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ac_header_preproc=no
20520 rm -f conftest.err conftest.$ac_ext
20521 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20522 echo "${ECHO_T}$ac_header_preproc" >&6; }
20524 # So? What about this header?
20525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20527 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
20528 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20529 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: proceeding with the compiler
's result" >&5
20530 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result
" >&2;}
20531 ac_header_preproc=yes
20534 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: present but cannot be compiled
" >&5
20535 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: present but cannot be compiled
" >&2;}
20536 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: check
for missing prerequisite headers?
" >&5
20537 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: check
for missing prerequisite headers?
" >&2;}
20538 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: see the Autoconf documentation
" >&5
20539 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: see the Autoconf documentation
" >&2;}
20540 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: section
\"Present But Cannot Be Compiled
\"" >&5
20541 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
20542 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: proceeding with the preprocessor
's result" >&5
20543 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result
" >&2;}
20544 { echo "$as_me:$LINENO: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: in the future
, the compiler will take precedence
" >&5
20545 echo "$as_me: WARNING
: ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
: in the future
, the compiler will take precedence
" >&2;}
20547 ## ------------------------------- ##
20548 ## Report this to www.asterisk.org ##
20549 ## ------------------------------- ##
20551 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
20554 { echo "$as_me:$LINENO: checking
for ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h
" >&5
20555 echo $ECHO_N "checking
for ${SUPPSERV_DIR}/include
/mISDNuser
/suppserv.h...
$ECHO_C" >&6; }
20556 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20557 echo $ECHO_N "(cached
) $ECHO_C" >&6
20559 eval "$as_ac_Header=\
$ac_header_preproc"
20561 ac_res=`eval echo '${'$as_ac_Header'}'`
20562 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20563 echo "${ECHO_T}$ac_res" >&6; }
20566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20567 SUPPSERV_HEADER_FOUND=1
20569 SUPPSERV_HEADER_FOUND=0
20574 CPPFLAGS="${saved_cppflags}"
20576 if test "xmISDNuser
/suppserv.h
" != "x
" ; then
20577 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20578 { echo "$as_me:$LINENO: checking
for mISDNuser
/suppserv.h
" >&5
20579 echo $ECHO_N "checking
for mISDNuser
/suppserv.h...
$ECHO_C" >&6; }
20580 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20581 echo $ECHO_N "(cached
) $ECHO_C" >&6
20583 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_suppserv_h" >&5
20584 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20586 # Is the header compilable?
20587 { echo "$as_me:$LINENO: checking mISDNuser
/suppserv.h usability
" >&5
20588 echo $ECHO_N "checking mISDNuser
/suppserv.h usability...
$ECHO_C" >&6; }
20589 cat >conftest.$ac_ext <<_ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595 $ac_includes_default
20596 #include <mISDNuser/suppserv.h>
20598 rm -f conftest.$ac_objext
20599 if { (ac_try="$ac_compile"
20600 case "(($ac_try" in
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20605 (eval "$ac_compile") 2>conftest.er1
20607 grep -v '^ *+' conftest.er1 >conftest.err
20609 cat conftest.err >&5
20610 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20611 (exit $ac_status); } && {
20612 test -z "$ac_c_werror_flag" ||
20613 test ! -s conftest.err
20614 } && test -s conftest.$ac_objext; then
20615 ac_header_compiler=yes
20617 echo "$as_me: failed program was
:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20620 ac_header_compiler=no
20623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20624 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20625 echo "${ECHO_T}$ac_header_compiler" >&6; }
20627 # Is the header present?
20628 { echo "$as_me:$LINENO: checking mISDNuser
/suppserv.h presence
" >&5
20629 echo $ECHO_N "checking mISDNuser
/suppserv.h presence...
$ECHO_C" >&6; }
20630 cat >conftest.$ac_ext <<_ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20636 #include <mISDNuser/suppserv.h>
20638 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20646 grep -v '^ *+' conftest.er1 >conftest.err
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20650 (exit $ac_status); } >/dev/null && {
20651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20654 ac_header_preproc=yes
20656 echo "$as_me: failed program was
:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 ac_header_preproc=no
20662 rm -f conftest.err conftest.$ac_ext
20663 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20664 echo "${ECHO_T}$ac_header_preproc" >&6; }
20666 # So? What about this header?
20667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20669 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
20670 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20671 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: proceeding with the compiler
's result" >&5
20672 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result
" >&2;}
20673 ac_header_preproc=yes
20676 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: present but cannot be compiled
" >&5
20677 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: present but cannot be compiled
" >&2;}
20678 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: check
for missing prerequisite headers?
" >&5
20679 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: check
for missing prerequisite headers?
" >&2;}
20680 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: see the Autoconf documentation
" >&5
20681 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: see the Autoconf documentation
" >&2;}
20682 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: section
\"Present But Cannot Be Compiled
\"" >&5
20683 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
20684 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: proceeding with the preprocessor
's result" >&5
20685 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result
" >&2;}
20686 { echo "$as_me:$LINENO: WARNING
: mISDNuser
/suppserv.h
: in the future
, the compiler will take precedence
" >&5
20687 echo "$as_me: WARNING
: mISDNuser
/suppserv.h
: in the future
, the compiler will take precedence
" >&2;}
20689 ## ------------------------------- ##
20690 ## Report this to www.asterisk.org ##
20691 ## ------------------------------- ##
20693 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
20696 { echo "$as_me:$LINENO: checking
for mISDNuser
/suppserv.h
" >&5
20697 echo $ECHO_N "checking
for mISDNuser
/suppserv.h...
$ECHO_C" >&6; }
20698 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20699 echo $ECHO_N "(cached
) $ECHO_C" >&6
20701 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
20703 { echo "$as_me:$LINENO: result
: $ac_cv_header_mISDNuser_suppserv_h" >&5
20704 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20707 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
20708 SUPPSERV_HEADER_FOUND=1
20710 SUPPSERV_HEADER_FOUND=0
20716 if test "x
${SUPPSERV_HEADER_FOUND}" = "x0
" ; then
20717 if test -n "${SUPPSERV_MANDATORY}" ;
20719 { echo "$as_me:$LINENO: ***" >&5
20720 echo "$as_me: ***" >&6;}
20721 { echo "$as_me:$LINENO: *** It appears that you
do not have the suppserv development package installed.
" >&5
20722 echo "$as_me: *** It appears that you
do not have the suppserv development package installed.
" >&6;}
20723 { echo "$as_me:$LINENO: *** Please
install it to include
${SUPPSERV_DESCRIP} support
, or re-run configure
" >&5
20724 echo "$as_me: *** Please
install it to include
${SUPPSERV_DESCRIP} support
, or re-run configure
" >&6;}
20725 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SUPPSERV_OPTION}" >&5
20726 echo "$as_me: *** without explicitly specifying
--with-${SUPPSERV_OPTION}" >&6;}
20730 SUPPSERV_INCLUDE=""
20735 cat >>confdefs.h <<_ACEOF
20736 #define HAVE_SUPPSERV 1
20740 elif test -n "${SUPPSERV_MANDATORY}";
20742 { echo "$as_me:$LINENO: ***" >&5
20743 echo "$as_me: ***" >&6;}
20744 { echo "$as_me:$LINENO: *** The
${SUPPSERV_DESCRIP} installation on this system appears to be broken.
" >&5
20745 echo "$as_me: *** The
${SUPPSERV_DESCRIP} installation on this system appears to be broken.
" >&6;}
20746 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
20747 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
20748 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${SUPPSERV_OPTION}" >&5
20749 echo "$as_me: *** without explicitly specifying
--with-${SUPPSERV_OPTION}" >&6;}
20754 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20755 { echo "$as_me:$LINENO: checking
for linux
/mISDNdsp.h
" >&5
20756 echo $ECHO_N "checking
for linux
/mISDNdsp.h...
$ECHO_C" >&6; }
20757 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20758 echo $ECHO_N "(cached
) $ECHO_C" >&6
20760 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_mISDNdsp_h" >&5
20761 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20763 # Is the header compilable?
20764 { echo "$as_me:$LINENO: checking linux
/mISDNdsp.h usability
" >&5
20765 echo $ECHO_N "checking linux
/mISDNdsp.h usability...
$ECHO_C" >&6; }
20766 cat >conftest.$ac_ext <<_ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20772 $ac_includes_default
20773 #include <linux/mISDNdsp.h>
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_compile") 2>conftest.er1
20784 grep -v '^ *+' conftest.er1 >conftest.err
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20788 (exit $ac_status); } && {
20789 test -z "$ac_c_werror_flag" ||
20790 test ! -s conftest.err
20791 } && test -s conftest.$ac_objext; then
20792 ac_header_compiler=yes
20794 echo "$as_me: failed program was
:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20797 ac_header_compiler=no
20800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20801 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20802 echo "${ECHO_T}$ac_header_compiler" >&6; }
20804 # Is the header present?
20805 { echo "$as_me:$LINENO: checking linux
/mISDNdsp.h presence
" >&5
20806 echo $ECHO_N "checking linux
/mISDNdsp.h presence...
$ECHO_C" >&6; }
20807 cat >conftest.$ac_ext <<_ACEOF
20810 cat confdefs.h >>conftest.$ac_ext
20811 cat >>conftest.$ac_ext <<_ACEOF
20812 /* end confdefs.h. */
20813 #include <linux/mISDNdsp.h>
20815 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20816 case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20820 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20823 grep -v '^ *+' conftest.er1 >conftest.err
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20827 (exit $ac_status); } >/dev/null && {
20828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20829 test ! -s conftest.err
20831 ac_header_preproc=yes
20833 echo "$as_me: failed program was
:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20836 ac_header_preproc=no
20839 rm -f conftest.err conftest.$ac_ext
20840 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20841 echo "${ECHO_T}$ac_header_preproc" >&6; }
20843 # So? What about this header?
20844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20846 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
20847 echo "$as_me: WARNING
: linux
/mISDNdsp.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20848 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: proceeding with the compiler
's result" >&5
20849 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result
" >&2;}
20850 ac_header_preproc=yes
20853 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: present but cannot be compiled
" >&5
20854 echo "$as_me: WARNING
: linux
/mISDNdsp.h
: present but cannot be compiled
" >&2;}
20855 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: check
for missing prerequisite headers?
" >&5
20856 echo "$as_me: WARNING
: linux
/mISDNdsp.h
: check
for missing prerequisite headers?
" >&2;}
20857 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: see the Autoconf documentation
" >&5
20858 echo "$as_me: WARNING
: linux
/mISDNdsp.h
: see the Autoconf documentation
" >&2;}
20859 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: section
\"Present But Cannot Be Compiled
\"" >&5
20860 echo "$as_me: WARNING
: linux
/mISDNdsp.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
20861 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: proceeding with the preprocessor
's result" >&5
20862 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result
" >&2;}
20863 { echo "$as_me:$LINENO: WARNING
: linux
/mISDNdsp.h
: in the future
, the compiler will take precedence
" >&5
20864 echo "$as_me: WARNING
: linux
/mISDNdsp.h
: in the future
, the compiler will take precedence
" >&2;}
20866 ## ------------------------------- ##
20867 ## Report this to www.asterisk.org ##
20868 ## ------------------------------- ##
20870 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
20873 { echo "$as_me:$LINENO: checking
for linux
/mISDNdsp.h
" >&5
20874 echo $ECHO_N "checking
for linux
/mISDNdsp.h...
$ECHO_C" >&6; }
20875 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20876 echo $ECHO_N "(cached
) $ECHO_C" >&6
20878 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
20880 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_mISDNdsp_h" >&5
20881 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20884 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
20886 cat >>confdefs.h <<_ACEOF
20887 #define MISDN_1_2 1
20896 if test "${USE_NBS}" != "no
"; then
20898 if test "x
${NBS_DIR}" != "x
"; then
20899 if test -d ${NBS_DIR}/lib; then
20900 pbxlibdir="-L${NBS_DIR}/lib
"
20902 pbxlibdir="-L${NBS_DIR}"
20905 { echo "$as_me:$LINENO: checking
for nbs_connect
in -lnbs" >&5
20906 echo $ECHO_N "checking
for nbs_connect
in -lnbs...
$ECHO_C" >&6; }
20907 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
20908 echo $ECHO_N "(cached
) $ECHO_C" >&6
20910 ac_check_lib_save_LIBS=$LIBS
20911 LIBS="-lnbs ${pbxlibdir} $LIBS"
20912 cat >conftest.$ac_ext <<_ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20919 /* Override any GCC internal prototype to avoid an error.
20920 Use char because int might match the return type of a GCC
20921 builtin and then its argument prototype would still apply. */
20925 char nbs_connect ();
20929 return nbs_connect ();
20934 rm -f conftest.$ac_objext conftest$ac_exeext
20935 if { (ac_try="$ac_link"
20936 case "(($ac_try" in
20937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938 *) ac_try_echo=$ac_try;;
20940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20941 (eval "$ac_link") 2>conftest.er1
20943 grep -v '^ *+' conftest.er1 >conftest.err
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20947 (exit $ac_status); } && {
20948 test -z "$ac_c_werror_flag" ||
20949 test ! -s conftest.err
20950 } && test -s conftest$ac_exeext &&
20951 $as_test_x conftest$ac_exeext; then
20952 ac_cv_lib_nbs_nbs_connect=yes
20954 echo "$as_me: failed program was
:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957 ac_cv_lib_nbs_nbs_connect=no
20960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20961 conftest$ac_exeext conftest.$ac_ext
20962 LIBS=$ac_check_lib_save_LIBS
20964 { echo "$as_me:$LINENO: result
: $ac_cv_lib_nbs_nbs_connect" >&5
20965 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
20966 if test $ac_cv_lib_nbs_nbs_connect = yes; then
20973 if test "${AST_NBS_FOUND}" = "yes"; then
20975 NBS_HEADER_FOUND="1"
20976 if test "x
${NBS_DIR}" != "x
"; then
20977 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
20978 NBS_INCLUDE="-I${NBS_DIR}/include
"
20979 saved_cppflags="${CPPFLAGS}"
20980 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include
"
20981 if test "xnbs.h
" != "x
" ; then
20982 as_ac_Header=`echo "ac_cv_header_
${NBS_DIR}/include
/nbs.h
" | $as_tr_sh`
20983 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20984 { echo "$as_me:$LINENO: checking
for ${NBS_DIR}/include
/nbs.h
" >&5
20985 echo $ECHO_N "checking
for ${NBS_DIR}/include
/nbs.h...
$ECHO_C" >&6; }
20986 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20987 echo $ECHO_N "(cached
) $ECHO_C" >&6
20989 ac_res=`eval echo '${'$as_ac_Header'}'`
20990 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20991 echo "${ECHO_T}$ac_res" >&6; }
20993 # Is the header compilable?
20994 { echo "$as_me:$LINENO: checking
${NBS_DIR}/include
/nbs.h usability
" >&5
20995 echo $ECHO_N "checking
${NBS_DIR}/include
/nbs.h usability...
$ECHO_C" >&6; }
20996 cat >conftest.$ac_ext <<_ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21002 $ac_includes_default
21003 #include <${NBS_DIR}/include/nbs.h>
21005 rm -f conftest.$ac_objext
21006 if { (ac_try="$ac_compile"
21007 case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_compile") 2>conftest.er1
21014 grep -v '^ *+' conftest.er1 >conftest.err
21016 cat conftest.err >&5
21017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21018 (exit $ac_status); } && {
21019 test -z "$ac_c_werror_flag" ||
21020 test ! -s conftest.err
21021 } && test -s conftest.$ac_objext; then
21022 ac_header_compiler=yes
21024 echo "$as_me: failed program was
:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21027 ac_header_compiler=no
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21032 echo "${ECHO_T}$ac_header_compiler" >&6; }
21034 # Is the header present?
21035 { echo "$as_me:$LINENO: checking
${NBS_DIR}/include
/nbs.h presence
" >&5
21036 echo $ECHO_N "checking
${NBS_DIR}/include
/nbs.h presence...
$ECHO_C" >&6; }
21037 cat >conftest.$ac_ext <<_ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21043 #include <${NBS_DIR}/include/nbs.h>
21045 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21046 case "(($ac_try" in
21047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048 *) ac_try_echo=$ac_try;;
21050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21051 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21053 grep -v '^ *+' conftest.er1 >conftest.err
21055 cat conftest.err >&5
21056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21057 (exit $ac_status); } >/dev/null && {
21058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21059 test ! -s conftest.err
21061 ac_header_preproc=yes
21063 echo "$as_me: failed program was
:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21066 ac_header_preproc=no
21069 rm -f conftest.err conftest.$ac_ext
21070 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21071 echo "${ECHO_T}$ac_header_preproc" >&6; }
21073 # So? What about this header?
21074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21076 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21077 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21078 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: proceeding with the compiler
's result" >&5
21079 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result
" >&2;}
21080 ac_header_preproc=yes
21083 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: present but cannot be compiled
" >&5
21084 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: present but cannot be compiled
" >&2;}
21085 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: check
for missing prerequisite headers?
" >&5
21086 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: check
for missing prerequisite headers?
" >&2;}
21087 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: see the Autoconf documentation
" >&5
21088 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: see the Autoconf documentation
" >&2;}
21089 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21090 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21091 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: proceeding with the preprocessor
's result" >&5
21092 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result
" >&2;}
21093 { echo "$as_me:$LINENO: WARNING
: ${NBS_DIR}/include
/nbs.h
: in the future
, the compiler will take precedence
" >&5
21094 echo "$as_me: WARNING
: ${NBS_DIR}/include
/nbs.h
: in the future
, the compiler will take precedence
" >&2;}
21096 ## ------------------------------- ##
21097 ## Report this to www.asterisk.org ##
21098 ## ------------------------------- ##
21100 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
21103 { echo "$as_me:$LINENO: checking
for ${NBS_DIR}/include
/nbs.h
" >&5
21104 echo $ECHO_N "checking
for ${NBS_DIR}/include
/nbs.h...
$ECHO_C" >&6; }
21105 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21106 echo $ECHO_N "(cached
) $ECHO_C" >&6
21108 eval "$as_ac_Header=\
$ac_header_preproc"
21110 ac_res=`eval echo '${'$as_ac_Header'}'`
21111 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21112 echo "${ECHO_T}$ac_res" >&6; }
21115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21123 CPPFLAGS="${saved_cppflags}"
21125 if test "xnbs.h
" != "x
" ; then
21126 if test "${ac_cv_header_nbs_h+set}" = set; then
21127 { echo "$as_me:$LINENO: checking
for nbs.h
" >&5
21128 echo $ECHO_N "checking
for nbs.h...
$ECHO_C" >&6; }
21129 if test "${ac_cv_header_nbs_h+set}" = set; then
21130 echo $ECHO_N "(cached
) $ECHO_C" >&6
21132 { echo "$as_me:$LINENO: result
: $ac_cv_header_nbs_h" >&5
21133 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
21135 # Is the header compilable?
21136 { echo "$as_me:$LINENO: checking nbs.h usability
" >&5
21137 echo $ECHO_N "checking nbs.h usability...
$ECHO_C" >&6; }
21138 cat >conftest.$ac_ext <<_ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h. */
21144 $ac_includes_default
21147 rm -f conftest.$ac_objext
21148 if { (ac_try="$ac_compile"
21149 case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21153 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_compile") 2>conftest.er1
21156 grep -v '^ *+' conftest.er1 >conftest.err
21158 cat conftest.err >&5
21159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21160 (exit $ac_status); } && {
21161 test -z "$ac_c_werror_flag" ||
21162 test ! -s conftest.err
21163 } && test -s conftest.$ac_objext; then
21164 ac_header_compiler=yes
21166 echo "$as_me: failed program was
:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21169 ac_header_compiler=no
21172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21173 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21174 echo "${ECHO_T}$ac_header_compiler" >&6; }
21176 # Is the header present?
21177 { echo "$as_me:$LINENO: checking nbs.h presence
" >&5
21178 echo $ECHO_N "checking nbs.h presence...
$ECHO_C" >&6; }
21179 cat >conftest.$ac_ext <<_ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21187 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null && {
21200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21201 test ! -s conftest.err
21203 ac_header_preproc=yes
21205 echo "$as_me: failed program was
:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21208 ac_header_preproc=no
21211 rm -f conftest.err conftest.$ac_ext
21212 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21213 echo "${ECHO_T}$ac_header_preproc" >&6; }
21215 # So? What about this header?
21216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21218 { echo "$as_me:$LINENO: WARNING
: nbs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21219 echo "$as_me: WARNING
: nbs.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21220 { echo "$as_me:$LINENO: WARNING
: nbs.h
: proceeding with the compiler
's result" >&5
21221 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result
" >&2;}
21222 ac_header_preproc=yes
21225 { echo "$as_me:$LINENO: WARNING
: nbs.h
: present but cannot be compiled
" >&5
21226 echo "$as_me: WARNING
: nbs.h
: present but cannot be compiled
" >&2;}
21227 { echo "$as_me:$LINENO: WARNING
: nbs.h
: check
for missing prerequisite headers?
" >&5
21228 echo "$as_me: WARNING
: nbs.h
: check
for missing prerequisite headers?
" >&2;}
21229 { echo "$as_me:$LINENO: WARNING
: nbs.h
: see the Autoconf documentation
" >&5
21230 echo "$as_me: WARNING
: nbs.h
: see the Autoconf documentation
" >&2;}
21231 { echo "$as_me:$LINENO: WARNING
: nbs.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21232 echo "$as_me: WARNING
: nbs.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21233 { echo "$as_me:$LINENO: WARNING
: nbs.h
: proceeding with the preprocessor
's result" >&5
21234 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result
" >&2;}
21235 { echo "$as_me:$LINENO: WARNING
: nbs.h
: in the future
, the compiler will take precedence
" >&5
21236 echo "$as_me: WARNING
: nbs.h
: in the future
, the compiler will take precedence
" >&2;}
21238 ## ------------------------------- ##
21239 ## Report this to www.asterisk.org ##
21240 ## ------------------------------- ##
21242 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
21245 { echo "$as_me:$LINENO: checking
for nbs.h
" >&5
21246 echo $ECHO_N "checking
for nbs.h...
$ECHO_C" >&6; }
21247 if test "${ac_cv_header_nbs_h+set}" = set; then
21248 echo $ECHO_N "(cached
) $ECHO_C" >&6
21250 ac_cv_header_nbs_h=$ac_header_preproc
21252 { echo "$as_me:$LINENO: result
: $ac_cv_header_nbs_h" >&5
21253 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
21256 if test $ac_cv_header_nbs_h = yes; then
21265 if test "x
${NBS_HEADER_FOUND}" = "x0
" ; then
21266 if test -n "${NBS_MANDATORY}" ;
21268 { echo "$as_me:$LINENO: ***" >&5
21269 echo "$as_me: ***" >&6;}
21270 { echo "$as_me:$LINENO: *** It appears that you
do not have the nbs development package installed.
" >&5
21271 echo "$as_me: *** It appears that you
do not have the nbs development package installed.
" >&6;}
21272 { echo "$as_me:$LINENO: *** Please
install it to include
${NBS_DESCRIP} support
, or re-run configure
" >&5
21273 echo "$as_me: *** Please
install it to include
${NBS_DESCRIP} support
, or re-run configure
" >&6;}
21274 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NBS_OPTION}" >&5
21275 echo "$as_me: *** without explicitly specifying
--with-${NBS_OPTION}" >&6;}
21284 cat >>confdefs.h <<_ACEOF
21289 elif test -n "${NBS_MANDATORY}";
21291 { echo "$as_me:$LINENO: ***" >&5
21292 echo "$as_me: ***" >&6;}
21293 { echo "$as_me:$LINENO: *** The
${NBS_DESCRIP} installation on this system appears to be broken.
" >&5
21294 echo "$as_me: *** The
${NBS_DESCRIP} installation on this system appears to be broken.
" >&6;}
21295 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
21296 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
21297 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NBS_OPTION}" >&5
21298 echo "$as_me: *** without explicitly specifying
--with-${NBS_OPTION}" >&6;}
21305 if test "${USE_NCURSES}" != "no
"; then
21307 if test "x
${NCURSES_DIR}" != "x
"; then
21308 if test -d ${NCURSES_DIR}/lib; then
21309 pbxlibdir="-L${NCURSES_DIR}/lib
"
21311 pbxlibdir="-L${NCURSES_DIR}"
21314 { echo "$as_me:$LINENO: checking
for initscr
in -lncurses" >&5
21315 echo $ECHO_N "checking
for initscr
in -lncurses...
$ECHO_C" >&6; }
21316 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
21317 echo $ECHO_N "(cached
) $ECHO_C" >&6
21319 ac_check_lib_save_LIBS=$LIBS
21320 LIBS="-lncurses ${pbxlibdir} $LIBS"
21321 cat >conftest.$ac_ext <<_ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h. */
21328 /* Override any GCC internal prototype to avoid an error.
21329 Use char because int might match the return type of a GCC
21330 builtin and then its argument prototype would still apply. */
21343 rm -f conftest.$ac_objext conftest$ac_exeext
21344 if { (ac_try="$ac_link"
21345 case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21350 (eval "$ac_link") 2>conftest.er1
21352 grep -v '^ *+' conftest.er1 >conftest.err
21354 cat conftest.err >&5
21355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21356 (exit $ac_status); } && {
21357 test -z "$ac_c_werror_flag" ||
21358 test ! -s conftest.err
21359 } && test -s conftest$ac_exeext &&
21360 $as_test_x conftest$ac_exeext; then
21361 ac_cv_lib_ncurses_initscr=yes
21363 echo "$as_me: failed program was
:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21366 ac_cv_lib_ncurses_initscr=no
21369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21370 conftest$ac_exeext conftest.$ac_ext
21371 LIBS=$ac_check_lib_save_LIBS
21373 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_initscr" >&5
21374 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
21375 if test $ac_cv_lib_ncurses_initscr = yes; then
21376 AST_NCURSES_FOUND=yes
21378 AST_NCURSES_FOUND=no
21382 if test "${AST_NCURSES_FOUND}" = "yes"; then
21383 NCURSES_LIB="-lncurses "
21384 NCURSES_HEADER_FOUND="1"
21385 if test "x
${NCURSES_DIR}" != "x
"; then
21386 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
21387 NCURSES_INCLUDE="-I${NCURSES_DIR}/include
"
21388 saved_cppflags="${CPPFLAGS}"
21389 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include
"
21390 if test "xcurses.h
" != "x
" ; then
21391 as_ac_Header=`echo "ac_cv_header_
${NCURSES_DIR}/include
/curses.h
" | $as_tr_sh`
21392 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21393 { echo "$as_me:$LINENO: checking
for ${NCURSES_DIR}/include
/curses.h
" >&5
21394 echo $ECHO_N "checking
for ${NCURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
21395 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21396 echo $ECHO_N "(cached
) $ECHO_C" >&6
21398 ac_res=`eval echo '${'$as_ac_Header'}'`
21399 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21400 echo "${ECHO_T}$ac_res" >&6; }
21402 # Is the header compilable?
21403 { echo "$as_me:$LINENO: checking
${NCURSES_DIR}/include
/curses.h usability
" >&5
21404 echo $ECHO_N "checking
${NCURSES_DIR}/include
/curses.h usability...
$ECHO_C" >&6; }
21405 cat >conftest.$ac_ext <<_ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h. */
21411 $ac_includes_default
21412 #include <${NCURSES_DIR}/include/curses.h>
21414 rm -f conftest.$ac_objext
21415 if { (ac_try="$ac_compile"
21416 case "(($ac_try" in
21417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418 *) ac_try_echo=$ac_try;;
21420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21421 (eval "$ac_compile") 2>conftest.er1
21423 grep -v '^ *+' conftest.er1 >conftest.err
21425 cat conftest.err >&5
21426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21427 (exit $ac_status); } && {
21428 test -z "$ac_c_werror_flag" ||
21429 test ! -s conftest.err
21430 } && test -s conftest.$ac_objext; then
21431 ac_header_compiler=yes
21433 echo "$as_me: failed program was
:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21436 ac_header_compiler=no
21439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21441 echo "${ECHO_T}$ac_header_compiler" >&6; }
21443 # Is the header present?
21444 { echo "$as_me:$LINENO: checking
${NCURSES_DIR}/include
/curses.h presence
" >&5
21445 echo $ECHO_N "checking
${NCURSES_DIR}/include
/curses.h presence...
$ECHO_C" >&6; }
21446 cat >conftest.$ac_ext <<_ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 #include <${NCURSES_DIR}/include/curses.h>
21454 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21455 case "(($ac_try" in
21456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457 *) ac_try_echo=$ac_try;;
21459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21460 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21462 grep -v '^ *+' conftest.er1 >conftest.err
21464 cat conftest.err >&5
21465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21466 (exit $ac_status); } >/dev/null && {
21467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21468 test ! -s conftest.err
21470 ac_header_preproc=yes
21472 echo "$as_me: failed program was
:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21475 ac_header_preproc=no
21478 rm -f conftest.err conftest.$ac_ext
21479 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21480 echo "${ECHO_T}$ac_header_preproc" >&6; }
21482 # So? What about this header?
21483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21485 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21486 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21487 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: proceeding with the compiler
's result" >&5
21488 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result
" >&2;}
21489 ac_header_preproc=yes
21492 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&5
21493 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&2;}
21494 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&5
21495 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&2;}
21496 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&5
21497 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&2;}
21498 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21499 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21500 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: proceeding with the preprocessor
's result" >&5
21501 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result
" >&2;}
21502 { echo "$as_me:$LINENO: WARNING
: ${NCURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&5
21503 echo "$as_me: WARNING
: ${NCURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&2;}
21505 ## ------------------------------- ##
21506 ## Report this to www.asterisk.org ##
21507 ## ------------------------------- ##
21509 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
21512 { echo "$as_me:$LINENO: checking
for ${NCURSES_DIR}/include
/curses.h
" >&5
21513 echo $ECHO_N "checking
for ${NCURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
21514 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21515 echo $ECHO_N "(cached
) $ECHO_C" >&6
21517 eval "$as_ac_Header=\
$ac_header_preproc"
21519 ac_res=`eval echo '${'$as_ac_Header'}'`
21520 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21521 echo "${ECHO_T}$ac_res" >&6; }
21524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21525 NCURSES_HEADER_FOUND=1
21527 NCURSES_HEADER_FOUND=0
21532 CPPFLAGS="${saved_cppflags}"
21534 if test "xcurses.h
" != "x
" ; then
21535 if test "${ac_cv_header_curses_h+set}" = set; then
21536 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
21537 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
21538 if test "${ac_cv_header_curses_h+set}" = set; then
21539 echo $ECHO_N "(cached
) $ECHO_C" >&6
21541 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
21542 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21544 # Is the header compilable?
21545 { echo "$as_me:$LINENO: checking curses.h usability
" >&5
21546 echo $ECHO_N "checking curses.h usability...
$ECHO_C" >&6; }
21547 cat >conftest.$ac_ext <<_ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 $ac_includes_default
21554 #include <curses.h>
21556 rm -f conftest.$ac_objext
21557 if { (ac_try="$ac_compile"
21558 case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21563 (eval "$ac_compile") 2>conftest.er1
21565 grep -v '^ *+' conftest.er1 >conftest.err
21567 cat conftest.err >&5
21568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21569 (exit $ac_status); } && {
21570 test -z "$ac_c_werror_flag" ||
21571 test ! -s conftest.err
21572 } && test -s conftest.$ac_objext; then
21573 ac_header_compiler=yes
21575 echo "$as_me: failed program was
:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21578 ac_header_compiler=no
21581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21583 echo "${ECHO_T}$ac_header_compiler" >&6; }
21585 # Is the header present?
21586 { echo "$as_me:$LINENO: checking curses.h presence
" >&5
21587 echo $ECHO_N "checking curses.h presence...
$ECHO_C" >&6; }
21588 cat >conftest.$ac_ext <<_ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h. */
21594 #include <curses.h>
21596 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21597 case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21604 grep -v '^ *+' conftest.er1 >conftest.err
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21608 (exit $ac_status); } >/dev/null && {
21609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21612 ac_header_preproc=yes
21614 echo "$as_me: failed program was
:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21617 ac_header_preproc=no
21620 rm -f conftest.err conftest.$ac_ext
21621 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21622 echo "${ECHO_T}$ac_header_preproc" >&6; }
21624 # So? What about this header?
21625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21627 { echo "$as_me:$LINENO: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21628 echo "$as_me: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21629 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the compiler
's result" >&5
21630 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result
" >&2;}
21631 ac_header_preproc=yes
21634 { echo "$as_me:$LINENO: WARNING
: curses.h
: present but cannot be compiled
" >&5
21635 echo "$as_me: WARNING
: curses.h
: present but cannot be compiled
" >&2;}
21636 { echo "$as_me:$LINENO: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&5
21637 echo "$as_me: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&2;}
21638 { echo "$as_me:$LINENO: WARNING
: curses.h
: see the Autoconf documentation
" >&5
21639 echo "$as_me: WARNING
: curses.h
: see the Autoconf documentation
" >&2;}
21640 { echo "$as_me:$LINENO: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21641 echo "$as_me: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21642 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the preprocessor
's result" >&5
21643 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result
" >&2;}
21644 { echo "$as_me:$LINENO: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&5
21645 echo "$as_me: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&2;}
21647 ## ------------------------------- ##
21648 ## Report this to www.asterisk.org ##
21649 ## ------------------------------- ##
21651 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
21654 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
21655 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
21656 if test "${ac_cv_header_curses_h+set}" = set; then
21657 echo $ECHO_N "(cached
) $ECHO_C" >&6
21659 ac_cv_header_curses_h=$ac_header_preproc
21661 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
21662 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21665 if test $ac_cv_header_curses_h = yes; then
21666 NCURSES_HEADER_FOUND=1
21668 NCURSES_HEADER_FOUND=0
21674 if test "x
${NCURSES_HEADER_FOUND}" = "x0
" ; then
21675 if test -n "${NCURSES_MANDATORY}" ;
21677 { echo "$as_me:$LINENO: ***" >&5
21678 echo "$as_me: ***" >&6;}
21679 { echo "$as_me:$LINENO: *** It appears that you
do not have the ncurses development package installed.
" >&5
21680 echo "$as_me: *** It appears that you
do not have the ncurses development package installed.
" >&6;}
21681 { echo "$as_me:$LINENO: *** Please
install it to include
${NCURSES_DESCRIP} support
, or re-run configure
" >&5
21682 echo "$as_me: *** Please
install it to include
${NCURSES_DESCRIP} support
, or re-run configure
" >&6;}
21683 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NCURSES_OPTION}" >&5
21684 echo "$as_me: *** without explicitly specifying
--with-${NCURSES_OPTION}" >&6;}
21693 cat >>confdefs.h <<_ACEOF
21694 #define HAVE_NCURSES 1
21698 elif test -n "${NCURSES_MANDATORY}";
21700 { echo "$as_me:$LINENO: ***" >&5
21701 echo "$as_me: ***" >&6;}
21702 { echo "$as_me:$LINENO: *** The
${NCURSES_DESCRIP} installation on this system appears to be broken.
" >&5
21703 echo "$as_me: *** The
${NCURSES_DESCRIP} installation on this system appears to be broken.
" >&6;}
21704 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
21705 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
21706 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NCURSES_OPTION}" >&5
21707 echo "$as_me: *** without explicitly specifying
--with-${NCURSES_OPTION}" >&6;}
21714 if test "${USE_NETSNMP}" != "no
"; then
21715 if test "x
${NETSNMP_DIR}" != "x
"; then
21716 if test -n "$ac_tool_prefix"; then
21717 # Extract the first word of "${ac_tool_prefix}net-snmp-config
", so it can be a program name with args.
21718 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
21719 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
21720 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
21721 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21722 echo $ECHO_N "(cached
) $ECHO_C" >&6
21724 case $NETSNMP_CONFIG in
21726 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
21729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21730 for as_dir in ${NETSNMP_DIR}/bin
21733 test -z "$as_dir" && as_dir=.
21734 for ac_exec_ext in '' $ac_executable_extensions; do
21735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21736 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21737 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
21747 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
21748 if test -n "$NETSNMP_CONFIG"; then
21749 { echo "$as_me:$LINENO: result
: $NETSNMP_CONFIG" >&5
21750 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21752 { echo "$as_me:$LINENO: result
: no
" >&5
21753 echo "${ECHO_T}no
" >&6; }
21758 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21759 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
21760 # Extract the first word of "net-snmp-config
", so it can be a program name with args.
21761 set dummy net-snmp-config; ac_word=$2
21762 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
21763 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
21764 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21765 echo $ECHO_N "(cached
) $ECHO_C" >&6
21767 case $ac_pt_NETSNMP_CONFIG in
21769 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21773 for as_dir in ${NETSNMP_DIR}/bin
21776 test -z "$as_dir" && as_dir=.
21777 for ac_exec_ext in '' $ac_executable_extensions; do
21778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21779 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21780 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
21790 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21791 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21792 { echo "$as_me:$LINENO: result
: $ac_pt_NETSNMP_CONFIG" >&5
21793 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21795 { echo "$as_me:$LINENO: result
: no
" >&5
21796 echo "${ECHO_T}no
" >&6; }
21799 if test "x
$ac_pt_NETSNMP_CONFIG" = x; then
21800 NETSNMP_CONFIG="No
"
21802 case $cross_compiling:$ac_tool_warned in
21804 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
21805 whose name does not start with the
host triplet. If you think this
21806 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
21807 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
21808 whose name does not start with the
host triplet. If you think this
21809 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
21810 ac_tool_warned=yes ;;
21812 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
21815 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
21818 if test x"${NETSNMP_CONFIG}" = xNo; then
21819 { echo "$as_me:$LINENO: ***" >&5
21820 echo "$as_me: ***" >&6;}
21821 { echo "$as_me:$LINENO: *** net-snmp-config was not found
in the path you specified
:" >&5
21822 echo "$as_me: *** net-snmp-config was not found
in the path you specified
:" >&6;}
21823 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin
" >&5
21824 echo "$as_me: *** ${NETSNMP_DIR}/bin
" >&6;}
21825 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
21826 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
21827 { echo "$as_me:$LINENO: *** including
--without-netsnmp" >&5
21828 echo "$as_me: *** including
--without-netsnmp" >&6;}
21832 if test -n "$ac_tool_prefix"; then
21833 # Extract the first word of "${ac_tool_prefix}net-snmp-config
", so it can be a program name with args.
21834 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
21835 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
21836 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
21837 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21838 echo $ECHO_N "(cached
) $ECHO_C" >&6
21840 case $NETSNMP_CONFIG in
21842 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
21845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21846 for as_dir in $PATH
21849 test -z "$as_dir" && as_dir=.
21850 for ac_exec_ext in '' $ac_executable_extensions; do
21851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21852 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21853 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
21863 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
21864 if test -n "$NETSNMP_CONFIG"; then
21865 { echo "$as_me:$LINENO: result
: $NETSNMP_CONFIG" >&5
21866 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21868 { echo "$as_me:$LINENO: result
: no
" >&5
21869 echo "${ECHO_T}no
" >&6; }
21874 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21875 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
21876 # Extract the first word of "net-snmp-config
", so it can be a program name with args.
21877 set dummy net-snmp-config; ac_word=$2
21878 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
21879 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
21880 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21881 echo $ECHO_N "(cached
) $ECHO_C" >&6
21883 case $ac_pt_NETSNMP_CONFIG in
21885 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21889 for as_dir in $PATH
21892 test -z "$as_dir" && as_dir=.
21893 for ac_exec_ext in '' $ac_executable_extensions; do
21894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21895 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21896 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
21906 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21907 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21908 { echo "$as_me:$LINENO: result
: $ac_pt_NETSNMP_CONFIG" >&5
21909 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21911 { echo "$as_me:$LINENO: result
: no
" >&5
21912 echo "${ECHO_T}no
" >&6; }
21915 if test "x
$ac_pt_NETSNMP_CONFIG" = x; then
21916 NETSNMP_CONFIG="No
"
21918 case $cross_compiling:$ac_tool_warned in
21920 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
21921 whose name does not start with the
host triplet. If you think this
21922 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
21923 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
21924 whose name does not start with the
host triplet. If you think this
21925 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
21926 ac_tool_warned=yes ;;
21928 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
21931 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
21936 if test x"${NETSNMP_CONFIG}" != xNo; then
21937 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
21939 { echo "$as_me:$LINENO: checking
for snmp_register_callback
in -lnetsnmp" >&5
21940 echo $ECHO_N "checking
for snmp_register_callback
in -lnetsnmp...
$ECHO_C" >&6; }
21941 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
21942 echo $ECHO_N "(cached
) $ECHO_C" >&6
21944 ac_check_lib_save_LIBS=$LIBS
21945 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
21946 cat >conftest.$ac_ext <<_ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21953 /* Override any GCC internal prototype to avoid an error.
21954 Use char because int might match the return type of a GCC
21955 builtin and then its argument prototype would still apply. */
21959 char snmp_register_callback ();
21963 return snmp_register_callback ();
21968 rm -f conftest.$ac_objext conftest$ac_exeext
21969 if { (ac_try="$ac_link"
21970 case "(($ac_try" in
21971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972 *) ac_try_echo=$ac_try;;
21974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21975 (eval "$ac_link") 2>conftest.er1
21977 grep -v '^ *+' conftest.er1 >conftest.err
21979 cat conftest.err >&5
21980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21981 (exit $ac_status); } && {
21982 test -z "$ac_c_werror_flag" ||
21983 test ! -s conftest.err
21984 } && test -s conftest$ac_exeext &&
21985 $as_test_x conftest$ac_exeext; then
21986 ac_cv_lib_netsnmp_snmp_register_callback=yes
21988 echo "$as_me: failed program was
:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21991 ac_cv_lib_netsnmp_snmp_register_callback=no
21994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21995 conftest$ac_exeext conftest.$ac_ext
21996 LIBS=$ac_check_lib_save_LIBS
21998 { echo "$as_me:$LINENO: result
: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
21999 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
22000 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
22002 cat >>confdefs.h <<_ACEOF
22003 #define HAVE_NETSNMP 1
22009 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
22010 NETSNMP_LIB="${NETSNMP_libs}"
22012 elif test -n "${NETSNMP_MANDATORY}";
22014 { echo "$as_me:$LINENO: ***" >&5
22015 echo "$as_me: ***" >&6;}
22016 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken.
" >&5
22017 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken.
" >&6;}
22018 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
22019 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
22020 { echo "$as_me:$LINENO: *** including
--without-netsnmp" >&5
22021 echo "$as_me: *** including
--without-netsnmp" >&6;}
22024 elif test -n "${NETSNMP_MANDATORY}";
22026 { echo "$as_me:$LINENO: ***" >&5
22027 echo "$as_me: ***" >&6;}
22028 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken.
" >&5
22029 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken.
" >&6;}
22030 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
22031 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
22032 { echo "$as_me:$LINENO: *** including
--without-netsnmp" >&5
22033 echo "$as_me: *** including
--without-netsnmp" >&6;}
22038 if test "${USE_NEWT}" != "no
"; then
22040 if test "x
${NEWT_DIR}" != "x
"; then
22041 if test -d ${NEWT_DIR}/lib; then
22042 pbxlibdir="-L${NEWT_DIR}/lib
"
22044 pbxlibdir="-L${NEWT_DIR}"
22047 { echo "$as_me:$LINENO: checking
for newtBell
in -lnewt" >&5
22048 echo $ECHO_N "checking
for newtBell
in -lnewt...
$ECHO_C" >&6; }
22049 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
22050 echo $ECHO_N "(cached
) $ECHO_C" >&6
22052 ac_check_lib_save_LIBS=$LIBS
22053 LIBS="-lnewt ${pbxlibdir} $LIBS"
22054 cat >conftest.$ac_ext <<_ACEOF
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h. */
22061 /* Override any GCC internal prototype to avoid an error.
22062 Use char because int might match the return type of a GCC
22063 builtin and then its argument prototype would still apply. */
22071 return newtBell ();
22076 rm -f conftest.$ac_objext conftest$ac_exeext
22077 if { (ac_try="$ac_link"
22078 case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_link") 2>conftest.er1
22085 grep -v '^ *+' conftest.er1 >conftest.err
22087 cat conftest.err >&5
22088 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22089 (exit $ac_status); } && {
22090 test -z "$ac_c_werror_flag" ||
22091 test ! -s conftest.err
22092 } && test -s conftest$ac_exeext &&
22093 $as_test_x conftest$ac_exeext; then
22094 ac_cv_lib_newt_newtBell=yes
22096 echo "$as_me: failed program was
:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_cv_lib_newt_newtBell=no
22102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22103 conftest$ac_exeext conftest.$ac_ext
22104 LIBS=$ac_check_lib_save_LIBS
22106 { echo "$as_me:$LINENO: result
: $ac_cv_lib_newt_newtBell" >&5
22107 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
22108 if test $ac_cv_lib_newt_newtBell = yes; then
22115 if test "${AST_NEWT_FOUND}" = "yes"; then
22117 NEWT_HEADER_FOUND="1"
22118 if test "x
${NEWT_DIR}" != "x
"; then
22119 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
22120 NEWT_INCLUDE="-I${NEWT_DIR}/include
"
22121 saved_cppflags="${CPPFLAGS}"
22122 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include
"
22123 if test "xnewt.h
" != "x
" ; then
22124 as_ac_Header=`echo "ac_cv_header_
${NEWT_DIR}/include
/newt.h
" | $as_tr_sh`
22125 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22126 { echo "$as_me:$LINENO: checking
for ${NEWT_DIR}/include
/newt.h
" >&5
22127 echo $ECHO_N "checking
for ${NEWT_DIR}/include
/newt.h...
$ECHO_C" >&6; }
22128 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22129 echo $ECHO_N "(cached
) $ECHO_C" >&6
22131 ac_res=`eval echo '${'$as_ac_Header'}'`
22132 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22133 echo "${ECHO_T}$ac_res" >&6; }
22135 # Is the header compilable?
22136 { echo "$as_me:$LINENO: checking
${NEWT_DIR}/include
/newt.h usability
" >&5
22137 echo $ECHO_N "checking
${NEWT_DIR}/include
/newt.h usability...
$ECHO_C" >&6; }
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 $ac_includes_default
22145 #include <${NEWT_DIR}/include/newt.h>
22147 rm -f conftest.$ac_objext
22148 if { (ac_try="$ac_compile"
22149 case "(($ac_try" in
22150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151 *) ac_try_echo=$ac_try;;
22153 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22154 (eval "$ac_compile") 2>conftest.er1
22156 grep -v '^ *+' conftest.er1 >conftest.err
22158 cat conftest.err >&5
22159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22160 (exit $ac_status); } && {
22161 test -z "$ac_c_werror_flag" ||
22162 test ! -s conftest.err
22163 } && test -s conftest.$ac_objext; then
22164 ac_header_compiler=yes
22166 echo "$as_me: failed program was
:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22169 ac_header_compiler=no
22172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22174 echo "${ECHO_T}$ac_header_compiler" >&6; }
22176 # Is the header present?
22177 { echo "$as_me:$LINENO: checking
${NEWT_DIR}/include
/newt.h presence
" >&5
22178 echo $ECHO_N "checking
${NEWT_DIR}/include
/newt.h presence...
$ECHO_C" >&6; }
22179 cat >conftest.$ac_ext <<_ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h. */
22185 #include <${NEWT_DIR}/include/newt.h>
22187 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22188 case "(($ac_try" in
22189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190 *) ac_try_echo=$ac_try;;
22192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22193 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22195 grep -v '^ *+' conftest.er1 >conftest.err
22197 cat conftest.err >&5
22198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22199 (exit $ac_status); } >/dev/null && {
22200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22201 test ! -s conftest.err
22203 ac_header_preproc=yes
22205 echo "$as_me: failed program was
:" >&5
22206 sed 's/^/| /' conftest.$ac_ext >&5
22208 ac_header_preproc=no
22211 rm -f conftest.err conftest.$ac_ext
22212 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22213 echo "${ECHO_T}$ac_header_preproc" >&6; }
22215 # So? What about this header?
22216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22218 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22219 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22220 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: proceeding with the compiler
's result" >&5
22221 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result
" >&2;}
22222 ac_header_preproc=yes
22225 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: present but cannot be compiled
" >&5
22226 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: present but cannot be compiled
" >&2;}
22227 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: check
for missing prerequisite headers?
" >&5
22228 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: check
for missing prerequisite headers?
" >&2;}
22229 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: see the Autoconf documentation
" >&5
22230 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: see the Autoconf documentation
" >&2;}
22231 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22232 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22233 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: proceeding with the preprocessor
's result" >&5
22234 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result
" >&2;}
22235 { echo "$as_me:$LINENO: WARNING
: ${NEWT_DIR}/include
/newt.h
: in the future
, the compiler will take precedence
" >&5
22236 echo "$as_me: WARNING
: ${NEWT_DIR}/include
/newt.h
: in the future
, the compiler will take precedence
" >&2;}
22238 ## ------------------------------- ##
22239 ## Report this to www.asterisk.org ##
22240 ## ------------------------------- ##
22242 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
22245 { echo "$as_me:$LINENO: checking
for ${NEWT_DIR}/include
/newt.h
" >&5
22246 echo $ECHO_N "checking
for ${NEWT_DIR}/include
/newt.h...
$ECHO_C" >&6; }
22247 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22248 echo $ECHO_N "(cached
) $ECHO_C" >&6
22250 eval "$as_ac_Header=\
$ac_header_preproc"
22252 ac_res=`eval echo '${'$as_ac_Header'}'`
22253 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22254 echo "${ECHO_T}$ac_res" >&6; }
22257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22258 NEWT_HEADER_FOUND=1
22260 NEWT_HEADER_FOUND=0
22265 CPPFLAGS="${saved_cppflags}"
22267 if test "xnewt.h
" != "x
" ; then
22268 if test "${ac_cv_header_newt_h+set}" = set; then
22269 { echo "$as_me:$LINENO: checking
for newt.h
" >&5
22270 echo $ECHO_N "checking
for newt.h...
$ECHO_C" >&6; }
22271 if test "${ac_cv_header_newt_h+set}" = set; then
22272 echo $ECHO_N "(cached
) $ECHO_C" >&6
22274 { echo "$as_me:$LINENO: result
: $ac_cv_header_newt_h" >&5
22275 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
22277 # Is the header compilable?
22278 { echo "$as_me:$LINENO: checking newt.h usability
" >&5
22279 echo $ECHO_N "checking newt.h usability...
$ECHO_C" >&6; }
22280 cat >conftest.$ac_ext <<_ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286 $ac_includes_default
22289 rm -f conftest.$ac_objext
22290 if { (ac_try="$ac_compile"
22291 case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_compile") 2>conftest.er1
22298 grep -v '^ *+' conftest.er1 >conftest.err
22300 cat conftest.err >&5
22301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22302 (exit $ac_status); } && {
22303 test -z "$ac_c_werror_flag" ||
22304 test ! -s conftest.err
22305 } && test -s conftest.$ac_objext; then
22306 ac_header_compiler=yes
22308 echo "$as_me: failed program was
:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 ac_header_compiler=no
22314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22315 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22316 echo "${ECHO_T}$ac_header_compiler" >&6; }
22318 # Is the header present?
22319 { echo "$as_me:$LINENO: checking newt.h presence
" >&5
22320 echo $ECHO_N "checking newt.h presence...
$ECHO_C" >&6; }
22321 cat >conftest.$ac_ext <<_ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h. */
22329 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22330 case "(($ac_try" in
22331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332 *) ac_try_echo=$ac_try;;
22334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22335 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22337 grep -v '^ *+' conftest.er1 >conftest.err
22339 cat conftest.err >&5
22340 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22341 (exit $ac_status); } >/dev/null && {
22342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22343 test ! -s conftest.err
22345 ac_header_preproc=yes
22347 echo "$as_me: failed program was
:" >&5
22348 sed 's/^/| /' conftest.$ac_ext >&5
22350 ac_header_preproc=no
22353 rm -f conftest.err conftest.$ac_ext
22354 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22355 echo "${ECHO_T}$ac_header_preproc" >&6; }
22357 # So? What about this header?
22358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22360 { echo "$as_me:$LINENO: WARNING
: newt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22361 echo "$as_me: WARNING
: newt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22362 { echo "$as_me:$LINENO: WARNING
: newt.h
: proceeding with the compiler
's result" >&5
22363 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result
" >&2;}
22364 ac_header_preproc=yes
22367 { echo "$as_me:$LINENO: WARNING
: newt.h
: present but cannot be compiled
" >&5
22368 echo "$as_me: WARNING
: newt.h
: present but cannot be compiled
" >&2;}
22369 { echo "$as_me:$LINENO: WARNING
: newt.h
: check
for missing prerequisite headers?
" >&5
22370 echo "$as_me: WARNING
: newt.h
: check
for missing prerequisite headers?
" >&2;}
22371 { echo "$as_me:$LINENO: WARNING
: newt.h
: see the Autoconf documentation
" >&5
22372 echo "$as_me: WARNING
: newt.h
: see the Autoconf documentation
" >&2;}
22373 { echo "$as_me:$LINENO: WARNING
: newt.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22374 echo "$as_me: WARNING
: newt.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22375 { echo "$as_me:$LINENO: WARNING
: newt.h
: proceeding with the preprocessor
's result" >&5
22376 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result
" >&2;}
22377 { echo "$as_me:$LINENO: WARNING
: newt.h
: in the future
, the compiler will take precedence
" >&5
22378 echo "$as_me: WARNING
: newt.h
: in the future
, the compiler will take precedence
" >&2;}
22380 ## ------------------------------- ##
22381 ## Report this to www.asterisk.org ##
22382 ## ------------------------------- ##
22384 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
22387 { echo "$as_me:$LINENO: checking
for newt.h
" >&5
22388 echo $ECHO_N "checking
for newt.h...
$ECHO_C" >&6; }
22389 if test "${ac_cv_header_newt_h+set}" = set; then
22390 echo $ECHO_N "(cached
) $ECHO_C" >&6
22392 ac_cv_header_newt_h=$ac_header_preproc
22394 { echo "$as_me:$LINENO: result
: $ac_cv_header_newt_h" >&5
22395 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
22398 if test $ac_cv_header_newt_h = yes; then
22399 NEWT_HEADER_FOUND=1
22401 NEWT_HEADER_FOUND=0
22407 if test "x
${NEWT_HEADER_FOUND}" = "x0
" ; then
22408 if test -n "${NEWT_MANDATORY}" ;
22410 { echo "$as_me:$LINENO: ***" >&5
22411 echo "$as_me: ***" >&6;}
22412 { echo "$as_me:$LINENO: *** It appears that you
do not have the newt development package installed.
" >&5
22413 echo "$as_me: *** It appears that you
do not have the newt development package installed.
" >&6;}
22414 { echo "$as_me:$LINENO: *** Please
install it to include
${NEWT_DESCRIP} support
, or re-run configure
" >&5
22415 echo "$as_me: *** Please
install it to include
${NEWT_DESCRIP} support
, or re-run configure
" >&6;}
22416 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NEWT_OPTION}" >&5
22417 echo "$as_me: *** without explicitly specifying
--with-${NEWT_OPTION}" >&6;}
22426 cat >>confdefs.h <<_ACEOF
22427 #define HAVE_NEWT 1
22431 elif test -n "${NEWT_MANDATORY}";
22433 { echo "$as_me:$LINENO: ***" >&5
22434 echo "$as_me: ***" >&6;}
22435 { echo "$as_me:$LINENO: *** The
${NEWT_DESCRIP} installation on this system appears to be broken.
" >&5
22436 echo "$as_me: *** The
${NEWT_DESCRIP} installation on this system appears to be broken.
" >&6;}
22437 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
22438 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
22439 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${NEWT_OPTION}" >&5
22440 echo "$as_me: *** without explicitly specifying
--with-${NEWT_OPTION}" >&6;}
22447 if test "${USE_UNIXODBC}" != "no
"; then
22449 if test "x
${UNIXODBC_DIR}" != "x
"; then
22450 if test -d ${UNIXODBC_DIR}/lib; then
22451 pbxlibdir="-L${UNIXODBC_DIR}/lib
"
22453 pbxlibdir="-L${UNIXODBC_DIR}"
22456 { echo "$as_me:$LINENO: checking
for SQLConnect
in -lodbc" >&5
22457 echo $ECHO_N "checking
for SQLConnect
in -lodbc...
$ECHO_C" >&6; }
22458 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
22459 echo $ECHO_N "(cached
) $ECHO_C" >&6
22461 ac_check_lib_save_LIBS=$LIBS
22462 LIBS="-lodbc ${pbxlibdir} $LIBS"
22463 cat >conftest.$ac_ext <<_ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22470 /* Override any GCC internal prototype to avoid an error.
22471 Use char because int might match the return type of a GCC
22472 builtin and then its argument prototype would still apply. */
22476 char SQLConnect ();
22480 return SQLConnect ();
22485 rm -f conftest.$ac_objext conftest$ac_exeext
22486 if { (ac_try="$ac_link"
22487 case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_link") 2>conftest.er1
22494 grep -v '^ *+' conftest.er1 >conftest.err
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22498 (exit $ac_status); } && {
22499 test -z "$ac_c_werror_flag" ||
22500 test ! -s conftest.err
22501 } && test -s conftest$ac_exeext &&
22502 $as_test_x conftest$ac_exeext; then
22503 ac_cv_lib_odbc_SQLConnect=yes
22505 echo "$as_me: failed program was
:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22508 ac_cv_lib_odbc_SQLConnect=no
22511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22512 conftest$ac_exeext conftest.$ac_ext
22513 LIBS=$ac_check_lib_save_LIBS
22515 { echo "$as_me:$LINENO: result
: $ac_cv_lib_odbc_SQLConnect" >&5
22516 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
22517 if test $ac_cv_lib_odbc_SQLConnect = yes; then
22518 AST_UNIXODBC_FOUND=yes
22520 AST_UNIXODBC_FOUND=no
22524 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
22525 UNIXODBC_LIB="-lodbc "
22526 UNIXODBC_HEADER_FOUND="1"
22527 if test "x
${UNIXODBC_DIR}" != "x
"; then
22528 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
22529 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include
"
22530 saved_cppflags="${CPPFLAGS}"
22531 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include
"
22532 if test "xsql.h
" != "x
" ; then
22533 as_ac_Header=`echo "ac_cv_header_
${UNIXODBC_DIR}/include
/sql.h
" | $as_tr_sh`
22534 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22535 { echo "$as_me:$LINENO: checking
for ${UNIXODBC_DIR}/include
/sql.h
" >&5
22536 echo $ECHO_N "checking
for ${UNIXODBC_DIR}/include
/sql.h...
$ECHO_C" >&6; }
22537 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22538 echo $ECHO_N "(cached
) $ECHO_C" >&6
22540 ac_res=`eval echo '${'$as_ac_Header'}'`
22541 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22542 echo "${ECHO_T}$ac_res" >&6; }
22544 # Is the header compilable?
22545 { echo "$as_me:$LINENO: checking
${UNIXODBC_DIR}/include
/sql.h usability
" >&5
22546 echo $ECHO_N "checking
${UNIXODBC_DIR}/include
/sql.h usability...
$ECHO_C" >&6; }
22547 cat >conftest.$ac_ext <<_ACEOF
22550 cat confdefs.h >>conftest.$ac_ext
22551 cat >>conftest.$ac_ext <<_ACEOF
22552 /* end confdefs.h. */
22553 $ac_includes_default
22554 #include <${UNIXODBC_DIR}/include/sql.h>
22556 rm -f conftest.$ac_objext
22557 if { (ac_try="$ac_compile"
22558 case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_compile") 2>conftest.er1
22565 grep -v '^ *+' conftest.er1 >conftest.err
22567 cat conftest.err >&5
22568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22569 (exit $ac_status); } && {
22570 test -z "$ac_c_werror_flag" ||
22571 test ! -s conftest.err
22572 } && test -s conftest.$ac_objext; then
22573 ac_header_compiler=yes
22575 echo "$as_me: failed program was
:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 ac_header_compiler=no
22581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22582 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22583 echo "${ECHO_T}$ac_header_compiler" >&6; }
22585 # Is the header present?
22586 { echo "$as_me:$LINENO: checking
${UNIXODBC_DIR}/include
/sql.h presence
" >&5
22587 echo $ECHO_N "checking
${UNIXODBC_DIR}/include
/sql.h presence...
$ECHO_C" >&6; }
22588 cat >conftest.$ac_ext <<_ACEOF
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h. */
22594 #include <${UNIXODBC_DIR}/include/sql.h>
22596 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22597 case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22602 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22604 grep -v '^ *+' conftest.er1 >conftest.err
22606 cat conftest.err >&5
22607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22608 (exit $ac_status); } >/dev/null && {
22609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22612 ac_header_preproc=yes
22614 echo "$as_me: failed program was
:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22617 ac_header_preproc=no
22620 rm -f conftest.err conftest.$ac_ext
22621 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22622 echo "${ECHO_T}$ac_header_preproc" >&6; }
22624 # So? What about this header?
22625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22627 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22628 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22629 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: proceeding with the compiler
's result" >&5
22630 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result
" >&2;}
22631 ac_header_preproc=yes
22634 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: present but cannot be compiled
" >&5
22635 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: present but cannot be compiled
" >&2;}
22636 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: check
for missing prerequisite headers?
" >&5
22637 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: check
for missing prerequisite headers?
" >&2;}
22638 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: see the Autoconf documentation
" >&5
22639 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: see the Autoconf documentation
" >&2;}
22640 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22641 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22642 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: proceeding with the preprocessor
's result" >&5
22643 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result
" >&2;}
22644 { echo "$as_me:$LINENO: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: in the future
, the compiler will take precedence
" >&5
22645 echo "$as_me: WARNING
: ${UNIXODBC_DIR}/include
/sql.h
: in the future
, the compiler will take precedence
" >&2;}
22647 ## ------------------------------- ##
22648 ## Report this to www.asterisk.org ##
22649 ## ------------------------------- ##
22651 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
22654 { echo "$as_me:$LINENO: checking
for ${UNIXODBC_DIR}/include
/sql.h
" >&5
22655 echo $ECHO_N "checking
for ${UNIXODBC_DIR}/include
/sql.h...
$ECHO_C" >&6; }
22656 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22657 echo $ECHO_N "(cached
) $ECHO_C" >&6
22659 eval "$as_ac_Header=\
$ac_header_preproc"
22661 ac_res=`eval echo '${'$as_ac_Header'}'`
22662 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22663 echo "${ECHO_T}$ac_res" >&6; }
22666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22667 UNIXODBC_HEADER_FOUND=1
22669 UNIXODBC_HEADER_FOUND=0
22674 CPPFLAGS="${saved_cppflags}"
22676 if test "xsql.h
" != "x
" ; then
22677 if test "${ac_cv_header_sql_h+set}" = set; then
22678 { echo "$as_me:$LINENO: checking
for sql.h
" >&5
22679 echo $ECHO_N "checking
for sql.h...
$ECHO_C" >&6; }
22680 if test "${ac_cv_header_sql_h+set}" = set; then
22681 echo $ECHO_N "(cached
) $ECHO_C" >&6
22683 { echo "$as_me:$LINENO: result
: $ac_cv_header_sql_h" >&5
22684 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22686 # Is the header compilable?
22687 { echo "$as_me:$LINENO: checking sql.h usability
" >&5
22688 echo $ECHO_N "checking sql.h usability...
$ECHO_C" >&6; }
22689 cat >conftest.$ac_ext <<_ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 $ac_includes_default
22698 rm -f conftest.$ac_objext
22699 if { (ac_try="$ac_compile"
22700 case "(($ac_try" in
22701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702 *) ac_try_echo=$ac_try;;
22704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22705 (eval "$ac_compile") 2>conftest.er1
22707 grep -v '^ *+' conftest.er1 >conftest.err
22709 cat conftest.err >&5
22710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22711 (exit $ac_status); } && {
22712 test -z "$ac_c_werror_flag" ||
22713 test ! -s conftest.err
22714 } && test -s conftest.$ac_objext; then
22715 ac_header_compiler=yes
22717 echo "$as_me: failed program was
:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22720 ac_header_compiler=no
22723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22725 echo "${ECHO_T}$ac_header_compiler" >&6; }
22727 # Is the header present?
22728 { echo "$as_me:$LINENO: checking sql.h presence
" >&5
22729 echo $ECHO_N "checking sql.h presence...
$ECHO_C" >&6; }
22730 cat >conftest.$ac_ext <<_ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h. */
22738 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22739 case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22746 grep -v '^ *+' conftest.er1 >conftest.err
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22750 (exit $ac_status); } >/dev/null && {
22751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22754 ac_header_preproc=yes
22756 echo "$as_me: failed program was
:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 ac_header_preproc=no
22762 rm -f conftest.err conftest.$ac_ext
22763 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22764 echo "${ECHO_T}$ac_header_preproc" >&6; }
22766 # So? What about this header?
22767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22769 { echo "$as_me:$LINENO: WARNING
: sql.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22770 echo "$as_me: WARNING
: sql.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22771 { echo "$as_me:$LINENO: WARNING
: sql.h
: proceeding with the compiler
's result" >&5
22772 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result
" >&2;}
22773 ac_header_preproc=yes
22776 { echo "$as_me:$LINENO: WARNING
: sql.h
: present but cannot be compiled
" >&5
22777 echo "$as_me: WARNING
: sql.h
: present but cannot be compiled
" >&2;}
22778 { echo "$as_me:$LINENO: WARNING
: sql.h
: check
for missing prerequisite headers?
" >&5
22779 echo "$as_me: WARNING
: sql.h
: check
for missing prerequisite headers?
" >&2;}
22780 { echo "$as_me:$LINENO: WARNING
: sql.h
: see the Autoconf documentation
" >&5
22781 echo "$as_me: WARNING
: sql.h
: see the Autoconf documentation
" >&2;}
22782 { echo "$as_me:$LINENO: WARNING
: sql.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22783 echo "$as_me: WARNING
: sql.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22784 { echo "$as_me:$LINENO: WARNING
: sql.h
: proceeding with the preprocessor
's result" >&5
22785 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result
" >&2;}
22786 { echo "$as_me:$LINENO: WARNING
: sql.h
: in the future
, the compiler will take precedence
" >&5
22787 echo "$as_me: WARNING
: sql.h
: in the future
, the compiler will take precedence
" >&2;}
22789 ## ------------------------------- ##
22790 ## Report this to www.asterisk.org ##
22791 ## ------------------------------- ##
22793 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
22796 { echo "$as_me:$LINENO: checking
for sql.h
" >&5
22797 echo $ECHO_N "checking
for sql.h...
$ECHO_C" >&6; }
22798 if test "${ac_cv_header_sql_h+set}" = set; then
22799 echo $ECHO_N "(cached
) $ECHO_C" >&6
22801 ac_cv_header_sql_h=$ac_header_preproc
22803 { echo "$as_me:$LINENO: result
: $ac_cv_header_sql_h" >&5
22804 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22807 if test $ac_cv_header_sql_h = yes; then
22808 UNIXODBC_HEADER_FOUND=1
22810 UNIXODBC_HEADER_FOUND=0
22816 if test "x
${UNIXODBC_HEADER_FOUND}" = "x0
" ; then
22817 if test -n "${UNIXODBC_MANDATORY}" ;
22819 { echo "$as_me:$LINENO: ***" >&5
22820 echo "$as_me: ***" >&6;}
22821 { echo "$as_me:$LINENO: *** It appears that you
do not have the odbc development package installed.
" >&5
22822 echo "$as_me: *** It appears that you
do not have the odbc development package installed.
" >&6;}
22823 { echo "$as_me:$LINENO: *** Please
install it to include
${UNIXODBC_DESCRIP} support
, or re-run configure
" >&5
22824 echo "$as_me: *** Please
install it to include
${UNIXODBC_DESCRIP} support
, or re-run configure
" >&6;}
22825 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${UNIXODBC_OPTION}" >&5
22826 echo "$as_me: *** without explicitly specifying
--with-${UNIXODBC_OPTION}" >&6;}
22830 UNIXODBC_INCLUDE=""
22835 cat >>confdefs.h <<_ACEOF
22836 #define HAVE_UNIXODBC 1
22840 elif test -n "${UNIXODBC_MANDATORY}";
22842 { echo "$as_me:$LINENO: ***" >&5
22843 echo "$as_me: ***" >&6;}
22844 { echo "$as_me:$LINENO: *** The
${UNIXODBC_DESCRIP} installation on this system appears to be broken.
" >&5
22845 echo "$as_me: *** The
${UNIXODBC_DESCRIP} installation on this system appears to be broken.
" >&6;}
22846 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
22847 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
22848 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${UNIXODBC_OPTION}" >&5
22849 echo "$as_me: *** without explicitly specifying
--with-${UNIXODBC_OPTION}" >&6;}
22856 if test "${USE_OGG}" != "no
"; then
22858 if test "x
${OGG_DIR}" != "x
"; then
22859 if test -d ${OGG_DIR}/lib; then
22860 pbxlibdir="-L${OGG_DIR}/lib
"
22862 pbxlibdir="-L${OGG_DIR}"
22865 { echo "$as_me:$LINENO: checking
for ogg_sync_init
in -logg" >&5
22866 echo $ECHO_N "checking
for ogg_sync_init
in -logg...
$ECHO_C" >&6; }
22867 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
22868 echo $ECHO_N "(cached
) $ECHO_C" >&6
22870 ac_check_lib_save_LIBS=$LIBS
22871 LIBS="-logg ${pbxlibdir} $LIBS"
22872 cat >conftest.$ac_ext <<_ACEOF
22875 cat confdefs.h >>conftest.$ac_ext
22876 cat >>conftest.$ac_ext <<_ACEOF
22877 /* end confdefs.h. */
22879 /* Override any GCC internal prototype to avoid an error.
22880 Use char because int might match the return type of a GCC
22881 builtin and then its argument prototype would still apply. */
22885 char ogg_sync_init ();
22889 return ogg_sync_init ();
22894 rm -f conftest.$ac_objext conftest$ac_exeext
22895 if { (ac_try="$ac_link"
22896 case "(($ac_try" in
22897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898 *) ac_try_echo=$ac_try;;
22900 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22901 (eval "$ac_link") 2>conftest.er1
22903 grep -v '^ *+' conftest.er1 >conftest.err
22905 cat conftest.err >&5
22906 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22907 (exit $ac_status); } && {
22908 test -z "$ac_c_werror_flag" ||
22909 test ! -s conftest.err
22910 } && test -s conftest$ac_exeext &&
22911 $as_test_x conftest$ac_exeext; then
22912 ac_cv_lib_ogg_ogg_sync_init=yes
22914 echo "$as_me: failed program was
:" >&5
22915 sed 's/^/| /' conftest.$ac_ext >&5
22917 ac_cv_lib_ogg_ogg_sync_init=no
22920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22921 conftest$ac_exeext conftest.$ac_ext
22922 LIBS=$ac_check_lib_save_LIBS
22924 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ogg_ogg_sync_init" >&5
22925 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
22926 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
22933 if test "${AST_OGG_FOUND}" = "yes"; then
22935 OGG_HEADER_FOUND="1"
22936 if test "x
${OGG_DIR}" != "x
"; then
22937 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
22938 OGG_INCLUDE="-I${OGG_DIR}/include
"
22939 saved_cppflags="${CPPFLAGS}"
22940 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include
"
22941 if test "x
" != "x
" ; then
22942 as_ac_Header=`echo "ac_cv_header_
${OGG_DIR}/include
/" | $as_tr_sh`
22943 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22944 { echo "$as_me:$LINENO: checking
for ${OGG_DIR}/include
/" >&5
22945 echo $ECHO_N "checking
for ${OGG_DIR}/include
/...
$ECHO_C" >&6; }
22946 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22947 echo $ECHO_N "(cached
) $ECHO_C" >&6
22949 ac_res=`eval echo '${'$as_ac_Header'}'`
22950 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22951 echo "${ECHO_T}$ac_res" >&6; }
22953 # Is the header compilable?
22954 { echo "$as_me:$LINENO: checking
${OGG_DIR}/include
/ usability
" >&5
22955 echo $ECHO_N "checking
${OGG_DIR}/include
/ usability...
$ECHO_C" >&6; }
22956 cat >conftest.$ac_ext <<_ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22962 $ac_includes_default
22963 #include <${OGG_DIR}/include/>
22965 rm -f conftest.$ac_objext
22966 if { (ac_try="$ac_compile"
22967 case "(($ac_try" in
22968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969 *) ac_try_echo=$ac_try;;
22971 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22972 (eval "$ac_compile") 2>conftest.er1
22974 grep -v '^ *+' conftest.er1 >conftest.err
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22978 (exit $ac_status); } && {
22979 test -z "$ac_c_werror_flag" ||
22980 test ! -s conftest.err
22981 } && test -s conftest.$ac_objext; then
22982 ac_header_compiler=yes
22984 echo "$as_me: failed program was
:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22987 ac_header_compiler=no
22990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22991 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22992 echo "${ECHO_T}$ac_header_compiler" >&6; }
22994 # Is the header present?
22995 { echo "$as_me:$LINENO: checking
${OGG_DIR}/include
/ presence
" >&5
22996 echo $ECHO_N "checking
${OGG_DIR}/include
/ presence...
$ECHO_C" >&6; }
22997 cat >conftest.$ac_ext <<_ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h. */
23003 #include <${OGG_DIR}/include/>
23005 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23006 case "(($ac_try" in
23007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008 *) ac_try_echo=$ac_try;;
23010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23011 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23013 grep -v '^ *+' conftest.er1 >conftest.err
23015 cat conftest.err >&5
23016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23017 (exit $ac_status); } >/dev/null && {
23018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23021 ac_header_preproc=yes
23023 echo "$as_me: failed program was
:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23026 ac_header_preproc=no
23029 rm -f conftest.err conftest.$ac_ext
23030 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23031 echo "${ECHO_T}$ac_header_preproc" >&6; }
23033 # So? What about this header?
23034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23036 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&5
23037 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23038 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: proceeding with the compiler
's result" >&5
23039 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result
" >&2;}
23040 ac_header_preproc=yes
23043 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: present but cannot be compiled
" >&5
23044 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: present but cannot be compiled
" >&2;}
23045 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: check
for missing prerequisite headers?
" >&5
23046 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: check
for missing prerequisite headers?
" >&2;}
23047 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: see the Autoconf documentation
" >&5
23048 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: see the Autoconf documentation
" >&2;}
23049 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&5
23050 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: section
\"Present But Cannot Be Compiled
\"" >&2;}
23051 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: proceeding with the preprocessor
's result" >&5
23052 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result
" >&2;}
23053 { echo "$as_me:$LINENO: WARNING
: ${OGG_DIR}/include
/: in the future
, the compiler will take precedence
" >&5
23054 echo "$as_me: WARNING
: ${OGG_DIR}/include
/: in the future
, the compiler will take precedence
" >&2;}
23056 ## ------------------------------- ##
23057 ## Report this to www.asterisk.org ##
23058 ## ------------------------------- ##
23060 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23063 { echo "$as_me:$LINENO: checking
for ${OGG_DIR}/include
/" >&5
23064 echo $ECHO_N "checking
for ${OGG_DIR}/include
/...
$ECHO_C" >&6; }
23065 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23066 echo $ECHO_N "(cached
) $ECHO_C" >&6
23068 eval "$as_ac_Header=\
$ac_header_preproc"
23070 ac_res=`eval echo '${'$as_ac_Header'}'`
23071 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23072 echo "${ECHO_T}$ac_res" >&6; }
23075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23083 CPPFLAGS="${saved_cppflags}"
23085 if test "x
" != "x
" ; then
23086 if test "${ac_cv_header_+set}" = set; then
23087 { echo "$as_me:$LINENO: checking
for " >&5
23088 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
23089 if test "${ac_cv_header_+set}" = set; then
23090 echo $ECHO_N "(cached
) $ECHO_C" >&6
23092 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
23093 echo "${ECHO_T}$ac_cv_header_" >&6; }
23095 # Is the header compilable?
23096 { echo "$as_me:$LINENO: checking usability
" >&5
23097 echo $ECHO_N "checking usability...
$ECHO_C" >&6; }
23098 cat >conftest.$ac_ext <<_ACEOF
23101 cat confdefs.h >>conftest.$ac_ext
23102 cat >>conftest.$ac_ext <<_ACEOF
23103 /* end confdefs.h. */
23104 $ac_includes_default
23107 rm -f conftest.$ac_objext
23108 if { (ac_try="$ac_compile"
23109 case "(($ac_try" in
23110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23111 *) ac_try_echo=$ac_try;;
23113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23114 (eval "$ac_compile") 2>conftest.er1
23116 grep -v '^ *+' conftest.er1 >conftest.err
23118 cat conftest.err >&5
23119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23120 (exit $ac_status); } && {
23121 test -z "$ac_c_werror_flag" ||
23122 test ! -s conftest.err
23123 } && test -s conftest.$ac_objext; then
23124 ac_header_compiler=yes
23126 echo "$as_me: failed program was
:" >&5
23127 sed 's/^/| /' conftest.$ac_ext >&5
23129 ac_header_compiler=no
23132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23133 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23134 echo "${ECHO_T}$ac_header_compiler" >&6; }
23136 # Is the header present?
23137 { echo "$as_me:$LINENO: checking presence
" >&5
23138 echo $ECHO_N "checking presence...
$ECHO_C" >&6; }
23139 cat >conftest.$ac_ext <<_ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23147 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23148 case "(($ac_try" in
23149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150 *) ac_try_echo=$ac_try;;
23152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23153 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23155 grep -v '^ *+' conftest.er1 >conftest.err
23157 cat conftest.err >&5
23158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23159 (exit $ac_status); } >/dev/null && {
23160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23161 test ! -s conftest.err
23163 ac_header_preproc=yes
23165 echo "$as_me: failed program was
:" >&5
23166 sed 's/^/| /' conftest.$ac_ext >&5
23168 ac_header_preproc=no
23171 rm -f conftest.err conftest.$ac_ext
23172 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23173 echo "${ECHO_T}$ac_header_preproc" >&6; }
23175 # So? What about this header?
23176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23178 { echo "$as_me:$LINENO: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&5
23179 echo "$as_me: WARNING
: : accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23180 { echo "$as_me:$LINENO: WARNING
: : proceeding with the compiler
's result" >&5
23181 echo "$as_me: WARNING: : proceeding with the compiler's result
" >&2;}
23182 ac_header_preproc=yes
23185 { echo "$as_me:$LINENO: WARNING
: : present but cannot be compiled
" >&5
23186 echo "$as_me: WARNING
: : present but cannot be compiled
" >&2;}
23187 { echo "$as_me:$LINENO: WARNING
: : check
for missing prerequisite headers?
" >&5
23188 echo "$as_me: WARNING
: : check
for missing prerequisite headers?
" >&2;}
23189 { echo "$as_me:$LINENO: WARNING
: : see the Autoconf documentation
" >&5
23190 echo "$as_me: WARNING
: : see the Autoconf documentation
" >&2;}
23191 { echo "$as_me:$LINENO: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&5
23192 echo "$as_me: WARNING
: : section
\"Present But Cannot Be Compiled
\"" >&2;}
23193 { echo "$as_me:$LINENO: WARNING
: : proceeding with the preprocessor
's result" >&5
23194 echo "$as_me: WARNING: : proceeding with the preprocessor's result
" >&2;}
23195 { echo "$as_me:$LINENO: WARNING
: : in the future
, the compiler will take precedence
" >&5
23196 echo "$as_me: WARNING
: : in the future
, the compiler will take precedence
" >&2;}
23198 ## ------------------------------- ##
23199 ## Report this to www.asterisk.org ##
23200 ## ------------------------------- ##
23202 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23205 { echo "$as_me:$LINENO: checking
for " >&5
23206 echo $ECHO_N "checking
for ...
$ECHO_C" >&6; }
23207 if test "${ac_cv_header_+set}" = set; then
23208 echo $ECHO_N "(cached
) $ECHO_C" >&6
23210 ac_cv_header_=$ac_header_preproc
23212 { echo "$as_me:$LINENO: result
: $ac_cv_header_" >&5
23213 echo "${ECHO_T}$ac_cv_header_" >&6; }
23216 if test $ac_cv_header_ = yes; then
23225 if test "x
${OGG_HEADER_FOUND}" = "x0
" ; then
23226 if test -n "${OGG_MANDATORY}" ;
23228 { echo "$as_me:$LINENO: ***" >&5
23229 echo "$as_me: ***" >&6;}
23230 { echo "$as_me:$LINENO: *** It appears that you
do not have the ogg development package installed.
" >&5
23231 echo "$as_me: *** It appears that you
do not have the ogg development package installed.
" >&6;}
23232 { echo "$as_me:$LINENO: *** Please
install it to include
${OGG_DESCRIP} support
, or re-run configure
" >&5
23233 echo "$as_me: *** Please
install it to include
${OGG_DESCRIP} support
, or re-run configure
" >&6;}
23234 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OGG_OPTION}" >&5
23235 echo "$as_me: *** without explicitly specifying
--with-${OGG_OPTION}" >&6;}
23244 cat >>confdefs.h <<_ACEOF
23249 elif test -n "${OGG_MANDATORY}";
23251 { echo "$as_me:$LINENO: ***" >&5
23252 echo "$as_me: ***" >&6;}
23253 { echo "$as_me:$LINENO: *** The
${OGG_DESCRIP} installation on this system appears to be broken.
" >&5
23254 echo "$as_me: *** The
${OGG_DESCRIP} installation on this system appears to be broken.
" >&6;}
23255 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
23256 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
23257 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OGG_OPTION}" >&5
23258 echo "$as_me: *** without explicitly specifying
--with-${OGG_OPTION}" >&6;}
23264 if test "${USE_OSS}" != "no
"; then
23266 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
23267 { echo "$as_me:$LINENO: checking
for linux
/soundcard.h
" >&5
23268 echo $ECHO_N "checking
for linux
/soundcard.h...
$ECHO_C" >&6; }
23269 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
23270 echo $ECHO_N "(cached
) $ECHO_C" >&6
23272 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_soundcard_h" >&5
23273 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
23275 # Is the header compilable?
23276 { echo "$as_me:$LINENO: checking linux
/soundcard.h usability
" >&5
23277 echo $ECHO_N "checking linux
/soundcard.h usability...
$ECHO_C" >&6; }
23278 cat >conftest.$ac_ext <<_ACEOF
23281 cat confdefs.h >>conftest.$ac_ext
23282 cat >>conftest.$ac_ext <<_ACEOF
23283 /* end confdefs.h. */
23284 $ac_includes_default
23285 #include <linux/soundcard.h>
23287 rm -f conftest.$ac_objext
23288 if { (ac_try="$ac_compile"
23289 case "(($ac_try" in
23290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291 *) ac_try_echo=$ac_try;;
23293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23294 (eval "$ac_compile") 2>conftest.er1
23296 grep -v '^ *+' conftest.er1 >conftest.err
23298 cat conftest.err >&5
23299 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23300 (exit $ac_status); } && {
23301 test -z "$ac_c_werror_flag" ||
23302 test ! -s conftest.err
23303 } && test -s conftest.$ac_objext; then
23304 ac_header_compiler=yes
23306 echo "$as_me: failed program was
:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23309 ac_header_compiler=no
23312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23313 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23314 echo "${ECHO_T}$ac_header_compiler" >&6; }
23316 # Is the header present?
23317 { echo "$as_me:$LINENO: checking linux
/soundcard.h presence
" >&5
23318 echo $ECHO_N "checking linux
/soundcard.h presence...
$ECHO_C" >&6; }
23319 cat >conftest.$ac_ext <<_ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h. */
23325 #include <linux/soundcard.h>
23327 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23328 case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23333 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23335 grep -v '^ *+' conftest.er1 >conftest.err
23337 cat conftest.err >&5
23338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23339 (exit $ac_status); } >/dev/null && {
23340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23341 test ! -s conftest.err
23343 ac_header_preproc=yes
23345 echo "$as_me: failed program was
:" >&5
23346 sed 's/^/| /' conftest.$ac_ext >&5
23348 ac_header_preproc=no
23351 rm -f conftest.err conftest.$ac_ext
23352 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23353 echo "${ECHO_T}$ac_header_preproc" >&6; }
23355 # So? What about this header?
23356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23358 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23359 echo "$as_me: WARNING
: linux
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23360 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: proceeding with the compiler
's result" >&5
23361 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result
" >&2;}
23362 ac_header_preproc=yes
23365 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: present but cannot be compiled
" >&5
23366 echo "$as_me: WARNING
: linux
/soundcard.h
: present but cannot be compiled
" >&2;}
23367 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: check
for missing prerequisite headers?
" >&5
23368 echo "$as_me: WARNING
: linux
/soundcard.h
: check
for missing prerequisite headers?
" >&2;}
23369 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: see the Autoconf documentation
" >&5
23370 echo "$as_me: WARNING
: linux
/soundcard.h
: see the Autoconf documentation
" >&2;}
23371 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23372 echo "$as_me: WARNING
: linux
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23373 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: proceeding with the preprocessor
's result" >&5
23374 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result
" >&2;}
23375 { echo "$as_me:$LINENO: WARNING
: linux
/soundcard.h
: in the future
, the compiler will take precedence
" >&5
23376 echo "$as_me: WARNING
: linux
/soundcard.h
: in the future
, the compiler will take precedence
" >&2;}
23378 ## ------------------------------- ##
23379 ## Report this to www.asterisk.org ##
23380 ## ------------------------------- ##
23382 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23385 { echo "$as_me:$LINENO: checking
for linux
/soundcard.h
" >&5
23386 echo $ECHO_N "checking
for linux
/soundcard.h...
$ECHO_C" >&6; }
23387 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
23388 echo $ECHO_N "(cached
) $ECHO_C" >&6
23390 ac_cv_header_linux_soundcard_h=$ac_header_preproc
23392 { echo "$as_me:$LINENO: result
: $ac_cv_header_linux_soundcard_h" >&5
23393 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
23396 if test $ac_cv_header_linux_soundcard_h = yes; then
23400 cat >>confdefs.h <<_ACEOF
23408 if test "$PBX_OSS" = "0"; then
23409 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
23410 { echo "$as_me:$LINENO: checking
for sys
/soundcard.h
" >&5
23411 echo $ECHO_N "checking
for sys
/soundcard.h...
$ECHO_C" >&6; }
23412 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
23413 echo $ECHO_N "(cached
) $ECHO_C" >&6
23415 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_soundcard_h" >&5
23416 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
23418 # Is the header compilable?
23419 { echo "$as_me:$LINENO: checking sys
/soundcard.h usability
" >&5
23420 echo $ECHO_N "checking sys
/soundcard.h usability...
$ECHO_C" >&6; }
23421 cat >conftest.$ac_ext <<_ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h. */
23427 $ac_includes_default
23428 #include <sys/soundcard.h>
23430 rm -f conftest.$ac_objext
23431 if { (ac_try="$ac_compile"
23432 case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_compile") 2>conftest.er1
23439 grep -v '^ *+' conftest.er1 >conftest.err
23441 cat conftest.err >&5
23442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23443 (exit $ac_status); } && {
23444 test -z "$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23446 } && test -s conftest.$ac_objext; then
23447 ac_header_compiler=yes
23449 echo "$as_me: failed program was
:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23452 ac_header_compiler=no
23455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23456 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23457 echo "${ECHO_T}$ac_header_compiler" >&6; }
23459 # Is the header present?
23460 { echo "$as_me:$LINENO: checking sys
/soundcard.h presence
" >&5
23461 echo $ECHO_N "checking sys
/soundcard.h presence...
$ECHO_C" >&6; }
23462 cat >conftest.$ac_ext <<_ACEOF
23465 cat confdefs.h >>conftest.$ac_ext
23466 cat >>conftest.$ac_ext <<_ACEOF
23467 /* end confdefs.h. */
23468 #include <sys/soundcard.h>
23470 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23471 case "(($ac_try" in
23472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23473 *) ac_try_echo=$ac_try;;
23475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23476 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23478 grep -v '^ *+' conftest.er1 >conftest.err
23480 cat conftest.err >&5
23481 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23482 (exit $ac_status); } >/dev/null && {
23483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23484 test ! -s conftest.err
23486 ac_header_preproc=yes
23488 echo "$as_me: failed program was
:" >&5
23489 sed 's/^/| /' conftest.$ac_ext >&5
23491 ac_header_preproc=no
23494 rm -f conftest.err conftest.$ac_ext
23495 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23496 echo "${ECHO_T}$ac_header_preproc" >&6; }
23498 # So? What about this header?
23499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23501 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23502 echo "$as_me: WARNING
: sys
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23503 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: proceeding with the compiler
's result" >&5
23504 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result
" >&2;}
23505 ac_header_preproc=yes
23508 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: present but cannot be compiled
" >&5
23509 echo "$as_me: WARNING
: sys
/soundcard.h
: present but cannot be compiled
" >&2;}
23510 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: check
for missing prerequisite headers?
" >&5
23511 echo "$as_me: WARNING
: sys
/soundcard.h
: check
for missing prerequisite headers?
" >&2;}
23512 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: see the Autoconf documentation
" >&5
23513 echo "$as_me: WARNING
: sys
/soundcard.h
: see the Autoconf documentation
" >&2;}
23514 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23515 echo "$as_me: WARNING
: sys
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23516 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: proceeding with the preprocessor
's result" >&5
23517 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result
" >&2;}
23518 { echo "$as_me:$LINENO: WARNING
: sys
/soundcard.h
: in the future
, the compiler will take precedence
" >&5
23519 echo "$as_me: WARNING
: sys
/soundcard.h
: in the future
, the compiler will take precedence
" >&2;}
23521 ## ------------------------------- ##
23522 ## Report this to www.asterisk.org ##
23523 ## ------------------------------- ##
23525 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23528 { echo "$as_me:$LINENO: checking
for sys
/soundcard.h
" >&5
23529 echo $ECHO_N "checking
for sys
/soundcard.h...
$ECHO_C" >&6; }
23530 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
23531 echo $ECHO_N "(cached
) $ECHO_C" >&6
23533 ac_cv_header_sys_soundcard_h=$ac_header_preproc
23535 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_soundcard_h" >&5
23536 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
23539 if test $ac_cv_header_sys_soundcard_h = yes; then
23543 cat >>confdefs.h <<_ACEOF
23552 if test "$PBX_OSS" = "0"; then
23554 if test "${USE_OSS}" != "no
"; then
23556 if test "x
${OSS_DIR}" != "x
"; then
23557 if test -d ${OSS_DIR}/lib; then
23558 pbxlibdir="-L${OSS_DIR}/lib
"
23560 pbxlibdir="-L${OSS_DIR}"
23563 { echo "$as_me:$LINENO: checking
for oss_ioctl_mixer
in -lossaudio" >&5
23564 echo $ECHO_N "checking
for oss_ioctl_mixer
in -lossaudio...
$ECHO_C" >&6; }
23565 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
23566 echo $ECHO_N "(cached
) $ECHO_C" >&6
23568 ac_check_lib_save_LIBS=$LIBS
23569 LIBS="-lossaudio ${pbxlibdir} $LIBS"
23570 cat >conftest.$ac_ext <<_ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h. */
23577 /* Override any GCC internal prototype to avoid an error.
23578 Use char because int might match the return type of a GCC
23579 builtin and then its argument prototype would still apply. */
23583 char oss_ioctl_mixer ();
23587 return oss_ioctl_mixer ();
23592 rm -f conftest.$ac_objext conftest$ac_exeext
23593 if { (ac_try="$ac_link"
23594 case "(($ac_try" in
23595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596 *) ac_try_echo=$ac_try;;
23598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23599 (eval "$ac_link") 2>conftest.er1
23601 grep -v '^ *+' conftest.er1 >conftest.err
23603 cat conftest.err >&5
23604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23605 (exit $ac_status); } && {
23606 test -z "$ac_c_werror_flag" ||
23607 test ! -s conftest.err
23608 } && test -s conftest$ac_exeext &&
23609 $as_test_x conftest$ac_exeext; then
23610 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
23612 echo "$as_me: failed program was
:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23615 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
23618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23619 conftest$ac_exeext conftest.$ac_ext
23620 LIBS=$ac_check_lib_save_LIBS
23622 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
23623 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
23624 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
23631 if test "${AST_OSS_FOUND}" = "yes"; then
23632 OSS_LIB="-lossaudio "
23633 OSS_HEADER_FOUND="1"
23634 if test "x
${OSS_DIR}" != "x
"; then
23635 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
23636 OSS_INCLUDE="-I${OSS_DIR}/include
"
23637 saved_cppflags="${CPPFLAGS}"
23638 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include
"
23639 if test "xsoundcard.h
" != "x
" ; then
23640 as_ac_Header=`echo "ac_cv_header_
${OSS_DIR}/include
/soundcard.h
" | $as_tr_sh`
23641 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23642 { echo "$as_me:$LINENO: checking
for ${OSS_DIR}/include
/soundcard.h
" >&5
23643 echo $ECHO_N "checking
for ${OSS_DIR}/include
/soundcard.h...
$ECHO_C" >&6; }
23644 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23645 echo $ECHO_N "(cached
) $ECHO_C" >&6
23647 ac_res=`eval echo '${'$as_ac_Header'}'`
23648 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23649 echo "${ECHO_T}$ac_res" >&6; }
23651 # Is the header compilable?
23652 { echo "$as_me:$LINENO: checking
${OSS_DIR}/include
/soundcard.h usability
" >&5
23653 echo $ECHO_N "checking
${OSS_DIR}/include
/soundcard.h usability...
$ECHO_C" >&6; }
23654 cat >conftest.$ac_ext <<_ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h. */
23660 $ac_includes_default
23661 #include <${OSS_DIR}/include/soundcard.h>
23663 rm -f conftest.$ac_objext
23664 if { (ac_try="$ac_compile"
23665 case "(($ac_try" in
23666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667 *) ac_try_echo=$ac_try;;
23669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23670 (eval "$ac_compile") 2>conftest.er1
23672 grep -v '^ *+' conftest.er1 >conftest.err
23674 cat conftest.err >&5
23675 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23676 (exit $ac_status); } && {
23677 test -z "$ac_c_werror_flag" ||
23678 test ! -s conftest.err
23679 } && test -s conftest.$ac_objext; then
23680 ac_header_compiler=yes
23682 echo "$as_me: failed program was
:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23685 ac_header_compiler=no
23688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23689 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23690 echo "${ECHO_T}$ac_header_compiler" >&6; }
23692 # Is the header present?
23693 { echo "$as_me:$LINENO: checking
${OSS_DIR}/include
/soundcard.h presence
" >&5
23694 echo $ECHO_N "checking
${OSS_DIR}/include
/soundcard.h presence...
$ECHO_C" >&6; }
23695 cat >conftest.$ac_ext <<_ACEOF
23698 cat confdefs.h >>conftest.$ac_ext
23699 cat >>conftest.$ac_ext <<_ACEOF
23700 /* end confdefs.h. */
23701 #include <${OSS_DIR}/include/soundcard.h>
23703 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23704 case "(($ac_try" in
23705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23706 *) ac_try_echo=$ac_try;;
23708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23709 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23711 grep -v '^ *+' conftest.er1 >conftest.err
23713 cat conftest.err >&5
23714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23715 (exit $ac_status); } >/dev/null && {
23716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23717 test ! -s conftest.err
23719 ac_header_preproc=yes
23721 echo "$as_me: failed program was
:" >&5
23722 sed 's/^/| /' conftest.$ac_ext >&5
23724 ac_header_preproc=no
23727 rm -f conftest.err conftest.$ac_ext
23728 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23729 echo "${ECHO_T}$ac_header_preproc" >&6; }
23731 # So? What about this header?
23732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23734 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23735 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23736 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: proceeding with the compiler
's result" >&5
23737 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result
" >&2;}
23738 ac_header_preproc=yes
23741 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: present but cannot be compiled
" >&5
23742 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: present but cannot be compiled
" >&2;}
23743 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: check
for missing prerequisite headers?
" >&5
23744 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: check
for missing prerequisite headers?
" >&2;}
23745 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: see the Autoconf documentation
" >&5
23746 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: see the Autoconf documentation
" >&2;}
23747 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23748 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23749 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: proceeding with the preprocessor
's result" >&5
23750 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result
" >&2;}
23751 { echo "$as_me:$LINENO: WARNING
: ${OSS_DIR}/include
/soundcard.h
: in the future
, the compiler will take precedence
" >&5
23752 echo "$as_me: WARNING
: ${OSS_DIR}/include
/soundcard.h
: in the future
, the compiler will take precedence
" >&2;}
23754 ## ------------------------------- ##
23755 ## Report this to www.asterisk.org ##
23756 ## ------------------------------- ##
23758 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23761 { echo "$as_me:$LINENO: checking
for ${OSS_DIR}/include
/soundcard.h
" >&5
23762 echo $ECHO_N "checking
for ${OSS_DIR}/include
/soundcard.h...
$ECHO_C" >&6; }
23763 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23764 echo $ECHO_N "(cached
) $ECHO_C" >&6
23766 eval "$as_ac_Header=\
$ac_header_preproc"
23768 ac_res=`eval echo '${'$as_ac_Header'}'`
23769 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23770 echo "${ECHO_T}$ac_res" >&6; }
23773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23781 CPPFLAGS="${saved_cppflags}"
23783 if test "xsoundcard.h
" != "x
" ; then
23784 if test "${ac_cv_header_soundcard_h+set}" = set; then
23785 { echo "$as_me:$LINENO: checking
for soundcard.h
" >&5
23786 echo $ECHO_N "checking
for soundcard.h...
$ECHO_C" >&6; }
23787 if test "${ac_cv_header_soundcard_h+set}" = set; then
23788 echo $ECHO_N "(cached
) $ECHO_C" >&6
23790 { echo "$as_me:$LINENO: result
: $ac_cv_header_soundcard_h" >&5
23791 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
23793 # Is the header compilable?
23794 { echo "$as_me:$LINENO: checking soundcard.h usability
" >&5
23795 echo $ECHO_N "checking soundcard.h usability...
$ECHO_C" >&6; }
23796 cat >conftest.$ac_ext <<_ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h. */
23802 $ac_includes_default
23803 #include <soundcard.h>
23805 rm -f conftest.$ac_objext
23806 if { (ac_try="$ac_compile"
23807 case "(($ac_try" in
23808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23809 *) ac_try_echo=$ac_try;;
23811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23812 (eval "$ac_compile") 2>conftest.er1
23814 grep -v '^ *+' conftest.er1 >conftest.err
23816 cat conftest.err >&5
23817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23818 (exit $ac_status); } && {
23819 test -z "$ac_c_werror_flag" ||
23820 test ! -s conftest.err
23821 } && test -s conftest.$ac_objext; then
23822 ac_header_compiler=yes
23824 echo "$as_me: failed program was
:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23827 ac_header_compiler=no
23830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23831 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23832 echo "${ECHO_T}$ac_header_compiler" >&6; }
23834 # Is the header present?
23835 { echo "$as_me:$LINENO: checking soundcard.h presence
" >&5
23836 echo $ECHO_N "checking soundcard.h presence...
$ECHO_C" >&6; }
23837 cat >conftest.$ac_ext <<_ACEOF
23840 cat confdefs.h >>conftest.$ac_ext
23841 cat >>conftest.$ac_ext <<_ACEOF
23842 /* end confdefs.h. */
23843 #include <soundcard.h>
23845 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23846 case "(($ac_try" in
23847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23848 *) ac_try_echo=$ac_try;;
23850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23851 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23853 grep -v '^ *+' conftest.er1 >conftest.err
23855 cat conftest.err >&5
23856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23857 (exit $ac_status); } >/dev/null && {
23858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23859 test ! -s conftest.err
23861 ac_header_preproc=yes
23863 echo "$as_me: failed program was
:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23866 ac_header_preproc=no
23869 rm -f conftest.err conftest.$ac_ext
23870 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23871 echo "${ECHO_T}$ac_header_preproc" >&6; }
23873 # So? What about this header?
23874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23876 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23877 echo "$as_me: WARNING
: soundcard.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23878 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: proceeding with the compiler
's result" >&5
23879 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result
" >&2;}
23880 ac_header_preproc=yes
23883 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: present but cannot be compiled
" >&5
23884 echo "$as_me: WARNING
: soundcard.h
: present but cannot be compiled
" >&2;}
23885 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: check
for missing prerequisite headers?
" >&5
23886 echo "$as_me: WARNING
: soundcard.h
: check
for missing prerequisite headers?
" >&2;}
23887 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: see the Autoconf documentation
" >&5
23888 echo "$as_me: WARNING
: soundcard.h
: see the Autoconf documentation
" >&2;}
23889 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23890 echo "$as_me: WARNING
: soundcard.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23891 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: proceeding with the preprocessor
's result" >&5
23892 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result
" >&2;}
23893 { echo "$as_me:$LINENO: WARNING
: soundcard.h
: in the future
, the compiler will take precedence
" >&5
23894 echo "$as_me: WARNING
: soundcard.h
: in the future
, the compiler will take precedence
" >&2;}
23896 ## ------------------------------- ##
23897 ## Report this to www.asterisk.org ##
23898 ## ------------------------------- ##
23900 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23903 { echo "$as_me:$LINENO: checking
for soundcard.h
" >&5
23904 echo $ECHO_N "checking
for soundcard.h...
$ECHO_C" >&6; }
23905 if test "${ac_cv_header_soundcard_h+set}" = set; then
23906 echo $ECHO_N "(cached
) $ECHO_C" >&6
23908 ac_cv_header_soundcard_h=$ac_header_preproc
23910 { echo "$as_me:$LINENO: result
: $ac_cv_header_soundcard_h" >&5
23911 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
23914 if test $ac_cv_header_soundcard_h = yes; then
23923 if test "x
${OSS_HEADER_FOUND}" = "x0
" ; then
23924 if test -n "${OSS_MANDATORY}" ;
23926 { echo "$as_me:$LINENO: ***" >&5
23927 echo "$as_me: ***" >&6;}
23928 { echo "$as_me:$LINENO: *** It appears that you
do not have the ossaudio development package installed.
" >&5
23929 echo "$as_me: *** It appears that you
do not have the ossaudio development package installed.
" >&6;}
23930 { echo "$as_me:$LINENO: *** Please
install it to include
${OSS_DESCRIP} support
, or re-run configure
" >&5
23931 echo "$as_me: *** Please
install it to include
${OSS_DESCRIP} support
, or re-run configure
" >&6;}
23932 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OSS_OPTION}" >&5
23933 echo "$as_me: *** without explicitly specifying
--with-${OSS_OPTION}" >&6;}
23942 cat >>confdefs.h <<_ACEOF
23947 elif test -n "${OSS_MANDATORY}";
23949 { echo "$as_me:$LINENO: ***" >&5
23950 echo "$as_me: ***" >&6;}
23951 { echo "$as_me:$LINENO: *** The
${OSS_DESCRIP} installation on this system appears to be broken.
" >&5
23952 echo "$as_me: *** The
${OSS_DESCRIP} installation on this system appears to be broken.
" >&6;}
23953 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
23954 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
23955 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${OSS_OPTION}" >&5
23956 echo "$as_me: *** without explicitly specifying
--with-${OSS_OPTION}" >&6;}
23965 if test "${USE_PGSQL}" != "no
"; then
23966 if test "x
${PGSQL_DIR}" != "x
"; then
23967 if test -n "$ac_tool_prefix"; then
23968 # Extract the first word of "${ac_tool_prefix}pg_config
", so it can be a program name with args.
23969 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23970 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
23971 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
23972 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23973 echo $ECHO_N "(cached
) $ECHO_C" >&6
23977 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23981 for as_dir in ${PGSQL_DIR}/bin
23984 test -z "$as_dir" && as_dir=.
23985 for ac_exec_ext in '' $ac_executable_extensions; do
23986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23987 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23988 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
23998 PG_CONFIG=$ac_cv_path_PG_CONFIG
23999 if test -n "$PG_CONFIG"; then
24000 { echo "$as_me:$LINENO: result
: $PG_CONFIG" >&5
24001 echo "${ECHO_T}$PG_CONFIG" >&6; }
24003 { echo "$as_me:$LINENO: result
: no
" >&5
24004 echo "${ECHO_T}no
" >&6; }
24009 if test -z "$ac_cv_path_PG_CONFIG"; then
24010 ac_pt_PG_CONFIG=$PG_CONFIG
24011 # Extract the first word of "pg_config
", so it can be a program name with args.
24012 set dummy pg_config; ac_word=$2
24013 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
24014 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
24015 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24016 echo $ECHO_N "(cached
) $ECHO_C" >&6
24018 case $ac_pt_PG_CONFIG in
24020 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
24023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24024 for as_dir in ${PGSQL_DIR}/bin
24027 test -z "$as_dir" && as_dir=.
24028 for ac_exec_ext in '' $ac_executable_extensions; do
24029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24030 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24031 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
24041 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
24042 if test -n "$ac_pt_PG_CONFIG"; then
24043 { echo "$as_me:$LINENO: result
: $ac_pt_PG_CONFIG" >&5
24044 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
24046 { echo "$as_me:$LINENO: result
: no
" >&5
24047 echo "${ECHO_T}no
" >&6; }
24050 if test "x
$ac_pt_PG_CONFIG" = x; then
24053 case $cross_compiling:$ac_tool_warned in
24055 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
24056 whose name does not start with the
host triplet. If you think this
24057 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
24058 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
24059 whose name does not start with the
host triplet. If you think this
24060 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
24061 ac_tool_warned=yes ;;
24063 PG_CONFIG=$ac_pt_PG_CONFIG
24066 PG_CONFIG="$ac_cv_path_PG_CONFIG"
24069 if test x"${PG_CONFIG}" = xNo; then
24070 { echo "$as_me:$LINENO: ***" >&5
24071 echo "$as_me: ***" >&6;}
24072 { echo "$as_me:$LINENO: *** pg_config was not found
in the path you specified
:" >&5
24073 echo "$as_me: *** pg_config was not found
in the path you specified
:" >&6;}
24074 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin
" >&5
24075 echo "$as_me: *** ${PGSQL_DIR}/bin
" >&6;}
24076 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
24077 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
24078 { echo "$as_me:$LINENO: *** including
--without-postgres" >&5
24079 echo "$as_me: *** including
--without-postgres" >&6;}
24083 if test -n "$ac_tool_prefix"; then
24084 # Extract the first word of "${ac_tool_prefix}pg_config
", so it can be a program name with args.
24085 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
24086 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
24087 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
24088 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24089 echo $ECHO_N "(cached
) $ECHO_C" >&6
24093 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
24096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24097 for as_dir in $PATH
24100 test -z "$as_dir" && as_dir=.
24101 for ac_exec_ext in '' $ac_executable_extensions; do
24102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24103 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24104 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
24114 PG_CONFIG=$ac_cv_path_PG_CONFIG
24115 if test -n "$PG_CONFIG"; then
24116 { echo "$as_me:$LINENO: result
: $PG_CONFIG" >&5
24117 echo "${ECHO_T}$PG_CONFIG" >&6; }
24119 { echo "$as_me:$LINENO: result
: no
" >&5
24120 echo "${ECHO_T}no
" >&6; }
24125 if test -z "$ac_cv_path_PG_CONFIG"; then
24126 ac_pt_PG_CONFIG=$PG_CONFIG
24127 # Extract the first word of "pg_config
", so it can be a program name with args.
24128 set dummy pg_config; ac_word=$2
24129 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
24130 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
24131 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24132 echo $ECHO_N "(cached
) $ECHO_C" >&6
24134 case $ac_pt_PG_CONFIG in
24136 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
24139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24140 for as_dir in $PATH
24143 test -z "$as_dir" && as_dir=.
24144 for ac_exec_ext in '' $ac_executable_extensions; do
24145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24146 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24147 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
24157 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
24158 if test -n "$ac_pt_PG_CONFIG"; then
24159 { echo "$as_me:$LINENO: result
: $ac_pt_PG_CONFIG" >&5
24160 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
24162 { echo "$as_me:$LINENO: result
: no
" >&5
24163 echo "${ECHO_T}no
" >&6; }
24166 if test "x
$ac_pt_PG_CONFIG" = x; then
24169 case $cross_compiling:$ac_tool_warned in
24171 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
24172 whose name does not start with the
host triplet. If you think this
24173 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
24174 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
24175 whose name does not start with the
host triplet. If you think this
24176 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
24177 ac_tool_warned=yes ;;
24179 PG_CONFIG=$ac_pt_PG_CONFIG
24182 PG_CONFIG="$ac_cv_path_PG_CONFIG"
24187 if test "${PG_CONFIG}" != No; then
24188 PGSQL_libdir=`${PG_CONFIG} --libdir`
24189 PGSQL_includedir=`${PG_CONFIG} --includedir`
24191 if test "x$?
" != "x0
" ; then
24192 if test -n "${PGSQL_MANDATORY}" ; then
24193 { echo "$as_me:$LINENO: ***" >&5
24194 echo "$as_me: ***" >&6;}
24195 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken.
" >&5
24196 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken.
" >&6;}
24197 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
24198 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
24199 { echo "$as_me:$LINENO: *** including
--without-postgres" >&5
24200 echo "$as_me: *** including
--without-postgres" >&6;}
24204 { echo "$as_me:$LINENO: checking
for PQescapeStringConn
in -lpq" >&5
24205 echo $ECHO_N "checking
for PQescapeStringConn
in -lpq...
$ECHO_C" >&6; }
24206 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
24207 echo $ECHO_N "(cached
) $ECHO_C" >&6
24209 ac_check_lib_save_LIBS=$LIBS
24210 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
24211 cat >conftest.$ac_ext <<_ACEOF
24214 cat confdefs.h >>conftest.$ac_ext
24215 cat >>conftest.$ac_ext <<_ACEOF
24216 /* end confdefs.h. */
24218 /* Override any GCC internal prototype to avoid an error.
24219 Use char because int might match the return type of a GCC
24220 builtin and then its argument prototype would still apply. */
24224 char PQescapeStringConn ();
24228 return PQescapeStringConn ();
24233 rm -f conftest.$ac_objext conftest$ac_exeext
24234 if { (ac_try="$ac_link"
24235 case "(($ac_try" in
24236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24237 *) ac_try_echo=$ac_try;;
24239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24240 (eval "$ac_link") 2>conftest.er1
24242 grep -v '^ *+' conftest.er1 >conftest.err
24244 cat conftest.err >&5
24245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24246 (exit $ac_status); } && {
24247 test -z "$ac_c_werror_flag" ||
24248 test ! -s conftest.err
24249 } && test -s conftest$ac_exeext &&
24250 $as_test_x conftest$ac_exeext; then
24251 ac_cv_lib_pq_PQescapeStringConn=yes
24253 echo "$as_me: failed program was
:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24256 ac_cv_lib_pq_PQescapeStringConn=no
24259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24260 conftest$ac_exeext conftest.$ac_ext
24261 LIBS=$ac_check_lib_save_LIBS
24263 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pq_PQescapeStringConn" >&5
24264 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
24265 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
24267 cat >>confdefs.h <<_ACEOF
24268 #define HAVE_PGSQL 1
24274 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
24275 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
24276 PGSQL_INCLUDE="-I${PGSQL_includedir}"
24278 elif test -n "${PGSQL_MANDATORY}";
24280 { echo "$as_me:$LINENO: ***" >&5
24281 echo "$as_me: ***" >&6;}
24282 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken.
" >&5
24283 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken.
" >&6;}
24284 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
24285 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
24286 { echo "$as_me:$LINENO: *** including
--without-postgres" >&5
24287 echo "$as_me: *** including
--without-postgres" >&6;}
24291 elif test -n "${PGSQL_MANDATORY}";
24293 { echo "$as_me:$LINENO: ***" >&5
24294 echo "$as_me: ***" >&6;}
24295 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken.
" >&5
24296 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken.
" >&6;}
24297 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
24298 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
24299 { echo "$as_me:$LINENO: *** including
--without-postgres" >&5
24300 echo "$as_me: *** including
--without-postgres" >&6;}
24305 if test "${USE_POPT}" != "no
"; then
24307 if test "x
${POPT_DIR}" != "x
"; then
24308 if test -d ${POPT_DIR}/lib; then
24309 pbxlibdir="-L${POPT_DIR}/lib
"
24311 pbxlibdir="-L${POPT_DIR}"
24314 { echo "$as_me:$LINENO: checking
for poptStrerror
in -lpopt" >&5
24315 echo $ECHO_N "checking
for poptStrerror
in -lpopt...
$ECHO_C" >&6; }
24316 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
24317 echo $ECHO_N "(cached
) $ECHO_C" >&6
24319 ac_check_lib_save_LIBS=$LIBS
24320 LIBS="-lpopt ${pbxlibdir} $LIBS"
24321 cat >conftest.$ac_ext <<_ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h. */
24328 /* Override any GCC internal prototype to avoid an error.
24329 Use char because int might match the return type of a GCC
24330 builtin and then its argument prototype would still apply. */
24334 char poptStrerror ();
24338 return poptStrerror ();
24343 rm -f conftest.$ac_objext conftest$ac_exeext
24344 if { (ac_try="$ac_link"
24345 case "(($ac_try" in
24346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24347 *) ac_try_echo=$ac_try;;
24349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24350 (eval "$ac_link") 2>conftest.er1
24352 grep -v '^ *+' conftest.er1 >conftest.err
24354 cat conftest.err >&5
24355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24356 (exit $ac_status); } && {
24357 test -z "$ac_c_werror_flag" ||
24358 test ! -s conftest.err
24359 } && test -s conftest$ac_exeext &&
24360 $as_test_x conftest$ac_exeext; then
24361 ac_cv_lib_popt_poptStrerror=yes
24363 echo "$as_me: failed program was
:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24366 ac_cv_lib_popt_poptStrerror=no
24369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24370 conftest$ac_exeext conftest.$ac_ext
24371 LIBS=$ac_check_lib_save_LIBS
24373 { echo "$as_me:$LINENO: result
: $ac_cv_lib_popt_poptStrerror" >&5
24374 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
24375 if test $ac_cv_lib_popt_poptStrerror = yes; then
24382 if test "${AST_POPT_FOUND}" = "yes"; then
24384 POPT_HEADER_FOUND="1"
24385 if test "x
${POPT_DIR}" != "x
"; then
24386 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
24387 POPT_INCLUDE="-I${POPT_DIR}/include
"
24388 saved_cppflags="${CPPFLAGS}"
24389 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include
"
24390 if test "xpopt.h
" != "x
" ; then
24391 as_ac_Header=`echo "ac_cv_header_
${POPT_DIR}/include
/popt.h
" | $as_tr_sh`
24392 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24393 { echo "$as_me:$LINENO: checking
for ${POPT_DIR}/include
/popt.h
" >&5
24394 echo $ECHO_N "checking
for ${POPT_DIR}/include
/popt.h...
$ECHO_C" >&6; }
24395 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24396 echo $ECHO_N "(cached
) $ECHO_C" >&6
24398 ac_res=`eval echo '${'$as_ac_Header'}'`
24399 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24400 echo "${ECHO_T}$ac_res" >&6; }
24402 # Is the header compilable?
24403 { echo "$as_me:$LINENO: checking
${POPT_DIR}/include
/popt.h usability
" >&5
24404 echo $ECHO_N "checking
${POPT_DIR}/include
/popt.h usability...
$ECHO_C" >&6; }
24405 cat >conftest.$ac_ext <<_ACEOF
24408 cat confdefs.h >>conftest.$ac_ext
24409 cat >>conftest.$ac_ext <<_ACEOF
24410 /* end confdefs.h. */
24411 $ac_includes_default
24412 #include <${POPT_DIR}/include/popt.h>
24414 rm -f conftest.$ac_objext
24415 if { (ac_try="$ac_compile"
24416 case "(($ac_try" in
24417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24418 *) ac_try_echo=$ac_try;;
24420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24421 (eval "$ac_compile") 2>conftest.er1
24423 grep -v '^ *+' conftest.er1 >conftest.err
24425 cat conftest.err >&5
24426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24427 (exit $ac_status); } && {
24428 test -z "$ac_c_werror_flag" ||
24429 test ! -s conftest.err
24430 } && test -s conftest.$ac_objext; then
24431 ac_header_compiler=yes
24433 echo "$as_me: failed program was
:" >&5
24434 sed 's/^/| /' conftest.$ac_ext >&5
24436 ac_header_compiler=no
24439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24440 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24441 echo "${ECHO_T}$ac_header_compiler" >&6; }
24443 # Is the header present?
24444 { echo "$as_me:$LINENO: checking
${POPT_DIR}/include
/popt.h presence
" >&5
24445 echo $ECHO_N "checking
${POPT_DIR}/include
/popt.h presence...
$ECHO_C" >&6; }
24446 cat >conftest.$ac_ext <<_ACEOF
24449 cat confdefs.h >>conftest.$ac_ext
24450 cat >>conftest.$ac_ext <<_ACEOF
24451 /* end confdefs.h. */
24452 #include <${POPT_DIR}/include/popt.h>
24454 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24455 case "(($ac_try" in
24456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457 *) ac_try_echo=$ac_try;;
24459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24460 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24462 grep -v '^ *+' conftest.er1 >conftest.err
24464 cat conftest.err >&5
24465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24466 (exit $ac_status); } >/dev/null && {
24467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24468 test ! -s conftest.err
24470 ac_header_preproc=yes
24472 echo "$as_me: failed program was
:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24475 ac_header_preproc=no
24478 rm -f conftest.err conftest.$ac_ext
24479 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24480 echo "${ECHO_T}$ac_header_preproc" >&6; }
24482 # So? What about this header?
24483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24485 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24486 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24487 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: proceeding with the compiler
's result" >&5
24488 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result
" >&2;}
24489 ac_header_preproc=yes
24492 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: present but cannot be compiled
" >&5
24493 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: present but cannot be compiled
" >&2;}
24494 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: check
for missing prerequisite headers?
" >&5
24495 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: check
for missing prerequisite headers?
" >&2;}
24496 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: see the Autoconf documentation
" >&5
24497 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: see the Autoconf documentation
" >&2;}
24498 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24499 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24500 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: proceeding with the preprocessor
's result" >&5
24501 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result
" >&2;}
24502 { echo "$as_me:$LINENO: WARNING
: ${POPT_DIR}/include
/popt.h
: in the future
, the compiler will take precedence
" >&5
24503 echo "$as_me: WARNING
: ${POPT_DIR}/include
/popt.h
: in the future
, the compiler will take precedence
" >&2;}
24505 ## ------------------------------- ##
24506 ## Report this to www.asterisk.org ##
24507 ## ------------------------------- ##
24509 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
24512 { echo "$as_me:$LINENO: checking
for ${POPT_DIR}/include
/popt.h
" >&5
24513 echo $ECHO_N "checking
for ${POPT_DIR}/include
/popt.h...
$ECHO_C" >&6; }
24514 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24515 echo $ECHO_N "(cached
) $ECHO_C" >&6
24517 eval "$as_ac_Header=\
$ac_header_preproc"
24519 ac_res=`eval echo '${'$as_ac_Header'}'`
24520 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24521 echo "${ECHO_T}$ac_res" >&6; }
24524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24525 POPT_HEADER_FOUND=1
24527 POPT_HEADER_FOUND=0
24532 CPPFLAGS="${saved_cppflags}"
24534 if test "xpopt.h
" != "x
" ; then
24535 if test "${ac_cv_header_popt_h+set}" = set; then
24536 { echo "$as_me:$LINENO: checking
for popt.h
" >&5
24537 echo $ECHO_N "checking
for popt.h...
$ECHO_C" >&6; }
24538 if test "${ac_cv_header_popt_h+set}" = set; then
24539 echo $ECHO_N "(cached
) $ECHO_C" >&6
24541 { echo "$as_me:$LINENO: result
: $ac_cv_header_popt_h" >&5
24542 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
24544 # Is the header compilable?
24545 { echo "$as_me:$LINENO: checking popt.h usability
" >&5
24546 echo $ECHO_N "checking popt.h usability...
$ECHO_C" >&6; }
24547 cat >conftest.$ac_ext <<_ACEOF
24550 cat confdefs.h >>conftest.$ac_ext
24551 cat >>conftest.$ac_ext <<_ACEOF
24552 /* end confdefs.h. */
24553 $ac_includes_default
24556 rm -f conftest.$ac_objext
24557 if { (ac_try="$ac_compile"
24558 case "(($ac_try" in
24559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560 *) ac_try_echo=$ac_try;;
24562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24563 (eval "$ac_compile") 2>conftest.er1
24565 grep -v '^ *+' conftest.er1 >conftest.err
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24569 (exit $ac_status); } && {
24570 test -z "$ac_c_werror_flag" ||
24571 test ! -s conftest.err
24572 } && test -s conftest.$ac_objext; then
24573 ac_header_compiler=yes
24575 echo "$as_me: failed program was
:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24578 ac_header_compiler=no
24581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24582 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24583 echo "${ECHO_T}$ac_header_compiler" >&6; }
24585 # Is the header present?
24586 { echo "$as_me:$LINENO: checking popt.h presence
" >&5
24587 echo $ECHO_N "checking popt.h presence...
$ECHO_C" >&6; }
24588 cat >conftest.$ac_ext <<_ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h. */
24596 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24597 case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24602 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24604 grep -v '^ *+' conftest.er1 >conftest.err
24606 cat conftest.err >&5
24607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24608 (exit $ac_status); } >/dev/null && {
24609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24610 test ! -s conftest.err
24612 ac_header_preproc=yes
24614 echo "$as_me: failed program was
:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24617 ac_header_preproc=no
24620 rm -f conftest.err conftest.$ac_ext
24621 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24622 echo "${ECHO_T}$ac_header_preproc" >&6; }
24624 # So? What about this header?
24625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24627 { echo "$as_me:$LINENO: WARNING
: popt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24628 echo "$as_me: WARNING
: popt.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24629 { echo "$as_me:$LINENO: WARNING
: popt.h
: proceeding with the compiler
's result" >&5
24630 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result
" >&2;}
24631 ac_header_preproc=yes
24634 { echo "$as_me:$LINENO: WARNING
: popt.h
: present but cannot be compiled
" >&5
24635 echo "$as_me: WARNING
: popt.h
: present but cannot be compiled
" >&2;}
24636 { echo "$as_me:$LINENO: WARNING
: popt.h
: check
for missing prerequisite headers?
" >&5
24637 echo "$as_me: WARNING
: popt.h
: check
for missing prerequisite headers?
" >&2;}
24638 { echo "$as_me:$LINENO: WARNING
: popt.h
: see the Autoconf documentation
" >&5
24639 echo "$as_me: WARNING
: popt.h
: see the Autoconf documentation
" >&2;}
24640 { echo "$as_me:$LINENO: WARNING
: popt.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24641 echo "$as_me: WARNING
: popt.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24642 { echo "$as_me:$LINENO: WARNING
: popt.h
: proceeding with the preprocessor
's result" >&5
24643 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result
" >&2;}
24644 { echo "$as_me:$LINENO: WARNING
: popt.h
: in the future
, the compiler will take precedence
" >&5
24645 echo "$as_me: WARNING
: popt.h
: in the future
, the compiler will take precedence
" >&2;}
24647 ## ------------------------------- ##
24648 ## Report this to www.asterisk.org ##
24649 ## ------------------------------- ##
24651 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
24654 { echo "$as_me:$LINENO: checking
for popt.h
" >&5
24655 echo $ECHO_N "checking
for popt.h...
$ECHO_C" >&6; }
24656 if test "${ac_cv_header_popt_h+set}" = set; then
24657 echo $ECHO_N "(cached
) $ECHO_C" >&6
24659 ac_cv_header_popt_h=$ac_header_preproc
24661 { echo "$as_me:$LINENO: result
: $ac_cv_header_popt_h" >&5
24662 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
24665 if test $ac_cv_header_popt_h = yes; then
24666 POPT_HEADER_FOUND=1
24668 POPT_HEADER_FOUND=0
24674 if test "x
${POPT_HEADER_FOUND}" = "x0
" ; then
24675 if test -n "${POPT_MANDATORY}" ;
24677 { echo "$as_me:$LINENO: ***" >&5
24678 echo "$as_me: ***" >&6;}
24679 { echo "$as_me:$LINENO: *** It appears that you
do not have the popt development package installed.
" >&5
24680 echo "$as_me: *** It appears that you
do not have the popt development package installed.
" >&6;}
24681 { echo "$as_me:$LINENO: *** Please
install it to include
${POPT_DESCRIP} support
, or re-run configure
" >&5
24682 echo "$as_me: *** Please
install it to include
${POPT_DESCRIP} support
, or re-run configure
" >&6;}
24683 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${POPT_OPTION}" >&5
24684 echo "$as_me: *** without explicitly specifying
--with-${POPT_OPTION}" >&6;}
24693 cat >>confdefs.h <<_ACEOF
24694 #define HAVE_POPT 1
24698 elif test -n "${POPT_MANDATORY}";
24700 { echo "$as_me:$LINENO: ***" >&5
24701 echo "$as_me: ***" >&6;}
24702 { echo "$as_me:$LINENO: *** The
${POPT_DESCRIP} installation on this system appears to be broken.
" >&5
24703 echo "$as_me: *** The
${POPT_DESCRIP} installation on this system appears to be broken.
" >&6;}
24704 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
24705 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
24706 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${POPT_OPTION}" >&5
24707 echo "$as_me: *** without explicitly specifying
--with-${POPT_OPTION}" >&6;}
24714 if test "${USE_PRI}" != "no
"; then
24716 if test "x
${PRI_DIR}" != "x
"; then
24717 if test -d ${PRI_DIR}/lib; then
24718 pbxlibdir="-L${PRI_DIR}/lib
"
24720 pbxlibdir="-L${PRI_DIR}"
24723 { echo "$as_me:$LINENO: checking
for pri_keypad_facility
in -lpri" >&5
24724 echo $ECHO_N "checking
for pri_keypad_facility
in -lpri...
$ECHO_C" >&6; }
24725 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
24726 echo $ECHO_N "(cached
) $ECHO_C" >&6
24728 ac_check_lib_save_LIBS=$LIBS
24729 LIBS="-lpri ${pbxlibdir} $LIBS"
24730 cat >conftest.$ac_ext <<_ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h. */
24737 /* Override any GCC internal prototype to avoid an error.
24738 Use char because int might match the return type of a GCC
24739 builtin and then its argument prototype would still apply. */
24743 char pri_keypad_facility ();
24747 return pri_keypad_facility ();
24752 rm -f conftest.$ac_objext conftest$ac_exeext
24753 if { (ac_try="$ac_link"
24754 case "(($ac_try" in
24755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24756 *) ac_try_echo=$ac_try;;
24758 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24759 (eval "$ac_link") 2>conftest.er1
24761 grep -v '^ *+' conftest.er1 >conftest.err
24763 cat conftest.err >&5
24764 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24765 (exit $ac_status); } && {
24766 test -z "$ac_c_werror_flag" ||
24767 test ! -s conftest.err
24768 } && test -s conftest$ac_exeext &&
24769 $as_test_x conftest$ac_exeext; then
24770 ac_cv_lib_pri_pri_keypad_facility=yes
24772 echo "$as_me: failed program was
:" >&5
24773 sed 's/^/| /' conftest.$ac_ext >&5
24775 ac_cv_lib_pri_pri_keypad_facility=no
24778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24779 conftest$ac_exeext conftest.$ac_ext
24780 LIBS=$ac_check_lib_save_LIBS
24782 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pri_pri_keypad_facility" >&5
24783 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
24784 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
24791 if test "${AST_PRI_FOUND}" = "yes"; then
24793 PRI_HEADER_FOUND="1"
24794 if test "x
${PRI_DIR}" != "x
"; then
24795 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
24796 PRI_INCLUDE="-I${PRI_DIR}/include
"
24797 saved_cppflags="${CPPFLAGS}"
24798 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include
"
24799 if test "xlibpri.h
" != "x
" ; then
24800 as_ac_Header=`echo "ac_cv_header_
${PRI_DIR}/include
/libpri.h
" | $as_tr_sh`
24801 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24802 { echo "$as_me:$LINENO: checking
for ${PRI_DIR}/include
/libpri.h
" >&5
24803 echo $ECHO_N "checking
for ${PRI_DIR}/include
/libpri.h...
$ECHO_C" >&6; }
24804 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24805 echo $ECHO_N "(cached
) $ECHO_C" >&6
24807 ac_res=`eval echo '${'$as_ac_Header'}'`
24808 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24809 echo "${ECHO_T}$ac_res" >&6; }
24811 # Is the header compilable?
24812 { echo "$as_me:$LINENO: checking
${PRI_DIR}/include
/libpri.h usability
" >&5
24813 echo $ECHO_N "checking
${PRI_DIR}/include
/libpri.h usability...
$ECHO_C" >&6; }
24814 cat >conftest.$ac_ext <<_ACEOF
24817 cat confdefs.h >>conftest.$ac_ext
24818 cat >>conftest.$ac_ext <<_ACEOF
24819 /* end confdefs.h. */
24820 $ac_includes_default
24821 #include <${PRI_DIR}/include/libpri.h>
24823 rm -f conftest.$ac_objext
24824 if { (ac_try="$ac_compile"
24825 case "(($ac_try" in
24826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24827 *) ac_try_echo=$ac_try;;
24829 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24830 (eval "$ac_compile") 2>conftest.er1
24832 grep -v '^ *+' conftest.er1 >conftest.err
24834 cat conftest.err >&5
24835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24836 (exit $ac_status); } && {
24837 test -z "$ac_c_werror_flag" ||
24838 test ! -s conftest.err
24839 } && test -s conftest.$ac_objext; then
24840 ac_header_compiler=yes
24842 echo "$as_me: failed program was
:" >&5
24843 sed 's/^/| /' conftest.$ac_ext >&5
24845 ac_header_compiler=no
24848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24849 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24850 echo "${ECHO_T}$ac_header_compiler" >&6; }
24852 # Is the header present?
24853 { echo "$as_me:$LINENO: checking
${PRI_DIR}/include
/libpri.h presence
" >&5
24854 echo $ECHO_N "checking
${PRI_DIR}/include
/libpri.h presence...
$ECHO_C" >&6; }
24855 cat >conftest.$ac_ext <<_ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h. */
24861 #include <${PRI_DIR}/include/libpri.h>
24863 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24864 case "(($ac_try" in
24865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24866 *) ac_try_echo=$ac_try;;
24868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24869 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24871 grep -v '^ *+' conftest.er1 >conftest.err
24873 cat conftest.err >&5
24874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24875 (exit $ac_status); } >/dev/null && {
24876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24877 test ! -s conftest.err
24879 ac_header_preproc=yes
24881 echo "$as_me: failed program was
:" >&5
24882 sed 's/^/| /' conftest.$ac_ext >&5
24884 ac_header_preproc=no
24887 rm -f conftest.err conftest.$ac_ext
24888 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24889 echo "${ECHO_T}$ac_header_preproc" >&6; }
24891 # So? What about this header?
24892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24894 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24895 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24896 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: proceeding with the compiler
's result" >&5
24897 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result
" >&2;}
24898 ac_header_preproc=yes
24901 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: present but cannot be compiled
" >&5
24902 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: present but cannot be compiled
" >&2;}
24903 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: check
for missing prerequisite headers?
" >&5
24904 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: check
for missing prerequisite headers?
" >&2;}
24905 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: see the Autoconf documentation
" >&5
24906 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: see the Autoconf documentation
" >&2;}
24907 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24908 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24909 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: proceeding with the preprocessor
's result" >&5
24910 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result
" >&2;}
24911 { echo "$as_me:$LINENO: WARNING
: ${PRI_DIR}/include
/libpri.h
: in the future
, the compiler will take precedence
" >&5
24912 echo "$as_me: WARNING
: ${PRI_DIR}/include
/libpri.h
: in the future
, the compiler will take precedence
" >&2;}
24914 ## ------------------------------- ##
24915 ## Report this to www.asterisk.org ##
24916 ## ------------------------------- ##
24918 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
24921 { echo "$as_me:$LINENO: checking
for ${PRI_DIR}/include
/libpri.h
" >&5
24922 echo $ECHO_N "checking
for ${PRI_DIR}/include
/libpri.h...
$ECHO_C" >&6; }
24923 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24924 echo $ECHO_N "(cached
) $ECHO_C" >&6
24926 eval "$as_ac_Header=\
$ac_header_preproc"
24928 ac_res=`eval echo '${'$as_ac_Header'}'`
24929 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24930 echo "${ECHO_T}$ac_res" >&6; }
24933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24941 CPPFLAGS="${saved_cppflags}"
24943 if test "xlibpri.h
" != "x
" ; then
24944 if test "${ac_cv_header_libpri_h+set}" = set; then
24945 { echo "$as_me:$LINENO: checking
for libpri.h
" >&5
24946 echo $ECHO_N "checking
for libpri.h...
$ECHO_C" >&6; }
24947 if test "${ac_cv_header_libpri_h+set}" = set; then
24948 echo $ECHO_N "(cached
) $ECHO_C" >&6
24950 { echo "$as_me:$LINENO: result
: $ac_cv_header_libpri_h" >&5
24951 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24953 # Is the header compilable?
24954 { echo "$as_me:$LINENO: checking libpri.h usability
" >&5
24955 echo $ECHO_N "checking libpri.h usability...
$ECHO_C" >&6; }
24956 cat >conftest.$ac_ext <<_ACEOF
24959 cat confdefs.h >>conftest.$ac_ext
24960 cat >>conftest.$ac_ext <<_ACEOF
24961 /* end confdefs.h. */
24962 $ac_includes_default
24963 #include <libpri.h>
24965 rm -f conftest.$ac_objext
24966 if { (ac_try="$ac_compile"
24967 case "(($ac_try" in
24968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24969 *) ac_try_echo=$ac_try;;
24971 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24972 (eval "$ac_compile") 2>conftest.er1
24974 grep -v '^ *+' conftest.er1 >conftest.err
24976 cat conftest.err >&5
24977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24978 (exit $ac_status); } && {
24979 test -z "$ac_c_werror_flag" ||
24980 test ! -s conftest.err
24981 } && test -s conftest.$ac_objext; then
24982 ac_header_compiler=yes
24984 echo "$as_me: failed program was
:" >&5
24985 sed 's/^/| /' conftest.$ac_ext >&5
24987 ac_header_compiler=no
24990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24991 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24992 echo "${ECHO_T}$ac_header_compiler" >&6; }
24994 # Is the header present?
24995 { echo "$as_me:$LINENO: checking libpri.h presence
" >&5
24996 echo $ECHO_N "checking libpri.h presence...
$ECHO_C" >&6; }
24997 cat >conftest.$ac_ext <<_ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h. */
25003 #include <libpri.h>
25005 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25006 case "(($ac_try" in
25007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008 *) ac_try_echo=$ac_try;;
25010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25011 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25013 grep -v '^ *+' conftest.er1 >conftest.err
25015 cat conftest.err >&5
25016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25017 (exit $ac_status); } >/dev/null && {
25018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25019 test ! -s conftest.err
25021 ac_header_preproc=yes
25023 echo "$as_me: failed program was
:" >&5
25024 sed 's/^/| /' conftest.$ac_ext >&5
25026 ac_header_preproc=no
25029 rm -f conftest.err conftest.$ac_ext
25030 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25031 echo "${ECHO_T}$ac_header_preproc" >&6; }
25033 # So? What about this header?
25034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25036 { echo "$as_me:$LINENO: WARNING
: libpri.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25037 echo "$as_me: WARNING
: libpri.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25038 { echo "$as_me:$LINENO: WARNING
: libpri.h
: proceeding with the compiler
's result" >&5
25039 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result
" >&2;}
25040 ac_header_preproc=yes
25043 { echo "$as_me:$LINENO: WARNING
: libpri.h
: present but cannot be compiled
" >&5
25044 echo "$as_me: WARNING
: libpri.h
: present but cannot be compiled
" >&2;}
25045 { echo "$as_me:$LINENO: WARNING
: libpri.h
: check
for missing prerequisite headers?
" >&5
25046 echo "$as_me: WARNING
: libpri.h
: check
for missing prerequisite headers?
" >&2;}
25047 { echo "$as_me:$LINENO: WARNING
: libpri.h
: see the Autoconf documentation
" >&5
25048 echo "$as_me: WARNING
: libpri.h
: see the Autoconf documentation
" >&2;}
25049 { echo "$as_me:$LINENO: WARNING
: libpri.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25050 echo "$as_me: WARNING
: libpri.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25051 { echo "$as_me:$LINENO: WARNING
: libpri.h
: proceeding with the preprocessor
's result" >&5
25052 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result
" >&2;}
25053 { echo "$as_me:$LINENO: WARNING
: libpri.h
: in the future
, the compiler will take precedence
" >&5
25054 echo "$as_me: WARNING
: libpri.h
: in the future
, the compiler will take precedence
" >&2;}
25056 ## ------------------------------- ##
25057 ## Report this to www.asterisk.org ##
25058 ## ------------------------------- ##
25060 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
25063 { echo "$as_me:$LINENO: checking
for libpri.h
" >&5
25064 echo $ECHO_N "checking
for libpri.h...
$ECHO_C" >&6; }
25065 if test "${ac_cv_header_libpri_h+set}" = set; then
25066 echo $ECHO_N "(cached
) $ECHO_C" >&6
25068 ac_cv_header_libpri_h=$ac_header_preproc
25070 { echo "$as_me:$LINENO: result
: $ac_cv_header_libpri_h" >&5
25071 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25074 if test $ac_cv_header_libpri_h = yes; then
25083 if test "x
${PRI_HEADER_FOUND}" = "x0
" ; then
25084 if test -n "${PRI_MANDATORY}" ;
25086 { echo "$as_me:$LINENO: ***" >&5
25087 echo "$as_me: ***" >&6;}
25088 { echo "$as_me:$LINENO: *** It appears that you
do not have the pri development package installed.
" >&5
25089 echo "$as_me: *** It appears that you
do not have the pri development package installed.
" >&6;}
25090 { echo "$as_me:$LINENO: *** Please
install it to include
${PRI_DESCRIP} support
, or re-run configure
" >&5
25091 echo "$as_me: *** Please
install it to include
${PRI_DESCRIP} support
, or re-run configure
" >&6;}
25092 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${PRI_OPTION}" >&5
25093 echo "$as_me: *** without explicitly specifying
--with-${PRI_OPTION}" >&6;}
25102 cat >>confdefs.h <<_ACEOF
25107 elif test -n "${PRI_MANDATORY}";
25109 { echo "$as_me:$LINENO: ***" >&5
25110 echo "$as_me: ***" >&6;}
25111 { echo "$as_me:$LINENO: *** The
${PRI_DESCRIP} installation on this system appears to be broken.
" >&5
25112 echo "$as_me: *** The
${PRI_DESCRIP} installation on this system appears to be broken.
" >&6;}
25113 { echo "$as_me:$LINENO: *** Either correct the installation
, or run configure
" >&5
25114 echo "$as_me: *** Either correct the installation
, or run configure
" >&6;}
25115 { echo "$as_me:$LINENO: *** without explicitly specifying
--with-${PRI_OPTION}" >&5
25116 echo "$as_me: *** without explicitly specifying
--with-${PRI_OPTION}" >&6;}
25122 if test "${USE_PWLIB}" != "no
"; then
25123 if test -n "${PWLIB_DIR}"; then
25124 PWLIBDIR="${PWLIB_DIR}"
25131 ac_cpp='$CXXCPP $CPPFLAGS'
25132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25136 if test "${PWLIBDIR:-unset}" != "unset" ; then
25137 as_ac_Header=`echo "ac_cv_header_
${PWLIBDIR}/version.h
" | $as_tr_sh`
25138 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25139 { echo "$as_me:$LINENO: checking
for ${PWLIBDIR}/version.h
" >&5
25140 echo $ECHO_N "checking
for ${PWLIBDIR}/version.h...
$ECHO_C" >&6; }
25141 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25142 echo $ECHO_N "(cached
) $ECHO_C" >&6
25144 ac_res=`eval echo '${'$as_ac_Header'}'`
25145 { echo "$as_me:$LINENO: result
: $ac_res" >&5
25146 echo "${ECHO_T}$ac_res" >&6; }
25148 # Is the header compilable?
25149 { echo "$as_me:$LINENO: checking
${PWLIBDIR}/version.h usability
" >&5
25150 echo $ECHO_N "checking
${PWLIBDIR}/version.h usability...
$ECHO_C" >&6; }
25151 cat >conftest.$ac_ext <<_ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h. */
25157 $ac_includes_default
25158 #include <${PWLIBDIR}/version.h>
25160 rm -f conftest.$ac_objext
25161 if { (ac_try="$ac_compile"
25162 case "(($ac_try" in
25163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164 *) ac_try_echo=$ac_try;;
25166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25167 (eval "$ac_compile") 2>conftest.er1
25169 grep -v '^ *+' conftest.er1 >conftest.err
25171 cat conftest.err >&5
25172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25173 (exit $ac_status); } && {
25174 test -z "$ac_cxx_werror_flag" ||
25175 test ! -s conftest.err
25176 } && test -s conftest.$ac_objext; then
25177 ac_header_compiler=yes
25179 echo "$as_me: failed program was
:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25182 ac_header_compiler=no
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25187 echo "${ECHO_T}$ac_header_compiler" >&6; }
25189 # Is the header present?
25190 { echo "$as_me:$LINENO: checking
${PWLIBDIR}/version.h presence
" >&5
25191 echo $ECHO_N "checking
${PWLIBDIR}/version.h presence...
$ECHO_C" >&6; }
25192 cat >conftest.$ac_ext <<_ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h. */
25198 #include <${PWLIBDIR}/version.h>
25200 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25201 case "(($ac_try" in
25202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25203 *) ac_try_echo=$ac_try;;
25205 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25206 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25208 grep -v '^ *+' conftest.er1 >conftest.err
25210 cat conftest.err >&5
25211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25212 (exit $ac_status); } >/dev/null && {
25213 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25214 test ! -s conftest.err
25216 ac_header_preproc=yes
25218 echo "$as_me: failed program was
:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25221 ac_header_preproc=no
25224 rm -f conftest.err conftest.$ac_ext
25225 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25226 echo "${ECHO_T}$ac_header_preproc" >&6; }
25228 # So? What about this header?
25229 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25231 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25232 echo "$as_me: WARNING
: ${PWLIBDIR}/version.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25233 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: proceeding with the compiler
's result" >&5
25234 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result
" >&2;}
25235 ac_header_preproc=yes
25238 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: present but cannot be compiled
" >&5
25239 echo "$as_me: WARNING
: ${PWLIBDIR}/version.h
: present but cannot be compiled
" >&2;}
25240 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: check
for missing prerequisite headers?
" >&5
25241 echo "$as_me: WARNING
: ${PWLIBDIR}/version.h
: check
for missing prerequisite headers?
" >&2;}
25242 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: see the Autoconf documentation
" >&5
25243 echo "$as_me: WARNING
: ${PWLIBDIR}/version.h
: see the Autoconf documentation
" >&2;}
25244 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25245 echo "$as_me: WARNING
: ${PWLIBDIR}/version.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25246 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: proceeding with the preprocessor
's result" >&5
25247 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result
" >&2;}
25248 { echo "$as_me:$LINENO: WARNING
: ${PWLIBDIR}/version.h
: in the future
, the compiler will take precedence
" >&5
25249 echo "$as_me: WARNING
: ${PWLIBDIR}/version.h
: in the future
, the compiler will take precedence
" >&2;}
25251 ## ------------------------------- ##
25252 ## Report this to www.asterisk.org ##
25253 ## ------------------------------- ##
25255 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
25258 { echo "$as_me:$LINENO: checking
for ${PWLIBDIR}/version.h
" >&5
25259 echo $ECHO_N "checking
for ${PWLIBDIR}/version.h...
$ECHO_C" >&6; }
25260 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25261 echo $ECHO_N "(cached
) $ECHO_C" >&6
25263 eval "$as_ac_Header=\
$ac_header_preproc"
25265 ac_res=`eval echo '${'$as_ac_Header'}'`
25266 { echo "$as_me:$LINENO: result
: $ac_res" >&5
25267 echo "${ECHO_T}$ac_res" >&6; }
25270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25276 if test "${HAS_PWLIB:-unset}" = "unset" ; then
25277 if test "${OPENH323DIR:-unset}" != "unset"; then
25278 as_ac_Header=`echo "ac_cv_header_
${OPENH323DIR}/..
/pwlib
/version.h
" | $as_tr_sh`
25279 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25280 { echo "$as_me:$LINENO: checking
for ${OPENH323DIR}/..
/pwlib
/version.h
" >&5
25281 echo $ECHO_N "checking
for ${OPENH323DIR}/..
/pwlib
/version.h...
$ECHO_C" >&6; }
25282 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25283 echo $ECHO_N "(cached
) $ECHO_C" >&6
25285 ac_res=`eval echo '${'$as_ac_Header'}'`
25286 { echo "$as_me:$LINENO: result
: $ac_res" >&5
25287 echo "${ECHO_T}$ac_res" >&6; }
25289 # Is the header compilable?
25290 { echo "$as_me:$LINENO: checking
${OPENH323DIR}/..
/pwlib
/version.h usability
" >&5
25291 echo $ECHO_N "checking
${OPENH323DIR}/..
/pwlib
/version.h usability...
$ECHO_C" >&6; }
25292 cat >conftest.$ac_ext <<_ACEOF
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h. */
25298 $ac_includes_default
25299 #include <${OPENH323DIR}/../pwlib/version.h>
25301 rm -f conftest.$ac_objext
25302 if { (ac_try="$ac_compile"
25303 case "(($ac_try" in
25304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305 *) ac_try_echo=$ac_try;;
25307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25308 (eval "$ac_compile") 2>conftest.er1
25310 grep -v '^ *+' conftest.er1 >conftest.err
25312 cat conftest.err >&5
25313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25314 (exit $ac_status); } && {
25315 test -z "$ac_cxx_werror_flag" ||
25316 test ! -s conftest.err
25317 } && test -s conftest.$ac_objext; then
25318 ac_header_compiler=yes
25320 echo "$as_me: failed program was
:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25323 ac_header_compiler=no
25326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25327 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25328 echo "${ECHO_T}$ac_header_compiler" >&6; }
25330 # Is the header present?
25331 { echo "$as_me:$LINENO: checking
${OPENH323DIR}/..
/pwlib
/version.h presence
" >&5
25332 echo $ECHO_N "checking
${OPENH323DIR}/..
/pwlib
/version.h presence...
$ECHO_C" >&6; }
25333 cat >conftest.$ac_ext <<_ACEOF
25336 cat confdefs.h >>conftest.$ac_ext
25337 cat >>conftest.$ac_ext <<_ACEOF
25338 /* end confdefs.h. */
25339 #include <${OPENH323DIR}/../pwlib/version.h>
25341 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25342 case "(($ac_try" in
25343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344 *) ac_try_echo=$ac_try;;
25346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25347 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25349 grep -v '^ *+' conftest.er1 >conftest.err
25351 cat conftest.err >&5
25352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25353 (exit $ac_status); } >/dev/null && {
25354 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25355 test ! -s conftest.err
25357 ac_header_preproc=yes
25359 echo "$as_me: failed program was
:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25362 ac_header_preproc=no
25365 rm -f conftest.err conftest.$ac_ext
25366 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25367 echo "${ECHO_T}$ac_header_preproc" >&6; }
25369 # So? What about this header?
25370 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25372 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25373 echo "$as_me: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25374 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: proceeding with the compiler
's result" >&5
25375 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result
" >&2;}
25376 ac_header_preproc=yes
25379 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: present but cannot be compiled
" >&5
25380 echo "$as_me: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: present but cannot be compiled
" >&2;}
25381 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: check
for missing prerequisite headers?
" >&5
25382 echo "$as_me: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: check
for missing prerequisite headers?
" >&2;}
25383 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: see the Autoconf documentation
" >&5
25384 echo "$as_me: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: see the Autoconf documentation
" >&2;}
25385 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25386 echo "$as_me: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25387 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: proceeding with the preprocessor
's result" >&5
25388 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result
" >&2;}
25389 { echo "$as_me:$LINENO: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: in the future
, the compiler will take precedence
" >&5
25390 echo "$as_me: WARNING
: ${OPENH323DIR}/..
/pwlib
/version.h
: in the future
, the compiler will take precedence
" >&2;}
25392 ## ------------------------------- ##
25393 ## Report this to www.asterisk.org ##
25394 ## ------------------------------- ##
25396 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
25399 { echo "$as_me:$LINENO: checking
for ${OPENH323DIR}/..
/pwlib
/version.h
" >&5
25400 echo $ECHO_N "checking
for ${OPENH323DIR}/..
/pwlib
/version.h...
$ECHO_C" >&6; }
25401 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25402 echo $ECHO_N "(cached
) $ECHO_C" >&6
25404 eval "$as_ac_Header=\
$ac_header_preproc"
25406 ac_res=`eval echo '${'$as_ac_Header'}'`
25407 { echo "$as_me:$LINENO: result
: $ac_res" >&5
25408 echo "${ECHO_T}$ac_res" >&6; }
25411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25417 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25418 PWLIBDIR="${OPENH323DIR}/..
/pwlib
"
25420 as_ac_Header=`echo "ac_cv_header_
${HOME}/pwlib
/include
/ptlib.h
" | $as_tr_sh`
25421 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25422 { echo "$as_me:$LINENO: checking
for ${HOME}/pwlib
/include
/ptlib.h
" >&5
25423 echo $ECHO_N "checking
for ${HOME}/pwlib
/include
/ptlib.h...
$ECHO_C" >&6; }
25424 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25425 echo $ECHO_N "(cached
) $ECHO_C" >&6
25427 ac_res=`eval echo '${'$as_ac_Header'}'`
25428 { echo "$as_me:$LINENO: result
: $ac_res" >&5
25429 echo "${ECHO_T}$ac_res" >&6; }
25431 # Is the header compilable?
25432 { echo "$as_me:$LINENO: checking
${HOME}/pwlib
/include
/ptlib.h usability
" >&5
25433 echo $ECHO_N "checking
${HOME}/pwlib
/include
/ptlib.h usability...
$ECHO_C" >&6; }
25434 cat >conftest.$ac_ext <<_ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h. */
25440 $ac_includes_default
25441 #include <${HOME}/pwlib/include/ptlib.h>
25443 rm -f conftest.$ac_objext
25444 if { (ac_try="$ac_compile"
25445 case "(($ac_try" in
25446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447 *) ac_try_echo=$ac_try;;
25449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25450 (eval "$ac_compile") 2>conftest.er1
25452 grep -v '^ *+' conftest.er1 >conftest.err
25454 cat conftest.err >&5
25455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25456 (exit $ac_status); } && {
25457 test -z "$ac_cxx_werror_flag" ||
25458 test ! -s conftest.err
25459 } && test -s conftest.$ac_objext; then
25460 ac_header_compiler=yes
25462 echo "$as_me: failed program was
:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25465 ac_header_compiler=no
25468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25469 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25470 echo "${ECHO_T}$ac_header_compiler" >&6; }
25472 # Is the header present?
25473 { echo "$as_me:$LINENO: checking
${HOME}/pwlib
/include
/ptlib.h presence
" >&5
25474 echo $ECHO_N "checking
${HOME}/pwlib
/include
/ptlib.h presence...
$ECHO_C" >&6; }
25475 cat >conftest.$ac_ext <<_ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h. */
25481 #include <${HOME}/pwlib/include/ptlib.h>
25483 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25484 case "(($ac_try" in
25485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25486 *) ac_try_echo=$ac_try;;
25488 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25489 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25491 grep -v '^ *+' conftest.er1 >conftest.err
25493 cat conftest.err >&5
25494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25495 (exit $ac_status); } >/dev/null && {
25496 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25497 test ! -s conftest.err
25499 ac_header_preproc=yes
25501 echo "$as_me: failed program was
:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25504 ac_header_preproc=no
25507 rm -f conftest.err conftest.$ac_ext
25508 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25509 echo "${ECHO_T}$ac_header_preproc" >&6; }
25511 # So? What about this header?
25512 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25514 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25515 echo "$as_me: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25516 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: proceeding with the compiler
's result" >&5
25517 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result
" >&2;}
25518 ac_header_preproc=yes
25521 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: present but cannot be compiled
" >&5
25522 echo "$as_me: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: present but cannot be compiled
" >&2;}
25523 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: check
for missing prerequisite headers?
" >&5
25524 echo "$as_me: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: check
for missing prerequisite headers?
" >&2;}
25525 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: see the Autoconf documentation
" >&5
25526 echo "$as_me: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: see the Autoconf documentation
" >&2;}
25527 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25528 echo "$as_me: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25529 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: proceeding with the preprocessor
's result" >&5
25530 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result
" >&2;}
25531 { echo "$as_me:$LINENO: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: in the future
, the compiler will take precedence
" >&5
25532 echo "$as_me: WARNING
: ${HOME}/pwlib
/include
/ptlib.h
: in the future
, the compiler will take precedence
" >&2;}
25534 ## ------------------------------- ##
25535 ## Report this to www.asterisk.org ##
25536 ## ------------------------------- ##
25538 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
25541 { echo "$as_me:$LINENO: checking
for ${HOME}/pwlib
/include
/ptlib.h
" >&5
25542 echo $ECHO_N "checking
for ${HOME}/pwlib
/include
/ptlib.h...
$ECHO_C" >&6; }
25543 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25544 echo $ECHO_N "(cached
) $ECHO_C" >&6
25546 eval "$as_ac_Header=\
$ac_header_preproc"
25548 ac_res=`eval echo '${'$as_ac_Header'}'`
25549 { echo "$as_me:$LINENO: result
: $ac_res" >&5
25550 echo "${ECHO_T}$ac_res" >&6; }
25553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25558 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25559 PWLIBDIR="${HOME}/pwlib
"
25561 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
25562 { echo "$as_me:$LINENO: checking
for /usr
/local
/include
/ptlib.h
" >&5
25563 echo $ECHO_N "checking
for /usr
/local
/include
/ptlib.h...
$ECHO_C" >&6; }
25564 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
25565 echo $ECHO_N "(cached
) $ECHO_C" >&6
25567 { echo "$as_me:$LINENO: result
: $ac_cv_header__usr_local_include_ptlib_h" >&5
25568 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
25570 # Is the header compilable?
25571 { echo "$as_me:$LINENO: checking
/usr
/local
/include
/ptlib.h usability
" >&5
25572 echo $ECHO_N "checking
/usr
/local
/include
/ptlib.h usability...
$ECHO_C" >&6; }
25573 cat >conftest.$ac_ext <<_ACEOF
25576 cat confdefs.h >>conftest.$ac_ext
25577 cat >>conftest.$ac_ext <<_ACEOF
25578 /* end confdefs.h. */
25579 $ac_includes_default
25580 #include </usr/local/include/ptlib.h>
25582 rm -f conftest.$ac_objext
25583 if { (ac_try="$ac_compile"
25584 case "(($ac_try" in
25585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586 *) ac_try_echo=$ac_try;;
25588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25589 (eval "$ac_compile") 2>conftest.er1
25591 grep -v '^ *+' conftest.er1 >conftest.err
25593 cat conftest.err >&5
25594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25595 (exit $ac_status); } && {
25596 test -z "$ac_cxx_werror_flag" ||
25597 test ! -s conftest.err
25598 } && test -s conftest.$ac_objext; then
25599 ac_header_compiler=yes
25601 echo "$as_me: failed program was
:" >&5
25602 sed 's/^/| /' conftest.$ac_ext >&5
25604 ac_header_compiler=no
25607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25608 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25609 echo "${ECHO_T}$ac_header_compiler" >&6; }
25611 # Is the header present?
25612 { echo "$as_me:$LINENO: checking
/usr
/local
/include
/ptlib.h presence
" >&5
25613 echo $ECHO_N "checking
/usr
/local
/include
/ptlib.h presence...
$ECHO_C" >&6; }
25614 cat >conftest.$ac_ext <<_ACEOF
25617 cat confdefs.h >>conftest.$ac_ext
25618 cat >>conftest.$ac_ext <<_ACEOF
25619 /* end confdefs.h. */
25620 #include </usr/local/include/ptlib.h>
25622 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25623 case "(($ac_try" in
25624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625 *) ac_try_echo=$ac_try;;
25627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25628 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25630 grep -v '^ *+' conftest.er1 >conftest.err
25632 cat conftest.err >&5
25633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25634 (exit $ac_status); } >/dev/null && {
25635 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25636 test ! -s conftest.err
25638 ac_header_preproc=yes
25640 echo "$as_me: failed program was
:" >&5
25641 sed 's/^/| /' conftest.$ac_ext >&5
25643 ac_header_preproc=no
25646 rm -f conftest.err conftest.$ac_ext
25647 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25648 echo "${ECHO_T}$ac_header_preproc" >&6; }
25650 # So? What about this header?
25651 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25653 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25654 echo "$as_me: WARNING
: /usr
/local
/include
/ptlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25655 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: proceeding with the compiler
's result" >&5
25656 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result
" >&2;}
25657 ac_header_preproc=yes
25660 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: present but cannot be compiled
" >&5
25661 echo "$as_me: WARNING
: /usr
/local
/include
/ptlib.h
: present but cannot be compiled
" >&2;}
25662 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: check
for missing prerequisite headers?
" >&5
25663 echo "$as_me: WARNING
: /usr
/local
/include
/ptlib.h
: check
for missing prerequisite headers?
" >&2;}
25664 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: see the Autoconf documentation
" >&5
25665 echo "$as_me: WARNING
: /usr
/local
/include
/ptlib.h
: see the Autoconf documentation
" >&2;}
25666 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25667 echo "$as_me: WARNING
: /usr
/local
/include
/ptlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25668 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: proceeding with the preprocessor
's result" >&5
25669 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result
" >&2;}
25670 { echo "$as_me:$LINENO: WARNING
: /usr
/local
/include
/ptlib.h
: in the future
, the compiler will take precedence
" >&5
25671 echo "$as_me: WARNING
: /usr
/local
/include
/ptlib.h
: in the future
, the compiler will take precedence
" >&2;}
25673 ## ------------------------------- ##
25674 ## Report this to www.asterisk.org ##
25675 ## ------------------------------- ##
25677 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
25680 { echo "$as_me:$LINENO: checking
for /usr
/local
/include
/ptlib.h
" >&5
25681 echo $ECHO_N "checking
for /usr
/local
/include
/ptlib.h...
$ECHO_C" >&6; }
25682 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
25683 echo $ECHO_N "(cached
) $ECHO_C" >&6
25685 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
25687 { echo "$as_me:$LINENO: result
: $ac_cv_header__usr_local_include_ptlib_h" >&5
25688 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
25691 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
25696 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25697 # Extract the first word of "ptlib-config
", so it can be a program name with args.
25698 set dummy ptlib-config; ac_word=$2
25699 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
25700 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
25701 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25702 echo $ECHO_N "(cached
) $ECHO_C" >&6
25704 case $PTLIB_CONFIG in
25706 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25710 for as_dir in /usr/local/bin
25713 test -z "$as_dir" && as_dir=.
25714 for ac_exec_ext in '' $ac_executable_extensions; do
25715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25716 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25717 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
25727 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25728 if test -n "$PTLIB_CONFIG"; then
25729 { echo "$as_me:$LINENO: result
: $PTLIB_CONFIG" >&5
25730 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25732 { echo "$as_me:$LINENO: result
: no
" >&5
25733 echo "${ECHO_T}no
" >&6; }
25737 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
25738 # Extract the first word of "ptlib-config
", so it can be a program name with args.
25739 set dummy ptlib-config; ac_word=$2
25740 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
25741 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
25742 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25743 echo $ECHO_N "(cached
) $ECHO_C" >&6
25745 case $PTLIB_CONFIG in
25747 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25751 for as_dir in /usr/local/share/pwlib/make
25754 test -z "$as_dir" && as_dir=.
25755 for ac_exec_ext in '' $ac_executable_extensions; do
25756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25757 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25758 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
25768 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25769 if test -n "$PTLIB_CONFIG"; then
25770 { echo "$as_me:$LINENO: result
: $PTLIB_CONFIG" >&5
25771 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25773 { echo "$as_me:$LINENO: result
: no
" >&5
25774 echo "${ECHO_T}no
" >&6; }
25779 PWLIB_INCDIR="/usr
/local
/include
"
25780 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
25781 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25782 if test "x
$LIB64" != "x
"; then
25783 PWLIB_LIBDIR="/usr
/local
/lib64
"
25785 PWLIB_LIBDIR="/usr
/local
/lib
"
25788 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
25789 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
25791 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25792 { echo "$as_me:$LINENO: checking
for /usr
/include
/ptlib.h
" >&5
25793 echo $ECHO_N "checking
for /usr
/include
/ptlib.h...
$ECHO_C" >&6; }
25794 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25795 echo $ECHO_N "(cached
) $ECHO_C" >&6
25797 { echo "$as_me:$LINENO: result
: $ac_cv_header__usr_include_ptlib_h" >&5
25798 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
25800 # Is the header compilable?
25801 { echo "$as_me:$LINENO: checking
/usr
/include
/ptlib.h usability
" >&5
25802 echo $ECHO_N "checking
/usr
/include
/ptlib.h usability...
$ECHO_C" >&6; }
25803 cat >conftest.$ac_ext <<_ACEOF
25806 cat confdefs.h >>conftest.$ac_ext
25807 cat >>conftest.$ac_ext <<_ACEOF
25808 /* end confdefs.h. */
25809 $ac_includes_default
25810 #include </usr/include/ptlib.h>
25812 rm -f conftest.$ac_objext
25813 if { (ac_try="$ac_compile"
25814 case "(($ac_try" in
25815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25816 *) ac_try_echo=$ac_try;;
25818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25819 (eval "$ac_compile") 2>conftest.er1
25821 grep -v '^ *+' conftest.er1 >conftest.err
25823 cat conftest.err >&5
25824 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25825 (exit $ac_status); } && {
25826 test -z "$ac_cxx_werror_flag" ||
25827 test ! -s conftest.err
25828 } && test -s conftest.$ac_objext; then
25829 ac_header_compiler=yes
25831 echo "$as_me: failed program was
:" >&5
25832 sed 's/^/| /' conftest.$ac_ext >&5
25834 ac_header_compiler=no
25837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25838 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25839 echo "${ECHO_T}$ac_header_compiler" >&6; }
25841 # Is the header present?
25842 { echo "$as_me:$LINENO: checking
/usr
/include
/ptlib.h presence
" >&5
25843 echo $ECHO_N "checking
/usr
/include
/ptlib.h presence...
$ECHO_C" >&6; }
25844 cat >conftest.$ac_ext <<_ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 #include </usr/include/ptlib.h>
25852 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25853 case "(($ac_try" in
25854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25855 *) ac_try_echo=$ac_try;;
25857 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25858 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25860 grep -v '^ *+' conftest.er1 >conftest.err
25862 cat conftest.err >&5
25863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25864 (exit $ac_status); } >/dev/null && {
25865 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25866 test ! -s conftest.err
25868 ac_header_preproc=yes
25870 echo "$as_me: failed program was
:" >&5
25871 sed 's/^/| /' conftest.$ac_ext >&5
25873 ac_header_preproc=no
25876 rm -f conftest.err conftest.$ac_ext
25877 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25878 echo "${ECHO_T}$ac_header_preproc" >&6; }
25880 # So? What about this header?
25881 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25883 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25884 echo "$as_me: WARNING
: /usr
/include
/ptlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25885 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: proceeding with the compiler
's result" >&5
25886 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result
" >&2;}
25887 ac_header_preproc=yes
25890 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: present but cannot be compiled
" >&5
25891 echo "$as_me: WARNING
: /usr
/include
/ptlib.h
: present but cannot be compiled
" >&2;}
25892 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: check
for missing prerequisite headers?
" >&5
25893 echo "$as_me: WARNING
: /usr
/include
/ptlib.h
: check
for missing prerequisite headers?
" >&2;}
25894 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: see the Autoconf documentation
" >&5
25895 echo "$as_me: WARNING
: /usr
/include
/ptlib.h
: see the Autoconf documentation
" >&2;}
25896 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25897 echo "$as_me: WARNING
: /usr
/include
/ptlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25898 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: proceeding with the preprocessor
's result" >&5
25899 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result
" >&2;}
25900 { echo "$as_me:$LINENO: WARNING
: /usr
/include
/ptlib.h
: in the future
, the compiler will take precedence
" >&5
25901 echo "$as_me: WARNING
: /usr
/include
/ptlib.h
: in the future
, the compiler will take precedence
" >&2;}
25903 ## ------------------------------- ##
25904 ## Report this to www.asterisk.org ##
25905 ## ------------------------------- ##
25907 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
25910 { echo "$as_me:$LINENO: checking
for /usr
/include
/ptlib.h
" >&5
25911 echo $ECHO_N "checking
for /usr
/include
/ptlib.h...
$ECHO_C" >&6; }
25912 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25913 echo $ECHO_N "(cached
) $ECHO_C" >&6
25915 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
25917 { echo "$as_me:$LINENO: result
: $ac_cv_header__usr_include_ptlib_h" >&5
25918 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
25921 if test $ac_cv_header__usr_include_ptlib_h = yes; then
25926 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25927 # Extract the first word of "ptlib-config
", so it can be a program name with args.
25928 set dummy ptlib-config; ac_word=$2
25929 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
25930 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
25931 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25932 echo $ECHO_N "(cached
) $ECHO_C" >&6
25934 case $PTLIB_CONFIG in
25936 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25940 for as_dir in /usr/share/pwlib/make
25943 test -z "$as_dir" && as_dir=.
25944 for ac_exec_ext in '' $ac_executable_extensions; do
25945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25946 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25947 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
25957 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25958 if test -n "$PTLIB_CONFIG"; then
25959 { echo "$as_me:$LINENO: result
: $PTLIB_CONFIG" >&5
25960 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25962 { echo "$as_me:$LINENO: result
: no
" >&5
25963 echo "${ECHO_T}no
" >&6; }
25967 PWLIB_INCDIR="/usr
/include
"
25968 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
25969 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25970 if test "x
$LIB64" != "x
"; then
25971 PWLIB_LIBDIR="/usr
/lib64
"
25973 PWLIB_LIBDIR="/usr
/lib
"
25976 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
25977 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
25984 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
25985 # echo "Cannot
find pwlib
- please
install or
set PWLIBDIR and try again
"
25989 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25990 if test "${PWLIBDIR:-unset}" = "unset" ; then
25991 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
25992 PWLIBDIR=`$PTLIB_CONFIG --prefix`
25994 echo "Cannot
find ptlib-config
- please
install and try again
"
25999 if test "x
$PWLIBDIR" = "x
/usr
" -o "x
$PWLIBDIR" = "x
/usr
/"; then
26000 PWLIBDIR="/usr
/share
/pwlib
"
26001 PWLIB_INCDIR="/usr
/include
"
26002 if test "x
$LIB64" != "x
"; then
26003 PWLIB_LIBDIR="/usr
/lib64
"
26005 PWLIB_LIBDIR="/usr
/lib
"
26008 if test "x
$PWLIBDIR" = "x
/usr
/local" -o "x
$PWLIBDIR" = "x
/usr
/"; then
26009 PWLIBDIR="/usr
/local
/share
/pwlib
"
26010 PWLIB_INCDIR="/usr
/local
/include
"
26011 if test "x
$LIB64" != "x
"; then
26012 PWLIB_LIBDIR="/usr
/local
/lib64
"
26014 PWLIB_LIBDIR="/usr
/local
/lib
"
26018 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
26019 PWLIB_INCDIR="${PWLIBDIR}/include
"
26021 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
26022 PWLIB_LIBDIR="${PWLIBDIR}/lib
"
26030 ac_cpp='$CPP $CPPFLAGS'
26031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26037 if test "${HAS_PWLIB:-unset}" != "unset"; then
26038 PWLIB_VERSION=`grep "PWLIB_VERSION
" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g
'`
26039 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
26040 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
26041 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
26042 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
26043 let PWLIB_REQ=1*10000+9*100+2
26045 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
26046 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
26047 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
26048 { echo "$as_me:$LINENO: result: no" >&5
26049 echo "${ECHO_T}no" >&6; }
26052 { echo "$as_me:$LINENO: result: yes" >&5
26053 echo "${ECHO_T}yes" >&6; }
26058 if test "${HAS_PWLIB:-unset}" != "unset"; then
26062 linux*) PWLIB_OSTYPE=linux ;
26064 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
26066 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
26067 ENDLDLIBS="-lossaudio" ;
26069 netbsd* ) PWLIB_OSTYPE=NetBSD ;
26070 ENDLDLIBS="-lossaudio" ;
26072 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
26074 darwin* ) PWLIB_OSTYPE=Darwin ;
26076 beos*) PWLIB_OSTYPE=beos ;
26077 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
26079 cygwin*) PWLIB_OSTYPE=cygwin ;
26081 mingw*) PWLIB_OSTYPE=mingw ;
26082 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
26083 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
26085 * ) PWLIB_OSTYPE="$host_os" ;
26086 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
26087 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
26092 case "$host_cpu" in
26093 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
26096 x86_64) PWLIB_MACHTYPE=x86_64 ;
26101 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
26105 sparc ) PWLIB_MACHTYPE=sparc ;
26108 powerpc ) PWLIB_MACHTYPE=ppc ;
26111 ppc ) PWLIB_MACHTYPE=ppc ;
26114 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
26119 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
26124 ia64) PWLIB_MACHTYPE=ia64 ;
26128 s390x) PWLIB_MACHTYPE=s390x ;
26133 s390) PWLIB_MACHTYPE=s390 ;
26136 * ) PWLIB_MACHTYPE="$host_cpu";
26137 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
26138 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
26141 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
26146 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
26149 if test "${HAS_PWLIB:-unset}" != "unset"; then
26150 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
26151 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
26153 saved_cppflags="${CPPFLAGS}"
26154 saved_libs="${LIBS}"
26155 if test "${PWLIB_LIB:-unset}" != "unset"; then
26156 LIBS="${LIBS} ${PWLIB_LIB} "
26158 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
26160 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
26163 ac_cpp='$CXXCPP $CPPFLAGS'
26164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
26165 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
26166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26169 cat >conftest.$ac_ext <<_ACEOF
26172 cat confdefs.h >>conftest.$ac_ext
26173 cat >>conftest.$ac_ext <<_ACEOF
26174 /* end confdefs.h. */
26179 BOOL q = PTime::IsDaylightSavings();
26184 rm -f conftest.$ac_objext conftest$ac_exeext
26185 if { (ac_try="$ac_link"
26186 case "(($ac_try" in
26187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26188 *) ac_try_echo=$ac_try;;
26190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26191 (eval "$ac_link") 2>conftest.er1
26193 grep -v '^
*+' conftest.er1 >conftest.err
26195 cat conftest.err >&5
26196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); } && {
26198 test -z "$ac_cxx_werror_flag" ||
26199 test ! -s conftest.err
26200 } && test -s conftest$ac_exeext &&
26201 $as_test_x conftest$ac_exeext; then
26202 { echo "$as_me:$LINENO: result: yes" >&5
26203 echo "${ECHO_T}yes" >&6; }
26204 ac_cv_lib_PWLIB="yes"
26207 echo "$as_me: failed program was:" >&5
26208 sed 's
/^
/|
/' conftest.$ac_ext >&5
26210 { echo "$as_me:$LINENO: result: no" >&5
26211 echo "${ECHO_T}no" >&6; }
26212 ac_cv_lib_PWLIB="no"
26217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26218 conftest$ac_exeext conftest.$ac_ext
26221 ac_cpp='$CPP $CPPFLAGS'
26222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
26223 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
26224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26227 LIBS="${saved_libs}"
26228 CPPFLAGS="${saved_cppflags}"
26230 if test "${ac_cv_lib_PWLIB}" = "yes"; then
26231 if test "${PWLIB_LIB:-undef}" = "undef"; then
26232 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
26233 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
26235 PWLIB_LIB="-l${PLATFORM_PWLIB}"
26238 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
26239 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
26243 cat >>confdefs.h <<\_ACEOF
26244 #define HAVE_PWLIB 1
26253 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
26254 { echo "$as_me:$LINENO: ***" >&5
26255 echo "$as_me: ***" >&6;}
26256 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
26257 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
26258 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26259 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26260 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
26261 echo "$as_me: *** including --without-pwlib" >&6;}
26265 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
26266 if test -n "${OPENH323_DIR}"; then
26267 OPENH323DIR="${OPENH323_DIR}"
26273 ac_cpp='$CXXCPP $CPPFLAGS'
26274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
26275 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
26276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26278 if test "${OPENH323DIR:-unset}" != "unset" ; then
26279 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
26280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26281 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
26282 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
26283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26284 echo $ECHO_N "(cached) $ECHO_C" >&6
26286 ac_res=`eval echo '${'$as_ac_Header'}'`
26287 { echo "$as_me:$LINENO: result: $ac_res" >&5
26288 echo "${ECHO_T}$ac_res" >&6; }
26290 # Is the header compilable?
26291 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
26292 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
26293 cat >conftest.$ac_ext <<_ACEOF
26296 cat confdefs.h >>conftest.$ac_ext
26297 cat >>conftest.$ac_ext <<_ACEOF
26298 /* end confdefs.h. */
26299 $ac_includes_default
26300 #include <${OPENH323DIR}/version.h>
26302 rm -f conftest.$ac_objext
26303 if { (ac_try="$ac_compile"
26304 case "(($ac_try" in
26305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26306 *) ac_try_echo=$ac_try;;
26308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26309 (eval "$ac_compile") 2>conftest.er1
26311 grep -v '^
*+' conftest.er1 >conftest.err
26313 cat conftest.err >&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); } && {
26316 test -z "$ac_cxx_werror_flag" ||
26317 test ! -s conftest.err
26318 } && test -s conftest.$ac_objext; then
26319 ac_header_compiler=yes
26321 echo "$as_me: failed program was:" >&5
26322 sed 's
/^
/|
/' conftest.$ac_ext >&5
26324 ac_header_compiler=no
26327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26329 echo "${ECHO_T}$ac_header_compiler" >&6; }
26331 # Is the header present?
26332 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
26333 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
26334 cat >conftest.$ac_ext <<_ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h. */
26340 #include <${OPENH323DIR}/version.h>
26342 if { (ac_try="$ac_cpp conftest.$ac_ext"
26343 case "(($ac_try" in
26344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26345 *) ac_try_echo=$ac_try;;
26347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26350 grep -v '^
*+' conftest.er1 >conftest.err
26352 cat conftest.err >&5
26353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); } >/dev/null && {
26355 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26356 test ! -s conftest.err
26358 ac_header_preproc=yes
26360 echo "$as_me: failed program was:" >&5
26361 sed 's
/^
/|
/' conftest.$ac_ext >&5
26363 ac_header_preproc=no
26366 rm -f conftest.err conftest.$ac_ext
26367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26368 echo "${ECHO_T}$ac_header_preproc" >&6; }
26370 # So? What about this header?
26371 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26373 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26374 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26375 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result
" >&5
26376 echo "$as_me: WARNING
: ${OPENH323DIR}/version.h
: proceeding with the compiler
's result" >&2;}
26377 ac_header_preproc=yes
26380 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
26381 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
26383 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
26385 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
26387 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26388 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result
" >&5
26389 echo "$as_me: WARNING
: ${OPENH323DIR}/version.h
: proceeding with the preprocessor
's result" >&2;}
26390 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
26391 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
26393 ## ------------------------------- ##
26394 ## Report this to www.asterisk.org ##
26395 ## ------------------------------- ##
26397 ) | sed "s/^/$as_me: WARNING: /" >&2
26400 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
26401 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
26402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26403 echo $ECHO_N "(cached) $ECHO_C" >&6
26405 eval "$as_ac_Header=\$ac_header_preproc"
26407 ac_res=`eval echo '${'$as_ac_Header'}'`
26408 { echo "$as_me:$LINENO: result: $ac_res" >&5
26409 echo "${ECHO_T}$ac_res" >&6; }
26412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26418 if test "${HAS_OPENH323:-unset}" = "unset" ; then
26419 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
26420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26421 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
26422 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
26423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26424 echo $ECHO_N "(cached) $ECHO_C" >&6
26426 ac_res=`eval echo '${'$as_ac_Header'}'`
26427 { echo "$as_me:$LINENO: result: $ac_res" >&5
26428 echo "${ECHO_T}$ac_res" >&6; }
26430 # Is the header compilable?
26431 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
26432 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
26433 cat >conftest.$ac_ext <<_ACEOF
26436 cat confdefs.h >>conftest.$ac_ext
26437 cat >>conftest.$ac_ext <<_ACEOF
26438 /* end confdefs.h. */
26439 $ac_includes_default
26440 #include <${PWLIBDIR}/../openh323/version.h>
26442 rm -f conftest.$ac_objext
26443 if { (ac_try="$ac_compile"
26444 case "(($ac_try" in
26445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26446 *) ac_try_echo=$ac_try;;
26448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26449 (eval "$ac_compile") 2>conftest.er1
26451 grep -v '^
*+' conftest.er1 >conftest.err
26453 cat conftest.err >&5
26454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455 (exit $ac_status); } && {
26456 test -z "$ac_cxx_werror_flag" ||
26457 test ! -s conftest.err
26458 } && test -s conftest.$ac_objext; then
26459 ac_header_compiler=yes
26461 echo "$as_me: failed program was:" >&5
26462 sed 's
/^
/|
/' conftest.$ac_ext >&5
26464 ac_header_compiler=no
26467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26469 echo "${ECHO_T}$ac_header_compiler" >&6; }
26471 # Is the header present?
26472 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
26473 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
26474 cat >conftest.$ac_ext <<_ACEOF
26477 cat confdefs.h >>conftest.$ac_ext
26478 cat >>conftest.$ac_ext <<_ACEOF
26479 /* end confdefs.h. */
26480 #include <${PWLIBDIR}/../openh323/version.h>
26482 if { (ac_try="$ac_cpp conftest.$ac_ext"
26483 case "(($ac_try" in
26484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26485 *) ac_try_echo=$ac_try;;
26487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26490 grep -v '^
*+' conftest.er1 >conftest.err
26492 cat conftest.err >&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); } >/dev/null && {
26495 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26496 test ! -s conftest.err
26498 ac_header_preproc=yes
26500 echo "$as_me: failed program was:" >&5
26501 sed 's
/^
/|
/' conftest.$ac_ext >&5
26503 ac_header_preproc=no
26506 rm -f conftest.err conftest.$ac_ext
26507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26508 echo "${ECHO_T}$ac_header_preproc" >&6; }
26510 # So? What about this header?
26511 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26513 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26514 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26515 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result
" >&5
26516 echo "$as_me: WARNING
: ${PWLIBDIR}/..
/openh323
/version.h
: proceeding with the compiler
's result" >&2;}
26517 ac_header_preproc=yes
26520 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
26521 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
26522 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
26523 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
26524 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
26525 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
26526 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
26527 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26528 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result
" >&5
26529 echo "$as_me: WARNING
: ${PWLIBDIR}/..
/openh323
/version.h
: proceeding with the preprocessor
's result" >&2;}
26530 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
26531 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
26533 ## ------------------------------- ##
26534 ## Report this to www.asterisk.org ##
26535 ## ------------------------------- ##
26537 ) | sed "s/^/$as_me: WARNING: /" >&2
26540 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
26541 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
26542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26543 echo $ECHO_N "(cached) $ECHO_C" >&6
26545 eval "$as_ac_Header=\$ac_header_preproc"
26547 ac_res=`eval echo '${'$as_ac_Header'}'`
26548 { echo "$as_me:$LINENO: result: $ac_res" >&5
26549 echo "${ECHO_T}$ac_res" >&6; }
26552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26553 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
26557 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26558 OPENH323DIR="${PWLIBDIR}/../openh323"
26559 saved_cppflags="${CPPFLAGS}"
26560 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
26561 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
26562 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
26563 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
26564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26565 echo $ECHO_N "(cached) $ECHO_C" >&6
26567 cat >conftest.$ac_ext <<_ACEOF
26570 cat confdefs.h >>conftest.$ac_ext
26571 cat >>conftest.$ac_ext <<_ACEOF
26572 /* end confdefs.h. */
26575 #include <${OPENH323DIR}/include/h323.h>
26577 rm -f conftest.$ac_objext
26578 if { (ac_try="$ac_compile"
26579 case "(($ac_try" in
26580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26581 *) ac_try_echo=$ac_try;;
26583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26584 (eval "$ac_compile") 2>conftest.er1
26586 grep -v '^
*+' conftest.er1 >conftest.err
26588 cat conftest.err >&5
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); } && {
26591 test -z "$ac_cxx_werror_flag" ||
26592 test ! -s conftest.err
26593 } && test -s conftest.$ac_objext; then
26594 eval "$as_ac_Header=yes"
26596 echo "$as_me: failed program was:" >&5
26597 sed 's
/^
/|
/' conftest.$ac_ext >&5
26599 eval "$as_ac_Header=no"
26602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26604 ac_res=`eval echo '${'$as_ac_Header'}'`
26605 { echo "$as_me:$LINENO: result: $ac_res" >&5
26606 echo "${ECHO_T}$ac_res" >&6; }
26607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26610 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
26614 CPPFLAGS="${saved_cppflags}"
26616 saved_cppflags="${CPPFLAGS}"
26617 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
26618 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
26619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26620 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
26621 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
26622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26623 echo $ECHO_N "(cached) $ECHO_C" >&6
26625 ac_res=`eval echo '${'$as_ac_Header'}'`
26626 { echo "$as_me:$LINENO: result: $ac_res" >&5
26627 echo "${ECHO_T}$ac_res" >&6; }
26629 # Is the header compilable?
26630 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
26631 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
26632 cat >conftest.$ac_ext <<_ACEOF
26635 cat confdefs.h >>conftest.$ac_ext
26636 cat >>conftest.$ac_ext <<_ACEOF
26637 /* end confdefs.h. */
26638 $ac_includes_default
26639 #include <${HOME}/openh323/include/h323.h>
26641 rm -f conftest.$ac_objext
26642 if { (ac_try="$ac_compile"
26643 case "(($ac_try" in
26644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645 *) ac_try_echo=$ac_try;;
26647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26648 (eval "$ac_compile") 2>conftest.er1
26650 grep -v '^
*+' conftest.er1 >conftest.err
26652 cat conftest.err >&5
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); } && {
26655 test -z "$ac_cxx_werror_flag" ||
26656 test ! -s conftest.err
26657 } && test -s conftest.$ac_objext; then
26658 ac_header_compiler=yes
26660 echo "$as_me: failed program was:" >&5
26661 sed 's
/^
/|
/' conftest.$ac_ext >&5
26663 ac_header_compiler=no
26666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26668 echo "${ECHO_T}$ac_header_compiler" >&6; }
26670 # Is the header present?
26671 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
26672 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
26673 cat >conftest.$ac_ext <<_ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h. */
26679 #include <${HOME}/openh323/include/h323.h>
26681 if { (ac_try="$ac_cpp conftest.$ac_ext"
26682 case "(($ac_try" in
26683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26684 *) ac_try_echo=$ac_try;;
26686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26689 grep -v '^
*+' conftest.er1 >conftest.err
26691 cat conftest.err >&5
26692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693 (exit $ac_status); } >/dev/null && {
26694 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26695 test ! -s conftest.err
26697 ac_header_preproc=yes
26699 echo "$as_me: failed program was:" >&5
26700 sed 's
/^
/|
/' conftest.$ac_ext >&5
26702 ac_header_preproc=no
26705 rm -f conftest.err conftest.$ac_ext
26706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26707 echo "${ECHO_T}$ac_header_preproc" >&6; }
26709 # So? What about this header?
26710 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26712 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
26713 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26714 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result
" >&5
26715 echo "$as_me: WARNING
: ${HOME}/openh323
/include
/h323.h
: proceeding with the compiler
's result" >&2;}
26716 ac_header_preproc=yes
26719 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
26720 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
26721 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
26722 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
26723 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
26724 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
26725 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
26726 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
26727 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result
" >&5
26728 echo "$as_me: WARNING
: ${HOME}/openh323
/include
/h323.h
: proceeding with the preprocessor
's result" >&2;}
26729 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
26730 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
26732 ## ------------------------------- ##
26733 ## Report this to www.asterisk.org ##
26734 ## ------------------------------- ##
26736 ) | sed "s/^/$as_me: WARNING: /" >&2
26739 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
26740 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
26741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26742 echo $ECHO_N "(cached) $ECHO_C" >&6
26744 eval "$as_ac_Header=\$ac_header_preproc"
26746 ac_res=`eval echo '${'$as_ac_Header'}'`
26747 { echo "$as_me:$LINENO: result: $ac_res" >&5
26748 echo "${ECHO_T}$ac_res" >&6; }
26751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26756 CPPFLAGS="${saved_cppflags}"
26757 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26758 OPENH323DIR="${HOME}/openh323"
26760 saved_cppflags="${CPPFLAGS}"
26761 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
26762 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26763 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
26764 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
26765 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26766 echo $ECHO_N "(cached) $ECHO_C" >&6
26768 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
26769 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
26771 # Is the header compilable?
26772 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
26773 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
26774 cat >conftest.$ac_ext <<_ACEOF
26777 cat confdefs.h >>conftest.$ac_ext
26778 cat >>conftest.$ac_ext <<_ACEOF
26779 /* end confdefs.h. */
26780 $ac_includes_default
26781 #include </usr/local/include/openh323/h323.h>
26783 rm -f conftest.$ac_objext
26784 if { (ac_try="$ac_compile"
26785 case "(($ac_try" in
26786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787 *) ac_try_echo=$ac_try;;
26789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26790 (eval "$ac_compile") 2>conftest.er1
26792 grep -v '^
*+' conftest.er1 >conftest.err
26794 cat conftest.err >&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); } && {
26797 test -z "$ac_cxx_werror_flag" ||
26798 test ! -s conftest.err
26799 } && test -s conftest.$ac_objext; then
26800 ac_header_compiler=yes
26802 echo "$as_me: failed program was:" >&5
26803 sed 's
/^
/|
/' conftest.$ac_ext >&5
26805 ac_header_compiler=no
26808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26810 echo "${ECHO_T}$ac_header_compiler" >&6; }
26812 # Is the header present?
26813 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
26814 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
26815 cat >conftest.$ac_ext <<_ACEOF
26818 cat confdefs.h >>conftest.$ac_ext
26819 cat >>conftest.$ac_ext <<_ACEOF
26820 /* end confdefs.h. */
26821 #include </usr/local/include/openh323/h323.h>
26823 if { (ac_try="$ac_cpp conftest.$ac_ext"
26824 case "(($ac_try" in
26825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26826 *) ac_try_echo=$ac_try;;
26828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26831 grep -v '^
*+' conftest.er1 >conftest.err
26833 cat conftest.err >&5
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); } >/dev/null && {
26836 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26837 test ! -s conftest.err
26839 ac_header_preproc=yes
26841 echo "$as_me: failed program was:" >&5
26842 sed 's
/^
/|
/' conftest.$ac_ext >&5
26844 ac_header_preproc=no
26847 rm -f conftest.err conftest.$ac_ext
26848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26849 echo "${ECHO_T}$ac_header_preproc" >&6; }
26851 # So? What about this header?
26852 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26854 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
26855 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26856 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result
" >&5
26857 echo "$as_me: WARNING
: /usr
/local
/include
/openh323
/h323.h
: proceeding with the compiler
's result" >&2;}
26858 ac_header_preproc=yes
26861 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
26862 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
26863 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
26864 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
26865 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
26866 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
26867 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
26868 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
26869 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result
" >&5
26870 echo "$as_me: WARNING
: /usr
/local
/include
/openh323
/h323.h
: proceeding with the preprocessor
's result" >&2;}
26871 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
26872 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
26874 ## ------------------------------- ##
26875 ## Report this to www.asterisk.org ##
26876 ## ------------------------------- ##
26878 ) | sed "s/^/$as_me: WARNING: /" >&2
26881 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
26882 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
26883 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26886 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
26888 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
26889 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
26892 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
26897 CPPFLAGS="${saved_cppflags}"
26898 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26899 OPENH323DIR="/usr/local/share/openh323"
26900 OPENH323_INCDIR="/usr/local/include/openh323"
26901 if test "x$LIB64" != "x"; then
26902 OPENH323_LIBDIR="/usr/local/lib64"
26904 OPENH323_LIBDIR="/usr/local/lib"
26907 saved_cppflags="${CPPFLAGS}"
26908 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
26909 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
26910 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
26911 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
26912 echo $ECHO_N "(cached) $ECHO_C" >&6
26914 cat >conftest.$ac_ext <<_ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h. */
26922 #include </usr/include/openh323/h323.h>
26924 rm -f conftest.$ac_objext
26925 if { (ac_try="$ac_compile"
26926 case "(($ac_try" in
26927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26928 *) ac_try_echo=$ac_try;;
26930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26931 (eval "$ac_compile") 2>conftest.er1
26933 grep -v '^
*+' conftest.er1 >conftest.err
26935 cat conftest.err >&5
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); } && {
26938 test -z "$ac_cxx_werror_flag" ||
26939 test ! -s conftest.err
26940 } && test -s conftest.$ac_objext; then
26941 ac_cv_header__usr_include_openh323_h323_h=yes
26943 echo "$as_me: failed program was:" >&5
26944 sed 's
/^
/|
/' conftest.$ac_ext >&5
26946 ac_cv_header__usr_include_openh323_h323_h=no
26949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26951 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
26952 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
26953 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
26958 CPPFLAGS="${saved_cppflags}"
26959 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26960 OPENH323DIR="/usr/share/openh323"
26961 OPENH323_INCDIR="/usr/include/openh323"
26962 if test "x$LIB64" != "x"; then
26963 OPENH323_LIBDIR="/usr/lib64"
26965 OPENH323_LIBDIR="/usr/lib"
26973 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26974 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
26975 OPENH323_INCDIR="${OPENH323DIR}/include"
26977 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
26978 OPENH323_LIBDIR="${OPENH323DIR}/lib"
26981 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
26982 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
26983 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
26990 ac_cpp='$CPP $CPPFLAGS'
26991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
26992 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
26993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26997 if test "${HAS_OPENH323:-unset}" != "unset"; then
26998 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's
/"//g'`
26999 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
27000 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
27001 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
27002 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
27003 let OPENH323_REQ=1*10000+17*100+3
27005 { echo "$as_me:$LINENO: checking
if OpenH323 version
${OPENH323_VERSION} is compatible with chan_h323
" >&5
27006 echo $ECHO_N "checking
if OpenH323 version
${OPENH323_VERSION} is compatible with chan_h323...
$ECHO_C" >&6; }
27007 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
27008 { echo "$as_me:$LINENO: result
: no
" >&5
27009 echo "${ECHO_T}no
" >&6; }
27012 { echo "$as_me:$LINENO: result
: yes" >&5
27013 echo "${ECHO_T}yes" >&6; }
27018 if test "${HAS_OPENH323:-unset}" != "unset"; then
27019 { echo "$as_me:$LINENO: checking OpenH323 build option
" >&5
27020 echo $ECHO_N "checking OpenH323 build option...
$ECHO_C" >&6; }
27022 prefixes="h323_
${PWLIB_PLATFORM}_ h323_ openh323
"
27023 for pfx in $prefixes; do
27024 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
27026 if test -n "$files"; then
27027 for f in $files; do
27028 if test -f $f -a ! -L $f; then
27029 libfile=`basename $f`
27034 if test -n "$libfile"; then
27035 OPENH323_PREFIX=$pfx
27039 if test "${libfile:-unset}" != "unset"; then
27040 OPENH323_SUFFIX=`eval "echo ${libfile} |
sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
27042 case "${OPENH323_SUFFIX}" in
27044 OPENH323_BUILD="notrace
";;
27046 OPENH323_BUILD="opt
";;
27048 OPENH323_BUILD="debug
";;
27050 if test "${OPENH323_PREFIX:-undef}" = "openh323
"; then
27051 notrace=`eval "grep NOTRACE
${OPENH323DIR}/openh323u.mak |
grep = |
sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
27052 if test "x
$notrace" = "x
"; then
27055 if test "$notrace" -ne 0; then
27056 OPENH323_BUILD="notrace
"
27058 OPENH323_BUILD="opt
"
27060 OPENH323_LIB="-l${OPENH323_PREFIX}"
27062 OPENH323_BUILD="notrace
"
27066 { echo "$as_me:$LINENO: result
: ${OPENH323_BUILD}" >&5
27067 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
27073 PLATFORM_OPENH323
="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
27075 if test "${HAS_OPENH323:-unset}" != "unset"; then
27076 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
27077 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
27079 saved_cppflags
="${CPPFLAGS}"
27080 saved_libs
="${LIBS}"
27081 if test "${OPENH323_LIB:-unset}" != "unset"; then
27082 LIBS
="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
27084 LIBS
="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
27086 CPPFLAGS
="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
27089 ac_cpp
='$CXXCPP $CPPFLAGS'
27090 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27091 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27092 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
27095 cat >conftest.
$ac_ext <<_ACEOF
27098 cat confdefs.h
>>conftest.
$ac_ext
27099 cat >>conftest.
$ac_ext <<_ACEOF
27100 /* end confdefs.h. */
27103 #include "h323ep.h"
27107 H323EndPoint ep = H323EndPoint();
27112 rm -f conftest.
$ac_objext conftest
$ac_exeext
27113 if { (ac_try
="$ac_link"
27114 case "(($ac_try" in
27115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27116 *) ac_try_echo=$ac_try;;
27118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27119 (eval "$ac_link") 2>conftest.er1
27121 grep -v '^ *+' conftest.er1 >conftest.err
27123 cat conftest.err >&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); } && {
27126 test -z "$ac_cxx_werror_flag" ||
27127 test ! -s conftest.err
27128 } && test -s conftest$ac_exeext &&
27129 $as_test_x conftest$ac_exeext; then
27130 { echo "$as_me:$LINENO: result: yes" >&5
27131 echo "${ECHO_T}yes" >&6; }
27132 ac_cv_lib_OPENH323="yes"
27135 echo "$as_me: failed program was:" >&5
27136 sed 's/^/| /' conftest.$ac_ext >&5
27138 { echo "$as_me:$LINENO: result: no" >&5
27139 echo "${ECHO_T}no" >&6; }
27140 ac_cv_lib_OPENH323="no"
27145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27146 conftest$ac_exeext conftest.$ac_ext
27149 ac_cpp='$CPP $CPPFLAGS'
27150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27155 LIBS="${saved_libs}"
27156 CPPFLAGS="${saved_cppflags}"
27158 if test "${ac_cv_lib_OPENH323}" = "yes"; then
27159 if test "${OPENH323_LIB:-undef}" = "undef"; then
27160 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
27161 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
27163 OPENH323_LIB="-l${PLATFORM_OPENH323}"
27166 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
27167 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
27171 cat >>confdefs.h <<\_ACEOF
27172 #define HAVE_OPENH323 1
27179 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
27180 { echo "$as_me:$LINENO: ***" >&5
27181 echo "$as_me: ***" >&6;}
27182 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
27183 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
27184 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27185 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27186 { echo "$as_me:$LINENO: *** including --without-h323" >&5
27187 echo "$as_me: *** including --without-h323" >&6;}
27193 ac_cpp='$CXXCPP $CPPFLAGS'
27194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27199 if test "${USE_QT}" != "no"; then
27200 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
27201 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
27202 saved_libs="${LIBS}"
27203 saved_cppflags="${CPPFLAGS}"
27204 if test "x${QT_DIR}" != "x"; then
27205 LIBS="${LIBS} -L${QT_DIR}/lib"
27206 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
27208 LIBS="${LIBS} -lqt"
27210 cat >conftest.$ac_ext <<_ACEOF
27214 cat confdefs.h >>conftest.$ac_ext
27215 cat >>conftest.$ac_ext <<_ACEOF
27216 /* end confdefs.h. */
27217 #include <qt3/qdatetime.h>
27227 rm -f conftest.$ac_objext conftest$ac_exeext
27228 if { (ac_try="$ac_link"
27229 case "(($ac_try" in
27230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27231 *) ac_try_echo
=$ac_try;;
27233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234 (eval "$ac_link") 2>conftest.er1
27236 grep -v '^ *+' conftest.er1
>conftest.err
27238 cat conftest.err
>&5
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); } && {
27241 test -z "$ac_cxx_werror_flag" ||
27242 test ! -s conftest.err
27243 } && test -s conftest
$ac_exeext &&
27244 $as_test_x conftest
$ac_exeext; then
27245 ac_cv_lib_qt_qt_date
="yes"
27247 echo "$as_me: failed program was:" >&5
27248 sed 's/^/| /' conftest.
$ac_ext >&5
27250 ac_cv_lib_qt_qt_date
="no"
27253 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27254 conftest
$ac_exeext conftest.
$ac_ext
27255 LIBS
="${saved_libs}"
27256 CPPFLAGS
="${saved_cppflags}"
27258 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
27259 saved_libs
="${LIBS}"
27260 saved_cppflags
="${CPPFLAGS}"
27261 if test "x${QT_DIR}" != "x"; then
27262 LIBS
="${LIBS} -L${QT_DIR}/lib"
27263 CPPFLAGS
="${CPPFLAGS} -I${QT_DIR}/include"
27265 LIBS
="${LIBS} -lqt-mt"
27267 cat >conftest.
$ac_ext <<_ACEOF
27271 cat confdefs.h
>>conftest.
$ac_ext
27272 cat >>conftest.
$ac_ext <<_ACEOF
27273 /* end confdefs.h. */
27274 #include <qt3/qdatetime.h>
27284 rm -f conftest.
$ac_objext conftest
$ac_exeext
27285 if { (ac_try
="$ac_link"
27286 case "(($ac_try" in
27287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27288 *) ac_try_echo=$ac_try;;
27290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27291 (eval "$ac_link") 2>conftest.er1
27293 grep -v '^ *+' conftest.er1 >conftest.err
27295 cat conftest.err >&5
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); } && {
27298 test -z "$ac_cxx_werror_flag" ||
27299 test ! -s conftest.err
27300 } && test -s conftest$ac_exeext &&
27301 $as_test_x conftest$ac_exeext; then
27302 ac_cv_lib_qt_qt_date="yes"
27304 echo "$as_me: failed program was:" >&5
27305 sed 's/^/| /' conftest.$ac_ext >&5
27307 ac_cv_lib_qt_qt_date="no"
27310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27311 conftest$ac_exeext conftest.$ac_ext
27312 LIBS="${saved_libs}"
27313 CPPFLAGS="${saved_cppflags}"
27316 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
27317 { echo "$as_me:$LINENO: result: yes" >&5
27318 echo "${ECHO_T}yes" >&6; }
27320 { echo "$as_me:$LINENO: result: no" >&5
27321 echo "${ECHO_T}no" >&6; }
27324 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
27325 QT_LIB="-l${qtlib}"
27326 if test "${QT_DIR}" != ""; then
27327 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
27328 QT_INCLUDE="-I${QT_DIR}/include"
27332 cat >>confdefs.h <<\_ACEOF
27336 if test -n "$ac_tool_prefix"; then
27337 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
27338 set dummy ${ac_tool_prefix}moc; ac_word=$2
27339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27341 if test "${ac_cv_path_QTMOC+set}" = set; then
27342 echo $ECHO_N "(cached) $ECHO_C" >&6
27346 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
27349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27350 for as_dir in $PATH
27353 test -z "$as_dir" && as_dir=.
27354 for ac_exec_ext in '' $ac_executable_extensions; do
27355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27356 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
27357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27367 QTMOC=$ac_cv_path_QTMOC
27368 if test -n "$QTMOC"; then
27369 { echo "$as_me:$LINENO: result: $QTMOC" >&5
27370 echo "${ECHO_T}$QTMOC" >&6; }
27372 { echo "$as_me:$LINENO: result: no" >&5
27373 echo "${ECHO_T}no" >&6; }
27378 if test -z "$ac_cv_path_QTMOC"; then
27380 # Extract the first word of "moc", so it can be a program name with args.
27381 set dummy moc; ac_word=$2
27382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27384 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
27385 echo $ECHO_N "(cached) $ECHO_C" >&6
27387 case $ac_pt_QTMOC in
27389 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
27392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27393 for as_dir in $PATH
27396 test -z "$as_dir" && as_dir=.
27397 for ac_exec_ext in '' $ac_executable_extensions; do
27398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27399 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
27400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27410 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
27411 if test -n "$ac_pt_QTMOC"; then
27412 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
27413 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
27415 { echo "$as_me:$LINENO: result: no" >&5
27416 echo "${ECHO_T}no" >&6; }
27419 if test "x$ac_pt_QTMOC" = x; then
27422 case $cross_compiling:$ac_tool_warned in
27424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27425 whose name does not start with the host triplet. If you think this
27426 configuration is useful to you, please write to autoconf@gnu.org." >&5
27427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27428 whose name does not start with the host triplet. If you think this
27429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27430 ac_tool_warned=yes ;;
27435 QTMOC="$ac_cv_path_QTMOC"
27438 elif test -n "${QT_MANDATORY}";
27440 { echo "$as_me:$LINENO: ***" >&5
27441 echo "$as_me: ***" >&6;}
27442 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
27443 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
27444 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27445 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27446 { echo "$as_me:$LINENO: *** including --without-qt." >&5
27447 echo "$as_me: *** including --without-qt." >&6;}
27453 ac_cpp='$CPP $CPPFLAGS'
27454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27460 if test "${USE_RADIUS}" != "no"; then
27462 if test "x${RADIUS_DIR}" != "x"; then
27463 if test -d ${RADIUS_DIR}/lib; then
27464 pbxlibdir="-L${RADIUS_DIR}/lib"
27466 pbxlibdir="-L${RADIUS_DIR}"
27469 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
27470 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
27471 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
27472 echo $ECHO_N "(cached) $ECHO_C" >&6
27474 ac_check_lib_save_LIBS=$LIBS
27475 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
27476 cat >conftest.$ac_ext <<_ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h. */
27483 /* Override any GCC internal prototype to avoid an error.
27484 Use char because int might match the return type of a GCC
27485 builtin and then its argument prototype would still apply. */
27489 char rc_read_config ();
27493 return rc_read_config ();
27498 rm -f conftest.$ac_objext conftest$ac_exeext
27499 if { (ac_try="$ac_link"
27500 case "(($ac_try" in
27501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27502 *) ac_try_echo
=$ac_try;;
27504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27505 (eval "$ac_link") 2>conftest.er1
27507 grep -v '^ *+' conftest.er1
>conftest.err
27509 cat conftest.err
>&5
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); } && {
27512 test -z "$ac_c_werror_flag" ||
27513 test ! -s conftest.err
27514 } && test -s conftest
$ac_exeext &&
27515 $as_test_x conftest
$ac_exeext; then
27516 ac_cv_lib_radiusclient_ng_rc_read_config
=yes
27518 echo "$as_me: failed program was:" >&5
27519 sed 's/^/| /' conftest.
$ac_ext >&5
27521 ac_cv_lib_radiusclient_ng_rc_read_config
=no
27524 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27525 conftest
$ac_exeext conftest.
$ac_ext
27526 LIBS
=$ac_check_lib_save_LIBS
27528 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
27529 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
27530 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
27531 AST_RADIUS_FOUND
=yes
27533 AST_RADIUS_FOUND
=no
27537 if test "${AST_RADIUS_FOUND}" = "yes"; then
27538 RADIUS_LIB
="-lradiusclient-ng "
27539 RADIUS_HEADER_FOUND
="1"
27540 if test "x${RADIUS_DIR}" != "x"; then
27541 RADIUS_LIB
="${pbxlibdir} ${RADIUS_LIB}"
27542 RADIUS_INCLUDE
="-I${RADIUS_DIR}/include"
27543 saved_cppflags
="${CPPFLAGS}"
27544 CPPFLAGS
="${CPPFLAGS} -I${RADIUS_DIR}/include"
27545 if test "xradiusclient-ng.h" != "x" ; then
27546 as_ac_Header
=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
27547 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27548 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
27549 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
27550 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27551 echo $ECHO_N "(cached) $ECHO_C" >&6
27553 ac_res
=`eval echo '${'$as_ac_Header'}'`
27554 { echo "$as_me:$LINENO: result: $ac_res" >&5
27555 echo "${ECHO_T}$ac_res" >&6; }
27557 # Is the header compilable?
27558 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
27559 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
27560 cat >conftest.
$ac_ext <<_ACEOF
27563 cat confdefs.h
>>conftest.
$ac_ext
27564 cat >>conftest.
$ac_ext <<_ACEOF
27565 /* end confdefs.h. */
27566 $ac_includes_default
27567 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
27569 rm -f conftest.
$ac_objext
27570 if { (ac_try
="$ac_compile"
27571 case "(($ac_try" in
27572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_compile") 2>conftest.er1
27578 grep -v '^ *+' conftest.er1 >conftest.err
27580 cat conftest.err >&5
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); } && {
27583 test -z "$ac_c_werror_flag" ||
27584 test ! -s conftest.err
27585 } && test -s conftest.$ac_objext; then
27586 ac_header_compiler=yes
27588 echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27591 ac_header_compiler=no
27594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27596 echo "${ECHO_T}$ac_header_compiler" >&6; }
27598 # Is the header present?
27599 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
27600 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
27601 cat >conftest.$ac_ext <<_ACEOF
27604 cat confdefs.h >>conftest.$ac_ext
27605 cat >>conftest.$ac_ext <<_ACEOF
27606 /* end confdefs.h. */
27607 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
27609 if { (ac_try="$ac_cpp conftest.$ac_ext"
27610 case "(($ac_try" in
27611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27612 *) ac_try_echo
=$ac_try;;
27614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27617 grep -v '^ *+' conftest.er1
>conftest.err
27619 cat conftest.err
>&5
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); } >/dev
/null
&& {
27622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27623 test ! -s conftest.err
27625 ac_header_preproc
=yes
27627 echo "$as_me: failed program was:" >&5
27628 sed 's/^/| /' conftest.
$ac_ext >&5
27630 ac_header_preproc
=no
27633 rm -f conftest.err conftest.
$ac_ext
27634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27635 echo "${ECHO_T}$ac_header_preproc" >&6; }
27637 # So? What about this header?
27638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27640 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
27641 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27642 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
27643 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
27644 ac_header_preproc
=yes
27647 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
27648 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
27649 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
27650 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
27651 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
27652 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
27653 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
27654 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
27655 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
27656 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
27657 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
27658 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
27660 ## ------------------------------- ##
27661 ## Report this to www.asterisk.org ##
27662 ## ------------------------------- ##
27664 ) |
sed "s/^/$as_me: WARNING: /" >&2
27667 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
27668 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
27669 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27670 echo $ECHO_N "(cached) $ECHO_C" >&6
27672 eval "$as_ac_Header=\$ac_header_preproc"
27674 ac_res
=`eval echo '${'$as_ac_Header'}'`
27675 { echo "$as_me:$LINENO: result: $ac_res" >&5
27676 echo "${ECHO_T}$ac_res" >&6; }
27679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27680 RADIUS_HEADER_FOUND
=1
27682 RADIUS_HEADER_FOUND
=0
27687 CPPFLAGS
="${saved_cppflags}"
27689 if test "xradiusclient-ng.h" != "x" ; then
27690 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
27691 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
27692 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
27693 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
27694 echo $ECHO_N "(cached) $ECHO_C" >&6
27696 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
27697 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
27699 # Is the header compilable?
27700 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
27701 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
27702 cat >conftest.
$ac_ext <<_ACEOF
27705 cat confdefs.h
>>conftest.
$ac_ext
27706 cat >>conftest.
$ac_ext <<_ACEOF
27707 /* end confdefs.h. */
27708 $ac_includes_default
27709 #include <radiusclient-ng.h>
27711 rm -f conftest.
$ac_objext
27712 if { (ac_try
="$ac_compile"
27713 case "(($ac_try" in
27714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27715 *) ac_try_echo=$ac_try;;
27717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27718 (eval "$ac_compile") 2>conftest.er1
27720 grep -v '^ *+' conftest.er1 >conftest.err
27722 cat conftest.err >&5
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); } && {
27725 test -z "$ac_c_werror_flag" ||
27726 test ! -s conftest.err
27727 } && test -s conftest.$ac_objext; then
27728 ac_header_compiler=yes
27730 echo "$as_me: failed program was:" >&5
27731 sed 's/^/| /' conftest.$ac_ext >&5
27733 ac_header_compiler=no
27736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27738 echo "${ECHO_T}$ac_header_compiler" >&6; }
27740 # Is the header present?
27741 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
27742 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
27743 cat >conftest.$ac_ext <<_ACEOF
27746 cat confdefs.h >>conftest.$ac_ext
27747 cat >>conftest.$ac_ext <<_ACEOF
27748 /* end confdefs.h. */
27749 #include <radiusclient-ng.h>
27751 if { (ac_try="$ac_cpp conftest.$ac_ext"
27752 case "(($ac_try" in
27753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27754 *) ac_try_echo
=$ac_try;;
27756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27759 grep -v '^ *+' conftest.er1
>conftest.err
27761 cat conftest.err
>&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); } >/dev
/null
&& {
27764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27765 test ! -s conftest.err
27767 ac_header_preproc
=yes
27769 echo "$as_me: failed program was:" >&5
27770 sed 's/^/| /' conftest.
$ac_ext >&5
27772 ac_header_preproc
=no
27775 rm -f conftest.err conftest.
$ac_ext
27776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27777 echo "${ECHO_T}$ac_header_preproc" >&6; }
27779 # So? What about this header?
27780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27782 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
27783 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27784 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
27785 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
27786 ac_header_preproc
=yes
27789 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
27790 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
27791 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
27792 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
27793 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
27794 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
27795 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
27796 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
27797 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
27798 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
27799 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
27800 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
27802 ## ------------------------------- ##
27803 ## Report this to www.asterisk.org ##
27804 ## ------------------------------- ##
27806 ) |
sed "s/^/$as_me: WARNING: /" >&2
27809 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
27810 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
27811 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
27812 echo $ECHO_N "(cached) $ECHO_C" >&6
27814 ac_cv_header_radiusclient_ng_h
=$ac_header_preproc
27816 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
27817 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
27820 if test $ac_cv_header_radiusclient_ng_h = yes; then
27821 RADIUS_HEADER_FOUND
=1
27823 RADIUS_HEADER_FOUND
=0
27829 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
27830 if test -n "${RADIUS_MANDATORY}" ;
27832 { echo "$as_me:$LINENO: ***" >&5
27833 echo "$as_me: ***" >&6;}
27834 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
27835 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
27836 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
27837 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
27838 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
27839 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
27848 cat >>confdefs.h
<<_ACEOF
27849 #define HAVE_RADIUS 1
27853 elif test -n "${RADIUS_MANDATORY}";
27855 { echo "$as_me:$LINENO: ***" >&5
27856 echo "$as_me: ***" >&6;}
27857 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
27858 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
27859 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27860 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27861 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
27862 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
27869 if test "${USE_SPEEX}" != "no"; then
27871 if test "x${SPEEX_DIR}" != "x"; then
27872 if test -d ${SPEEX_DIR}/lib
; then
27873 pbxlibdir
="-L${SPEEX_DIR}/lib"
27875 pbxlibdir
="-L${SPEEX_DIR}"
27878 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
27879 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
27880 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
27881 echo $ECHO_N "(cached) $ECHO_C" >&6
27883 ac_check_lib_save_LIBS
=$LIBS
27884 LIBS
="-lspeex ${pbxlibdir} -lm $LIBS"
27885 cat >conftest.
$ac_ext <<_ACEOF
27888 cat confdefs.h
>>conftest.
$ac_ext
27889 cat >>conftest.
$ac_ext <<_ACEOF
27890 /* end confdefs.h. */
27892 /* Override any GCC internal prototype to avoid an error.
27893 Use char because int might match the return type of a GCC
27894 builtin and then its argument prototype would still apply. */
27898 char speex_encode ();
27902 return speex_encode ();
27907 rm -f conftest.
$ac_objext conftest
$ac_exeext
27908 if { (ac_try
="$ac_link"
27909 case "(($ac_try" in
27910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27911 *) ac_try_echo=$ac_try;;
27913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27914 (eval "$ac_link") 2>conftest.er1
27916 grep -v '^ *+' conftest.er1 >conftest.err
27918 cat conftest.err >&5
27919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); } && {
27921 test -z "$ac_c_werror_flag" ||
27922 test ! -s conftest.err
27923 } && test -s conftest$ac_exeext &&
27924 $as_test_x conftest$ac_exeext; then
27925 ac_cv_lib_speex_speex_encode=yes
27927 echo "$as_me: failed program was:" >&5
27928 sed 's/^/| /' conftest.$ac_ext >&5
27930 ac_cv_lib_speex_speex_encode=no
27933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27934 conftest$ac_exeext conftest.$ac_ext
27935 LIBS=$ac_check_lib_save_LIBS
27937 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
27938 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
27939 if test $ac_cv_lib_speex_speex_encode = yes; then
27940 AST_SPEEX_FOUND=yes
27946 if test "${AST_SPEEX_FOUND}" = "yes"; then
27947 SPEEX_LIB="-lspeex -lm"
27948 SPEEX_HEADER_FOUND="1"
27949 if test "x${SPEEX_DIR}" != "x"; then
27950 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
27951 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
27952 saved_cppflags="${CPPFLAGS}"
27953 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
27954 if test "xspeex/speex.h" != "x" ; then
27955 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" |
$as_tr_sh`
27956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27957 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
27958 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
27959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27960 echo $ECHO_N "(cached) $ECHO_C" >&6
27962 ac_res=`eval echo '${'$as_ac_Header'}'`
27963 { echo "$as_me:$LINENO: result: $ac_res" >&5
27964 echo "${ECHO_T}$ac_res" >&6; }
27966 # Is the header compilable?
27967 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
27968 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
27969 cat >conftest.$ac_ext <<_ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h. */
27975 $ac_includes_default
27976 #include <${SPEEX_DIR}/include/speex/speex.h>
27978 rm -f conftest.$ac_objext
27979 if { (ac_try="$ac_compile"
27980 case "(($ac_try" in
27981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27982 *) ac_try_echo
=$ac_try;;
27984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27985 (eval "$ac_compile") 2>conftest.er1
27987 grep -v '^ *+' conftest.er1
>conftest.err
27989 cat conftest.err
>&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); } && {
27992 test -z "$ac_c_werror_flag" ||
27993 test ! -s conftest.err
27994 } && test -s conftest.
$ac_objext; then
27995 ac_header_compiler
=yes
27997 echo "$as_me: failed program was:" >&5
27998 sed 's/^/| /' conftest.
$ac_ext >&5
28000 ac_header_compiler
=no
28003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28005 echo "${ECHO_T}$ac_header_compiler" >&6; }
28007 # Is the header present?
28008 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
28009 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
28010 cat >conftest.
$ac_ext <<_ACEOF
28013 cat confdefs.h
>>conftest.
$ac_ext
28014 cat >>conftest.
$ac_ext <<_ACEOF
28015 /* end confdefs.h. */
28016 #include <${SPEEX_DIR}/include/speex/speex.h>
28018 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28019 case "(($ac_try" in
28020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28021 *) ac_try_echo=$ac_try;;
28023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28026 grep -v '^ *+' conftest.er1 >conftest.err
28028 cat conftest.err >&5
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); } >/dev/null && {
28031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28032 test ! -s conftest.err
28034 ac_header_preproc=yes
28036 echo "$as_me: failed program was:" >&5
28037 sed 's/^/| /' conftest.$ac_ext >&5
28039 ac_header_preproc=no
28042 rm -f conftest.err conftest.$ac_ext
28043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28044 echo "${ECHO_T}$ac_header_preproc" >&6; }
28046 # So? What about this header?
28047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28049 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
28050 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28051 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
28052 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
28053 ac_header_preproc=yes
28056 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
28057 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
28058 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
28059 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
28060 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
28061 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
28062 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
28063 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
28064 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
28065 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
28066 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
28067 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
28069 ## ------------------------------- ##
28070 ## Report this to www.asterisk.org ##
28071 ## ------------------------------- ##
28073 ) | sed "s/^/$as_me: WARNING: /" >&2
28076 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
28077 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
28078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28079 echo $ECHO_N "(cached) $ECHO_C" >&6
28081 eval "$as_ac_Header=\$ac_header_preproc"
28083 ac_res=`eval echo '${'$as_ac_Header'}'`
28084 { echo "$as_me:$LINENO: result: $ac_res" >&5
28085 echo "${ECHO_T}$ac_res" >&6; }
28088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28089 SPEEX_HEADER_FOUND=1
28091 SPEEX_HEADER_FOUND=0
28096 CPPFLAGS="${saved_cppflags}"
28098 if test "xspeex/speex.h" != "x" ; then
28099 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28100 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
28101 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
28102 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28103 echo $ECHO_N "(cached) $ECHO_C" >&6
28105 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
28106 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
28108 # Is the header compilable?
28109 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
28110 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
28111 cat >conftest.$ac_ext <<_ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h. */
28117 $ac_includes_default
28118 #include <speex/speex.h>
28120 rm -f conftest.$ac_objext
28121 if { (ac_try="$ac_compile"
28122 case "(($ac_try" in
28123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28124 *) ac_try_echo
=$ac_try;;
28126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28127 (eval "$ac_compile") 2>conftest.er1
28129 grep -v '^ *+' conftest.er1
>conftest.err
28131 cat conftest.err
>&5
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); } && {
28134 test -z "$ac_c_werror_flag" ||
28135 test ! -s conftest.err
28136 } && test -s conftest.
$ac_objext; then
28137 ac_header_compiler
=yes
28139 echo "$as_me: failed program was:" >&5
28140 sed 's/^/| /' conftest.
$ac_ext >&5
28142 ac_header_compiler
=no
28145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28147 echo "${ECHO_T}$ac_header_compiler" >&6; }
28149 # Is the header present?
28150 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
28151 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
28152 cat >conftest.
$ac_ext <<_ACEOF
28155 cat confdefs.h
>>conftest.
$ac_ext
28156 cat >>conftest.
$ac_ext <<_ACEOF
28157 /* end confdefs.h. */
28158 #include <speex/speex.h>
28160 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28161 case "(($ac_try" in
28162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28163 *) ac_try_echo=$ac_try;;
28165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28168 grep -v '^ *+' conftest.er1 >conftest.err
28170 cat conftest.err >&5
28171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); } >/dev/null && {
28173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28174 test ! -s conftest.err
28176 ac_header_preproc=yes
28178 echo "$as_me: failed program was:" >&5
28179 sed 's/^/| /' conftest.$ac_ext >&5
28181 ac_header_preproc=no
28184 rm -f conftest.err conftest.$ac_ext
28185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28186 echo "${ECHO_T}$ac_header_preproc" >&6; }
28188 # So? What about this header?
28189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28191 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
28192 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28193 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
28194 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
28195 ac_header_preproc=yes
28198 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
28199 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
28200 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
28201 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
28202 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
28203 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
28204 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
28205 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
28206 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
28207 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
28208 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
28209 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
28211 ## ------------------------------- ##
28212 ## Report this to www.asterisk.org ##
28213 ## ------------------------------- ##
28215 ) | sed "s/^/$as_me: WARNING: /" >&2
28218 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
28219 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
28220 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28221 echo $ECHO_N "(cached) $ECHO_C" >&6
28223 ac_cv_header_speex_speex_h=$ac_header_preproc
28225 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
28226 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
28229 if test $ac_cv_header_speex_speex_h = yes; then
28230 SPEEX_HEADER_FOUND=1
28232 SPEEX_HEADER_FOUND=0
28238 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
28239 if test -n "${SPEEX_MANDATORY}" ;
28241 { echo "$as_me:$LINENO: ***" >&5
28242 echo "$as_me: ***" >&6;}
28243 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
28244 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
28245 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
28246 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
28247 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
28248 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
28257 cat >>confdefs.h <<_ACEOF
28258 #define HAVE_SPEEX 1
28262 elif test -n "${SPEEX_MANDATORY}";
28264 { echo "$as_me:$LINENO: ***" >&5
28265 echo "$as_me: ***" >&6;}
28266 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
28267 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
28268 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28269 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28270 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
28271 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
28278 if test "${USE_SQLITE}" != "no"; then
28280 if test "x${SQLITE_DIR}" != "x"; then
28281 if test -d ${SQLITE_DIR}/lib; then
28282 pbxlibdir="-L${SQLITE_DIR}/lib"
28284 pbxlibdir="-L${SQLITE_DIR}"
28287 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
28288 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
28289 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
28290 echo $ECHO_N "(cached) $ECHO_C" >&6
28292 ac_check_lib_save_LIBS=$LIBS
28293 LIBS="-lsqlite ${pbxlibdir} $LIBS"
28294 cat >conftest.$ac_ext <<_ACEOF
28297 cat confdefs.h >>conftest.$ac_ext
28298 cat >>conftest.$ac_ext <<_ACEOF
28299 /* end confdefs.h. */
28301 /* Override any GCC internal prototype to avoid an error.
28302 Use char because int might match the return type of a GCC
28303 builtin and then its argument prototype would still apply. */
28307 char sqlite_exec ();
28311 return sqlite_exec ();
28316 rm -f conftest.$ac_objext conftest$ac_exeext
28317 if { (ac_try="$ac_link"
28318 case "(($ac_try" in
28319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28320 *) ac_try_echo
=$ac_try;;
28322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323 (eval "$ac_link") 2>conftest.er1
28325 grep -v '^ *+' conftest.er1
>conftest.err
28327 cat conftest.err
>&5
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); } && {
28330 test -z "$ac_c_werror_flag" ||
28331 test ! -s conftest.err
28332 } && test -s conftest
$ac_exeext &&
28333 $as_test_x conftest
$ac_exeext; then
28334 ac_cv_lib_sqlite_sqlite_exec
=yes
28336 echo "$as_me: failed program was:" >&5
28337 sed 's/^/| /' conftest.
$ac_ext >&5
28339 ac_cv_lib_sqlite_sqlite_exec
=no
28342 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28343 conftest
$ac_exeext conftest.
$ac_ext
28344 LIBS
=$ac_check_lib_save_LIBS
28346 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
28347 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
28348 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
28349 AST_SQLITE_FOUND
=yes
28351 AST_SQLITE_FOUND
=no
28355 if test "${AST_SQLITE_FOUND}" = "yes"; then
28356 SQLITE_LIB
="-lsqlite "
28357 SQLITE_HEADER_FOUND
="1"
28358 if test "x${SQLITE_DIR}" != "x"; then
28359 SQLITE_LIB
="${pbxlibdir} ${SQLITE_LIB}"
28360 SQLITE_INCLUDE
="-I${SQLITE_DIR}/include"
28361 saved_cppflags
="${CPPFLAGS}"
28362 CPPFLAGS
="${CPPFLAGS} -I${SQLITE_DIR}/include"
28363 if test "xsqlite.h" != "x" ; then
28364 as_ac_Header
=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
28365 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28366 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
28367 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
28368 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28369 echo $ECHO_N "(cached) $ECHO_C" >&6
28371 ac_res
=`eval echo '${'$as_ac_Header'}'`
28372 { echo "$as_me:$LINENO: result: $ac_res" >&5
28373 echo "${ECHO_T}$ac_res" >&6; }
28375 # Is the header compilable?
28376 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
28377 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
28378 cat >conftest.
$ac_ext <<_ACEOF
28381 cat confdefs.h
>>conftest.
$ac_ext
28382 cat >>conftest.
$ac_ext <<_ACEOF
28383 /* end confdefs.h. */
28384 $ac_includes_default
28385 #include <${SQLITE_DIR}/include/sqlite.h>
28387 rm -f conftest.
$ac_objext
28388 if { (ac_try
="$ac_compile"
28389 case "(($ac_try" in
28390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28391 *) ac_try_echo=$ac_try;;
28393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28394 (eval "$ac_compile") 2>conftest.er1
28396 grep -v '^ *+' conftest.er1 >conftest.err
28398 cat conftest.err >&5
28399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); } && {
28401 test -z "$ac_c_werror_flag" ||
28402 test ! -s conftest.err
28403 } && test -s conftest.$ac_objext; then
28404 ac_header_compiler=yes
28406 echo "$as_me: failed program was:" >&5
28407 sed 's/^/| /' conftest.$ac_ext >&5
28409 ac_header_compiler=no
28412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28414 echo "${ECHO_T}$ac_header_compiler" >&6; }
28416 # Is the header present?
28417 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
28418 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
28419 cat >conftest.$ac_ext <<_ACEOF
28422 cat confdefs.h >>conftest.$ac_ext
28423 cat >>conftest.$ac_ext <<_ACEOF
28424 /* end confdefs.h. */
28425 #include <${SQLITE_DIR}/include/sqlite.h>
28427 if { (ac_try="$ac_cpp conftest.$ac_ext"
28428 case "(($ac_try" in
28429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28430 *) ac_try_echo
=$ac_try;;
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28435 grep -v '^ *+' conftest.er1
>conftest.err
28437 cat conftest.err
>&5
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } >/dev
/null
&& {
28440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28441 test ! -s conftest.err
28443 ac_header_preproc
=yes
28445 echo "$as_me: failed program was:" >&5
28446 sed 's/^/| /' conftest.
$ac_ext >&5
28448 ac_header_preproc
=no
28451 rm -f conftest.err conftest.
$ac_ext
28452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28453 echo "${ECHO_T}$ac_header_preproc" >&6; }
28455 # So? What about this header?
28456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28458 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
28459 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28460 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
28461 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
28462 ac_header_preproc
=yes
28465 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
28466 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
28467 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
28468 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
28469 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
28470 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
28471 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
28472 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
28473 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
28474 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
28475 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
28476 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
28478 ## ------------------------------- ##
28479 ## Report this to www.asterisk.org ##
28480 ## ------------------------------- ##
28482 ) |
sed "s/^/$as_me: WARNING: /" >&2
28485 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
28486 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
28487 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28488 echo $ECHO_N "(cached) $ECHO_C" >&6
28490 eval "$as_ac_Header=\$ac_header_preproc"
28492 ac_res
=`eval echo '${'$as_ac_Header'}'`
28493 { echo "$as_me:$LINENO: result: $ac_res" >&5
28494 echo "${ECHO_T}$ac_res" >&6; }
28497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28498 SQLITE_HEADER_FOUND
=1
28500 SQLITE_HEADER_FOUND
=0
28505 CPPFLAGS
="${saved_cppflags}"
28507 if test "xsqlite.h" != "x" ; then
28508 if test "${ac_cv_header_sqlite_h+set}" = set; then
28509 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
28510 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
28511 if test "${ac_cv_header_sqlite_h+set}" = set; then
28512 echo $ECHO_N "(cached) $ECHO_C" >&6
28514 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
28515 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
28517 # Is the header compilable?
28518 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
28519 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
28520 cat >conftest.
$ac_ext <<_ACEOF
28523 cat confdefs.h
>>conftest.
$ac_ext
28524 cat >>conftest.
$ac_ext <<_ACEOF
28525 /* end confdefs.h. */
28526 $ac_includes_default
28527 #include <sqlite.h>
28529 rm -f conftest.
$ac_objext
28530 if { (ac_try
="$ac_compile"
28531 case "(($ac_try" in
28532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28533 *) ac_try_echo=$ac_try;;
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_compile") 2>conftest.er1
28538 grep -v '^ *+' conftest.er1 >conftest.err
28540 cat conftest.err >&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } && {
28543 test -z "$ac_c_werror_flag" ||
28544 test ! -s conftest.err
28545 } && test -s conftest.$ac_objext; then
28546 ac_header_compiler=yes
28548 echo "$as_me: failed program was:" >&5
28549 sed 's/^/| /' conftest.$ac_ext >&5
28551 ac_header_compiler=no
28554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28556 echo "${ECHO_T}$ac_header_compiler" >&6; }
28558 # Is the header present?
28559 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
28560 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
28561 cat >conftest.$ac_ext <<_ACEOF
28564 cat confdefs.h >>conftest.$ac_ext
28565 cat >>conftest.$ac_ext <<_ACEOF
28566 /* end confdefs.h. */
28567 #include <sqlite.h>
28569 if { (ac_try="$ac_cpp conftest.$ac_ext"
28570 case "(($ac_try" in
28571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28572 *) ac_try_echo
=$ac_try;;
28574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28577 grep -v '^ *+' conftest.er1
>conftest.err
28579 cat conftest.err
>&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); } >/dev
/null
&& {
28582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28583 test ! -s conftest.err
28585 ac_header_preproc
=yes
28587 echo "$as_me: failed program was:" >&5
28588 sed 's/^/| /' conftest.
$ac_ext >&5
28590 ac_header_preproc
=no
28593 rm -f conftest.err conftest.
$ac_ext
28594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28595 echo "${ECHO_T}$ac_header_preproc" >&6; }
28597 # So? What about this header?
28598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28600 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
28601 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28602 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
28603 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
28604 ac_header_preproc
=yes
28607 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
28608 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
28609 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
28610 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
28611 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
28612 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
28613 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
28614 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
28615 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
28616 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
28617 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
28618 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
28620 ## ------------------------------- ##
28621 ## Report this to www.asterisk.org ##
28622 ## ------------------------------- ##
28624 ) |
sed "s/^/$as_me: WARNING: /" >&2
28627 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
28628 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
28629 if test "${ac_cv_header_sqlite_h+set}" = set; then
28630 echo $ECHO_N "(cached) $ECHO_C" >&6
28632 ac_cv_header_sqlite_h
=$ac_header_preproc
28634 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
28635 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
28638 if test $ac_cv_header_sqlite_h = yes; then
28639 SQLITE_HEADER_FOUND
=1
28641 SQLITE_HEADER_FOUND
=0
28647 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
28648 if test -n "${SQLITE_MANDATORY}" ;
28650 { echo "$as_me:$LINENO: ***" >&5
28651 echo "$as_me: ***" >&6;}
28652 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
28653 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
28654 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
28655 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
28656 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
28657 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
28666 cat >>confdefs.h
<<_ACEOF
28667 #define HAVE_SQLITE 1
28671 elif test -n "${SQLITE_MANDATORY}";
28673 { echo "$as_me:$LINENO: ***" >&5
28674 echo "$as_me: ***" >&6;}
28675 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
28676 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
28677 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28678 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28679 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
28680 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
28687 if test "${USE_OPENSSL}" != "no"; then
28689 if test "x${OPENSSL_DIR}" != "x"; then
28690 if test -d ${OPENSSL_DIR}/lib
; then
28691 pbxlibdir
="-L${OPENSSL_DIR}/lib"
28693 pbxlibdir
="-L${OPENSSL_DIR}"
28696 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
28697 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
28698 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
28699 echo $ECHO_N "(cached) $ECHO_C" >&6
28701 ac_check_lib_save_LIBS
=$LIBS
28702 LIBS
="-lssl ${pbxlibdir} -lcrypto $LIBS"
28703 cat >conftest.
$ac_ext <<_ACEOF
28706 cat confdefs.h
>>conftest.
$ac_ext
28707 cat >>conftest.
$ac_ext <<_ACEOF
28708 /* end confdefs.h. */
28710 /* Override any GCC internal prototype to avoid an error.
28711 Use char because int might match the return type of a GCC
28712 builtin and then its argument prototype would still apply. */
28716 char ssl2_connect ();
28720 return ssl2_connect ();
28725 rm -f conftest.
$ac_objext conftest
$ac_exeext
28726 if { (ac_try
="$ac_link"
28727 case "(($ac_try" in
28728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28729 *) ac_try_echo=$ac_try;;
28731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28732 (eval "$ac_link") 2>conftest.er1
28734 grep -v '^ *+' conftest.er1 >conftest.err
28736 cat conftest.err >&5
28737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 (exit $ac_status); } && {
28739 test -z "$ac_c_werror_flag" ||
28740 test ! -s conftest.err
28741 } && test -s conftest$ac_exeext &&
28742 $as_test_x conftest$ac_exeext; then
28743 ac_cv_lib_ssl_ssl2_connect=yes
28745 echo "$as_me: failed program was:" >&5
28746 sed 's/^/| /' conftest.$ac_ext >&5
28748 ac_cv_lib_ssl_ssl2_connect=no
28751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28752 conftest$ac_exeext conftest.$ac_ext
28753 LIBS=$ac_check_lib_save_LIBS
28755 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
28756 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
28757 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
28758 AST_OPENSSL_FOUND=yes
28760 AST_OPENSSL_FOUND=no
28764 if test "${AST_OPENSSL_FOUND}" = "yes"; then
28765 OPENSSL_LIB="-lssl -lcrypto"
28766 OPENSSL_HEADER_FOUND="1"
28767 if test "x${OPENSSL_DIR}" != "x"; then
28768 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
28769 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
28770 saved_cppflags="${CPPFLAGS}"
28771 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
28772 if test "xopenssl/ssl.h" != "x" ; then
28773 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" |
$as_tr_sh`
28774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28775 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
28776 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
28777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28778 echo $ECHO_N "(cached) $ECHO_C" >&6
28780 ac_res=`eval echo '${'$as_ac_Header'}'`
28781 { echo "$as_me:$LINENO: result: $ac_res" >&5
28782 echo "${ECHO_T}$ac_res" >&6; }
28784 # Is the header compilable?
28785 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
28786 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
28787 cat >conftest.$ac_ext <<_ACEOF
28790 cat confdefs.h >>conftest.$ac_ext
28791 cat >>conftest.$ac_ext <<_ACEOF
28792 /* end confdefs.h. */
28793 $ac_includes_default
28794 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
28796 rm -f conftest.$ac_objext
28797 if { (ac_try="$ac_compile"
28798 case "(($ac_try" in
28799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28800 *) ac_try_echo
=$ac_try;;
28802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28803 (eval "$ac_compile") 2>conftest.er1
28805 grep -v '^ *+' conftest.er1
>conftest.err
28807 cat conftest.err
>&5
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); } && {
28810 test -z "$ac_c_werror_flag" ||
28811 test ! -s conftest.err
28812 } && test -s conftest.
$ac_objext; then
28813 ac_header_compiler
=yes
28815 echo "$as_me: failed program was:" >&5
28816 sed 's/^/| /' conftest.
$ac_ext >&5
28818 ac_header_compiler
=no
28821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28823 echo "${ECHO_T}$ac_header_compiler" >&6; }
28825 # Is the header present?
28826 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
28827 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
28828 cat >conftest.
$ac_ext <<_ACEOF
28831 cat confdefs.h
>>conftest.
$ac_ext
28832 cat >>conftest.
$ac_ext <<_ACEOF
28833 /* end confdefs.h. */
28834 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
28836 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28837 case "(($ac_try" in
28838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28839 *) ac_try_echo=$ac_try;;
28841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28844 grep -v '^ *+' conftest.er1 >conftest.err
28846 cat conftest.err >&5
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); } >/dev/null && {
28849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28850 test ! -s conftest.err
28852 ac_header_preproc=yes
28854 echo "$as_me: failed program was:" >&5
28855 sed 's/^/| /' conftest.$ac_ext >&5
28857 ac_header_preproc=no
28860 rm -f conftest.err conftest.$ac_ext
28861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28862 echo "${ECHO_T}$ac_header_preproc" >&6; }
28864 # So? What about this header?
28865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28867 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28868 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28869 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
28870 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
28871 ac_header_preproc=yes
28874 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
28875 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
28876 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
28877 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
28878 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
28879 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
28880 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
28881 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28882 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
28883 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
28884 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
28885 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
28887 ## ------------------------------- ##
28888 ## Report this to www.asterisk.org ##
28889 ## ------------------------------- ##
28891 ) | sed "s/^/$as_me: WARNING: /" >&2
28894 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
28895 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
28896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28897 echo $ECHO_N "(cached) $ECHO_C" >&6
28899 eval "$as_ac_Header=\$ac_header_preproc"
28901 ac_res=`eval echo '${'$as_ac_Header'}'`
28902 { echo "$as_me:$LINENO: result: $ac_res" >&5
28903 echo "${ECHO_T}$ac_res" >&6; }
28906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28907 OPENSSL_HEADER_FOUND=1
28909 OPENSSL_HEADER_FOUND=0
28914 CPPFLAGS="${saved_cppflags}"
28916 if test "xopenssl/ssl.h" != "x" ; then
28917 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
28918 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
28919 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
28920 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
28921 echo $ECHO_N "(cached) $ECHO_C" >&6
28923 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
28924 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
28926 # Is the header compilable?
28927 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
28928 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
28929 cat >conftest.$ac_ext <<_ACEOF
28932 cat confdefs.h >>conftest.$ac_ext
28933 cat >>conftest.$ac_ext <<_ACEOF
28934 /* end confdefs.h. */
28935 $ac_includes_default
28936 #include <openssl/ssl.h>
28938 rm -f conftest.$ac_objext
28939 if { (ac_try="$ac_compile"
28940 case "(($ac_try" in
28941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28942 *) ac_try_echo
=$ac_try;;
28944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28945 (eval "$ac_compile") 2>conftest.er1
28947 grep -v '^ *+' conftest.er1
>conftest.err
28949 cat conftest.err
>&5
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); } && {
28952 test -z "$ac_c_werror_flag" ||
28953 test ! -s conftest.err
28954 } && test -s conftest.
$ac_objext; then
28955 ac_header_compiler
=yes
28957 echo "$as_me: failed program was:" >&5
28958 sed 's/^/| /' conftest.
$ac_ext >&5
28960 ac_header_compiler
=no
28963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28965 echo "${ECHO_T}$ac_header_compiler" >&6; }
28967 # Is the header present?
28968 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
28969 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
28970 cat >conftest.
$ac_ext <<_ACEOF
28973 cat confdefs.h
>>conftest.
$ac_ext
28974 cat >>conftest.
$ac_ext <<_ACEOF
28975 /* end confdefs.h. */
28976 #include <openssl/ssl.h>
28978 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28979 case "(($ac_try" in
28980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28981 *) ac_try_echo=$ac_try;;
28983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28986 grep -v '^ *+' conftest.er1 >conftest.err
28988 cat conftest.err >&5
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); } >/dev/null && {
28991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28992 test ! -s conftest.err
28994 ac_header_preproc=yes
28996 echo "$as_me: failed program was:" >&5
28997 sed 's/^/| /' conftest.$ac_ext >&5
28999 ac_header_preproc=no
29002 rm -f conftest.err conftest.$ac_ext
29003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29004 echo "${ECHO_T}$ac_header_preproc" >&6; }
29006 # So? What about this header?
29007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29009 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29010 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
29012 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
29013 ac_header_preproc=yes
29016 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
29017 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
29018 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
29019 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
29020 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
29021 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
29022 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
29023 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29024 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
29025 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
29026 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
29027 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
29029 ## ------------------------------- ##
29030 ## Report this to www.asterisk.org ##
29031 ## ------------------------------- ##
29033 ) | sed "s/^/$as_me: WARNING: /" >&2
29036 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
29037 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
29038 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
29039 echo $ECHO_N "(cached) $ECHO_C" >&6
29041 ac_cv_header_openssl_ssl_h=$ac_header_preproc
29043 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
29044 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
29047 if test $ac_cv_header_openssl_ssl_h = yes; then
29048 OPENSSL_HEADER_FOUND=1
29050 OPENSSL_HEADER_FOUND=0
29056 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
29057 if test -n "${OPENSSL_MANDATORY}" ;
29059 { echo "$as_me:$LINENO: ***" >&5
29060 echo "$as_me: ***" >&6;}
29061 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
29062 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
29063 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
29064 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
29065 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
29066 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
29075 cat >>confdefs.h <<_ACEOF
29076 #define HAVE_OPENSSL 1
29080 elif test -n "${OPENSSL_MANDATORY}";
29082 { echo "$as_me:$LINENO: ***" >&5
29083 echo "$as_me: ***" >&6;}
29084 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
29085 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
29086 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29087 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29088 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
29089 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
29094 if test "$PBX_OPENSSL" = "1";
29097 if test "${USE_OSPTK}" != "no"; then
29099 if test "x${OSPTK_DIR}" != "x"; then
29100 if test -d ${OSPTK_DIR}/lib; then
29101 pbxlibdir="-L${OSPTK_DIR}/lib"
29103 pbxlibdir="-L${OSPTK_DIR}"
29106 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
29107 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
29108 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
29109 echo $ECHO_N "(cached) $ECHO_C" >&6
29111 ac_check_lib_save_LIBS=$LIBS
29112 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
29113 cat >conftest.$ac_ext <<_ACEOF
29116 cat confdefs.h >>conftest.$ac_ext
29117 cat >>conftest.$ac_ext <<_ACEOF
29118 /* end confdefs.h. */
29120 /* Override any GCC internal prototype to avoid an error.
29121 Use char because int might match the return type of a GCC
29122 builtin and then its argument prototype would still apply. */
29126 char OSPPCryptoDecrypt ();
29130 return OSPPCryptoDecrypt ();
29135 rm -f conftest.$ac_objext conftest$ac_exeext
29136 if { (ac_try="$ac_link"
29137 case "(($ac_try" in
29138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29139 *) ac_try_echo
=$ac_try;;
29141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29142 (eval "$ac_link") 2>conftest.er1
29144 grep -v '^ *+' conftest.er1
>conftest.err
29146 cat conftest.err
>&5
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); } && {
29149 test -z "$ac_c_werror_flag" ||
29150 test ! -s conftest.err
29151 } && test -s conftest
$ac_exeext &&
29152 $as_test_x conftest
$ac_exeext; then
29153 ac_cv_lib_osptk_OSPPCryptoDecrypt
=yes
29155 echo "$as_me: failed program was:" >&5
29156 sed 's/^/| /' conftest.
$ac_ext >&5
29158 ac_cv_lib_osptk_OSPPCryptoDecrypt
=no
29161 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29162 conftest
$ac_exeext conftest.
$ac_ext
29163 LIBS
=$ac_check_lib_save_LIBS
29165 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
29166 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
29167 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
29168 AST_OSPTK_FOUND
=yes
29174 if test "${AST_OSPTK_FOUND}" = "yes"; then
29175 OSPTK_LIB
="-losptk -lcrypto -lssl"
29176 OSPTK_HEADER_FOUND
="1"
29177 if test "x${OSPTK_DIR}" != "x"; then
29178 OSPTK_LIB
="${pbxlibdir} ${OSPTK_LIB}"
29179 OSPTK_INCLUDE
="-I${OSPTK_DIR}/include"
29180 saved_cppflags
="${CPPFLAGS}"
29181 CPPFLAGS
="${CPPFLAGS} -I${OSPTK_DIR}/include"
29182 if test "xosp/osp.h" != "x" ; then
29183 as_ac_Header
=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
29184 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29185 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
29186 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
29187 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29188 echo $ECHO_N "(cached) $ECHO_C" >&6
29190 ac_res
=`eval echo '${'$as_ac_Header'}'`
29191 { echo "$as_me:$LINENO: result: $ac_res" >&5
29192 echo "${ECHO_T}$ac_res" >&6; }
29194 # Is the header compilable?
29195 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
29196 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
29197 cat >conftest.
$ac_ext <<_ACEOF
29200 cat confdefs.h
>>conftest.
$ac_ext
29201 cat >>conftest.
$ac_ext <<_ACEOF
29202 /* end confdefs.h. */
29203 $ac_includes_default
29204 #include <${OSPTK_DIR}/include/osp/osp.h>
29206 rm -f conftest.
$ac_objext
29207 if { (ac_try
="$ac_compile"
29208 case "(($ac_try" in
29209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29210 *) ac_try_echo=$ac_try;;
29212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29213 (eval "$ac_compile") 2>conftest.er1
29215 grep -v '^ *+' conftest.er1 >conftest.err
29217 cat conftest.err >&5
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); } && {
29220 test -z "$ac_c_werror_flag" ||
29221 test ! -s conftest.err
29222 } && test -s conftest.$ac_objext; then
29223 ac_header_compiler=yes
29225 echo "$as_me: failed program was:" >&5
29226 sed 's/^/| /' conftest.$ac_ext >&5
29228 ac_header_compiler=no
29231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29233 echo "${ECHO_T}$ac_header_compiler" >&6; }
29235 # Is the header present?
29236 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
29237 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
29238 cat >conftest.$ac_ext <<_ACEOF
29241 cat confdefs.h >>conftest.$ac_ext
29242 cat >>conftest.$ac_ext <<_ACEOF
29243 /* end confdefs.h. */
29244 #include <${OSPTK_DIR}/include/osp/osp.h>
29246 if { (ac_try="$ac_cpp conftest.$ac_ext"
29247 case "(($ac_try" in
29248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29249 *) ac_try_echo
=$ac_try;;
29251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29254 grep -v '^ *+' conftest.er1
>conftest.err
29256 cat conftest.err
>&5
29257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258 (exit $ac_status); } >/dev
/null
&& {
29259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29260 test ! -s conftest.err
29262 ac_header_preproc
=yes
29264 echo "$as_me: failed program was:" >&5
29265 sed 's/^/| /' conftest.
$ac_ext >&5
29267 ac_header_preproc
=no
29270 rm -f conftest.err conftest.
$ac_ext
29271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29272 echo "${ECHO_T}$ac_header_preproc" >&6; }
29274 # So? What about this header?
29275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29277 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
29278 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29279 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
29280 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
29281 ac_header_preproc
=yes
29284 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
29285 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
29286 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
29287 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
29288 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
29289 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
29290 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
29291 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
29292 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
29293 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
29294 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
29295 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
29297 ## ------------------------------- ##
29298 ## Report this to www.asterisk.org ##
29299 ## ------------------------------- ##
29301 ) |
sed "s/^/$as_me: WARNING: /" >&2
29304 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
29305 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
29306 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29307 echo $ECHO_N "(cached) $ECHO_C" >&6
29309 eval "$as_ac_Header=\$ac_header_preproc"
29311 ac_res
=`eval echo '${'$as_ac_Header'}'`
29312 { echo "$as_me:$LINENO: result: $ac_res" >&5
29313 echo "${ECHO_T}$ac_res" >&6; }
29316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29317 OSPTK_HEADER_FOUND
=1
29319 OSPTK_HEADER_FOUND
=0
29324 CPPFLAGS
="${saved_cppflags}"
29326 if test "xosp/osp.h" != "x" ; then
29327 if test "${ac_cv_header_osp_osp_h+set}" = set; then
29328 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
29329 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
29330 if test "${ac_cv_header_osp_osp_h+set}" = set; then
29331 echo $ECHO_N "(cached) $ECHO_C" >&6
29333 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
29334 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
29336 # Is the header compilable?
29337 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
29338 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
29339 cat >conftest.
$ac_ext <<_ACEOF
29342 cat confdefs.h
>>conftest.
$ac_ext
29343 cat >>conftest.
$ac_ext <<_ACEOF
29344 /* end confdefs.h. */
29345 $ac_includes_default
29346 #include <osp/osp.h>
29348 rm -f conftest.
$ac_objext
29349 if { (ac_try
="$ac_compile"
29350 case "(($ac_try" in
29351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29352 *) ac_try_echo=$ac_try;;
29354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355 (eval "$ac_compile") 2>conftest.er1
29357 grep -v '^ *+' conftest.er1 >conftest.err
29359 cat conftest.err >&5
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); } && {
29362 test -z "$ac_c_werror_flag" ||
29363 test ! -s conftest.err
29364 } && test -s conftest.$ac_objext; then
29365 ac_header_compiler=yes
29367 echo "$as_me: failed program was:" >&5
29368 sed 's/^/| /' conftest.$ac_ext >&5
29370 ac_header_compiler=no
29373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29375 echo "${ECHO_T}$ac_header_compiler" >&6; }
29377 # Is the header present?
29378 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
29379 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
29380 cat >conftest.$ac_ext <<_ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h. */
29386 #include <osp/osp.h>
29388 if { (ac_try="$ac_cpp conftest.$ac_ext"
29389 case "(($ac_try" in
29390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29391 *) ac_try_echo
=$ac_try;;
29393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29396 grep -v '^ *+' conftest.er1
>conftest.err
29398 cat conftest.err
>&5
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); } >/dev
/null
&& {
29401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29402 test ! -s conftest.err
29404 ac_header_preproc
=yes
29406 echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.
$ac_ext >&5
29409 ac_header_preproc
=no
29412 rm -f conftest.err conftest.
$ac_ext
29413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29414 echo "${ECHO_T}$ac_header_preproc" >&6; }
29416 # So? What about this header?
29417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29419 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
29420 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29421 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
29422 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
29423 ac_header_preproc
=yes
29426 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
29427 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
29428 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
29429 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
29430 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
29431 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
29432 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
29433 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
29434 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
29435 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
29436 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
29437 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
29439 ## ------------------------------- ##
29440 ## Report this to www.asterisk.org ##
29441 ## ------------------------------- ##
29443 ) |
sed "s/^/$as_me: WARNING: /" >&2
29446 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
29447 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
29448 if test "${ac_cv_header_osp_osp_h+set}" = set; then
29449 echo $ECHO_N "(cached) $ECHO_C" >&6
29451 ac_cv_header_osp_osp_h
=$ac_header_preproc
29453 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
29454 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
29457 if test $ac_cv_header_osp_osp_h = yes; then
29458 OSPTK_HEADER_FOUND
=1
29460 OSPTK_HEADER_FOUND
=0
29466 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
29467 if test -n "${OSPTK_MANDATORY}" ;
29469 { echo "$as_me:$LINENO: ***" >&5
29470 echo "$as_me: ***" >&6;}
29471 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
29472 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
29473 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
29474 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
29475 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
29476 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
29485 cat >>confdefs.h
<<_ACEOF
29486 #define HAVE_OSPTK 1
29490 elif test -n "${OSPTK_MANDATORY}";
29492 { echo "$as_me:$LINENO: ***" >&5
29493 echo "$as_me: ***" >&6;}
29494 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
29495 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
29496 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29497 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29498 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
29499 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
29507 if test "${USE_FREETDS}" != "no"; then
29509 if test "x${FREETDS_DIR}" != "x"; then
29510 if test -d ${FREETDS_DIR}/lib
; then
29511 pbxlibdir
="-L${FREETDS_DIR}/lib"
29513 pbxlibdir
="-L${FREETDS_DIR}"
29516 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
29517 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
29518 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
29519 echo $ECHO_N "(cached) $ECHO_C" >&6
29521 ac_check_lib_save_LIBS
=$LIBS
29522 LIBS
="-ltds ${pbxlibdir} $LIBS"
29523 cat >conftest.
$ac_ext <<_ACEOF
29526 cat confdefs.h
>>conftest.
$ac_ext
29527 cat >>conftest.
$ac_ext <<_ACEOF
29528 /* end confdefs.h. */
29530 /* Override any GCC internal prototype to avoid an error.
29531 Use char because int might match the return type of a GCC
29532 builtin and then its argument prototype would still apply. */
29536 char tds_version ();
29540 return tds_version ();
29545 rm -f conftest.
$ac_objext conftest
$ac_exeext
29546 if { (ac_try
="$ac_link"
29547 case "(($ac_try" in
29548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29549 *) ac_try_echo=$ac_try;;
29551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552 (eval "$ac_link") 2>conftest.er1
29554 grep -v '^ *+' conftest.er1 >conftest.err
29556 cat conftest.err >&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } && {
29559 test -z "$ac_c_werror_flag" ||
29560 test ! -s conftest.err
29561 } && test -s conftest$ac_exeext &&
29562 $as_test_x conftest$ac_exeext; then
29563 ac_cv_lib_tds_tds_version=yes
29565 echo "$as_me: failed program was:" >&5
29566 sed 's/^/| /' conftest.$ac_ext >&5
29568 ac_cv_lib_tds_tds_version=no
29571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29572 conftest$ac_exeext conftest.$ac_ext
29573 LIBS=$ac_check_lib_save_LIBS
29575 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
29576 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
29577 if test $ac_cv_lib_tds_tds_version = yes; then
29578 AST_FREETDS_FOUND=yes
29580 AST_FREETDS_FOUND=no
29584 if test "${AST_FREETDS_FOUND}" = "yes"; then
29585 FREETDS_LIB="-ltds "
29586 FREETDS_HEADER_FOUND="1"
29587 if test "x${FREETDS_DIR}" != "x"; then
29588 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
29589 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
29590 saved_cppflags="${CPPFLAGS}"
29591 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
29592 if test "xtds.h" != "x" ; then
29593 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" |
$as_tr_sh`
29594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29595 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
29596 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
29597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29598 echo $ECHO_N "(cached) $ECHO_C" >&6
29600 ac_res=`eval echo '${'$as_ac_Header'}'`
29601 { echo "$as_me:$LINENO: result: $ac_res" >&5
29602 echo "${ECHO_T}$ac_res" >&6; }
29604 # Is the header compilable?
29605 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
29606 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
29607 cat >conftest.$ac_ext <<_ACEOF
29610 cat confdefs.h >>conftest.$ac_ext
29611 cat >>conftest.$ac_ext <<_ACEOF
29612 /* end confdefs.h. */
29613 $ac_includes_default
29614 #include <${FREETDS_DIR}/include/tds.h>
29616 rm -f conftest.$ac_objext
29617 if { (ac_try="$ac_compile"
29618 case "(($ac_try" in
29619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29620 *) ac_try_echo
=$ac_try;;
29622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623 (eval "$ac_compile") 2>conftest.er1
29625 grep -v '^ *+' conftest.er1
>conftest.err
29627 cat conftest.err
>&5
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); } && {
29630 test -z "$ac_c_werror_flag" ||
29631 test ! -s conftest.err
29632 } && test -s conftest.
$ac_objext; then
29633 ac_header_compiler
=yes
29635 echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.
$ac_ext >&5
29638 ac_header_compiler
=no
29641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29643 echo "${ECHO_T}$ac_header_compiler" >&6; }
29645 # Is the header present?
29646 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
29647 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
29648 cat >conftest.
$ac_ext <<_ACEOF
29651 cat confdefs.h
>>conftest.
$ac_ext
29652 cat >>conftest.
$ac_ext <<_ACEOF
29653 /* end confdefs.h. */
29654 #include <${FREETDS_DIR}/include/tds.h>
29656 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29657 case "(($ac_try" in
29658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29659 *) ac_try_echo=$ac_try;;
29661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29664 grep -v '^ *+' conftest.er1 >conftest.err
29666 cat conftest.err >&5
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); } >/dev/null && {
29669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29670 test ! -s conftest.err
29672 ac_header_preproc=yes
29674 echo "$as_me: failed program was:" >&5
29675 sed 's/^/| /' conftest.$ac_ext >&5
29677 ac_header_preproc=no
29680 rm -f conftest.err conftest.$ac_ext
29681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29682 echo "${ECHO_T}$ac_header_preproc" >&6; }
29684 # So? What about this header?
29685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29687 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
29688 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29689 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
29690 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
29691 ac_header_preproc=yes
29694 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
29695 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
29696 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
29697 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
29698 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
29699 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
29700 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
29701 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
29702 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
29703 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
29704 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
29705 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
29707 ## ------------------------------- ##
29708 ## Report this to www.asterisk.org ##
29709 ## ------------------------------- ##
29711 ) | sed "s/^/$as_me: WARNING: /" >&2
29714 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
29715 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
29716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29717 echo $ECHO_N "(cached) $ECHO_C" >&6
29719 eval "$as_ac_Header=\$ac_header_preproc"
29721 ac_res=`eval echo '${'$as_ac_Header'}'`
29722 { echo "$as_me:$LINENO: result: $ac_res" >&5
29723 echo "${ECHO_T}$ac_res" >&6; }
29726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29727 FREETDS_HEADER_FOUND=1
29729 FREETDS_HEADER_FOUND=0
29734 CPPFLAGS="${saved_cppflags}"
29736 if test "xtds.h" != "x" ; then
29737 if test "${ac_cv_header_tds_h+set}" = set; then
29738 { echo "$as_me:$LINENO: checking for tds.h" >&5
29739 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
29740 if test "${ac_cv_header_tds_h+set}" = set; then
29741 echo $ECHO_N "(cached) $ECHO_C" >&6
29743 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
29744 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
29746 # Is the header compilable?
29747 { echo "$as_me:$LINENO: checking tds.h usability" >&5
29748 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
29749 cat >conftest.$ac_ext <<_ACEOF
29752 cat confdefs.h >>conftest.$ac_ext
29753 cat >>conftest.$ac_ext <<_ACEOF
29754 /* end confdefs.h. */
29755 $ac_includes_default
29758 rm -f conftest.$ac_objext
29759 if { (ac_try="$ac_compile"
29760 case "(($ac_try" in
29761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29762 *) ac_try_echo
=$ac_try;;
29764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29765 (eval "$ac_compile") 2>conftest.er1
29767 grep -v '^ *+' conftest.er1
>conftest.err
29769 cat conftest.err
>&5
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); } && {
29772 test -z "$ac_c_werror_flag" ||
29773 test ! -s conftest.err
29774 } && test -s conftest.
$ac_objext; then
29775 ac_header_compiler
=yes
29777 echo "$as_me: failed program was:" >&5
29778 sed 's/^/| /' conftest.
$ac_ext >&5
29780 ac_header_compiler
=no
29783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29785 echo "${ECHO_T}$ac_header_compiler" >&6; }
29787 # Is the header present?
29788 { echo "$as_me:$LINENO: checking tds.h presence" >&5
29789 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
29790 cat >conftest.
$ac_ext <<_ACEOF
29793 cat confdefs.h
>>conftest.
$ac_ext
29794 cat >>conftest.
$ac_ext <<_ACEOF
29795 /* end confdefs.h. */
29798 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29799 case "(($ac_try" in
29800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29801 *) ac_try_echo=$ac_try;;
29803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29806 grep -v '^ *+' conftest.er1 >conftest.err
29808 cat conftest.err >&5
29809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810 (exit $ac_status); } >/dev/null && {
29811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29812 test ! -s conftest.err
29814 ac_header_preproc=yes
29816 echo "$as_me: failed program was:" >&5
29817 sed 's/^/| /' conftest.$ac_ext >&5
29819 ac_header_preproc=no
29822 rm -f conftest.err conftest.$ac_ext
29823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29824 echo "${ECHO_T}$ac_header_preproc" >&6; }
29826 # So? What about this header?
29827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29829 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
29830 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29831 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
29832 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
29833 ac_header_preproc=yes
29836 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
29837 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
29838 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
29839 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
29840 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
29841 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
29842 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
29843 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
29844 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
29845 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
29846 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
29847 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
29849 ## ------------------------------- ##
29850 ## Report this to www.asterisk.org ##
29851 ## ------------------------------- ##
29853 ) | sed "s/^/$as_me: WARNING: /" >&2
29856 { echo "$as_me:$LINENO: checking for tds.h" >&5
29857 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
29858 if test "${ac_cv_header_tds_h+set}" = set; then
29859 echo $ECHO_N "(cached) $ECHO_C" >&6
29861 ac_cv_header_tds_h=$ac_header_preproc
29863 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
29864 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
29867 if test $ac_cv_header_tds_h = yes; then
29868 FREETDS_HEADER_FOUND=1
29870 FREETDS_HEADER_FOUND=0
29876 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
29877 if test -n "${FREETDS_MANDATORY}" ;
29879 { echo "$as_me:$LINENO: ***" >&5
29880 echo "$as_me: ***" >&6;}
29881 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
29882 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
29883 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
29884 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
29885 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
29886 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
29895 cat >>confdefs.h <<_ACEOF
29896 #define HAVE_FREETDS 1
29900 elif test -n "${FREETDS_MANDATORY}";
29902 { echo "$as_me:$LINENO: ***" >&5
29903 echo "$as_me: ***" >&6;}
29904 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
29905 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
29906 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29907 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29908 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
29909 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
29914 if test "${PBX_FREETDS}" != "0";
29916 case `grep TDS_VERSION_NO
${FREETDS_DIR:-/usr}/include
/tdsver.h
` in
29918 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
29921 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
29924 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
29927 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
29933 if test "${USE_TERMCAP}" != "no"; then
29935 if test "x${TERMCAP_DIR}" != "x"; then
29936 if test -d ${TERMCAP_DIR}/lib; then
29937 pbxlibdir="-L${TERMCAP_DIR}/lib"
29939 pbxlibdir="-L${TERMCAP_DIR}"
29942 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
29943 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
29944 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
29945 echo $ECHO_N "(cached) $ECHO_C" >&6
29947 ac_check_lib_save_LIBS=$LIBS
29948 LIBS="-ltermcap ${pbxlibdir} $LIBS"
29949 cat >conftest.$ac_ext <<_ACEOF
29952 cat confdefs.h >>conftest.$ac_ext
29953 cat >>conftest.$ac_ext <<_ACEOF
29954 /* end confdefs.h. */
29956 /* Override any GCC internal prototype to avoid an error.
29957 Use char because int might match the return type of a GCC
29958 builtin and then its argument prototype would still apply. */
29971 rm -f conftest.$ac_objext conftest$ac_exeext
29972 if { (ac_try="$ac_link"
29973 case "(($ac_try" in
29974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29975 *) ac_try_echo
=$ac_try;;
29977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29978 (eval "$ac_link") 2>conftest.er1
29980 grep -v '^ *+' conftest.er1
>conftest.err
29982 cat conftest.err
>&5
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); } && {
29985 test -z "$ac_c_werror_flag" ||
29986 test ! -s conftest.err
29987 } && test -s conftest
$ac_exeext &&
29988 $as_test_x conftest
$ac_exeext; then
29989 ac_cv_lib_termcap_tgetent
=yes
29991 echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.
$ac_ext >&5
29994 ac_cv_lib_termcap_tgetent
=no
29997 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29998 conftest
$ac_exeext conftest.
$ac_ext
29999 LIBS
=$ac_check_lib_save_LIBS
30001 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
30002 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
30003 if test $ac_cv_lib_termcap_tgetent = yes; then
30004 AST_TERMCAP_FOUND
=yes
30006 AST_TERMCAP_FOUND
=no
30010 if test "${AST_TERMCAP_FOUND}" = "yes"; then
30011 TERMCAP_LIB
="-ltermcap "
30012 TERMCAP_HEADER_FOUND
="1"
30013 if test "x${TERMCAP_DIR}" != "x"; then
30014 TERMCAP_LIB
="${pbxlibdir} ${TERMCAP_LIB}"
30015 TERMCAP_INCLUDE
="-I${TERMCAP_DIR}/include"
30016 saved_cppflags
="${CPPFLAGS}"
30017 CPPFLAGS
="${CPPFLAGS} -I${TERMCAP_DIR}/include"
30018 if test "x" != "x" ; then
30019 as_ac_Header
=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
30020 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30021 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
30022 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
30023 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30024 echo $ECHO_N "(cached) $ECHO_C" >&6
30026 ac_res
=`eval echo '${'$as_ac_Header'}'`
30027 { echo "$as_me:$LINENO: result: $ac_res" >&5
30028 echo "${ECHO_T}$ac_res" >&6; }
30030 # Is the header compilable?
30031 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
30032 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
30033 cat >conftest.
$ac_ext <<_ACEOF
30036 cat confdefs.h
>>conftest.
$ac_ext
30037 cat >>conftest.
$ac_ext <<_ACEOF
30038 /* end confdefs.h. */
30039 $ac_includes_default
30040 #include <${TERMCAP_DIR}/include/>
30042 rm -f conftest.
$ac_objext
30043 if { (ac_try
="$ac_compile"
30044 case "(($ac_try" in
30045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30046 *) ac_try_echo=$ac_try;;
30048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049 (eval "$ac_compile") 2>conftest.er1
30051 grep -v '^ *+' conftest.er1 >conftest.err
30053 cat conftest.err >&5
30054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30055 (exit $ac_status); } && {
30056 test -z "$ac_c_werror_flag" ||
30057 test ! -s conftest.err
30058 } && test -s conftest.$ac_objext; then
30059 ac_header_compiler=yes
30061 echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30064 ac_header_compiler=no
30067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30069 echo "${ECHO_T}$ac_header_compiler" >&6; }
30071 # Is the header present?
30072 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
30073 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
30074 cat >conftest.$ac_ext <<_ACEOF
30077 cat confdefs.h >>conftest.$ac_ext
30078 cat >>conftest.$ac_ext <<_ACEOF
30079 /* end confdefs.h. */
30080 #include <${TERMCAP_DIR}/include/>
30082 if { (ac_try="$ac_cpp conftest.$ac_ext"
30083 case "(($ac_try" in
30084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30085 *) ac_try_echo
=$ac_try;;
30087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30090 grep -v '^ *+' conftest.er1
>conftest.err
30092 cat conftest.err
>&5
30093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30094 (exit $ac_status); } >/dev
/null
&& {
30095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30096 test ! -s conftest.err
30098 ac_header_preproc
=yes
30100 echo "$as_me: failed program was:" >&5
30101 sed 's/^/| /' conftest.
$ac_ext >&5
30103 ac_header_preproc
=no
30106 rm -f conftest.err conftest.
$ac_ext
30107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30108 echo "${ECHO_T}$ac_header_preproc" >&6; }
30110 # So? What about this header?
30111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30113 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
30114 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
30115 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
30116 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
30117 ac_header_preproc
=yes
30120 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
30121 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
30122 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
30123 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
30124 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
30125 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
30126 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
30127 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
30128 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
30129 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
30130 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
30131 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
30133 ## ------------------------------- ##
30134 ## Report this to www.asterisk.org ##
30135 ## ------------------------------- ##
30137 ) |
sed "s/^/$as_me: WARNING: /" >&2
30140 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
30141 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
30142 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30143 echo $ECHO_N "(cached) $ECHO_C" >&6
30145 eval "$as_ac_Header=\$ac_header_preproc"
30147 ac_res
=`eval echo '${'$as_ac_Header'}'`
30148 { echo "$as_me:$LINENO: result: $ac_res" >&5
30149 echo "${ECHO_T}$ac_res" >&6; }
30152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30153 TERMCAP_HEADER_FOUND
=1
30155 TERMCAP_HEADER_FOUND
=0
30160 CPPFLAGS
="${saved_cppflags}"
30162 if test "x" != "x" ; then
30163 if test "${ac_cv_header_+set}" = set; then
30164 { echo "$as_me:$LINENO: checking for " >&5
30165 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30166 if test "${ac_cv_header_+set}" = set; then
30167 echo $ECHO_N "(cached) $ECHO_C" >&6
30169 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30170 echo "${ECHO_T}$ac_cv_header_" >&6; }
30172 # Is the header compilable?
30173 { echo "$as_me:$LINENO: checking usability" >&5
30174 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30175 cat >conftest.
$ac_ext <<_ACEOF
30178 cat confdefs.h
>>conftest.
$ac_ext
30179 cat >>conftest.
$ac_ext <<_ACEOF
30180 /* end confdefs.h. */
30181 $ac_includes_default
30184 rm -f conftest.
$ac_objext
30185 if { (ac_try
="$ac_compile"
30186 case "(($ac_try" in
30187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30188 *) ac_try_echo=$ac_try;;
30190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191 (eval "$ac_compile") 2>conftest.er1
30193 grep -v '^ *+' conftest.er1 >conftest.err
30195 cat conftest.err >&5
30196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197 (exit $ac_status); } && {
30198 test -z "$ac_c_werror_flag" ||
30199 test ! -s conftest.err
30200 } && test -s conftest.$ac_objext; then
30201 ac_header_compiler=yes
30203 echo "$as_me: failed program was:" >&5
30204 sed 's/^/| /' conftest.$ac_ext >&5
30206 ac_header_compiler=no
30209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30211 echo "${ECHO_T}$ac_header_compiler" >&6; }
30213 # Is the header present?
30214 { echo "$as_me:$LINENO: checking presence" >&5
30215 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30216 cat >conftest.$ac_ext <<_ACEOF
30219 cat confdefs.h >>conftest.$ac_ext
30220 cat >>conftest.$ac_ext <<_ACEOF
30221 /* end confdefs.h. */
30224 if { (ac_try="$ac_cpp conftest.$ac_ext"
30225 case "(($ac_try" in
30226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30227 *) ac_try_echo
=$ac_try;;
30229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30232 grep -v '^ *+' conftest.er1
>conftest.err
30234 cat conftest.err
>&5
30235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236 (exit $ac_status); } >/dev
/null
&& {
30237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30238 test ! -s conftest.err
30240 ac_header_preproc
=yes
30242 echo "$as_me: failed program was:" >&5
30243 sed 's/^/| /' conftest.
$ac_ext >&5
30245 ac_header_preproc
=no
30248 rm -f conftest.err conftest.
$ac_ext
30249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30250 echo "${ECHO_T}$ac_header_preproc" >&6; }
30252 # So? What about this header?
30253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30255 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30256 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30257 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30258 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30259 ac_header_preproc
=yes
30262 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30263 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30264 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30265 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30266 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30267 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30268 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30269 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30270 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30271 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30272 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30273 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30275 ## ------------------------------- ##
30276 ## Report this to www.asterisk.org ##
30277 ## ------------------------------- ##
30279 ) |
sed "s/^/$as_me: WARNING: /" >&2
30282 { echo "$as_me:$LINENO: checking for " >&5
30283 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30284 if test "${ac_cv_header_+set}" = set; then
30285 echo $ECHO_N "(cached) $ECHO_C" >&6
30287 ac_cv_header_
=$ac_header_preproc
30289 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30290 echo "${ECHO_T}$ac_cv_header_" >&6; }
30293 if test $ac_cv_header_ = yes; then
30294 TERMCAP_HEADER_FOUND
=1
30296 TERMCAP_HEADER_FOUND
=0
30302 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
30303 if test -n "${TERMCAP_MANDATORY}" ;
30305 { echo "$as_me:$LINENO: ***" >&5
30306 echo "$as_me: ***" >&6;}
30307 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
30308 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
30309 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
30310 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
30311 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
30312 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
30321 cat >>confdefs.h
<<_ACEOF
30322 #define HAVE_TERMCAP 1
30326 elif test -n "${TERMCAP_MANDATORY}";
30328 { echo "$as_me:$LINENO: ***" >&5
30329 echo "$as_me: ***" >&6;}
30330 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
30331 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
30332 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30333 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30334 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
30335 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
30342 if test "${USE_TINFO}" != "no"; then
30344 if test "x${TINFO_DIR}" != "x"; then
30345 if test -d ${TINFO_DIR}/lib
; then
30346 pbxlibdir
="-L${TINFO_DIR}/lib"
30348 pbxlibdir
="-L${TINFO_DIR}"
30351 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
30352 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
30353 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
30354 echo $ECHO_N "(cached) $ECHO_C" >&6
30356 ac_check_lib_save_LIBS
=$LIBS
30357 LIBS
="-ltinfo ${pbxlibdir} $LIBS"
30358 cat >conftest.
$ac_ext <<_ACEOF
30361 cat confdefs.h
>>conftest.
$ac_ext
30362 cat >>conftest.
$ac_ext <<_ACEOF
30363 /* end confdefs.h. */
30365 /* Override any GCC internal prototype to avoid an error.
30366 Use char because int might match the return type of a GCC
30367 builtin and then its argument prototype would still apply. */
30380 rm -f conftest.
$ac_objext conftest
$ac_exeext
30381 if { (ac_try
="$ac_link"
30382 case "(($ac_try" in
30383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30384 *) ac_try_echo=$ac_try;;
30386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30387 (eval "$ac_link") 2>conftest.er1
30389 grep -v '^ *+' conftest.er1 >conftest.err
30391 cat conftest.err >&5
30392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393 (exit $ac_status); } && {
30394 test -z "$ac_c_werror_flag" ||
30395 test ! -s conftest.err
30396 } && test -s conftest$ac_exeext &&
30397 $as_test_x conftest$ac_exeext; then
30398 ac_cv_lib_tinfo_tgetent=yes
30400 echo "$as_me: failed program was:" >&5
30401 sed 's/^/| /' conftest.$ac_ext >&5
30403 ac_cv_lib_tinfo_tgetent=no
30406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30407 conftest$ac_exeext conftest.$ac_ext
30408 LIBS=$ac_check_lib_save_LIBS
30410 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
30411 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
30412 if test $ac_cv_lib_tinfo_tgetent = yes; then
30413 AST_TINFO_FOUND=yes
30419 if test "${AST_TINFO_FOUND}" = "yes"; then
30420 TINFO_LIB="-ltinfo "
30421 TINFO_HEADER_FOUND="1"
30422 if test "x${TINFO_DIR}" != "x"; then
30423 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
30424 TINFO_INCLUDE="-I${TINFO_DIR}/include"
30425 saved_cppflags="${CPPFLAGS}"
30426 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
30427 if test "x" != "x" ; then
30428 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" |
$as_tr_sh`
30429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30430 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
30431 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
30432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30433 echo $ECHO_N "(cached) $ECHO_C" >&6
30435 ac_res=`eval echo '${'$as_ac_Header'}'`
30436 { echo "$as_me:$LINENO: result: $ac_res" >&5
30437 echo "${ECHO_T}$ac_res" >&6; }
30439 # Is the header compilable?
30440 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
30441 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
30442 cat >conftest.$ac_ext <<_ACEOF
30445 cat confdefs.h >>conftest.$ac_ext
30446 cat >>conftest.$ac_ext <<_ACEOF
30447 /* end confdefs.h. */
30448 $ac_includes_default
30449 #include <${TINFO_DIR}/include/>
30451 rm -f conftest.$ac_objext
30452 if { (ac_try="$ac_compile"
30453 case "(($ac_try" in
30454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30455 *) ac_try_echo
=$ac_try;;
30457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30458 (eval "$ac_compile") 2>conftest.er1
30460 grep -v '^ *+' conftest.er1
>conftest.err
30462 cat conftest.err
>&5
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); } && {
30465 test -z "$ac_c_werror_flag" ||
30466 test ! -s conftest.err
30467 } && test -s conftest.
$ac_objext; then
30468 ac_header_compiler
=yes
30470 echo "$as_me: failed program was:" >&5
30471 sed 's/^/| /' conftest.
$ac_ext >&5
30473 ac_header_compiler
=no
30476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30478 echo "${ECHO_T}$ac_header_compiler" >&6; }
30480 # Is the header present?
30481 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
30482 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
30483 cat >conftest.
$ac_ext <<_ACEOF
30486 cat confdefs.h
>>conftest.
$ac_ext
30487 cat >>conftest.
$ac_ext <<_ACEOF
30488 /* end confdefs.h. */
30489 #include <${TINFO_DIR}/include/>
30491 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30492 case "(($ac_try" in
30493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30494 *) ac_try_echo=$ac_try;;
30496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30499 grep -v '^ *+' conftest.er1 >conftest.err
30501 cat conftest.err >&5
30502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30503 (exit $ac_status); } >/dev/null && {
30504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30505 test ! -s conftest.err
30507 ac_header_preproc=yes
30509 echo "$as_me: failed program was:" >&5
30510 sed 's/^/| /' conftest.$ac_ext >&5
30512 ac_header_preproc=no
30515 rm -f conftest.err conftest.$ac_ext
30516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30517 echo "${ECHO_T}$ac_header_preproc" >&6; }
30519 # So? What about this header?
30520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30522 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
30523 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
30524 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
30525 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
30526 ac_header_preproc=yes
30529 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
30530 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
30531 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
30532 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
30533 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
30534 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
30535 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
30536 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
30537 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
30538 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
30539 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
30540 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
30542 ## ------------------------------- ##
30543 ## Report this to www.asterisk.org ##
30544 ## ------------------------------- ##
30546 ) | sed "s/^/$as_me: WARNING: /" >&2
30549 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
30550 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
30551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30552 echo $ECHO_N "(cached) $ECHO_C" >&6
30554 eval "$as_ac_Header=\$ac_header_preproc"
30556 ac_res=`eval echo '${'$as_ac_Header'}'`
30557 { echo "$as_me:$LINENO: result: $ac_res" >&5
30558 echo "${ECHO_T}$ac_res" >&6; }
30561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30562 TINFO_HEADER_FOUND=1
30564 TINFO_HEADER_FOUND=0
30569 CPPFLAGS="${saved_cppflags}"
30571 if test "x" != "x" ; then
30572 if test "${ac_cv_header_+set}" = set; then
30573 { echo "$as_me:$LINENO: checking for " >&5
30574 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30575 if test "${ac_cv_header_+set}" = set; then
30576 echo $ECHO_N "(cached) $ECHO_C" >&6
30578 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30579 echo "${ECHO_T}$ac_cv_header_" >&6; }
30581 # Is the header compilable?
30582 { echo "$as_me:$LINENO: checking usability" >&5
30583 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30584 cat >conftest.$ac_ext <<_ACEOF
30587 cat confdefs.h >>conftest.$ac_ext
30588 cat >>conftest.$ac_ext <<_ACEOF
30589 /* end confdefs.h. */
30590 $ac_includes_default
30593 rm -f conftest.$ac_objext
30594 if { (ac_try="$ac_compile"
30595 case "(($ac_try" in
30596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30597 *) ac_try_echo
=$ac_try;;
30599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30600 (eval "$ac_compile") 2>conftest.er1
30602 grep -v '^ *+' conftest.er1
>conftest.err
30604 cat conftest.err
>&5
30605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); } && {
30607 test -z "$ac_c_werror_flag" ||
30608 test ! -s conftest.err
30609 } && test -s conftest.
$ac_objext; then
30610 ac_header_compiler
=yes
30612 echo "$as_me: failed program was:" >&5
30613 sed 's/^/| /' conftest.
$ac_ext >&5
30615 ac_header_compiler
=no
30618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30620 echo "${ECHO_T}$ac_header_compiler" >&6; }
30622 # Is the header present?
30623 { echo "$as_me:$LINENO: checking presence" >&5
30624 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30625 cat >conftest.
$ac_ext <<_ACEOF
30628 cat confdefs.h
>>conftest.
$ac_ext
30629 cat >>conftest.
$ac_ext <<_ACEOF
30630 /* end confdefs.h. */
30633 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30634 case "(($ac_try" in
30635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30636 *) ac_try_echo=$ac_try;;
30638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30641 grep -v '^ *+' conftest.er1 >conftest.err
30643 cat conftest.err >&5
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); } >/dev/null && {
30646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30647 test ! -s conftest.err
30649 ac_header_preproc=yes
30651 echo "$as_me: failed program was:" >&5
30652 sed 's/^/| /' conftest.$ac_ext >&5
30654 ac_header_preproc=no
30657 rm -f conftest.err conftest.$ac_ext
30658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30659 echo "${ECHO_T}$ac_header_preproc" >&6; }
30661 # So? What about this header?
30662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30664 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30665 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30666 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30667 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30668 ac_header_preproc=yes
30671 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30672 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30673 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30674 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30675 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30676 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30677 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30678 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30679 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30680 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30681 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30682 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30684 ## ------------------------------- ##
30685 ## Report this to www.asterisk.org ##
30686 ## ------------------------------- ##
30688 ) | sed "s/^/$as_me: WARNING: /" >&2
30691 { echo "$as_me:$LINENO: checking for " >&5
30692 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30693 if test "${ac_cv_header_+set}" = set; then
30694 echo $ECHO_N "(cached) $ECHO_C" >&6
30696 ac_cv_header_=$ac_header_preproc
30698 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30699 echo "${ECHO_T}$ac_cv_header_" >&6; }
30702 if test $ac_cv_header_ = yes; then
30703 TINFO_HEADER_FOUND=1
30705 TINFO_HEADER_FOUND=0
30711 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
30712 if test -n "${TINFO_MANDATORY}" ;
30714 { echo "$as_me:$LINENO: ***" >&5
30715 echo "$as_me: ***" >&6;}
30716 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
30717 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
30718 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
30719 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
30720 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
30721 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
30730 cat >>confdefs.h <<_ACEOF
30731 #define HAVE_TINFO 1
30735 elif test -n "${TINFO_MANDATORY}";
30737 { echo "$as_me:$LINENO: ***" >&5
30738 echo "$as_me: ***" >&6;}
30739 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
30740 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
30741 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30742 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30743 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
30744 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
30750 if test "${host_os}" != "linux-gnu" ; then
30751 tonezone_extra="-lm"
30755 if test "${USE_TONEZONE}" != "no"; then
30757 if test "x${TONEZONE_DIR}" != "x"; then
30758 if test -d ${TONEZONE_DIR}/lib; then
30759 pbxlibdir="-L${TONEZONE_DIR}/lib"
30761 pbxlibdir="-L${TONEZONE_DIR}"
30764 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
30765 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
30766 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
30767 echo $ECHO_N "(cached) $ECHO_C" >&6
30769 ac_check_lib_save_LIBS=$LIBS
30770 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
30771 cat >conftest.$ac_ext <<_ACEOF
30774 cat confdefs.h >>conftest.$ac_ext
30775 cat >>conftest.$ac_ext <<_ACEOF
30776 /* end confdefs.h. */
30778 /* Override any GCC internal prototype to avoid an error.
30779 Use char because int might match the return type of a GCC
30780 builtin and then its argument prototype would still apply. */
30784 char tone_zone_find ();
30788 return tone_zone_find ();
30793 rm -f conftest.$ac_objext conftest$ac_exeext
30794 if { (ac_try="$ac_link"
30795 case "(($ac_try" in
30796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30797 *) ac_try_echo
=$ac_try;;
30799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800 (eval "$ac_link") 2>conftest.er1
30802 grep -v '^ *+' conftest.er1
>conftest.err
30804 cat conftest.err
>&5
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); } && {
30807 test -z "$ac_c_werror_flag" ||
30808 test ! -s conftest.err
30809 } && test -s conftest
$ac_exeext &&
30810 $as_test_x conftest
$ac_exeext; then
30811 ac_cv_lib_tonezone_tone_zone_find
=yes
30813 echo "$as_me: failed program was:" >&5
30814 sed 's/^/| /' conftest.
$ac_ext >&5
30816 ac_cv_lib_tonezone_tone_zone_find
=no
30819 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30820 conftest
$ac_exeext conftest.
$ac_ext
30821 LIBS
=$ac_check_lib_save_LIBS
30823 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
30824 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
30825 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
30826 AST_TONEZONE_FOUND
=yes
30828 AST_TONEZONE_FOUND
=no
30832 if test "${AST_TONEZONE_FOUND}" = "yes"; then
30833 TONEZONE_LIB
="-ltonezone ${tonezone_extra}"
30834 TONEZONE_HEADER_FOUND
="1"
30835 if test "x${TONEZONE_DIR}" != "x"; then
30836 TONEZONE_LIB
="${pbxlibdir} ${TONEZONE_LIB}"
30837 TONEZONE_INCLUDE
="-I${TONEZONE_DIR}/include"
30838 saved_cppflags
="${CPPFLAGS}"
30839 CPPFLAGS
="${CPPFLAGS} -I${TONEZONE_DIR}/include"
30840 if test "xzaptel/tonezone.h" != "x" ; then
30841 as_ac_Header
=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
30842 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30843 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
30844 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
30845 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30846 echo $ECHO_N "(cached) $ECHO_C" >&6
30848 ac_res
=`eval echo '${'$as_ac_Header'}'`
30849 { echo "$as_me:$LINENO: result: $ac_res" >&5
30850 echo "${ECHO_T}$ac_res" >&6; }
30852 # Is the header compilable?
30853 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
30854 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
30855 cat >conftest.
$ac_ext <<_ACEOF
30858 cat confdefs.h
>>conftest.
$ac_ext
30859 cat >>conftest.
$ac_ext <<_ACEOF
30860 /* end confdefs.h. */
30861 $ac_includes_default
30862 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
30864 rm -f conftest.
$ac_objext
30865 if { (ac_try
="$ac_compile"
30866 case "(($ac_try" in
30867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30868 *) ac_try_echo=$ac_try;;
30870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30871 (eval "$ac_compile") 2>conftest.er1
30873 grep -v '^ *+' conftest.er1 >conftest.err
30875 cat conftest.err >&5
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877 (exit $ac_status); } && {
30878 test -z "$ac_c_werror_flag" ||
30879 test ! -s conftest.err
30880 } && test -s conftest.$ac_objext; then
30881 ac_header_compiler=yes
30883 echo "$as_me: failed program was:" >&5
30884 sed 's/^/| /' conftest.$ac_ext >&5
30886 ac_header_compiler=no
30889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30891 echo "${ECHO_T}$ac_header_compiler" >&6; }
30893 # Is the header present?
30894 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
30895 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
30896 cat >conftest.$ac_ext <<_ACEOF
30899 cat confdefs.h >>conftest.$ac_ext
30900 cat >>conftest.$ac_ext <<_ACEOF
30901 /* end confdefs.h. */
30902 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
30904 if { (ac_try="$ac_cpp conftest.$ac_ext"
30905 case "(($ac_try" in
30906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30907 *) ac_try_echo
=$ac_try;;
30909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30912 grep -v '^ *+' conftest.er1
>conftest.err
30914 cat conftest.err
>&5
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); } >/dev
/null
&& {
30917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30918 test ! -s conftest.err
30920 ac_header_preproc
=yes
30922 echo "$as_me: failed program was:" >&5
30923 sed 's/^/| /' conftest.
$ac_ext >&5
30925 ac_header_preproc
=no
30928 rm -f conftest.err conftest.
$ac_ext
30929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30930 echo "${ECHO_T}$ac_header_preproc" >&6; }
30932 # So? What about this header?
30933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30935 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
30936 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30937 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
30938 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
30939 ac_header_preproc
=yes
30942 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
30943 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
30944 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
30945 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
30946 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
30947 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
30948 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
30949 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
30950 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
30951 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
30952 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
30953 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
30955 ## ------------------------------- ##
30956 ## Report this to www.asterisk.org ##
30957 ## ------------------------------- ##
30959 ) |
sed "s/^/$as_me: WARNING: /" >&2
30962 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
30963 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
30964 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30965 echo $ECHO_N "(cached) $ECHO_C" >&6
30967 eval "$as_ac_Header=\$ac_header_preproc"
30969 ac_res
=`eval echo '${'$as_ac_Header'}'`
30970 { echo "$as_me:$LINENO: result: $ac_res" >&5
30971 echo "${ECHO_T}$ac_res" >&6; }
30974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30975 TONEZONE_HEADER_FOUND
=1
30977 TONEZONE_HEADER_FOUND
=0
30982 CPPFLAGS
="${saved_cppflags}"
30984 if test "xzaptel/tonezone.h" != "x" ; then
30985 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
30986 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
30987 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
30988 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
30989 echo $ECHO_N "(cached) $ECHO_C" >&6
30991 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
30992 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
30994 # Is the header compilable?
30995 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
30996 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
30997 cat >conftest.
$ac_ext <<_ACEOF
31000 cat confdefs.h
>>conftest.
$ac_ext
31001 cat >>conftest.
$ac_ext <<_ACEOF
31002 /* end confdefs.h. */
31003 $ac_includes_default
31004 #include <zaptel/tonezone.h>
31006 rm -f conftest.
$ac_objext
31007 if { (ac_try
="$ac_compile"
31008 case "(($ac_try" in
31009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31010 *) ac_try_echo=$ac_try;;
31012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31013 (eval "$ac_compile") 2>conftest.er1
31015 grep -v '^ *+' conftest.er1 >conftest.err
31017 cat conftest.err >&5
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); } && {
31020 test -z "$ac_c_werror_flag" ||
31021 test ! -s conftest.err
31022 } && test -s conftest.$ac_objext; then
31023 ac_header_compiler=yes
31025 echo "$as_me: failed program was:" >&5
31026 sed 's/^/| /' conftest.$ac_ext >&5
31028 ac_header_compiler=no
31031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31033 echo "${ECHO_T}$ac_header_compiler" >&6; }
31035 # Is the header present?
31036 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
31037 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
31038 cat >conftest.$ac_ext <<_ACEOF
31041 cat confdefs.h >>conftest.$ac_ext
31042 cat >>conftest.$ac_ext <<_ACEOF
31043 /* end confdefs.h. */
31044 #include <zaptel/tonezone.h>
31046 if { (ac_try="$ac_cpp conftest.$ac_ext"
31047 case "(($ac_try" in
31048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31049 *) ac_try_echo
=$ac_try;;
31051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31054 grep -v '^ *+' conftest.er1
>conftest.err
31056 cat conftest.err
>&5
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); } >/dev
/null
&& {
31059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31060 test ! -s conftest.err
31062 ac_header_preproc
=yes
31064 echo "$as_me: failed program was:" >&5
31065 sed 's/^/| /' conftest.
$ac_ext >&5
31067 ac_header_preproc
=no
31070 rm -f conftest.err conftest.
$ac_ext
31071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31072 echo "${ECHO_T}$ac_header_preproc" >&6; }
31074 # So? What about this header?
31075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31077 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
31078 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31079 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
31080 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
31081 ac_header_preproc
=yes
31084 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
31085 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
31086 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
31087 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
31088 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
31089 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
31090 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
31091 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
31092 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
31093 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
31094 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
31095 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
31097 ## ------------------------------- ##
31098 ## Report this to www.asterisk.org ##
31099 ## ------------------------------- ##
31101 ) |
sed "s/^/$as_me: WARNING: /" >&2
31104 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
31105 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
31106 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
31107 echo $ECHO_N "(cached) $ECHO_C" >&6
31109 ac_cv_header_zaptel_tonezone_h
=$ac_header_preproc
31111 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
31112 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
31115 if test $ac_cv_header_zaptel_tonezone_h = yes; then
31116 TONEZONE_HEADER_FOUND
=1
31118 TONEZONE_HEADER_FOUND
=0
31124 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
31125 if test -n "${TONEZONE_MANDATORY}" ;
31127 { echo "$as_me:$LINENO: ***" >&5
31128 echo "$as_me: ***" >&6;}
31129 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
31130 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
31131 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
31132 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
31133 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
31134 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
31138 TONEZONE_INCLUDE
=""
31143 cat >>confdefs.h
<<_ACEOF
31144 #define HAVE_TONEZONE 1
31148 elif test -n "${TONEZONE_MANDATORY}";
31150 { echo "$as_me:$LINENO: ***" >&5
31151 echo "$as_me: ***" >&6;}
31152 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
31153 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
31154 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31155 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31156 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
31157 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
31164 if test "${USE_USB}" != "no"; then
31166 if test "x${USB_DIR}" != "x"; then
31167 if test -d ${USB_DIR}/lib
; then
31168 pbxlibdir
="-L${USB_DIR}/lib"
31170 pbxlibdir
="-L${USB_DIR}"
31173 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
31174 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
31175 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
31176 echo $ECHO_N "(cached) $ECHO_C" >&6
31178 ac_check_lib_save_LIBS
=$LIBS
31179 LIBS
="-lusb ${pbxlibdir} $LIBS"
31180 cat >conftest.
$ac_ext <<_ACEOF
31183 cat confdefs.h
>>conftest.
$ac_ext
31184 cat >>conftest.
$ac_ext <<_ACEOF
31185 /* end confdefs.h. */
31187 /* Override any GCC internal prototype to avoid an error.
31188 Use char because int might match the return type of a GCC
31189 builtin and then its argument prototype would still apply. */
31197 return usb_init ();
31202 rm -f conftest.
$ac_objext conftest
$ac_exeext
31203 if { (ac_try
="$ac_link"
31204 case "(($ac_try" in
31205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31206 *) ac_try_echo=$ac_try;;
31208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31209 (eval "$ac_link") 2>conftest.er1
31211 grep -v '^ *+' conftest.er1 >conftest.err
31213 cat conftest.err >&5
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); } && {
31216 test -z "$ac_c_werror_flag" ||
31217 test ! -s conftest.err
31218 } && test -s conftest$ac_exeext &&
31219 $as_test_x conftest$ac_exeext; then
31220 ac_cv_lib_usb_usb_init=yes
31222 echo "$as_me: failed program was:" >&5
31223 sed 's/^/| /' conftest.$ac_ext >&5
31225 ac_cv_lib_usb_usb_init=no
31228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31229 conftest$ac_exeext conftest.$ac_ext
31230 LIBS=$ac_check_lib_save_LIBS
31232 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
31233 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
31234 if test $ac_cv_lib_usb_usb_init = yes; then
31241 if test "${AST_USB_FOUND}" = "yes"; then
31243 USB_HEADER_FOUND="1"
31244 if test "x${USB_DIR}" != "x"; then
31245 USB_LIB="${pbxlibdir} ${USB_LIB}"
31246 USB_INCLUDE="-I${USB_DIR}/include"
31247 saved_cppflags="${CPPFLAGS}"
31248 CPPFLAGS="${CPPFLAGS} -I${USB_DIR}/include"
31249 if test "xusb.h" != "x" ; then
31250 as_ac_Header=`echo "ac_cv_header_${USB_DIR}/include/usb.h" |
$as_tr_sh`
31251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31252 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
31253 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
31254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31255 echo $ECHO_N "(cached) $ECHO_C" >&6
31257 ac_res=`eval echo '${'$as_ac_Header'}'`
31258 { echo "$as_me:$LINENO: result: $ac_res" >&5
31259 echo "${ECHO_T}$ac_res" >&6; }
31261 # Is the header compilable?
31262 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h usability" >&5
31263 echo $ECHO_N "checking ${USB_DIR}/include/usb.h usability... $ECHO_C" >&6; }
31264 cat >conftest.$ac_ext <<_ACEOF
31267 cat confdefs.h >>conftest.$ac_ext
31268 cat >>conftest.$ac_ext <<_ACEOF
31269 /* end confdefs.h. */
31270 $ac_includes_default
31271 #include <${USB_DIR}/include/usb.h>
31273 rm -f conftest.$ac_objext
31274 if { (ac_try="$ac_compile"
31275 case "(($ac_try" in
31276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31277 *) ac_try_echo
=$ac_try;;
31279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280 (eval "$ac_compile") 2>conftest.er1
31282 grep -v '^ *+' conftest.er1
>conftest.err
31284 cat conftest.err
>&5
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); } && {
31287 test -z "$ac_c_werror_flag" ||
31288 test ! -s conftest.err
31289 } && test -s conftest.
$ac_objext; then
31290 ac_header_compiler
=yes
31292 echo "$as_me: failed program was:" >&5
31293 sed 's/^/| /' conftest.
$ac_ext >&5
31295 ac_header_compiler
=no
31298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31300 echo "${ECHO_T}$ac_header_compiler" >&6; }
31302 # Is the header present?
31303 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h presence" >&5
31304 echo $ECHO_N "checking ${USB_DIR}/include/usb.h presence... $ECHO_C" >&6; }
31305 cat >conftest.
$ac_ext <<_ACEOF
31308 cat confdefs.h
>>conftest.
$ac_ext
31309 cat >>conftest.
$ac_ext <<_ACEOF
31310 /* end confdefs.h. */
31311 #include <${USB_DIR}/include/usb.h>
31313 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31314 case "(($ac_try" in
31315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31316 *) ac_try_echo=$ac_try;;
31318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31321 grep -v '^ *+' conftest.er1 >conftest.err
31323 cat conftest.err >&5
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); } >/dev/null && {
31326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31327 test ! -s conftest.err
31329 ac_header_preproc=yes
31331 echo "$as_me: failed program was:" >&5
31332 sed 's/^/| /' conftest.$ac_ext >&5
31334 ac_header_preproc=no
31337 rm -f conftest.err conftest.$ac_ext
31338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31339 echo "${ECHO_T}$ac_header_preproc" >&6; }
31341 # So? What about this header?
31342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31344 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
31345 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31346 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&5
31347 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&2;}
31348 ac_header_preproc=yes
31351 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&5
31352 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&2;}
31353 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&5
31354 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&2;}
31355 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&5
31356 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&2;}
31357 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&5
31358 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
31359 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&5
31360 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&2;}
31361 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&5
31362 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&2;}
31364 ## ------------------------------- ##
31365 ## Report this to www.asterisk.org ##
31366 ## ------------------------------- ##
31368 ) | sed "s/^/$as_me: WARNING: /" >&2
31371 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
31372 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
31373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31374 echo $ECHO_N "(cached) $ECHO_C" >&6
31376 eval "$as_ac_Header=\$ac_header_preproc"
31378 ac_res=`eval echo '${'$as_ac_Header'}'`
31379 { echo "$as_me:$LINENO: result: $ac_res" >&5
31380 echo "${ECHO_T}$ac_res" >&6; }
31383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31391 CPPFLAGS="${saved_cppflags}"
31393 if test "xusb.h" != "x" ; then
31394 if test "${ac_cv_header_usb_h+set}" = set; then
31395 { echo "$as_me:$LINENO: checking for usb.h" >&5
31396 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
31397 if test "${ac_cv_header_usb_h+set}" = set; then
31398 echo $ECHO_N "(cached) $ECHO_C" >&6
31400 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
31401 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
31403 # Is the header compilable?
31404 { echo "$as_me:$LINENO: checking usb.h usability" >&5
31405 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
31406 cat >conftest.$ac_ext <<_ACEOF
31409 cat confdefs.h >>conftest.$ac_ext
31410 cat >>conftest.$ac_ext <<_ACEOF
31411 /* end confdefs.h. */
31412 $ac_includes_default
31415 rm -f conftest.$ac_objext
31416 if { (ac_try="$ac_compile"
31417 case "(($ac_try" in
31418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31419 *) ac_try_echo
=$ac_try;;
31421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31422 (eval "$ac_compile") 2>conftest.er1
31424 grep -v '^ *+' conftest.er1
>conftest.err
31426 cat conftest.err
>&5
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); } && {
31429 test -z "$ac_c_werror_flag" ||
31430 test ! -s conftest.err
31431 } && test -s conftest.
$ac_objext; then
31432 ac_header_compiler
=yes
31434 echo "$as_me: failed program was:" >&5
31435 sed 's/^/| /' conftest.
$ac_ext >&5
31437 ac_header_compiler
=no
31440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31442 echo "${ECHO_T}$ac_header_compiler" >&6; }
31444 # Is the header present?
31445 { echo "$as_me:$LINENO: checking usb.h presence" >&5
31446 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
31447 cat >conftest.
$ac_ext <<_ACEOF
31450 cat confdefs.h
>>conftest.
$ac_ext
31451 cat >>conftest.
$ac_ext <<_ACEOF
31452 /* end confdefs.h. */
31455 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31456 case "(($ac_try" in
31457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31458 *) ac_try_echo=$ac_try;;
31460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31463 grep -v '^ *+' conftest.er1 >conftest.err
31465 cat conftest.err >&5
31466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467 (exit $ac_status); } >/dev/null && {
31468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31469 test ! -s conftest.err
31471 ac_header_preproc=yes
31473 echo "$as_me: failed program was:" >&5
31474 sed 's/^/| /' conftest.$ac_ext >&5
31476 ac_header_preproc=no
31479 rm -f conftest.err conftest.$ac_ext
31480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31481 echo "${ECHO_T}$ac_header_preproc" >&6; }
31483 # So? What about this header?
31484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31486 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
31487 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31488 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
31489 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
31490 ac_header_preproc=yes
31493 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
31494 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
31495 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
31496 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
31497 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
31498 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
31499 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
31500 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
31501 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
31502 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
31503 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
31504 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
31506 ## ------------------------------- ##
31507 ## Report this to www.asterisk.org ##
31508 ## ------------------------------- ##
31510 ) | sed "s/^/$as_me: WARNING: /" >&2
31513 { echo "$as_me:$LINENO: checking for usb.h" >&5
31514 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
31515 if test "${ac_cv_header_usb_h+set}" = set; then
31516 echo $ECHO_N "(cached) $ECHO_C" >&6
31518 ac_cv_header_usb_h=$ac_header_preproc
31520 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
31521 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
31524 if test $ac_cv_header_usb_h = yes; then
31533 if test "x${USB_HEADER_FOUND}" = "x0" ; then
31534 if test -n "${USB_MANDATORY}" ;
31536 { echo "$as_me:$LINENO: ***" >&5
31537 echo "$as_me: ***" >&6;}
31538 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
31539 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
31540 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
31541 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
31542 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
31543 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
31552 cat >>confdefs.h <<_ACEOF
31557 elif test -n "${USB_MANDATORY}";
31559 { echo "$as_me:$LINENO: ***" >&5
31560 echo "$as_me: ***" >&6;}
31561 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
31562 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
31563 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31564 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31565 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
31566 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
31573 if test "${USE_VORBIS}" != "no"; then
31575 if test "x${VORBIS_DIR}" != "x"; then
31576 if test -d ${VORBIS_DIR}/lib; then
31577 pbxlibdir="-L${VORBIS_DIR}/lib"
31579 pbxlibdir="-L${VORBIS_DIR}"
31582 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
31583 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
31584 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
31585 echo $ECHO_N "(cached) $ECHO_C" >&6
31587 ac_check_lib_save_LIBS=$LIBS
31588 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
31589 cat >conftest.$ac_ext <<_ACEOF
31592 cat confdefs.h >>conftest.$ac_ext
31593 cat >>conftest.$ac_ext <<_ACEOF
31594 /* end confdefs.h. */
31596 /* Override any GCC internal prototype to avoid an error.
31597 Use char because int might match the return type of a GCC
31598 builtin and then its argument prototype would still apply. */
31602 char vorbis_info_init ();
31606 return vorbis_info_init ();
31611 rm -f conftest.$ac_objext conftest$ac_exeext
31612 if { (ac_try="$ac_link"
31613 case "(($ac_try" in
31614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31615 *) ac_try_echo
=$ac_try;;
31617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31618 (eval "$ac_link") 2>conftest.er1
31620 grep -v '^ *+' conftest.er1
>conftest.err
31622 cat conftest.err
>&5
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); } && {
31625 test -z "$ac_c_werror_flag" ||
31626 test ! -s conftest.err
31627 } && test -s conftest
$ac_exeext &&
31628 $as_test_x conftest
$ac_exeext; then
31629 ac_cv_lib_vorbis_vorbis_info_init
=yes
31631 echo "$as_me: failed program was:" >&5
31632 sed 's/^/| /' conftest.
$ac_ext >&5
31634 ac_cv_lib_vorbis_vorbis_info_init
=no
31637 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31638 conftest
$ac_exeext conftest.
$ac_ext
31639 LIBS
=$ac_check_lib_save_LIBS
31641 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
31642 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
31643 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
31644 AST_VORBIS_FOUND
=yes
31646 AST_VORBIS_FOUND
=no
31650 if test "${AST_VORBIS_FOUND}" = "yes"; then
31651 VORBIS_LIB
="-lvorbis -lm -lvorbisenc"
31652 VORBIS_HEADER_FOUND
="1"
31653 if test "x${VORBIS_DIR}" != "x"; then
31654 VORBIS_LIB
="${pbxlibdir} ${VORBIS_LIB}"
31655 VORBIS_INCLUDE
="-I${VORBIS_DIR}/include"
31656 saved_cppflags
="${CPPFLAGS}"
31657 CPPFLAGS
="${CPPFLAGS} -I${VORBIS_DIR}/include"
31658 if test "xvorbis/codec.h" != "x" ; then
31659 as_ac_Header
=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
31660 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31661 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
31662 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
31663 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31664 echo $ECHO_N "(cached) $ECHO_C" >&6
31666 ac_res
=`eval echo '${'$as_ac_Header'}'`
31667 { echo "$as_me:$LINENO: result: $ac_res" >&5
31668 echo "${ECHO_T}$ac_res" >&6; }
31670 # Is the header compilable?
31671 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
31672 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
31673 cat >conftest.
$ac_ext <<_ACEOF
31676 cat confdefs.h
>>conftest.
$ac_ext
31677 cat >>conftest.
$ac_ext <<_ACEOF
31678 /* end confdefs.h. */
31679 $ac_includes_default
31680 #include <${VORBIS_DIR}/include/vorbis/codec.h>
31682 rm -f conftest.
$ac_objext
31683 if { (ac_try
="$ac_compile"
31684 case "(($ac_try" in
31685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31686 *) ac_try_echo=$ac_try;;
31688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31689 (eval "$ac_compile") 2>conftest.er1
31691 grep -v '^ *+' conftest.er1 >conftest.err
31693 cat conftest.err >&5
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); } && {
31696 test -z "$ac_c_werror_flag" ||
31697 test ! -s conftest.err
31698 } && test -s conftest.$ac_objext; then
31699 ac_header_compiler=yes
31701 echo "$as_me: failed program was:" >&5
31702 sed 's/^/| /' conftest.$ac_ext >&5
31704 ac_header_compiler=no
31707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31709 echo "${ECHO_T}$ac_header_compiler" >&6; }
31711 # Is the header present?
31712 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
31713 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
31714 cat >conftest.$ac_ext <<_ACEOF
31717 cat confdefs.h >>conftest.$ac_ext
31718 cat >>conftest.$ac_ext <<_ACEOF
31719 /* end confdefs.h. */
31720 #include <${VORBIS_DIR}/include/vorbis/codec.h>
31722 if { (ac_try="$ac_cpp conftest.$ac_ext"
31723 case "(($ac_try" in
31724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31725 *) ac_try_echo
=$ac_try;;
31727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31730 grep -v '^ *+' conftest.er1
>conftest.err
31732 cat conftest.err
>&5
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); } >/dev
/null
&& {
31735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31736 test ! -s conftest.err
31738 ac_header_preproc
=yes
31740 echo "$as_me: failed program was:" >&5
31741 sed 's/^/| /' conftest.
$ac_ext >&5
31743 ac_header_preproc
=no
31746 rm -f conftest.err conftest.
$ac_ext
31747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31748 echo "${ECHO_T}$ac_header_preproc" >&6; }
31750 # So? What about this header?
31751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31753 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
31754 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31755 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
31756 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
31757 ac_header_preproc
=yes
31760 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
31761 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
31762 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
31763 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
31764 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
31765 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
31766 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
31767 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
31768 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
31769 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
31770 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
31771 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
31773 ## ------------------------------- ##
31774 ## Report this to www.asterisk.org ##
31775 ## ------------------------------- ##
31777 ) |
sed "s/^/$as_me: WARNING: /" >&2
31780 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
31781 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
31782 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31783 echo $ECHO_N "(cached) $ECHO_C" >&6
31785 eval "$as_ac_Header=\$ac_header_preproc"
31787 ac_res
=`eval echo '${'$as_ac_Header'}'`
31788 { echo "$as_me:$LINENO: result: $ac_res" >&5
31789 echo "${ECHO_T}$ac_res" >&6; }
31792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31793 VORBIS_HEADER_FOUND
=1
31795 VORBIS_HEADER_FOUND
=0
31800 CPPFLAGS
="${saved_cppflags}"
31802 if test "xvorbis/codec.h" != "x" ; then
31803 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
31804 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
31805 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
31806 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
31807 echo $ECHO_N "(cached) $ECHO_C" >&6
31809 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
31810 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
31812 # Is the header compilable?
31813 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
31814 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
31815 cat >conftest.
$ac_ext <<_ACEOF
31818 cat confdefs.h
>>conftest.
$ac_ext
31819 cat >>conftest.
$ac_ext <<_ACEOF
31820 /* end confdefs.h. */
31821 $ac_includes_default
31822 #include <vorbis/codec.h>
31824 rm -f conftest.
$ac_objext
31825 if { (ac_try
="$ac_compile"
31826 case "(($ac_try" in
31827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31828 *) ac_try_echo=$ac_try;;
31830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31831 (eval "$ac_compile") 2>conftest.er1
31833 grep -v '^ *+' conftest.er1 >conftest.err
31835 cat conftest.err >&5
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); } && {
31838 test -z "$ac_c_werror_flag" ||
31839 test ! -s conftest.err
31840 } && test -s conftest.$ac_objext; then
31841 ac_header_compiler=yes
31843 echo "$as_me: failed program was:" >&5
31844 sed 's/^/| /' conftest.$ac_ext >&5
31846 ac_header_compiler=no
31849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31851 echo "${ECHO_T}$ac_header_compiler" >&6; }
31853 # Is the header present?
31854 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
31855 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
31856 cat >conftest.$ac_ext <<_ACEOF
31859 cat confdefs.h >>conftest.$ac_ext
31860 cat >>conftest.$ac_ext <<_ACEOF
31861 /* end confdefs.h. */
31862 #include <vorbis/codec.h>
31864 if { (ac_try="$ac_cpp conftest.$ac_ext"
31865 case "(($ac_try" in
31866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31867 *) ac_try_echo
=$ac_try;;
31869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31872 grep -v '^ *+' conftest.er1
>conftest.err
31874 cat conftest.err
>&5
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); } >/dev
/null
&& {
31877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31878 test ! -s conftest.err
31880 ac_header_preproc
=yes
31882 echo "$as_me: failed program was:" >&5
31883 sed 's/^/| /' conftest.
$ac_ext >&5
31885 ac_header_preproc
=no
31888 rm -f conftest.err conftest.
$ac_ext
31889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31890 echo "${ECHO_T}$ac_header_preproc" >&6; }
31892 # So? What about this header?
31893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31895 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
31896 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31897 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
31898 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
31899 ac_header_preproc
=yes
31902 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
31903 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
31904 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
31905 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
31906 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
31907 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
31908 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
31909 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
31910 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
31911 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
31912 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
31913 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
31915 ## ------------------------------- ##
31916 ## Report this to www.asterisk.org ##
31917 ## ------------------------------- ##
31919 ) |
sed "s/^/$as_me: WARNING: /" >&2
31922 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
31923 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
31924 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
31925 echo $ECHO_N "(cached) $ECHO_C" >&6
31927 ac_cv_header_vorbis_codec_h
=$ac_header_preproc
31929 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
31930 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
31933 if test $ac_cv_header_vorbis_codec_h = yes; then
31934 VORBIS_HEADER_FOUND
=1
31936 VORBIS_HEADER_FOUND
=0
31942 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
31943 if test -n "${VORBIS_MANDATORY}" ;
31945 { echo "$as_me:$LINENO: ***" >&5
31946 echo "$as_me: ***" >&6;}
31947 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
31948 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
31949 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
31950 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
31951 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
31952 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
31961 cat >>confdefs.h
<<_ACEOF
31962 #define HAVE_VORBIS 1
31966 elif test -n "${VORBIS_MANDATORY}";
31968 { echo "$as_me:$LINENO: ***" >&5
31969 echo "$as_me: ***" >&6;}
31970 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
31971 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
31972 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31973 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31974 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
31975 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
31982 ac_cpp
='$CXXCPP $CPPFLAGS'
31983 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31984 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31985 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
31988 if test "${USE_VPB}" != "no"; then
31989 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
31990 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
31991 saved_libs
="${LIBS}"
31992 saved_cppflags
="${CPPFLAGS}"
31993 if test "x${VPB_DIR}" != "x"; then
31994 if test -d ${VPB_DIR}/lib
; then
31995 vpblibdir
=${VPB_DIR}/lib
31997 vpblibdir
=${VPB_DIR}
31999 LIBS
="${LIBS} -L${vpblibdir}"
32000 CPPFLAGS
="${CPPFLAGS} -I${VPB_DIR}/include"
32002 LIBS
="${LIBS} -lvpb -lpthread"
32003 cat >conftest.
$ac_ext <<_ACEOF
32007 cat confdefs.h
>>conftest.
$ac_ext
32008 cat >>conftest.
$ac_ext <<_ACEOF
32009 /* end confdefs.h. */
32010 #include <vpbapi.h>
32014 int q = vpb_open(0,0);
32020 rm -f conftest.
$ac_objext conftest
$ac_exeext
32021 if { (ac_try
="$ac_link"
32022 case "(($ac_try" in
32023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32024 *) ac_try_echo=$ac_try;;
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027 (eval "$ac_link") 2>conftest.er1
32029 grep -v '^ *+' conftest.er1 >conftest.err
32031 cat conftest.err >&5
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); } && {
32034 test -z "$ac_cxx_werror_flag" ||
32035 test ! -s conftest.err
32036 } && test -s conftest$ac_exeext &&
32037 $as_test_x conftest$ac_exeext; then
32038 { echo "$as_me:$LINENO: result: yes" >&5
32039 echo "${ECHO_T}yes" >&6; }
32040 ac_cv_lib_vpb_vpb_open="yes"
32043 echo "$as_me: failed program was:" >&5
32044 sed 's/^/| /' conftest.$ac_ext >&5
32046 { echo "$as_me:$LINENO: result: no" >&5
32047 echo "${ECHO_T}no" >&6; }
32048 ac_cv_lib_vpb_vpb_open="no"
32053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32054 conftest$ac_exeext conftest.$ac_ext
32055 LIBS="${saved_libs}"
32056 CPPFLAGS="${saved_cppflags}"
32057 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
32059 if test "${VPB_DIR}" != ""; then
32060 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
32061 VPB_INCLUDE="-I${VPB_DIR}/include"
32065 cat >>confdefs.h <<\_ACEOF
32069 elif test -n "${VPB_MANDATORY}"; then
32070 { echo "$as_me:$LINENO: ***" >&5
32071 echo "$as_me: ***" >&6;}
32072 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
32073 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
32074 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32075 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32076 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
32077 echo "$as_me: *** including --without-vpb." >&6;}
32083 ac_cpp='$CPP $CPPFLAGS'
32084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32090 if test "${USE_ZLIB}" != "no"; then
32092 if test "x${ZLIB_DIR}" != "x"; then
32093 if test -d ${ZLIB_DIR}/lib; then
32094 pbxlibdir="-L${ZLIB_DIR}/lib"
32096 pbxlibdir="-L${ZLIB_DIR}"
32099 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
32100 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
32101 if test "${ac_cv_lib_z_compress+set}" = set; then
32102 echo $ECHO_N "(cached) $ECHO_C" >&6
32104 ac_check_lib_save_LIBS=$LIBS
32105 LIBS="-lz ${pbxlibdir} $LIBS"
32106 cat >conftest.$ac_ext <<_ACEOF
32109 cat confdefs.h >>conftest.$ac_ext
32110 cat >>conftest.$ac_ext <<_ACEOF
32111 /* end confdefs.h. */
32113 /* Override any GCC internal prototype to avoid an error.
32114 Use char because int might match the return type of a GCC
32115 builtin and then its argument prototype would still apply. */
32123 return compress ();
32128 rm -f conftest.$ac_objext conftest$ac_exeext
32129 if { (ac_try="$ac_link"
32130 case "(($ac_try" in
32131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32132 *) ac_try_echo
=$ac_try;;
32134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32135 (eval "$ac_link") 2>conftest.er1
32137 grep -v '^ *+' conftest.er1
>conftest.err
32139 cat conftest.err
>&5
32140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141 (exit $ac_status); } && {
32142 test -z "$ac_c_werror_flag" ||
32143 test ! -s conftest.err
32144 } && test -s conftest
$ac_exeext &&
32145 $as_test_x conftest
$ac_exeext; then
32146 ac_cv_lib_z_compress
=yes
32148 echo "$as_me: failed program was:" >&5
32149 sed 's/^/| /' conftest.
$ac_ext >&5
32151 ac_cv_lib_z_compress
=no
32154 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
32155 conftest
$ac_exeext conftest.
$ac_ext
32156 LIBS
=$ac_check_lib_save_LIBS
32158 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
32159 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
32160 if test $ac_cv_lib_z_compress = yes; then
32167 if test "${AST_ZLIB_FOUND}" = "yes"; then
32169 ZLIB_HEADER_FOUND
="1"
32170 if test "x${ZLIB_DIR}" != "x"; then
32171 ZLIB_LIB
="${pbxlibdir} ${ZLIB_LIB}"
32172 ZLIB_INCLUDE
="-I${ZLIB_DIR}/include"
32173 saved_cppflags
="${CPPFLAGS}"
32174 CPPFLAGS
="${CPPFLAGS} -I${ZLIB_DIR}/include"
32175 if test "xzlib.h" != "x" ; then
32176 as_ac_Header
=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
32177 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32178 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
32179 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
32180 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32181 echo $ECHO_N "(cached) $ECHO_C" >&6
32183 ac_res
=`eval echo '${'$as_ac_Header'}'`
32184 { echo "$as_me:$LINENO: result: $ac_res" >&5
32185 echo "${ECHO_T}$ac_res" >&6; }
32187 # Is the header compilable?
32188 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
32189 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
32190 cat >conftest.
$ac_ext <<_ACEOF
32193 cat confdefs.h
>>conftest.
$ac_ext
32194 cat >>conftest.
$ac_ext <<_ACEOF
32195 /* end confdefs.h. */
32196 $ac_includes_default
32197 #include <${ZLIB_DIR}/include/zlib.h>
32199 rm -f conftest.
$ac_objext
32200 if { (ac_try
="$ac_compile"
32201 case "(($ac_try" in
32202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32203 *) ac_try_echo=$ac_try;;
32205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32206 (eval "$ac_compile") 2>conftest.er1
32208 grep -v '^ *+' conftest.er1 >conftest.err
32210 cat conftest.err >&5
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212 (exit $ac_status); } && {
32213 test -z "$ac_c_werror_flag" ||
32214 test ! -s conftest.err
32215 } && test -s conftest.$ac_objext; then
32216 ac_header_compiler=yes
32218 echo "$as_me: failed program was:" >&5
32219 sed 's/^/| /' conftest.$ac_ext >&5
32221 ac_header_compiler=no
32224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32226 echo "${ECHO_T}$ac_header_compiler" >&6; }
32228 # Is the header present?
32229 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
32230 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
32231 cat >conftest.$ac_ext <<_ACEOF
32234 cat confdefs.h >>conftest.$ac_ext
32235 cat >>conftest.$ac_ext <<_ACEOF
32236 /* end confdefs.h. */
32237 #include <${ZLIB_DIR}/include/zlib.h>
32239 if { (ac_try="$ac_cpp conftest.$ac_ext"
32240 case "(($ac_try" in
32241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32242 *) ac_try_echo
=$ac_try;;
32244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32247 grep -v '^ *+' conftest.er1
>conftest.err
32249 cat conftest.err
>&5
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); } >/dev
/null
&& {
32252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32253 test ! -s conftest.err
32255 ac_header_preproc
=yes
32257 echo "$as_me: failed program was:" >&5
32258 sed 's/^/| /' conftest.
$ac_ext >&5
32260 ac_header_preproc
=no
32263 rm -f conftest.err conftest.
$ac_ext
32264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32265 echo "${ECHO_T}$ac_header_preproc" >&6; }
32267 # So? What about this header?
32268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32270 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
32271 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32272 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
32273 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
32274 ac_header_preproc
=yes
32277 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
32278 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
32279 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
32280 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
32281 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
32282 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
32283 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
32284 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
32285 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
32286 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
32287 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
32288 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
32290 ## ------------------------------- ##
32291 ## Report this to www.asterisk.org ##
32292 ## ------------------------------- ##
32294 ) |
sed "s/^/$as_me: WARNING: /" >&2
32297 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
32298 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
32299 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32300 echo $ECHO_N "(cached) $ECHO_C" >&6
32302 eval "$as_ac_Header=\$ac_header_preproc"
32304 ac_res
=`eval echo '${'$as_ac_Header'}'`
32305 { echo "$as_me:$LINENO: result: $ac_res" >&5
32306 echo "${ECHO_T}$ac_res" >&6; }
32309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32310 ZLIB_HEADER_FOUND
=1
32312 ZLIB_HEADER_FOUND
=0
32317 CPPFLAGS
="${saved_cppflags}"
32319 if test "xzlib.h" != "x" ; then
32320 if test "${ac_cv_header_zlib_h+set}" = set; then
32321 { echo "$as_me:$LINENO: checking for zlib.h" >&5
32322 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
32323 if test "${ac_cv_header_zlib_h+set}" = set; then
32324 echo $ECHO_N "(cached) $ECHO_C" >&6
32326 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
32327 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
32329 # Is the header compilable?
32330 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
32331 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
32332 cat >conftest.
$ac_ext <<_ACEOF
32335 cat confdefs.h
>>conftest.
$ac_ext
32336 cat >>conftest.
$ac_ext <<_ACEOF
32337 /* end confdefs.h. */
32338 $ac_includes_default
32341 rm -f conftest.
$ac_objext
32342 if { (ac_try
="$ac_compile"
32343 case "(($ac_try" in
32344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32345 *) ac_try_echo=$ac_try;;
32347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32348 (eval "$ac_compile") 2>conftest.er1
32350 grep -v '^ *+' conftest.er1 >conftest.err
32352 cat conftest.err >&5
32353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354 (exit $ac_status); } && {
32355 test -z "$ac_c_werror_flag" ||
32356 test ! -s conftest.err
32357 } && test -s conftest.$ac_objext; then
32358 ac_header_compiler=yes
32360 echo "$as_me: failed program was:" >&5
32361 sed 's/^/| /' conftest.$ac_ext >&5
32363 ac_header_compiler=no
32366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32368 echo "${ECHO_T}$ac_header_compiler" >&6; }
32370 # Is the header present?
32371 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
32372 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
32373 cat >conftest.$ac_ext <<_ACEOF
32376 cat confdefs.h >>conftest.$ac_ext
32377 cat >>conftest.$ac_ext <<_ACEOF
32378 /* end confdefs.h. */
32381 if { (ac_try="$ac_cpp conftest.$ac_ext"
32382 case "(($ac_try" in
32383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32384 *) ac_try_echo
=$ac_try;;
32386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32389 grep -v '^ *+' conftest.er1
>conftest.err
32391 cat conftest.err
>&5
32392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393 (exit $ac_status); } >/dev
/null
&& {
32394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32395 test ! -s conftest.err
32397 ac_header_preproc
=yes
32399 echo "$as_me: failed program was:" >&5
32400 sed 's/^/| /' conftest.
$ac_ext >&5
32402 ac_header_preproc
=no
32405 rm -f conftest.err conftest.
$ac_ext
32406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32407 echo "${ECHO_T}$ac_header_preproc" >&6; }
32409 # So? What about this header?
32410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32412 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
32413 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32414 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
32415 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
32416 ac_header_preproc
=yes
32419 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
32420 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
32421 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
32422 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
32423 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
32424 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
32425 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
32426 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
32427 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
32428 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
32429 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
32430 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
32432 ## ------------------------------- ##
32433 ## Report this to www.asterisk.org ##
32434 ## ------------------------------- ##
32436 ) |
sed "s/^/$as_me: WARNING: /" >&2
32439 { echo "$as_me:$LINENO: checking for zlib.h" >&5
32440 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
32441 if test "${ac_cv_header_zlib_h+set}" = set; then
32442 echo $ECHO_N "(cached) $ECHO_C" >&6
32444 ac_cv_header_zlib_h
=$ac_header_preproc
32446 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
32447 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
32450 if test $ac_cv_header_zlib_h = yes; then
32451 ZLIB_HEADER_FOUND
=1
32453 ZLIB_HEADER_FOUND
=0
32459 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
32460 if test -n "${ZLIB_MANDATORY}" ;
32462 { echo "$as_me:$LINENO: ***" >&5
32463 echo "$as_me: ***" >&6;}
32464 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
32465 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
32466 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
32467 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
32468 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
32469 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
32478 cat >>confdefs.h
<<_ACEOF
32479 #define HAVE_ZLIB 1
32483 elif test -n "${ZLIB_MANDATORY}";
32485 { echo "$as_me:$LINENO: ***" >&5
32486 echo "$as_me: ***" >&6;}
32487 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
32488 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
32489 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32490 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32491 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
32492 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
32498 if test "${USE_ZAPTEL}" != "no"; then
32499 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
32500 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
32501 saved_cppflags
="${CPPFLAGS}"
32502 if test "x${ZAPTEL_DIR}" != "x"; then
32503 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
32505 cat >conftest.
$ac_ext <<_ACEOF
32509 cat confdefs.h
>>conftest.
$ac_ext
32510 cat >>conftest.
$ac_ext <<_ACEOF
32511 /* end confdefs.h. */
32512 #include <zaptel/zaptel.h>
32516 int foo = ZT_DIAL_OP_CANCEL;
32522 rm -f conftest.
$ac_objext
32523 if { (ac_try
="$ac_compile"
32524 case "(($ac_try" in
32525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32526 *) ac_try_echo=$ac_try;;
32528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32529 (eval "$ac_compile") 2>conftest.er1
32531 grep -v '^ *+' conftest.er1 >conftest.err
32533 cat conftest.err >&5
32534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); } && {
32536 test -z "$ac_c_werror_flag" ||
32537 test ! -s conftest.err
32538 } && test -s conftest.$ac_objext; then
32539 { echo "$as_me:$LINENO: result: yes" >&5
32540 echo "${ECHO_T}yes" >&6; }
32541 ac_cv_zaptel_h="yes"
32544 echo "$as_me: failed program was:" >&5
32545 sed 's/^/| /' conftest.$ac_ext >&5
32547 { echo "$as_me:$LINENO: result: no" >&5
32548 echo "${ECHO_T}no" >&6; }
32549 ac_cv_zaptel_h="no"
32554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32555 CPPFLAGS="${saved_cppflags}"
32556 if test "${ac_cv_zaptel_h}" = "yes"; then
32557 if test "${ZAPTEL_DIR}" != ""; then
32558 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
32562 cat >>confdefs.h <<\_ACEOF
32563 #define HAVE_ZAPTEL 1
32566 elif test -n "${ZAPTEL_MANDATORY}";
32568 { echo "$as_me:$LINENO: ***" >&5
32569 echo "$as_me: ***" >&6;}
32570 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
32571 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
32572 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32573 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32574 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
32575 echo "$as_me: *** including --without-zaptel." >&6;}
32580 if test "${PBX_ZAPTEL}" = 1; then
32581 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
32582 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
32583 saved_cppflags="${CPPFLAGS}"
32584 if test "x${ZAPTEL_DIR}" != "x"; then
32585 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
32587 cat >conftest.$ac_ext <<_ACEOF
32591 cat confdefs.h >>conftest.$ac_ext
32592 cat >>conftest.$ac_ext <<_ACEOF
32593 /* end confdefs.h. */
32594 #include <zaptel/zaptel.h>
32598 int foo = ZT_EVENT_REMOVED;
32604 rm -f conftest.$ac_objext
32605 if { (ac_try="$ac_compile"
32606 case "(($ac_try" in
32607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32608 *) ac_try_echo
=$ac_try;;
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611 (eval "$ac_compile") 2>conftest.er1
32613 grep -v '^ *+' conftest.er1
>conftest.err
32615 cat conftest.err
>&5
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); } && {
32618 test -z "$ac_c_werror_flag" ||
32619 test ! -s conftest.err
32620 } && test -s conftest.
$ac_objext; then
32621 { echo "$as_me:$LINENO: result: yes" >&5
32622 echo "${ECHO_T}yes" >&6; }
32623 ac_cv_zaptel_vldtmf
="yes"
32626 echo "$as_me: failed program was:" >&5
32627 sed 's/^/| /' conftest.
$ac_ext >&5
32629 { echo "$as_me:$LINENO: result: no" >&5
32630 echo "${ECHO_T}no" >&6; }
32631 ac_cv_zaptel_vldtmf
="no"
32636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32637 CPPFLAGS
="${saved_cppflags}"
32638 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
32639 PBX_ZAPTEL_VLDTMF
=1
32641 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
32642 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
32643 saved_cppflags
="${CPPFLAGS}"
32644 if test "x${ZAPTEL_DIR}" != "x"; then
32645 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
32647 cat >conftest.
$ac_ext <<_ACEOF
32651 cat confdefs.h
>>conftest.
$ac_ext
32652 cat >>conftest.
$ac_ext <<_ACEOF
32653 /* end confdefs.h. */
32654 #include <zaptel/zaptel.h>
32658 int foo = ZT_TCOP_ALLOCATE;
32664 rm -f conftest.
$ac_objext
32665 if { (ac_try
="$ac_compile"
32666 case "(($ac_try" in
32667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32668 *) ac_try_echo=$ac_try;;
32670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32671 (eval "$ac_compile") 2>conftest.er1
32673 grep -v '^ *+' conftest.er1 >conftest.err
32675 cat conftest.err >&5
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); } && {
32678 test -z "$ac_c_werror_flag" ||
32679 test ! -s conftest.err
32680 } && test -s conftest.$ac_objext; then
32681 { echo "$as_me:$LINENO: result: yes" >&5
32682 echo "${ECHO_T}yes" >&6; }
32683 ac_cv_zaptel_transcode="yes"
32686 echo "$as_me: failed program was:" >&5
32687 sed 's/^/| /' conftest.$ac_ext >&5
32689 { echo "$as_me:$LINENO: result: no" >&5
32690 echo "${ECHO_T}no" >&6; }
32691 ac_cv_zaptel_transcode="no"
32696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32697 CPPFLAGS="${saved_cppflags}"
32698 if test "${ac_cv_zaptel_transcode}" = "yes"; then
32699 PBX_ZAPTEL_TRANSCODE=1
32706 if test "x$TERMCAP_LIB" != "x" ; then
32707 EDITLINE_LIB="$TERMCAP_LIB"
32708 elif test "x$TINFO_LIB" != "x" ; then
32709 EDITLINE_LIB="$TINFO_LIB"
32710 elif test "x$CURSES_LIB" != "x" ; then
32711 EDITLINE_LIB="$CURSES_LIB"
32712 elif test "x$NCURSES_LIB" != "x" ; then
32713 EDITLINE_LIB="$NCURSES_LIB"
32715 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
32716 echo "$as_me: error: *** termcap support not found" >&2;}
32717 { (exit 1); exit 1; }; }
32721 if test "${ac_cv_header_h323_h+set}" = set; then
32722 { echo "$as_me:$LINENO: checking for h323.h" >&5
32723 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
32724 if test "${ac_cv_header_h323_h+set}" = set; then
32725 echo $ECHO_N "(cached) $ECHO_C" >&6
32727 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
32728 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
32730 # Is the header compilable?
32731 { echo "$as_me:$LINENO: checking h323.h usability" >&5
32732 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
32733 cat >conftest.$ac_ext <<_ACEOF
32736 cat confdefs.h >>conftest.$ac_ext
32737 cat >>conftest.$ac_ext <<_ACEOF
32738 /* end confdefs.h. */
32739 $ac_includes_default
32742 rm -f conftest.$ac_objext
32743 if { (ac_try="$ac_compile"
32744 case "(($ac_try" in
32745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32746 *) ac_try_echo
=$ac_try;;
32748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749 (eval "$ac_compile") 2>conftest.er1
32751 grep -v '^ *+' conftest.er1
>conftest.err
32753 cat conftest.err
>&5
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); } && {
32756 test -z "$ac_c_werror_flag" ||
32757 test ! -s conftest.err
32758 } && test -s conftest.
$ac_objext; then
32759 ac_header_compiler
=yes
32761 echo "$as_me: failed program was:" >&5
32762 sed 's/^/| /' conftest.
$ac_ext >&5
32764 ac_header_compiler
=no
32767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32769 echo "${ECHO_T}$ac_header_compiler" >&6; }
32771 # Is the header present?
32772 { echo "$as_me:$LINENO: checking h323.h presence" >&5
32773 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
32774 cat >conftest.
$ac_ext <<_ACEOF
32777 cat confdefs.h
>>conftest.
$ac_ext
32778 cat >>conftest.
$ac_ext <<_ACEOF
32779 /* end confdefs.h. */
32782 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32783 case "(($ac_try" in
32784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32785 *) ac_try_echo=$ac_try;;
32787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32790 grep -v '^ *+' conftest.er1 >conftest.err
32792 cat conftest.err >&5
32793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794 (exit $ac_status); } >/dev/null && {
32795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32796 test ! -s conftest.err
32798 ac_header_preproc=yes
32800 echo "$as_me: failed program was:" >&5
32801 sed 's/^/| /' conftest.$ac_ext >&5
32803 ac_header_preproc=no
32806 rm -f conftest.err conftest.$ac_ext
32807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32808 echo "${ECHO_T}$ac_header_preproc" >&6; }
32810 # So? What about this header?
32811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32813 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
32814 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32815 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
32816 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
32817 ac_header_preproc=yes
32820 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
32821 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
32822 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
32823 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
32824 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
32825 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
32826 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
32827 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
32828 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
32829 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
32830 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
32831 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
32833 ## ------------------------------- ##
32834 ## Report this to www.asterisk.org ##
32835 ## ------------------------------- ##
32837 ) | sed "s/^/$as_me: WARNING: /" >&2
32840 { echo "$as_me:$LINENO: checking for h323.h" >&5
32841 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
32842 if test "${ac_cv_header_h323_h+set}" = set; then
32843 echo $ECHO_N "(cached) $ECHO_C" >&6
32845 ac_cv_header_h323_h=$ac_header_preproc
32847 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
32848 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
32851 if test $ac_cv_header_h323_h = yes; then
32860 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
32861 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
32862 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
32863 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
32864 echo $ECHO_N "(cached) $ECHO_C" >&6
32866 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
32867 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
32869 # Is the header compilable?
32870 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
32871 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
32872 cat >conftest.$ac_ext <<_ACEOF
32875 cat confdefs.h >>conftest.$ac_ext
32876 cat >>conftest.$ac_ext <<_ACEOF
32877 /* end confdefs.h. */
32878 $ac_includes_default
32879 #include <linux/compiler.h>
32881 rm -f conftest.$ac_objext
32882 if { (ac_try="$ac_compile"
32883 case "(($ac_try" in
32884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32885 *) ac_try_echo
=$ac_try;;
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888 (eval "$ac_compile") 2>conftest.er1
32890 grep -v '^ *+' conftest.er1
>conftest.err
32892 cat conftest.err
>&5
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); } && {
32895 test -z "$ac_c_werror_flag" ||
32896 test ! -s conftest.err
32897 } && test -s conftest.
$ac_objext; then
32898 ac_header_compiler
=yes
32900 echo "$as_me: failed program was:" >&5
32901 sed 's/^/| /' conftest.
$ac_ext >&5
32903 ac_header_compiler
=no
32906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32908 echo "${ECHO_T}$ac_header_compiler" >&6; }
32910 # Is the header present?
32911 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
32912 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
32913 cat >conftest.
$ac_ext <<_ACEOF
32916 cat confdefs.h
>>conftest.
$ac_ext
32917 cat >>conftest.
$ac_ext <<_ACEOF
32918 /* end confdefs.h. */
32919 #include <linux/compiler.h>
32921 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32922 case "(($ac_try" in
32923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32924 *) ac_try_echo=$ac_try;;
32926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32929 grep -v '^ *+' conftest.er1 >conftest.err
32931 cat conftest.err >&5
32932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933 (exit $ac_status); } >/dev/null && {
32934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32935 test ! -s conftest.err
32937 ac_header_preproc=yes
32939 echo "$as_me: failed program was:" >&5
32940 sed 's/^/| /' conftest.$ac_ext >&5
32942 ac_header_preproc=no
32945 rm -f conftest.err conftest.$ac_ext
32946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32947 echo "${ECHO_T}$ac_header_preproc" >&6; }
32949 # So? What about this header?
32950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32952 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
32953 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32954 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
32955 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
32956 ac_header_preproc=yes
32959 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
32960 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
32961 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
32962 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
32963 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
32964 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
32965 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
32966 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
32967 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
32968 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
32969 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
32970 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
32972 ## ------------------------------- ##
32973 ## Report this to www.asterisk.org ##
32974 ## ------------------------------- ##
32976 ) | sed "s/^/$as_me: WARNING: /" >&2
32979 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
32980 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
32981 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
32982 echo $ECHO_N "(cached) $ECHO_C" >&6
32984 ac_cv_header_linux_compiler_h=$ac_header_preproc
32986 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
32987 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
32990 if test $ac_cv_header_linux_compiler_h = yes; then
32992 cat >>confdefs.h <<_ACEOF
32993 #define HAVE_LINUX_COMPILER_H 1
33000 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
33001 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
33002 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
33003 echo $ECHO_N "(cached) $ECHO_C" >&6
33005 cat >conftest.$ac_ext <<_ACEOF
33008 cat confdefs.h >>conftest.$ac_ext
33009 cat >>conftest.$ac_ext <<_ACEOF
33010 /* end confdefs.h. */
33012 #include <linux/version.h>
33013 #ifdef HAVE_LINUX_COMPILER_H
33014 #include <linux/compiler.h>
33018 #include <linux/ixjuser.h>
33020 rm -f conftest.$ac_objext
33021 if { (ac_try="$ac_compile"
33022 case "(($ac_try" in
33023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33024 *) ac_try_echo
=$ac_try;;
33026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33027 (eval "$ac_compile") 2>conftest.er1
33029 grep -v '^ *+' conftest.er1
>conftest.err
33031 cat conftest.err
>&5
33032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33033 (exit $ac_status); } && {
33034 test -z "$ac_c_werror_flag" ||
33035 test ! -s conftest.err
33036 } && test -s conftest.
$ac_objext; then
33037 ac_cv_header_linux_ixjuser_h
=yes
33039 echo "$as_me: failed program was:" >&5
33040 sed 's/^/| /' conftest.
$ac_ext >&5
33042 ac_cv_header_linux_ixjuser_h
=no
33045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33047 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
33048 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
33049 if test $ac_cv_header_linux_ixjuser_h = yes; then
33059 if test -n "$ac_tool_prefix"; then
33060 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
33061 set dummy
${ac_tool_prefix}gtk-config
; ac_word
=$2
33062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33064 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
33065 echo $ECHO_N "(cached) $ECHO_C" >&6
33067 if test -n "$GTKCONFIG"; then
33068 ac_cv_prog_GTKCONFIG
="$GTKCONFIG" # Let the user override the test.
33070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33071 for as_dir
in $PATH
33074 test -z "$as_dir" && as_dir
=.
33075 for ac_exec_ext
in '' $ac_executable_extensions; do
33076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33077 ac_cv_prog_GTKCONFIG
="${ac_tool_prefix}gtk-config"
33078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33087 GTKCONFIG
=$ac_cv_prog_GTKCONFIG
33088 if test -n "$GTKCONFIG"; then
33089 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
33090 echo "${ECHO_T}$GTKCONFIG" >&6; }
33092 { echo "$as_me:$LINENO: result: no" >&5
33093 echo "${ECHO_T}no" >&6; }
33098 if test -z "$ac_cv_prog_GTKCONFIG"; then
33099 ac_ct_GTKCONFIG
=$GTKCONFIG
33100 # Extract the first word of "gtk-config", so it can be a program name with args.
33101 set dummy gtk-config
; ac_word
=$2
33102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33104 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
33105 echo $ECHO_N "(cached) $ECHO_C" >&6
33107 if test -n "$ac_ct_GTKCONFIG"; then
33108 ac_cv_prog_ac_ct_GTKCONFIG
="$ac_ct_GTKCONFIG" # Let the user override the test.
33110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33111 for as_dir
in $PATH
33114 test -z "$as_dir" && as_dir
=.
33115 for ac_exec_ext
in '' $ac_executable_extensions; do
33116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33117 ac_cv_prog_ac_ct_GTKCONFIG
="gtk-config"
33118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33127 ac_ct_GTKCONFIG
=$ac_cv_prog_ac_ct_GTKCONFIG
33128 if test -n "$ac_ct_GTKCONFIG"; then
33129 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
33130 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
33132 { echo "$as_me:$LINENO: result: no" >&5
33133 echo "${ECHO_T}no" >&6; }
33136 if test "x$ac_ct_GTKCONFIG" = x
; then
33139 case $cross_compiling:$ac_tool_warned in
33141 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33142 whose name does not start with the host triplet. If you think this
33143 configuration is useful to you, please write to autoconf@gnu.org." >&5
33144 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33145 whose name does not start with the host triplet. If you think this
33146 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33147 ac_tool_warned
=yes ;;
33149 GTKCONFIG
=$ac_ct_GTKCONFIG
33152 GTKCONFIG
="$ac_cv_prog_GTKCONFIG"
33155 if test ! "x${GTKCONFIG}" = xNo
; then
33156 GTK_INCLUDE
=$
(${GTKCONFIG} --cflags gthread
)
33157 GTK_LIB
=$
(${GTKCONFIG} --libs gthread
)
33160 cat >>confdefs.h
<<\_ACEOF
33170 if test -n "$ac_tool_prefix"; then
33171 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33172 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
33173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33175 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
33176 echo $ECHO_N "(cached) $ECHO_C" >&6
33178 if test -n "$PKGCONFIG"; then
33179 ac_cv_prog_PKGCONFIG
="$PKGCONFIG" # Let the user override the test.
33181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33182 for as_dir
in $PATH
33185 test -z "$as_dir" && as_dir
=.
33186 for ac_exec_ext
in '' $ac_executable_extensions; do
33187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33188 ac_cv_prog_PKGCONFIG
="${ac_tool_prefix}pkg-config"
33189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33198 PKGCONFIG
=$ac_cv_prog_PKGCONFIG
33199 if test -n "$PKGCONFIG"; then
33200 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
33201 echo "${ECHO_T}$PKGCONFIG" >&6; }
33203 { echo "$as_me:$LINENO: result: no" >&5
33204 echo "${ECHO_T}no" >&6; }
33209 if test -z "$ac_cv_prog_PKGCONFIG"; then
33210 ac_ct_PKGCONFIG
=$PKGCONFIG
33211 # Extract the first word of "pkg-config", so it can be a program name with args.
33212 set dummy pkg-config
; ac_word
=$2
33213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33215 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
33216 echo $ECHO_N "(cached) $ECHO_C" >&6
33218 if test -n "$ac_ct_PKGCONFIG"; then
33219 ac_cv_prog_ac_ct_PKGCONFIG
="$ac_ct_PKGCONFIG" # Let the user override the test.
33221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33222 for as_dir
in $PATH
33225 test -z "$as_dir" && as_dir
=.
33226 for ac_exec_ext
in '' $ac_executable_extensions; do
33227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33228 ac_cv_prog_ac_ct_PKGCONFIG
="pkg-config"
33229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33238 ac_ct_PKGCONFIG
=$ac_cv_prog_ac_ct_PKGCONFIG
33239 if test -n "$ac_ct_PKGCONFIG"; then
33240 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
33241 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
33243 { echo "$as_me:$LINENO: result: no" >&5
33244 echo "${ECHO_T}no" >&6; }
33247 if test "x$ac_ct_PKGCONFIG" = x
; then
33250 case $cross_compiling:$ac_tool_warned in
33252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33253 whose name does not start with the host triplet. If you think this
33254 configuration is useful to you, please write to autoconf@gnu.org." >&5
33255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33256 whose name does not start with the host triplet. If you think this
33257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33258 ac_tool_warned
=yes ;;
33260 PKGCONFIG
=$ac_ct_PKGCONFIG
33263 PKGCONFIG
="$ac_cv_prog_PKGCONFIG"
33266 if test ! "x${PKGCONFIG}" = xNo
; then
33267 GTK2_INCLUDE
=$
(${PKGCONFIG} gtk
+-2.0
--cflags 2>/dev
/null
)
33268 GTK2_LIB
=$
(${PKGCONFIG} gtk
+-2.0
--libs)
33271 cat >>confdefs.h
<<\_ACEOF
33272 #define HAVE_GTK2 1
33280 if test "${USE_CURL}" != "no"; then
33281 if test -n "$ac_tool_prefix"; then
33282 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
33283 set dummy
${ac_tool_prefix}curl-config
; ac_word
=$2
33284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33286 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
33287 echo $ECHO_N "(cached) $ECHO_C" >&6
33289 case $CURL_CONFIG in
33291 ac_cv_path_CURL_CONFIG
="$CURL_CONFIG" # Let the user override the test with a path.
33294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33295 for as_dir
in $PATH
33298 test -z "$as_dir" && as_dir
=.
33299 for ac_exec_ext
in '' $ac_executable_extensions; do
33300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33301 ac_cv_path_CURL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
33302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33312 CURL_CONFIG
=$ac_cv_path_CURL_CONFIG
33313 if test -n "$CURL_CONFIG"; then
33314 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
33315 echo "${ECHO_T}$CURL_CONFIG" >&6; }
33317 { echo "$as_me:$LINENO: result: no" >&5
33318 echo "${ECHO_T}no" >&6; }
33323 if test -z "$ac_cv_path_CURL_CONFIG"; then
33324 ac_pt_CURL_CONFIG
=$CURL_CONFIG
33325 # Extract the first word of "curl-config", so it can be a program name with args.
33326 set dummy curl-config
; ac_word
=$2
33327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33329 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
33330 echo $ECHO_N "(cached) $ECHO_C" >&6
33332 case $ac_pt_CURL_CONFIG in
33334 ac_cv_path_ac_pt_CURL_CONFIG
="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
33337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33338 for as_dir
in $PATH
33341 test -z "$as_dir" && as_dir
=.
33342 for ac_exec_ext
in '' $ac_executable_extensions; do
33343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33344 ac_cv_path_ac_pt_CURL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
33345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33355 ac_pt_CURL_CONFIG
=$ac_cv_path_ac_pt_CURL_CONFIG
33356 if test -n "$ac_pt_CURL_CONFIG"; then
33357 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
33358 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
33360 { echo "$as_me:$LINENO: result: no" >&5
33361 echo "${ECHO_T}no" >&6; }
33364 if test "x$ac_pt_CURL_CONFIG" = x
; then
33367 case $cross_compiling:$ac_tool_warned in
33369 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33370 whose name does not start with the host triplet. If you think this
33371 configuration is useful to you, please write to autoconf@gnu.org." >&5
33372 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33373 whose name does not start with the host triplet. If you think this
33374 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33375 ac_tool_warned
=yes ;;
33377 CURL_CONFIG
=$ac_pt_CURL_CONFIG
33380 CURL_CONFIG
="$ac_cv_path_CURL_CONFIG"
33383 if test ! x
"${CURL_CONFIG}" = xNo
; then
33384 # check for version
33385 if test $
(printf "%d" 0x$
(${CURL_CONFIG} --vernum)) -ge $
(printf "%d" 0x070907); then
33386 CURL_INCLUDE
=$
(${CURL_CONFIG} --cflags)
33387 CURL_LIB
=$
(${CURL_CONFIG} --libs)
33389 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
33390 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
33391 saved_cppflags
="${CPPFLAGS}"
33392 CPPFLAGS
="${CPPFLAGS} ${CURL_INCLUDE}"
33393 cat >conftest.
$ac_ext <<_ACEOF
33396 cat confdefs.h
>>conftest.
$ac_ext
33397 cat >>conftest.
$ac_ext <<_ACEOF
33398 /* end confdefs.h. */
33399 #include <curl/curl.h>
33409 rm -f conftest.
$ac_objext
33410 if { (ac_try
="$ac_compile"
33411 case "(($ac_try" in
33412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33413 *) ac_try_echo=$ac_try;;
33415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33416 (eval "$ac_compile") 2>conftest.er1
33418 grep -v '^ *+' conftest.er1 >conftest.err
33420 cat conftest.err >&5
33421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422 (exit $ac_status); } && {
33423 test -z "$ac_c_werror_flag" ||
33424 test ! -s conftest.err
33425 } && test -s conftest.$ac_objext; then
33427 { echo "$as_me:$LINENO: result: yes" >&5
33428 echo "${ECHO_T}yes" >&6; }
33432 echo "$as_me: failed program was:" >&5
33433 sed 's/^/| /' conftest.$ac_ext >&5
33436 { echo "$as_me:$LINENO: result: no" >&5
33437 echo "${ECHO_T}no" >&6; }
33443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33444 CPPFLAGS="${saved_cppflags}"
33445 if test "${ac_cv_curl_h}" = "yes"; then
33448 cat >>confdefs.h <<\_ACEOF
33449 #define HAVE_CURL 1
33457 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
33459 cat >confcache <<\_ACEOF
33460 # This file is a shell script that caches the results of configure
33461 # tests run on this system so they can be shared between configure
33462 # scripts and configure runs, see configure's option --config-cache.
33463 # It is not useful on other systems. If it contains results you don't
33464 # want to keep, you may remove or edit it.
33466 # config.status only pays attention to the cache file if you give it
33467 # the --recheck option to rerun configure.
33469 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
33470 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33471 # following values.
33475 # The following way of writing the cache mishandles newlines in values,
33476 # but we know of no workaround that is simple, portable, and efficient.
33477 # So, we kill variables containing newlines.
33478 # Ultrix sh set writes to stderr and can't be redirected directly,
33479 # and sets the high bit in the cache file unless we assign to the vars.
33481 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33482 eval ac_val
=\$
$ac_var
33486 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33487 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33490 _ | IFS | as_nl
) ;; #(
33491 *) $as_unset $ac_var ;;
33497 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33498 *${as_nl}ac_space
=\
*)
33499 # `set' does not quote correctly, so add quotes (double-quote
33500 # substitution turns \\\\ into \\, and sed turns \\ into \).
33503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33506 # `set' quotes correctly as required by POSIX, so do not add quotes.
33507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33520 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
33521 if test -w "$cache_file"; then
33522 test "x$cache_file" != "x/dev/null" &&
33523 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33524 echo "$as_me: updating cache $cache_file" >&6;}
33525 cat confcache
>$cache_file
33527 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33528 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33533 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
33534 # Let make expand exec_prefix.
33535 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
33537 DEFS
=-DHAVE_CONFIG_H
33541 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
33542 # 1. Remove the extension, and $U if already installed.
33543 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
33544 ac_i
=`echo "$ac_i" | sed "$ac_script"`
33545 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33546 # will be set to the directory where LIBOBJS objects are built.
33547 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33548 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33550 LIBOBJS
=$ac_libobjs
33552 LTLIBOBJS
=$ac_ltlibobjs
33556 : ${CONFIG_STATUS=./config.status}
33557 ac_clean_files_save
=$ac_clean_files
33558 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
33559 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33560 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33561 cat >$CONFIG_STATUS <<_ACEOF
33563 # Generated by $as_me.
33564 # Run this file to recreate the current configuration.
33565 # Compiler output produced by configure, useful for debugging
33566 # configure, is in config.log if it exists.
33569 ac_cs_recheck=false
33571 SHELL=\${CONFIG_SHELL-$SHELL}
33574 cat >>$CONFIG_STATUS <<\_ACEOF
33575 ## --------------------- ##
33576 ## M4sh Initialization. ##
33577 ## --------------------- ##
33579 # Be more Bourne compatible
33580 DUALCASE
=1; export DUALCASE
# for MKS sh
33581 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
33584 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33585 # is contrary to our usage. Disable this feature.
33586 alias -g '${1+"$@"}'='"$@"'
33587 setopt NO_GLOB_SUBST
33589 case `(set -o) 2>/dev/null` in
33590 *posix
*) set -o posix
;;
33599 # Avoid depending upon Character Ranges.
33600 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33601 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33602 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33603 as_cr_digits
='0123456789'
33604 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33606 # The user is always right.
33607 if test "${PATH_SEPARATOR+set}" != set; then
33608 echo "#! /bin/sh" >conf$$.sh
33609 echo "exit 0" >>conf$$.sh
33611 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
33619 # Support unset when possible.
33620 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
33628 # We need space, tab and new line, in precisely that order. Quoting is
33629 # there to prevent editors from complaining about space-tab.
33630 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33631 # splitting by setting IFS to empty value.)
33636 # Find who we are. Look in the path if we contain no directory separator.
33638 *[\\/]* ) as_myself
=$0 ;;
33639 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33640 for as_dir
in $PATH
33643 test -z "$as_dir" && as_dir
=.
33644 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
33650 # We did not find ourselves, most probably we were run as `sh COMMAND'
33651 # in which case we are not to be found in the path.
33652 if test "x$as_myself" = x
; then
33655 if test ! -f "$as_myself"; then
33656 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33657 { (exit 1); exit 1; }
33660 # Work around bugs in pre-3.0 UWIN ksh.
33661 for as_var
in ENV MAIL MAILPATH
33662 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
33670 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33671 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33672 LC_TELEPHONE LC_TIME
33674 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33675 eval $as_var=C
; export $as_var
33677 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
33681 # Required to use basename.
33682 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33683 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33689 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33690 as_basename
=basename
33696 # Name of the executable.
33697 as_me
=`$as_basename -- "$0" ||
33698 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33699 X"$0" : 'X\(//\)$' \| \
33700 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33702 sed '/^.*\/\([^/][^/]*\)\/*$/{
33721 as_lineno_1
=$LINENO
33722 as_lineno_2
=$LINENO
33723 test "x$as_lineno_1" != "x$as_lineno_2" &&
33724 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
33726 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33727 # uniformly replaced by the line number. The first 'sed' inserts a
33728 # line-number line after each line using $LINENO; the second 'sed'
33729 # does the real work. The second script uses 'N' to pair each
33730 # line-number line with the line containing $LINENO, and appends
33731 # trailing '-' during substitution so that $LINENO is not a special
33732 # case at line end.
33733 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33734 # scripts with optimization help from Paolo Bonzini. Blame Lee
33735 # E. McMahon (1931-1989) for sed's syntax. :-)
33747 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33750 ' >$as_me.lineno
&&
33751 chmod +x
"$as_me.lineno" ||
33752 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33753 { (exit 1); exit 1; }; }
33755 # Don't try to exec as it changes $[0], causing all sort of problems
33756 # (the dirname of $[0] is not the place where we might find the
33757 # original and so on. Autoconf is especially sensitive to this).
33758 .
"./$as_me.lineno"
33759 # Exit status is that of the last command.
33764 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
33770 ECHO_C
= ECHO_N
= ECHO_T
=
33771 case `echo -n x` in
33773 case `echo 'x\c'` in
33774 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33781 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33782 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33788 rm -f conf$$ conf$$.exe conf$$.
file
33789 if test -d conf$$.dir
; then
33790 rm -f conf$$.dir
/conf$$.
file
33796 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33798 # ... but there are two gotchas:
33799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33801 # In both cases, we have to default to `cp -p'.
33802 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33804 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33809 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33810 rmdir conf$$.dir
2>/dev
/null
33812 if mkdir
-p .
2>/dev
/null
; then
33815 test -d .
/-p && rmdir .
/-p
33819 if test -x / >/dev
/null
2>&1; then
33820 as_test_x
='test -x'
33822 if ls -dL / >/dev
/null
2>&1; then
33829 if test -d "$1"; then
33835 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33836 ???[sx]*):;;*)false;;esac;fi
33840 as_executable_p
=$as_test_x
33842 # Sed expression to map a string onto a valid CPP name.
33843 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33845 # Sed expression to map a string onto a valid variable name.
33846 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33851 # Save the log message, to keep $[0] and so on meaningful, and to
33852 # report actual input values of CONFIG_FILES etc. instead of their
33853 # values after options handling.
33855 This file was extended by asterisk $as_me 1.4, which was
33856 generated by GNU Autoconf 2.61. Invocation command line was
33858 CONFIG_FILES = $CONFIG_FILES
33859 CONFIG_HEADERS = $CONFIG_HEADERS
33860 CONFIG_LINKS = $CONFIG_LINKS
33861 CONFIG_COMMANDS = $CONFIG_COMMANDS
33864 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33869 cat >>$CONFIG_STATUS <<_ACEOF
33870 # Files that config.status was made for.
33871 config_files="$ac_config_files"
33872 config_headers="$ac_config_headers"
33876 cat >>$CONFIG_STATUS <<\_ACEOF
33878 \`$as_me' instantiates files from templates according to the
33879 current configuration.
33881 Usage: $0 [OPTIONS] [FILE]...
33883 -h, --help print this help, then exit
33884 -V, --version print version number and configuration settings, then exit
33885 -q, --quiet do not print progress messages
33886 -d, --debug don't remove temporary files
33887 --recheck update $as_me by reconfiguring in the same conditions
33888 --file=FILE[:TEMPLATE]
33889 instantiate the configuration file FILE
33890 --header=FILE[:TEMPLATE]
33891 instantiate the configuration header FILE
33893 Configuration files:
33896 Configuration headers:
33899 Report bugs to <bug-autoconf@gnu.org>."
33902 cat >>$CONFIG_STATUS <<_ACEOF
33904 asterisk config.status 1.4
33905 configured by $0, generated by GNU Autoconf 2.61,
33906 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33908 Copyright (C) 2006 Free Software Foundation, Inc.
33909 This config.status script is free software; the Free Software Foundation
33910 gives unlimited permission to copy, distribute and modify it."
33917 cat >>$CONFIG_STATUS <<\_ACEOF
33918 # If no file are specified by the user, then we need to provide default
33919 # value. By we need to know if files were specified by the user.
33925 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33926 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33937 # Handling of the options.
33938 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33940 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33941 echo "$ac_cs_version"; exit ;;
33942 --debug |
--debu |
--deb |
--de |
--d |
-d )
33944 --file |
--fil |
--fi |
--f )
33946 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
33947 ac_need_defaults
=false
;;
33948 --header |
--heade |
--head |
--hea )
33950 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
33951 ac_need_defaults
=false
;;
33953 # Conflict between --help and --header
33954 { echo "$as_me: error: ambiguous option: $1
33955 Try \`$0 --help' for more information." >&2
33956 { (exit 1); exit 1; }; };;
33957 --help |
--hel |
-h )
33958 echo "$ac_cs_usage"; exit ;;
33959 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33960 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33963 # This is an error.
33964 -*) { echo "$as_me: error: unrecognized option: $1
33965 Try \`$0 --help' for more information." >&2
33966 { (exit 1); exit 1; }; } ;;
33968 *) ac_config_targets
="$ac_config_targets $1"
33969 ac_need_defaults
=false
;;
33975 ac_configure_extra_args
=
33977 if $ac_cs_silent; then
33979 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33983 cat >>$CONFIG_STATUS <<_ACEOF
33984 if \$ac_cs_recheck; then
33985 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33986 CONFIG_SHELL=$SHELL
33987 export CONFIG_SHELL
33988 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33992 cat >>$CONFIG_STATUS <<\_ACEOF
33996 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33997 ## Running $as_me. ##
34003 cat >>$CONFIG_STATUS <<_ACEOF
34006 cat >>$CONFIG_STATUS <<\_ACEOF
34008 # Handling of arguments.
34009 for ac_config_target
in $ac_config_targets
34011 case $ac_config_target in
34012 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
34013 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
34014 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
34015 "channels/h323/Makefile") CONFIG_FILES
="$CONFIG_FILES channels/h323/Makefile" ;;
34017 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34018 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34019 { (exit 1); exit 1; }; };;
34024 # If the user did not use the arguments to specify the items to instantiate,
34025 # then the envvar interface is used. Set only those that are not.
34026 # We use the long form for the default assignment because of an extremely
34027 # bizarre bug on SunOS 4.1.3.
34028 if $ac_need_defaults; then
34029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
34030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
34033 # Have a temporary directory for convenience. Make it in the build tree
34034 # simply because there is no reason against having it here, and in addition,
34035 # creating and moving files from /tmp can sometimes cause problems.
34036 # Hook for its removal unless debugging.
34037 # Note that there is a small window in which the directory will not be cleaned:
34038 # after its creation but before its name has been assigned to `$tmp'.
34042 trap 'exit_status=$?
34043 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34045 trap '{ (exit 1); exit 1; }' 1 2 13 15
34047 # Create a (secure) tmp directory for tmp files.
34050 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34051 test -n "$tmp" && test -d "$tmp"
34054 tmp
=.
/conf$$
-$RANDOM
34055 (umask 077 && mkdir
"$tmp")
34058 echo "$me: cannot create a temporary directory in ." >&2
34059 { (exit 1); exit 1; }
34063 # Set up the sed scripts for CONFIG_FILES section.
34066 # No need to generate the scripts if there are no CONFIG_FILES.
34067 # This happens for instance when ./config.status config.h
34068 if test -n "$CONFIG_FILES"; then
34075 for ac_last_try
in false false false false false
:; do
34076 cat >conf$
$subs.
sed <<_ACEOF
34077 SHELL!$SHELL$ac_delim
34078 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34079 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34080 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34081 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34082 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34083 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34084 exec_prefix!$exec_prefix$ac_delim
34085 prefix!$prefix$ac_delim
34086 program_transform_name!$program_transform_name$ac_delim
34087 bindir!$bindir$ac_delim
34088 sbindir!$sbindir$ac_delim
34089 libexecdir!$libexecdir$ac_delim
34090 datarootdir!$datarootdir$ac_delim
34091 datadir!$datadir$ac_delim
34092 sysconfdir!$sysconfdir$ac_delim
34093 sharedstatedir!$sharedstatedir$ac_delim
34094 localstatedir!$localstatedir$ac_delim
34095 includedir!$includedir$ac_delim
34096 oldincludedir!$oldincludedir$ac_delim
34097 docdir!$docdir$ac_delim
34098 infodir!$infodir$ac_delim
34099 htmldir!$htmldir$ac_delim
34100 dvidir!$dvidir$ac_delim
34101 pdfdir!$pdfdir$ac_delim
34102 psdir!$psdir$ac_delim
34103 libdir!$libdir$ac_delim
34104 localedir!$localedir$ac_delim
34105 mandir!$mandir$ac_delim
34106 DEFS!$DEFS$ac_delim
34107 ECHO_C!$ECHO_C$ac_delim
34108 ECHO_N!$ECHO_N$ac_delim
34109 ECHO_T!$ECHO_T$ac_delim
34110 LIBS!$LIBS$ac_delim
34111 build_alias!$build_alias$ac_delim
34112 host_alias!$host_alias$ac_delim
34113 target_alias!$target_alias$ac_delim
34114 build!$build$ac_delim
34115 build_cpu!$build_cpu$ac_delim
34116 build_vendor!$build_vendor$ac_delim
34117 build_os!$build_os$ac_delim
34118 host!$host$ac_delim
34119 host_cpu!$host_cpu$ac_delim
34120 host_vendor!$host_vendor$ac_delim
34121 host_os!$host_os$ac_delim
34123 CFLAGS!$CFLAGS$ac_delim
34124 LDFLAGS!$LDFLAGS$ac_delim
34125 CPPFLAGS!$CPPFLAGS$ac_delim
34126 ac_ct_CC!$ac_ct_CC$ac_delim
34127 EXEEXT!$EXEEXT$ac_delim
34128 OBJEXT!$OBJEXT$ac_delim
34130 GREP!$GREP$ac_delim
34131 EGREP!$EGREP$ac_delim
34132 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
34133 BUILD_CPU!$BUILD_CPU$ac_delim
34134 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
34135 BUILD_OS!$BUILD_OS$ac_delim
34136 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
34137 HOST_CPU!$HOST_CPU$ac_delim
34138 HOST_VENDOR!$HOST_VENDOR$ac_delim
34139 HOST_OS!$HOST_OS$ac_delim
34140 OSARCH!$OSARCH$ac_delim
34141 UNAME!$UNAME$ac_delim
34142 PBX_OSREV!$PBX_OSREV$ac_delim
34145 RANLIB!$RANLIB$ac_delim
34146 CXXFLAGS!$CXXFLAGS$ac_delim
34147 ac_ct_CXX!$ac_ct_CXX$ac_delim
34148 CXXCPP!$CXXCPP$ac_delim
34151 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34152 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34153 INSTALL_DATA!$INSTALL_DATA$ac_delim
34154 LN_S!$LN_S$ac_delim
34155 GNU_MAKE!$GNU_MAKE$ac_delim
34156 STRIP!$STRIP$ac_delim
34158 GNU_LD!$GNU_LD$ac_delim
34159 FIND!$FIND$ac_delim
34160 COMPRESS!$COMPRESS$ac_delim
34161 BASENAME!$BASENAME$ac_delim
34163 DIRNAME!$DIRNAME$ac_delim
34166 WGET!$WGET$ac_delim
34167 FETCH!$FETCH$ac_delim
34168 DOWNLOAD!$DOWNLOAD$ac_delim
34169 acx_pthread_config!$acx_pthread_config$ac_delim
34170 PTHREAD_CC!$PTHREAD_CC$ac_delim
34171 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
34172 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
34173 AST_DEVMODE!$AST_DEVMODE$ac_delim
34176 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34178 elif $ac_last_try; then
34179 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34180 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34181 { (exit 1); exit 1; }; }
34183 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
34187 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34188 if test -n "$ac_eof"; then
34189 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
34190 ac_eof
=`expr $ac_eof + 1`
34193 cat >>$CONFIG_STATUS <<_ACEOF
34194 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34195 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34198 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34199 s/^/s,@/; s/!/@,|#_!!_#|/
34202 s/'"$ac_delim"'$/,g/; t
34204 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34205 ' >>$CONFIG_STATUS <conf$
$subs.
sed
34206 rm -f conf$
$subs.
sed
34207 cat >>$CONFIG_STATUS <<_ACEOF
34213 for ac_last_try
in false false false false false
:; do
34214 cat >conf$
$subs.
sed <<_ACEOF
34215 ALSA_LIB!$ALSA_LIB$ac_delim
34216 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
34217 ALSA_DIR!$ALSA_DIR$ac_delim
34218 PBX_ALSA!$PBX_ALSA$ac_delim
34219 CURL_LIB!$CURL_LIB$ac_delim
34220 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
34221 CURL_DIR!$CURL_DIR$ac_delim
34222 PBX_CURL!$PBX_CURL$ac_delim
34223 CURSES_LIB!$CURSES_LIB$ac_delim
34224 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
34225 CURSES_DIR!$CURSES_DIR$ac_delim
34226 PBX_CURSES!$PBX_CURSES$ac_delim
34227 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
34228 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
34229 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
34230 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
34231 GSM_LIB!$GSM_LIB$ac_delim
34232 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
34233 GSM_DIR!$GSM_DIR$ac_delim
34234 PBX_GSM!$PBX_GSM$ac_delim
34235 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
34236 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
34237 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
34238 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
34239 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
34240 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
34241 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
34242 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
34243 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
34244 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
34245 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
34246 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
34247 KDE_LIB!$KDE_LIB$ac_delim
34248 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
34249 KDE_DIR!$KDE_DIR$ac_delim
34250 PBX_KDE!$PBX_KDE$ac_delim
34251 LTDL_LIB!$LTDL_LIB$ac_delim
34252 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
34253 LTDL_DIR!$LTDL_DIR$ac_delim
34254 PBX_LTDL!$PBX_LTDL$ac_delim
34255 MISDN_LIB!$MISDN_LIB$ac_delim
34256 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
34257 MISDN_DIR!$MISDN_DIR$ac_delim
34258 PBX_MISDN!$PBX_MISDN$ac_delim
34259 NBS_LIB!$NBS_LIB$ac_delim
34260 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
34261 NBS_DIR!$NBS_DIR$ac_delim
34262 PBX_NBS!$PBX_NBS$ac_delim
34263 NCURSES_LIB!$NCURSES_LIB$ac_delim
34264 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
34265 NCURSES_DIR!$NCURSES_DIR$ac_delim
34266 PBX_NCURSES!$PBX_NCURSES$ac_delim
34267 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
34268 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
34269 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
34270 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
34271 NEWT_LIB!$NEWT_LIB$ac_delim
34272 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
34273 NEWT_DIR!$NEWT_DIR$ac_delim
34274 PBX_NEWT!$PBX_NEWT$ac_delim
34275 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
34276 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
34277 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
34278 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
34279 OGG_LIB!$OGG_LIB$ac_delim
34280 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
34281 OGG_DIR!$OGG_DIR$ac_delim
34282 PBX_OGG!$PBX_OGG$ac_delim
34283 OSPTK_LIB!$OSPTK_LIB$ac_delim
34284 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
34285 OSPTK_DIR!$OSPTK_DIR$ac_delim
34286 PBX_OSPTK!$PBX_OSPTK$ac_delim
34287 OSS_LIB!$OSS_LIB$ac_delim
34288 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
34289 OSS_DIR!$OSS_DIR$ac_delim
34290 PBX_OSS!$PBX_OSS$ac_delim
34291 POPT_LIB!$POPT_LIB$ac_delim
34292 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
34293 POPT_DIR!$POPT_DIR$ac_delim
34294 PBX_POPT!$PBX_POPT$ac_delim
34295 PGSQL_LIB!$PGSQL_LIB$ac_delim
34296 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
34297 PGSQL_DIR!$PGSQL_DIR$ac_delim
34298 PBX_PGSQL!$PBX_PGSQL$ac_delim
34299 PRI_LIB!$PRI_LIB$ac_delim
34300 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
34301 PRI_DIR!$PRI_DIR$ac_delim
34302 PBX_PRI!$PBX_PRI$ac_delim
34303 PWLIB_LIB!$PWLIB_LIB$ac_delim
34304 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
34305 PWLIB_DIR!$PWLIB_DIR$ac_delim
34306 PBX_PWLIB!$PBX_PWLIB$ac_delim
34307 OPENH323_LIB!$OPENH323_LIB$ac_delim
34308 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
34309 OPENH323_DIR!$OPENH323_DIR$ac_delim
34310 PBX_OPENH323!$PBX_OPENH323$ac_delim
34311 QT_LIB!$QT_LIB$ac_delim
34314 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34316 elif $ac_last_try; then
34317 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34318 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34319 { (exit 1); exit 1; }; }
34321 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
34325 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34326 if test -n "$ac_eof"; then
34327 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
34328 ac_eof
=`expr $ac_eof + 1`
34331 cat >>$CONFIG_STATUS <<_ACEOF
34332 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34336 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34337 s/^/s,@/; s/!/@,|#_!!_#|/
34340 s/'"$ac_delim"'$/,g/; t
34342 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34343 ' >>$CONFIG_STATUS <conf$
$subs.
sed
34344 rm -f conf$
$subs.
sed
34345 cat >>$CONFIG_STATUS <<_ACEOF
34351 for ac_last_try
in false false false false false
:; do
34352 cat >conf$
$subs.
sed <<_ACEOF
34353 QT_INCLUDE!$QT_INCLUDE$ac_delim
34354 QT_DIR!$QT_DIR$ac_delim
34355 PBX_QT!$PBX_QT$ac_delim
34356 RADIUS_LIB!$RADIUS_LIB$ac_delim
34357 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
34358 RADIUS_DIR!$RADIUS_DIR$ac_delim
34359 PBX_RADIUS!$PBX_RADIUS$ac_delim
34360 SPEEX_LIB!$SPEEX_LIB$ac_delim
34361 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
34362 SPEEX_DIR!$SPEEX_DIR$ac_delim
34363 PBX_SPEEX!$PBX_SPEEX$ac_delim
34364 SQLITE_LIB!$SQLITE_LIB$ac_delim
34365 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
34366 SQLITE_DIR!$SQLITE_DIR$ac_delim
34367 PBX_SQLITE!$PBX_SQLITE$ac_delim
34368 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
34369 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
34370 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
34371 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
34372 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
34373 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
34374 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
34375 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
34376 FREETDS_LIB!$FREETDS_LIB$ac_delim
34377 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
34378 FREETDS_DIR!$FREETDS_DIR$ac_delim
34379 PBX_FREETDS!$PBX_FREETDS$ac_delim
34380 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
34381 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
34382 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
34383 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
34384 TINFO_LIB!$TINFO_LIB$ac_delim
34385 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
34386 TINFO_DIR!$TINFO_DIR$ac_delim
34387 PBX_TINFO!$PBX_TINFO$ac_delim
34388 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
34389 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
34390 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
34391 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
34392 USB_LIB!$USB_LIB$ac_delim
34393 USB_INCLUDE!$USB_INCLUDE$ac_delim
34394 USB_DIR!$USB_DIR$ac_delim
34395 PBX_USB!$PBX_USB$ac_delim
34396 VORBIS_LIB!$VORBIS_LIB$ac_delim
34397 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
34398 VORBIS_DIR!$VORBIS_DIR$ac_delim
34399 PBX_VORBIS!$PBX_VORBIS$ac_delim
34400 VPB_LIB!$VPB_LIB$ac_delim
34401 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
34402 VPB_DIR!$VPB_DIR$ac_delim
34403 PBX_VPB!$PBX_VPB$ac_delim
34404 ZLIB_LIB!$ZLIB_LIB$ac_delim
34405 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
34406 ZLIB_DIR!$ZLIB_DIR$ac_delim
34407 PBX_ZLIB!$PBX_ZLIB$ac_delim
34408 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
34409 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
34410 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
34411 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
34412 ALLOCA!$ALLOCA$ac_delim
34413 LIBOBJS!$LIBOBJS$ac_delim
34414 POW_LIB!$POW_LIB$ac_delim
34415 GC_CFLAGS!$GC_CFLAGS$ac_delim
34416 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
34417 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
34418 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
34419 KDEINIT!$KDEINIT$ac_delim
34420 KDEDIR!$KDEDIR$ac_delim
34421 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
34422 PG_CONFIG!$PG_CONFIG$ac_delim
34423 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
34424 PWLIBDIR!$PWLIBDIR$ac_delim
34425 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
34426 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
34427 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
34428 OPENH323DIR!$OPENH323DIR$ac_delim
34429 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
34430 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
34431 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
34432 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
34433 QTMOC!$QTMOC$ac_delim
34434 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
34435 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
34436 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
34437 PBX_H323!$PBX_H323$ac_delim
34438 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
34439 GTKCONFIG!$GTKCONFIG$ac_delim
34440 PBX_GTK!$PBX_GTK$ac_delim
34441 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
34442 GTK_LIB!$GTK_LIB$ac_delim
34443 PKGCONFIG!$PKGCONFIG$ac_delim
34444 PBX_GTK2!$PBX_GTK2$ac_delim
34445 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
34446 GTK2_LIB!$GTK2_LIB$ac_delim
34447 CURL_CONFIG!$CURL_CONFIG$ac_delim
34448 LTLIBOBJS!$LTLIBOBJS$ac_delim
34451 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
34453 elif $ac_last_try; then
34454 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34455 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34456 { (exit 1); exit 1; }; }
34458 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
34462 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34463 if test -n "$ac_eof"; then
34464 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
34465 ac_eof
=`expr $ac_eof + 1`
34468 cat >>$CONFIG_STATUS <<_ACEOF
34469 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
34470 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34473 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34474 s/^/s,@/; s/!/@,|#_!!_#|/
34477 s/'"$ac_delim"'$/,g/; t
34479 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34480 ' >>$CONFIG_STATUS <conf$
$subs.
sed
34481 rm -f conf$
$subs.
sed
34482 cat >>$CONFIG_STATUS <<_ACEOF
34487 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34488 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34489 # trailing colons and then remove the whole line if VPATH becomes empty
34490 # (actually we leave an empty line to preserve line numbers).
34491 if test "x$srcdir" = x.
; then
34492 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
34493 s/:*\$(srcdir):*/:/
34494 s/:*\${srcdir}:*/:/
34496 s/^\([^=]*=[ ]*\):*/\1/
34502 cat >>$CONFIG_STATUS <<\_ACEOF
34503 fi # test -n "$CONFIG_FILES"
34506 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
34509 :[FHLC
]) ac_mode
=$ac_tag; continue;;
34511 case $ac_mode$ac_tag in
34513 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34514 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34515 { (exit 1); exit 1; }; };;
34516 :[FH
]-) ac_tag
=-:-;;
34517 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
34534 -) ac_f
="$tmp/stdin";;
34535 *) # Look for the file first in the build tree, then in the source tree
34536 # (if the path is not absolute). The absolute path cannot be DOS-style,
34537 # because $ac_f cannot contain `:'.
34541 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
34543 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34544 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34545 { (exit 1); exit 1; }; };;
34547 ac_file_inputs
="$ac_file_inputs $ac_f"
34550 # Let's still pretend it is `configure' which instantiates (i.e., don't
34551 # use $as_me), people would be surprised to read:
34552 # /* config.h. Generated by config.status. */
34553 configure_input
="Generated from "`IFS=:
34554 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34555 if test x
"$ac_file" != x-
; then
34556 configure_input
="$ac_file. $configure_input"
34557 { echo "$as_me:$LINENO: creating $ac_file" >&5
34558 echo "$as_me: creating $ac_file" >&6;}
34562 *:-:* |
*:-) cat >"$tmp/stdin";;
34567 ac_dir
=`$as_dirname -- "$ac_file" ||
34568 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34569 X"$ac_file" : 'X\(//\)[^/]' \| \
34570 X"$ac_file" : 'X\(//\)$' \| \
34571 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34577 /^X\(\/\/\)[^/].*/{
34592 -*) as_dir
=.
/$as_dir;;
34594 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
34598 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34599 *) as_qdir
=$as_dir;;
34601 as_dirs
="'$as_qdir' $as_dirs"
34602 as_dir
=`$as_dirname -- "$as_dir" ||
34603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34604 X"$as_dir" : 'X\(//\)[^/]' \| \
34605 X"$as_dir" : 'X\(//\)$' \| \
34606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34612 /^X\(\/\/\)[^/].*/{
34625 test -d "$as_dir" && break
34627 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
34628 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34629 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34630 { (exit 1); exit 1; }; }; }
34634 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34636 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34637 # A ".." for each directory in $ac_dir_suffix.
34638 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34639 case $ac_top_builddir_sub in
34640 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34641 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
34644 ac_abs_top_builddir
=$ac_pwd
34645 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
34646 # for backward compatibility:
34647 ac_top_builddir
=$ac_top_build_prefix
34650 .
) # We are building in place.
34652 ac_top_srcdir
=$ac_top_builddir_sub
34653 ac_abs_top_srcdir
=$ac_pwd ;;
34654 [\\/]* | ?
:[\\/]* ) # Absolute name.
34655 ac_srcdir
=$srcdir$ac_dir_suffix;
34656 ac_top_srcdir
=$srcdir
34657 ac_abs_top_srcdir
=$srcdir ;;
34658 *) # Relative name.
34659 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
34660 ac_top_srcdir
=$ac_top_build_prefix$srcdir
34661 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
34663 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
34673 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
34674 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
34678 cat >>$CONFIG_STATUS <<\_ACEOF
34679 # If the template does not know about datarootdir, expand it.
34680 # FIXME: This hack should be removed a few years after 2.60.
34681 ac_datarootdir_hack
=; ac_datarootdir_seen
=
34683 case `sed -n '/datarootdir/ {
34692 ' $ac_file_inputs` in
34693 *datarootdir
*) ac_datarootdir_seen
=yes;;
34694 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
34695 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34696 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34698 cat >>$CONFIG_STATUS <<_ACEOF
34699 ac_datarootdir_hack='
34700 s&@datadir@&$datadir&g
34701 s&@docdir@&$docdir&g
34702 s&@infodir@&$infodir&g
34703 s&@localedir@&$localedir&g
34704 s&@mandir@&$mandir&g
34705 s&\\\${datarootdir}&$datarootdir&g' ;;
34709 # Neutralize VPATH when `$srcdir' = `.'.
34710 # Shell code in configure.ac might set extrasub.
34711 # FIXME: do we really want to maintain this feature?
34712 cat >>$CONFIG_STATUS <<_ACEOF
34716 cat >>$CONFIG_STATUS <<\_ACEOF
34718 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
34719 s
&@configure_input@
&$configure_input&;t t
34720 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
34721 s
&@srcdir@
&$ac_srcdir&;t t
34722 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
34723 s
&@top_srcdir@
&$ac_top_srcdir&;t t
34724 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
34725 s
&@builddir@
&$ac_builddir&;t t
34726 s
&@abs_builddir@
&$ac_abs_builddir&;t t
34727 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
34728 s
&@INSTALL@
&$ac_INSTALL&;t t
34729 $ac_datarootdir_hack
34730 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" | sed 's/|#_!!_#|//g' >$tmp/out
34732 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34733 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
34734 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
34735 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
34736 which seems to be undefined. Please make sure it is defined." >&5
34737 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
34738 which seems to be undefined. Please make sure it is defined." >&2;}
34742 -) cat "$tmp/out"; rm -f "$tmp/out";;
34743 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34752 # Transform confdefs.h into a sed script `conftest.defines', that
34753 # substitutes the proper values into config.h.in to produce config.h.
34754 rm -f conftest.defines conftest.
tail
34755 # First, append a space to every undef/define line, to ease matching.
34756 echo 's/$/ /' >conftest.defines
34757 # Then, protect against being on the right side of a sed subst, or in
34758 # an unquoted here document, in config.status. If some macros were
34759 # called several times there might be several #defines for the same
34760 # symbol, which is useless. But do not sort them, since the last
34761 # AC_DEFINE must be honored.
34762 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
34763 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34764 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34765 # PARAMS is the parameter list in the macro definition--in most cases, it's
34766 # just an empty string.
34767 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34768 ac_dB
='\\)[ (].*,\\1define\\2'
34776 s/^[ ]*#[ ]*define[ ][ ]*//
34781 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34782 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34783 ' >>conftest.defines
34785 # Remove the space that was appended to ease matching.
34786 # Then replace #undef with comments. This is necessary, for
34787 # example, in the case of _POSIX_SOURCE, which is predefined and required
34788 # on some systems where configure will not decide to define it.
34789 # (The regexp can be short, since the line contains either #define or #undef.)
34791 s,^[ #]*u.*,/* & */,' >>conftest.defines
34793 # Break up conftest.defines:
34794 ac_max_sed_lines
=50
34796 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34797 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34798 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34800 ac_in
='$ac_file_inputs'
34801 ac_out
='"$tmp/out1"'
34802 ac_nxt
='"$tmp/out2"'
34806 # Write a here document:
34807 cat >>$CONFIG_STATUS <<_ACEOF
34808 # First, check the format of the line:
34809 cat >"\$tmp/defines.sed" <<\\CEOF
34810 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34811 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34815 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
34817 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34818 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
34819 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
34820 grep . conftest.
tail >/dev
/null ||
break
34821 rm -f conftest.defines
34822 mv conftest.
tail conftest.defines
34824 rm -f conftest.defines conftest.
tail
34826 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34827 cat >>$CONFIG_STATUS <<\_ACEOF
34828 if test x
"$ac_file" != x-
; then
34829 echo "/* $configure_input */" >"$tmp/config.h"
34830 cat "$ac_result" >>"$tmp/config.h"
34831 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
34832 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34833 echo "$as_me: $ac_file is unchanged" >&6;}
34836 mv "$tmp/config.h" $ac_file
34839 echo "/* $configure_input */"
34851 { (exit 0); exit 0; }
34853 chmod +x
$CONFIG_STATUS
34854 ac_clean_files
=$ac_clean_files_save
34857 # configure is writing to config.log, and then calls config.status.
34858 # config.status does its own redirection, appending to config.log.
34859 # Unfortunately, on DOS this fails, as config.log is still kept open
34860 # by configure, so config.status won't be able to write to it; its
34861 # output is simply discarded. So we exec the FD to /dev/null,
34862 # effectively closing config.log, so it can be properly (re)opened and
34863 # appended to by config.status. When coming back to configure, we
34864 # need to make the FD available again.
34865 if test "$no_create" != yes; then
34867 ac_config_status_args
=
34868 test "$silent" = yes &&
34869 ac_config_status_args
="$ac_config_status_args --quiet"
34871 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34873 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34874 # would make configure fail if this is the last instruction.
34875 $ac_cs_success ||
{ (exit 1); exit 1; }
34879 if test "x${silent}" != "xyes" ; then
34881 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
34882 echo " .\$7\$7.. .7\$\$7:. "
34883 echo " .\$\$:. ,\$7.7 "
34884 echo " .\$7. 7\$\$\$\$ .\$\$77 "
34885 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
34886 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
34887 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
34888 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
34889 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
34890 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
34891 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
34892 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
34893 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
34894 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
34895 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
34896 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
34897 echo " \$\$\$\$\$ \$\$\$ "
34898 echo " \$\$\$\$7. \$\$ (TM) "
34899 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
34900 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
34901 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
34905 { echo "$as_me:$LINENO: Package configured for: " >&5
34906 echo "$as_me: Package configured for: " >&6;}
34907 { echo "$as_me:$LINENO: OS type : $host_os" >&5
34908 echo "$as_me: OS type : $host_os" >&6;}
34909 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
34910 echo "$as_me: Host CPU : $host_cpu" >&6;}
34911 if test "${cross_compiling}" = "yes"; then
34912 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
34913 echo "$as_me: Cross Compilation = YES" >&6;}