Remove debug output.
[asterisk-bristuff.git] / configure
blob808acb7063c119bc0b42702c008c105413dcd4da
1 #! /bin/sh
2 # From configure.ac Revision: 115327 .
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.
13 # "Asterisk"
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
21 emulate sh
22 NULLCMD=:
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+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in
29 *posix*) set -o posix ;;
30 esac
37 # PATH needs CR
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
49 chmod +x conf$$.sh
50 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 PATH_SEPARATOR=';'
52 else
53 PATH_SEPARATOR=:
55 rm -f conf$$.sh
58 # Support unset when possible.
59 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 as_unset=unset
61 else
62 as_unset=false
66 # IFS
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.)
71 as_nl='
73 IFS=" "" $as_nl"
75 # Find who we are. Look in the path if we contain no directory separator.
76 case $0 in
77 *[\\/]* ) as_myself=$0 ;;
78 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 for as_dir in $PATH
81 IFS=$as_save_IFS
82 test -z "$as_dir" && as_dir=.
83 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 done
85 IFS=$as_save_IFS
88 esac
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
92 as_myself=$0
94 if test ! -f "$as_myself"; then
95 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 { (exit 1); exit 1; }
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
102 done
103 PS1='$ '
104 PS2='> '
105 PS4='+ '
107 # NLS nuisances.
108 for as_var in \
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 \
111 LC_TELEPHONE LC_TIME
113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 eval $as_var=C; export $as_var
115 else
116 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 done
120 # Required to use basename.
121 if expr a : '\(a\)' >/dev/null 2>&1 &&
122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 as_expr=expr
124 else
125 as_expr=false
128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 as_basename=basename
130 else
131 as_basename=false
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 ||
140 echo X/"$0" |
141 sed '/^.*\/\([^/][^/]*\)\/*$/{
142 s//\1/
145 /^X\/\(\/\/\)$/{
146 s//\1/
149 /^X\/\(\/\).*/{
150 s//\1/
153 s/.*/./; q'`
155 # CDPATH.
156 $as_unset CDPATH
159 if test "x$CONFIG_SHELL" = x; then
160 if (eval ":") 2>/dev/null; then
161 as_have_required=yes
162 else
163 as_have_required=no
166 if test $as_have_required = yes && (eval ":
167 (as_func_return () {
168 (exit \$1)
170 as_func_success () {
171 as_func_return 0
173 as_func_failure () {
174 as_func_return 1
176 as_func_ret_success () {
177 return 0
179 as_func_ret_failure () {
180 return 1
183 exitcode=0
184 if as_func_success; then
186 else
187 exitcode=1
188 echo as_func_success failed.
191 if as_func_failure; then
192 exitcode=1
193 echo as_func_failure succeeded.
196 if as_func_ret_success; then
198 else
199 exitcode=1
200 echo as_func_ret_success failed.
203 if as_func_ret_failure; then
204 exitcode=1
205 echo as_func_ret_failure succeeded.
208 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 else
211 exitcode=1
212 echo positional parameters were not saved.
215 test \$exitcode = 0) || { (exit 1); exit 1; }
218 as_lineno_1=\$LINENO
219 as_lineno_2=\$LINENO
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
224 else
225 as_candidate_shells=
226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 IFS=$as_save_IFS
230 test -z "$as_dir" && as_dir=.
231 case $as_dir in
233 for as_base in sh bash ksh sh5; do
234 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 done;;
236 esac
237 done
238 IFS=$as_save_IFS
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
246 emulate sh
247 NULLCMD=:
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+"$@"}'='"$@"'
251 setopt NO_GLOB_SUBST
252 else
253 case `(set -o) 2>/dev/null` in
254 *posix*) set -o posix ;;
255 esac
261 _ASEOF
262 }; then
263 CONFIG_SHELL=$as_shell
264 as_have_required=yes
265 if { "$as_shell" 2> /dev/null <<\_ASEOF
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 emulate sh
268 NULLCMD=:
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+"$@"}'='"$@"'
272 setopt NO_GLOB_SUBST
273 else
274 case `(set -o) 2>/dev/null` in
275 *posix*) set -o posix ;;
276 esac
282 (as_func_return () {
283 (exit $1)
285 as_func_success () {
286 as_func_return 0
288 as_func_failure () {
289 as_func_return 1
291 as_func_ret_success () {
292 return 0
294 as_func_ret_failure () {
295 return 1
298 exitcode=0
299 if as_func_success; then
301 else
302 exitcode=1
303 echo as_func_success failed.
306 if as_func_failure; then
307 exitcode=1
308 echo as_func_failure succeeded.
311 if as_func_ret_success; then
313 else
314 exitcode=1
315 echo as_func_ret_success failed.
318 if as_func_ret_failure; then
319 exitcode=1
320 echo as_func_ret_failure succeeded.
323 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 else
326 exitcode=1
327 echo positional parameters were not saved.
330 test $exitcode = 0) || { (exit 1); exit 1; }
333 as_lineno_1=$LINENO
334 as_lineno_2=$LINENO
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; }
338 _ASEOF
339 }; then
340 break
345 done
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
350 done
351 export CONFIG_SHELL
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 () {
372 (exit \$1)
374 as_func_success () {
375 as_func_return 0
377 as_func_failure () {
378 as_func_return 1
380 as_func_ret_success () {
381 return 0
383 as_func_ret_failure () {
384 return 1
387 exitcode=0
388 if as_func_success; then
390 else
391 exitcode=1
392 echo as_func_success failed.
395 if as_func_failure; then
396 exitcode=1
397 echo as_func_failure succeeded.
400 if as_func_ret_success; then
402 else
403 exitcode=1
404 echo as_func_ret_success failed.
407 if as_func_ret_failure; then
408 exitcode=1
409 echo as_func_ret_failure succeeded.
412 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 else
415 exitcode=1
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
423 echo message
428 as_lineno_1=$LINENO
429 as_lineno_2=$LINENO
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
439 # case at line end.
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. :-)
443 sed -n '
445 /[$]LINENO/=
446 ' <$as_myself |
447 sed '
448 s/[$]LINENO.*/&-/
449 t lineno
451 :lineno
453 :loop
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 t loop
456 s/-\n.*//
457 ' >$as_me.lineno &&
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).
465 . "./$as_me.lineno"
466 # Exit status is that of the last command.
467 exit
471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 as_dirname=dirname
473 else
474 as_dirname=false
477 ECHO_C= ECHO_N= ECHO_T=
478 case `echo -n x` in
479 -n*)
480 case `echo 'x\c'` in
481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
482 *) ECHO_C='\c';;
483 esac;;
485 ECHO_N='-n';;
486 esac
488 if expr a : '\(a\)' >/dev/null 2>&1 &&
489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 as_expr=expr
491 else
492 as_expr=false
495 rm -f conf$$ conf$$.exe conf$$.file
496 if test -d conf$$.dir; then
497 rm -f conf$$.dir/conf$$.file
498 else
499 rm -f conf$$.dir
500 mkdir conf$$.dir
502 echo >conf$$.file
503 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s='ln -s'
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 ||
510 as_ln_s='cp -p'
511 elif ln conf$$.file conf$$ 2>/dev/null; then
512 as_ln_s=ln
513 else
514 as_ln_s='cp -p'
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
520 as_mkdir_p=:
521 else
522 test -d ./-p && rmdir ./-p
523 as_mkdir_p=false
526 if test -x / >/dev/null 2>&1; then
527 as_test_x='test -x'
528 else
529 if ls -dL / >/dev/null 2>&1; then
530 as_ls_L_option=L
531 else
532 as_ls_L_option=
534 as_test_x='
535 eval sh -c '\''
536 if test -d "$1"; then
537 test -d "$1/.";
538 else
539 case $1 in
540 -*)set "./$1";;
541 esac;
542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 ???[sx]*):;;*)false;;esac;fi
544 '\'' sh
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
559 # Name of the host.
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`
565 # Initializations.
567 ac_default_prefix=/usr/local
568 ac_clean_files=
569 ac_config_libobj_dir=.
570 LIBOBJS=
571 cross_compiling=no
572 subdirs=
573 MFLAGS=
574 MAKEFLAGS=
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="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
621 ac_header_list=
622 ac_subst_vars='SHELL
623 PATH_SEPARATOR
624 PACKAGE_NAME
625 PACKAGE_TARNAME
626 PACKAGE_VERSION
627 PACKAGE_STRING
628 PACKAGE_BUGREPORT
629 exec_prefix
630 prefix
631 program_transform_name
632 bindir
633 sbindir
634 libexecdir
635 datarootdir
636 datadir
637 sysconfdir
638 sharedstatedir
639 localstatedir
640 includedir
641 oldincludedir
642 docdir
643 infodir
644 htmldir
645 dvidir
646 pdfdir
647 psdir
648 libdir
649 localedir
650 mandir
651 DEFS
652 ECHO_C
653 ECHO_N
654 ECHO_T
655 LIBS
656 build_alias
657 host_alias
658 target_alias
659 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
675 GREP
676 EGREP
677 BUILD_PLATFORM
678 BUILD_CPU
679 BUILD_VENDOR
680 BUILD_OS
681 HOST_PLATFORM
682 HOST_CPU
683 HOST_VENDOR
684 HOST_OS
685 OSARCH
686 UNAME
687 PBX_OSREV
690 RANLIB
691 CXXFLAGS
692 ac_ct_CXX
693 CXXCPP
696 INSTALL_PROGRAM
697 INSTALL_SCRIPT
698 INSTALL_DATA
699 LN_S
700 GNU_MAKE
701 STRIP
703 GNU_LD
704 FIND
705 COMPRESS
706 BASENAME
708 DIRNAME
711 WGET
712 FETCH
713 DOWNLOAD
714 SOXMIX
715 acx_pthread_config
716 PTHREAD_CC
717 PTHREAD_LIBS
718 PTHREAD_CFLAGS
719 AST_DEVMODE
720 ALSA_LIB
721 ALSA_INCLUDE
722 ALSA_DIR
723 PBX_ALSA
724 CURL_LIB
725 CURL_INCLUDE
726 CURL_DIR
727 PBX_CURL
728 CAP_LIB
729 CAP_INCLUDE
730 CAP_DIR
731 PBX_CAP
732 CURSES_LIB
733 CURSES_INCLUDE
734 CURSES_DIR
735 PBX_CURSES
736 GNUTLS_LIB
737 GNUTLS_INCLUDE
738 GNUTLS_DIR
739 PBX_GNUTLS
740 GSM_LIB
741 GSM_INCLUDE
742 GSM_DIR
743 PBX_GSM
744 IKSEMEL_LIB
745 IKSEMEL_INCLUDE
746 IKSEMEL_DIR
747 PBX_IKSEMEL
748 IMAP_TK_LIB
749 IMAP_TK_INCLUDE
750 IMAP_TK_DIR
751 PBX_IMAP_TK
752 ISDNNET_LIB
753 ISDNNET_INCLUDE
754 ISDNNET_DIR
755 PBX_ISDNNET
756 KDE_LIB
757 KDE_INCLUDE
758 KDE_DIR
759 PBX_KDE
760 LTDL_LIB
761 LTDL_INCLUDE
762 LTDL_DIR
763 PBX_LTDL
764 MISDN_LIB
765 MISDN_INCLUDE
766 MISDN_DIR
767 PBX_MISDN
768 NBS_LIB
769 NBS_INCLUDE
770 NBS_DIR
771 PBX_NBS
772 NCURSES_LIB
773 NCURSES_INCLUDE
774 NCURSES_DIR
775 PBX_NCURSES
776 NETSNMP_LIB
777 NETSNMP_INCLUDE
778 NETSNMP_DIR
779 PBX_NETSNMP
780 NEWT_LIB
781 NEWT_INCLUDE
782 NEWT_DIR
783 PBX_NEWT
784 UNIXODBC_LIB
785 UNIXODBC_INCLUDE
786 UNIXODBC_DIR
787 PBX_UNIXODBC
788 OGG_LIB
789 OGG_INCLUDE
790 OGG_DIR
791 PBX_OGG
792 OSPTK_LIB
793 OSPTK_INCLUDE
794 OSPTK_DIR
795 PBX_OSPTK
796 OSS_LIB
797 OSS_INCLUDE
798 OSS_DIR
799 PBX_OSS
800 POPT_LIB
801 POPT_INCLUDE
802 POPT_DIR
803 PBX_POPT
804 PGSQL_LIB
805 PGSQL_INCLUDE
806 PGSQL_DIR
807 PBX_PGSQL
808 PRI_LIB
809 PRI_INCLUDE
810 PRI_DIR
811 PBX_PRI
812 PWLIB_LIB
813 PWLIB_INCLUDE
814 PWLIB_DIR
815 PBX_PWLIB
816 OPENH323_LIB
817 OPENH323_INCLUDE
818 OPENH323_DIR
819 PBX_OPENH323
820 RADIUS_LIB
821 RADIUS_INCLUDE
822 RADIUS_DIR
823 PBX_RADIUS
824 SPEEX_LIB
825 SPEEX_INCLUDE
826 SPEEX_DIR
827 PBX_SPEEX
828 SPEEXDSP_LIB
829 SPEEXDSP_INCLUDE
830 SPEEXDSP_DIR
831 PBX_SPEEXDSP
832 SQLITE_LIB
833 SQLITE_INCLUDE
834 SQLITE_DIR
835 PBX_SQLITE
836 SUPPSERV_LIB
837 SUPPSERV_INCLUDE
838 SUPPSERV_DIR
839 PBX_SUPPSERV
840 OPENSSL_LIB
841 OPENSSL_INCLUDE
842 OPENSSL_DIR
843 PBX_OPENSSL
844 FREETDS_LIB
845 FREETDS_INCLUDE
846 FREETDS_DIR
847 PBX_FREETDS
848 TERMCAP_LIB
849 TERMCAP_INCLUDE
850 TERMCAP_DIR
851 PBX_TERMCAP
852 TINFO_LIB
853 TINFO_INCLUDE
854 TINFO_DIR
855 PBX_TINFO
856 TONEZONE_LIB
857 TONEZONE_INCLUDE
858 TONEZONE_DIR
859 PBX_TONEZONE
860 USB_LIB
861 USB_INCLUDE
862 USB_DIR
863 PBX_USB
864 VORBIS_LIB
865 VORBIS_INCLUDE
866 VORBIS_DIR
867 PBX_VORBIS
868 VPB_LIB
869 VPB_INCLUDE
870 VPB_DIR
871 PBX_VPB
872 ZLIB_LIB
873 ZLIB_INCLUDE
874 ZLIB_DIR
875 PBX_ZLIB
876 ZAPTEL_LIB
877 ZAPTEL_INCLUDE
878 ZAPTEL_DIR
879 PBX_ZAPTEL
880 ALLOCA
881 LIBOBJS
882 POW_LIB
883 GC_CFLAGS
884 GC_LDFLAGS
885 AST_DECLARATION_AFTER_STATEMENT
886 AST_NO_STRICT_OVERFLOW
887 GSM_INTERNAL
888 KDEINIT
889 KDEDIR
890 NETSNMP_CONFIG
891 PG_CONFIG
892 PTLIB_CONFIG
893 PWLIBDIR
894 PWLIB_INCDIR
895 PWLIB_LIBDIR
896 PWLIB_PLATFORM
897 OPENH323DIR
898 OPENH323_INCDIR
899 OPENH323_LIBDIR
900 OPENH323_SUFFIX
901 OPENH323_BUILD
902 PBX_SPEEX_PREPROCESS
903 PBX_ZAPTEL_VLDTMF
904 PBX_ZAPTEL_TRANSCODE
905 EDITLINE_LIB
906 PBX_H323
907 PBX_IXJUSER
908 GTKCONFIG
909 PBX_GTK
910 GTK_INCLUDE
911 GTK_LIB
912 PKGCONFIG
913 PBX_GTK2
914 GTK2_INCLUDE
915 GTK2_LIB
916 CURL_CONFIG
917 LTLIBOBJS'
918 ac_subst_files=''
919 ac_precious_vars='build_alias
920 host_alias
921 target_alias
923 CFLAGS
924 LDFLAGS
925 LIBS
926 CPPFLAGS
929 CXXFLAGS
931 CXXCPP'
934 # Initialize some variables set by options.
935 ac_init_help=
936 ac_init_version=false
937 # The variables have the same names as the options, with
938 # dashes changed to underlines.
939 cache_file=/dev/null
940 exec_prefix=NONE
941 no_create=
942 no_recursion=
943 prefix=NONE
944 program_prefix=NONE
945 program_suffix=NONE
946 program_transform_name=s,x,x,
947 silent=
948 site=
949 srcdir=
950 verbose=
951 x_includes=NONE
952 x_libraries=NONE
954 # Installation directory options.
955 # These are left unexpanded so users can "make install exec_prefix=/foo"
956 # and all the variables that are supposed to be based on exec_prefix
957 # by default will actually change.
958 # Use braces instead of parens because sh, perl, etc. also accept them.
959 # (The list follows the same order as the GNU Coding Standards.)
960 bindir='${exec_prefix}/bin'
961 sbindir='${exec_prefix}/sbin'
962 libexecdir='${exec_prefix}/libexec'
963 datarootdir='${prefix}/share'
964 datadir='${datarootdir}'
965 sysconfdir='${prefix}/etc'
966 sharedstatedir='${prefix}/com'
967 localstatedir='${prefix}/var'
968 includedir='${prefix}/include'
969 oldincludedir='/usr/include'
970 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
971 infodir='${datarootdir}/info'
972 htmldir='${docdir}'
973 dvidir='${docdir}'
974 pdfdir='${docdir}'
975 psdir='${docdir}'
976 libdir='${exec_prefix}/lib'
977 localedir='${datarootdir}/locale'
978 mandir='${datarootdir}/man'
980 ac_prev=
981 ac_dashdash=
982 for ac_option
984 # If the previous option needs an argument, assign it.
985 if test -n "$ac_prev"; then
986 eval $ac_prev=\$ac_option
987 ac_prev=
988 continue
991 case $ac_option in
992 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
993 *) ac_optarg=yes ;;
994 esac
996 # Accept the important Cygnus configure options, so we can diagnose typos.
998 case $ac_dashdash$ac_option in
1000 ac_dashdash=yes ;;
1002 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 ac_prev=bindir ;;
1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1005 bindir=$ac_optarg ;;
1007 -build | --build | --buil | --bui | --bu)
1008 ac_prev=build_alias ;;
1009 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1010 build_alias=$ac_optarg ;;
1012 -cache-file | --cache-file | --cache-fil | --cache-fi \
1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1014 ac_prev=cache_file ;;
1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1017 cache_file=$ac_optarg ;;
1019 --config-cache | -C)
1020 cache_file=config.cache ;;
1022 -datadir | --datadir | --datadi | --datad)
1023 ac_prev=datadir ;;
1024 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1025 datadir=$ac_optarg ;;
1027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1028 | --dataroo | --dataro | --datar)
1029 ac_prev=datarootdir ;;
1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1032 datarootdir=$ac_optarg ;;
1034 -disable-* | --disable-*)
1035 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041 eval enable_$ac_feature=no ;;
1043 -docdir | --docdir | --docdi | --doc | --do)
1044 ac_prev=docdir ;;
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 ac_prev=dvidir ;;
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1053 -enable-* | --enable-*)
1054 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1060 eval enable_$ac_feature=\$ac_optarg ;;
1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064 | --exec | --exe | --ex)
1065 ac_prev=exec_prefix ;;
1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068 | --exec=* | --exe=* | --ex=*)
1069 exec_prefix=$ac_optarg ;;
1071 -gas | --gas | --ga | --g)
1072 # Obsolete; use --with-gas.
1073 with_gas=yes ;;
1075 -help | --help | --hel | --he | -h)
1076 ac_init_help=long ;;
1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078 ac_init_help=recursive ;;
1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080 ac_init_help=short ;;
1082 -host | --host | --hos | --ho)
1083 ac_prev=host_alias ;;
1084 -host=* | --host=* | --hos=* | --ho=*)
1085 host_alias=$ac_optarg ;;
1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088 ac_prev=htmldir ;;
1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090 | --ht=*)
1091 htmldir=$ac_optarg ;;
1093 -includedir | --includedir | --includedi | --included | --include \
1094 | --includ | --inclu | --incl | --inc)
1095 ac_prev=includedir ;;
1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097 | --includ=* | --inclu=* | --incl=* | --inc=*)
1098 includedir=$ac_optarg ;;
1100 -infodir | --infodir | --infodi | --infod | --info | --inf)
1101 ac_prev=infodir ;;
1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103 infodir=$ac_optarg ;;
1105 -libdir | --libdir | --libdi | --libd)
1106 ac_prev=libdir ;;
1107 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108 libdir=$ac_optarg ;;
1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111 | --libexe | --libex | --libe)
1112 ac_prev=libexecdir ;;
1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114 | --libexe=* | --libex=* | --libe=*)
1115 libexecdir=$ac_optarg ;;
1117 -localedir | --localedir | --localedi | --localed | --locale)
1118 ac_prev=localedir ;;
1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120 localedir=$ac_optarg ;;
1122 -localstatedir | --localstatedir | --localstatedi | --localstated \
1123 | --localstate | --localstat | --localsta | --localst | --locals)
1124 ac_prev=localstatedir ;;
1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127 localstatedir=$ac_optarg ;;
1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130 ac_prev=mandir ;;
1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132 mandir=$ac_optarg ;;
1134 -nfp | --nfp | --nf)
1135 # Obsolete; use --without-fp.
1136 with_fp=no ;;
1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139 | --no-cr | --no-c | -n)
1140 no_create=yes ;;
1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144 no_recursion=yes ;;
1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148 | --oldin | --oldi | --old | --ol | --o)
1149 ac_prev=oldincludedir ;;
1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153 oldincludedir=$ac_optarg ;;
1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156 ac_prev=prefix ;;
1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158 prefix=$ac_optarg ;;
1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161 | --program-pre | --program-pr | --program-p)
1162 ac_prev=program_prefix ;;
1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165 program_prefix=$ac_optarg ;;
1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168 | --program-suf | --program-su | --program-s)
1169 ac_prev=program_suffix ;;
1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172 program_suffix=$ac_optarg ;;
1174 -program-transform-name | --program-transform-name \
1175 | --program-transform-nam | --program-transform-na \
1176 | --program-transform-n | --program-transform- \
1177 | --program-transform | --program-transfor \
1178 | --program-transfo | --program-transf \
1179 | --program-trans | --program-tran \
1180 | --progr-tra | --program-tr | --program-t)
1181 ac_prev=program_transform_name ;;
1182 -program-transform-name=* | --program-transform-name=* \
1183 | --program-transform-nam=* | --program-transform-na=* \
1184 | --program-transform-n=* | --program-transform-=* \
1185 | --program-transform=* | --program-transfor=* \
1186 | --program-transfo=* | --program-transf=* \
1187 | --program-trans=* | --program-tran=* \
1188 | --progr-tra=* | --program-tr=* | --program-t=*)
1189 program_transform_name=$ac_optarg ;;
1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192 ac_prev=pdfdir ;;
1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194 pdfdir=$ac_optarg ;;
1196 -psdir | --psdir | --psdi | --psd | --ps)
1197 ac_prev=psdir ;;
1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199 psdir=$ac_optarg ;;
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1203 silent=yes ;;
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206 ac_prev=sbindir ;;
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208 | --sbi=* | --sb=*)
1209 sbindir=$ac_optarg ;;
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1214 | --sha | --sh)
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219 | --sha=* | --sh=*)
1220 sharedstatedir=$ac_optarg ;;
1222 -site | --site | --sit)
1223 ac_prev=site ;;
1224 -site=* | --site=* | --sit=*)
1225 site=$ac_optarg ;;
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228 ac_prev=srcdir ;;
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245 verbose=yes ;;
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1250 -with-* | --with-*)
1251 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 { echo "$as_me: error: invalid package name: $ac_package" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1257 eval with_$ac_package=\$ac_optarg ;;
1259 -without-* | --without-*)
1260 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid package name: $ac_package" >&2
1264 { (exit 1); exit 1; }; }
1265 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1266 eval with_$ac_package=no ;;
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1286 -*) { echo "$as_me: error: unrecognized option: $ac_option
1287 Try \`$0 --help' for more information." >&2
1288 { (exit 1); exit 1; }; }
1291 *=*)
1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1295 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1296 { (exit 1); exit 1; }; }
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1308 esac
1309 done
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 { echo "$as_me: error: missing argument to $ac_option" >&2
1314 { (exit 1); exit 1; }; }
1317 # Be sure to have absolute directory names.
1318 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319 datadir sysconfdir sharedstatedir localstatedir includedir \
1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321 libdir localedir mandir
1323 eval ac_val=\$$ac_var
1324 case $ac_val in
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 esac
1328 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1329 { (exit 1); exit 1; }; }
1330 done
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1335 build=$build_alias
1336 host=$host_alias
1337 target=$target_alias
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341 if test "x$build_alias" = x; then
1342 cross_compiling=maybe
1343 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1344 If a cross compiler is detected then cross compile mode will be used." >&2
1345 elif test "x$build_alias" != "x$host_alias"; then
1346 cross_compiling=yes
1350 ac_tool_prefix=
1351 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353 test "$silent" = yes && exec 6>/dev/null
1356 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di=`ls -di .` &&
1358 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359 { echo "$as_me: error: Working directory cannot be determined" >&2
1360 { (exit 1); exit 1; }; }
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362 { echo "$as_me: error: pwd does not report name of working directory" >&2
1363 { (exit 1); exit 1; }; }
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$0" ||
1371 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$0" : 'X\(//\)[^/]' \| \
1373 X"$0" : 'X\(//\)$' \| \
1374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1375 echo X"$0" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1384 /^X\(\/\/\)$/{
1385 s//\1/
1388 /^X\(\/\).*/{
1389 s//\1/
1392 s/.*/./; q'`
1393 srcdir=$ac_confdir
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 srcdir=..
1397 else
1398 ac_srcdir_defaulted=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1403 { (exit 1); exit 1; }; }
1405 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 ac_abs_confdir=`(
1407 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1408 { (exit 1); exit 1; }; }
1409 pwd)`
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 srcdir=.
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1417 case $srcdir in
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 esac
1420 for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1428 # Report the --help message.
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1441 Defaults for the options are specified in brackets.
1443 Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 [PREFIX]
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1465 For better control, use the options below.
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1487 _ACEOF
1489 cat <<\_ACEOF
1491 System types:
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494 _ACEOF
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive ) echo "Configuration of asterisk 1.4:";;
1500 esac
1501 cat <<\_ACEOF
1503 Optional Features:
1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1506 --enable-dev-mode Turn on developer mode
1507 --disable-largefile omit support for large files
1509 Optional Packages:
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1513 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1514 --with-curl=PATH use cURL files in PATH
1515 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1516 --with-curses=PATH use curses files in PATH
1517 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1518 PATH
1519 --with-gsm=PATH use GSM files in PATH , or 'internal'
1520 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1521 --with-imap=PATH use UW IMAP Toolkit files in PATH
1522 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1523 --with-kde=PATH use KDE files in PATH
1524 --with-ltdl=PATH use libtool files in PATH
1525 --with-misdn=PATH use mISDN User Library files in PATH
1526 --with-nbs=PATH use Network Broadcast Sound files in PATH
1527 --with-ncurses=PATH use ncurses files in PATH
1528 --with-netsnmp=PATH use Net-SNMP files in PATH
1529 --with-newt=PATH use newt files in PATH
1530 --with-odbc=PATH use unixODBC files in PATH
1531 --with-ogg=PATH use OGG files in PATH
1532 --with-osptk=PATH use OSP Toolkit files in PATH
1533 --with-oss=PATH use Open Sound System files in PATH
1534 --with-popt=PATH use popt files in PATH
1535 --with-postgres=PATH use PostgreSQL files in PATH
1536 --with-pri=PATH use ISDN PRI files in PATH
1537 --with-pwlib=PATH use PWlib files in PATH
1538 --with-h323=PATH use OpenH323 files in PATH
1539 --with-radius=PATH use Radius Client files in PATH
1540 --with-speex=PATH use Speex files in PATH
1541 --with-speexdsp=PATH use Speexdsp files in PATH
1542 --with-sqlite=PATH use SQLite files in PATH
1543 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1544 --with-ssl=PATH use OpenSSL files in PATH
1545 --with-tds=PATH use FreeTDS files in PATH
1546 --with-termcap=PATH use Termcap files in PATH
1547 --with-tinfo=PATH use Term Info files in PATH
1548 --with-tonezone=PATH use tonezone files in PATH
1549 --with-usb=PATH use usb files in PATH
1550 --with-vorbis=PATH use Vorbis files in PATH
1551 --with-vpb=PATH use Voicetronix API files in PATH
1552 --with-z=PATH use zlib files in PATH
1553 --with-zaptel=PATH use Zaptel files in PATH
1555 Some influential environment variables:
1556 CC C compiler command
1557 CFLAGS C compiler flags
1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1559 nonstandard directory <lib dir>
1560 LIBS libraries to pass to the linker, e.g. -l<library>
1561 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1562 you have headers in a nonstandard directory <include dir>
1563 CPP C preprocessor
1564 CXX C++ compiler command
1565 CXXFLAGS C++ compiler flags
1566 CXXCPP C++ preprocessor
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1571 Report bugs to <www.asterisk.org>.
1572 _ACEOF
1573 ac_status=$?
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" || continue
1580 ac_builddir=.
1582 case "$ac_dir" in
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 esac ;;
1592 esac
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1598 case $srcdir in
1599 .) # We are building in place.
1600 ac_srcdir=.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1607 *) # Relative name.
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 esac
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1622 else
1623 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 fi || ac_status=$?
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1626 done
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1631 cat <<\_ACEOF
1632 asterisk configure 1.4
1633 generated by GNU Autoconf 2.61
1635 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1636 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1640 "Asterisk"
1641 _ACEOF
1642 exit
1644 cat >config.log <<_ACEOF
1645 This file contains any messages produced by compilers while
1646 running configure, to aid debugging if configure makes a mistake.
1648 It was created by asterisk $as_me 1.4, which was
1649 generated by GNU Autoconf 2.61. Invocation command line was
1651 $ $0 $@
1653 _ACEOF
1654 exec 5>>config.log
1656 cat <<_ASUNAME
1657 ## --------- ##
1658 ## Platform. ##
1659 ## --------- ##
1661 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1662 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1663 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1664 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1665 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1667 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1668 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1670 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1671 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1672 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1673 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1674 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1675 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1676 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1678 _ASUNAME
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 for as_dir in $PATH
1683 IFS=$as_save_IFS
1684 test -z "$as_dir" && as_dir=.
1685 echo "PATH: $as_dir"
1686 done
1687 IFS=$as_save_IFS
1689 } >&5
1691 cat >&5 <<_ACEOF
1694 ## ----------- ##
1695 ## Core tests. ##
1696 ## ----------- ##
1698 _ACEOF
1701 # Keep a trace of the command line.
1702 # Strip out --no-create and --no-recursion so they do not pile up.
1703 # Strip out --silent because we don't want to record it for future runs.
1704 # Also quote any args containing shell meta-characters.
1705 # Make two passes to allow for proper duplicate-argument suppression.
1706 ac_configure_args=
1707 ac_configure_args0=
1708 ac_configure_args1=
1709 ac_must_keep_next=false
1710 for ac_pass in 1 2
1712 for ac_arg
1714 case $ac_arg in
1715 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1717 | -silent | --silent | --silen | --sile | --sil)
1718 continue ;;
1719 *\'*)
1720 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1721 esac
1722 case $ac_pass in
1723 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1725 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1726 if test $ac_must_keep_next = true; then
1727 ac_must_keep_next=false # Got value, back to normal.
1728 else
1729 case $ac_arg in
1730 *=* | --config-cache | -C | -disable-* | --disable-* \
1731 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1732 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1733 | -with-* | --with-* | -without-* | --without-* | --x)
1734 case "$ac_configure_args0 " in
1735 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1736 esac
1738 -* ) ac_must_keep_next=true ;;
1739 esac
1741 ac_configure_args="$ac_configure_args '$ac_arg'"
1743 esac
1744 done
1745 done
1746 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1747 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1749 # When interrupted or exit'd, cleanup temporary files, and complete
1750 # config.log. We remove comments because anyway the quotes in there
1751 # would cause problems or look ugly.
1752 # WARNING: Use '\'' to represent an apostrophe within the trap.
1753 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1754 trap 'exit_status=$?
1755 # Save into config.log some information that might help in debugging.
1757 echo
1759 cat <<\_ASBOX
1760 ## ---------------- ##
1761 ## Cache variables. ##
1762 ## ---------------- ##
1763 _ASBOX
1764 echo
1765 # The following way of writing the cache mishandles newlines in values,
1767 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1768 eval ac_val=\$$ac_var
1769 case $ac_val in #(
1770 *${as_nl}*)
1771 case $ac_var in #(
1772 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1773 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1774 esac
1775 case $ac_var in #(
1776 _ | IFS | as_nl) ;; #(
1777 *) $as_unset $ac_var ;;
1778 esac ;;
1779 esac
1780 done
1781 (set) 2>&1 |
1782 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1783 *${as_nl}ac_space=\ *)
1784 sed -n \
1785 "s/'\''/'\''\\\\'\'''\''/g;
1786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1787 ;; #(
1789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1791 esac |
1792 sort
1794 echo
1796 cat <<\_ASBOX
1797 ## ----------------- ##
1798 ## Output variables. ##
1799 ## ----------------- ##
1800 _ASBOX
1801 echo
1802 for ac_var in $ac_subst_vars
1804 eval ac_val=\$$ac_var
1805 case $ac_val in
1806 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 esac
1808 echo "$ac_var='\''$ac_val'\''"
1809 done | sort
1810 echo
1812 if test -n "$ac_subst_files"; then
1813 cat <<\_ASBOX
1814 ## ------------------- ##
1815 ## File substitutions. ##
1816 ## ------------------- ##
1817 _ASBOX
1818 echo
1819 for ac_var in $ac_subst_files
1821 eval ac_val=\$$ac_var
1822 case $ac_val in
1823 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824 esac
1825 echo "$ac_var='\''$ac_val'\''"
1826 done | sort
1827 echo
1830 if test -s confdefs.h; then
1831 cat <<\_ASBOX
1832 ## ----------- ##
1833 ## confdefs.h. ##
1834 ## ----------- ##
1835 _ASBOX
1836 echo
1837 cat confdefs.h
1838 echo
1840 test "$ac_signal" != 0 &&
1841 echo "$as_me: caught signal $ac_signal"
1842 echo "$as_me: exit $exit_status"
1843 } >&5
1844 rm -f core *.core core.conftest.* &&
1845 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1846 exit $exit_status
1848 for ac_signal in 1 2 13 15; do
1849 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1850 done
1851 ac_signal=0
1853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1854 rm -f -r conftest* confdefs.h
1856 # Predefined preprocessor variables.
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_NAME "$PACKAGE_NAME"
1860 _ACEOF
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1865 _ACEOF
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1870 _ACEOF
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1875 _ACEOF
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1880 _ACEOF
1883 # Let the site file select an alternate cache file if it wants to.
1884 # Prefer explicitly selected file to automatically selected ones.
1885 if test -n "$CONFIG_SITE"; then
1886 set x "$CONFIG_SITE"
1887 elif test "x$prefix" != xNONE; then
1888 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1889 else
1890 set x "$ac_default_prefix/share/config.site" \
1891 "$ac_default_prefix/etc/config.site"
1893 shift
1894 for ac_site_file
1896 if test -r "$ac_site_file"; then
1897 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 echo "$as_me: loading site script $ac_site_file" >&6;}
1899 sed 's/^/| /' "$ac_site_file" >&5
1900 . "$ac_site_file"
1902 done
1904 if test -r "$cache_file"; then
1905 # Some versions of bash will fail to source /dev/null (special
1906 # files actually), so we avoid doing that.
1907 if test -f "$cache_file"; then
1908 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 echo "$as_me: loading cache $cache_file" >&6;}
1910 case $cache_file in
1911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912 *) . "./$cache_file";;
1913 esac
1915 else
1916 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 echo "$as_me: creating cache $cache_file" >&6;}
1918 >$cache_file
1921 ac_header_list="$ac_header_list utime.h"
1922 # Check that the precious variables saved in the cache have kept the same
1923 # value.
1924 ac_cache_corrupted=false
1925 for ac_var in $ac_precious_vars; do
1926 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1927 eval ac_new_set=\$ac_env_${ac_var}_set
1928 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1929 eval ac_new_val=\$ac_env_${ac_var}_value
1930 case $ac_old_set,$ac_new_set in
1931 set,)
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1933 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1935 ,set)
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1939 ,);;
1941 if test "x$ac_old_val" != "x$ac_new_val"; then
1942 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1945 echo "$as_me: former value: $ac_old_val" >&2;}
1946 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1947 echo "$as_me: current value: $ac_new_val" >&2;}
1948 ac_cache_corrupted=:
1949 fi;;
1950 esac
1951 # Pass precious variables to config.status.
1952 if test "$ac_new_set" = set; then
1953 case $ac_new_val in
1954 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1955 *) ac_arg=$ac_var=$ac_new_val ;;
1956 esac
1957 case " $ac_configure_args " in
1958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1959 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1960 esac
1962 done
1963 if $ac_cache_corrupted; then
1964 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1965 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1966 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1967 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1968 { (exit 1); exit 1; }; }
1995 ac_ext=c
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 # cross-compile macros
2004 ac_aux_dir=
2005 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2006 if test -f "$ac_dir/install-sh"; then
2007 ac_aux_dir=$ac_dir
2008 ac_install_sh="$ac_aux_dir/install-sh -c"
2009 break
2010 elif test -f "$ac_dir/install.sh"; then
2011 ac_aux_dir=$ac_dir
2012 ac_install_sh="$ac_aux_dir/install.sh -c"
2013 break
2014 elif test -f "$ac_dir/shtool"; then
2015 ac_aux_dir=$ac_dir
2016 ac_install_sh="$ac_aux_dir/shtool install -c"
2017 break
2019 done
2020 if test -z "$ac_aux_dir"; then
2021 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2022 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2023 { (exit 1); exit 1; }; }
2026 # These three variables are undocumented and unsupported,
2027 # and are intended to be withdrawn in a future Autoconf release.
2028 # They can cause serious problems if a builder's source tree is in a directory
2029 # whose full name contains unusual characters.
2030 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2031 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2032 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2035 # Make sure we can run config.sub.
2036 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2037 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2038 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2039 { (exit 1); exit 1; }; }
2041 { echo "$as_me:$LINENO: checking build system type" >&5
2042 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2043 if test "${ac_cv_build+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 ac_build_alias=$build_alias
2047 test "x$ac_build_alias" = x &&
2048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2049 test "x$ac_build_alias" = x &&
2050 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2051 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2052 { (exit 1); exit 1; }; }
2053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2054 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2055 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2056 { (exit 1); exit 1; }; }
2059 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2060 echo "${ECHO_T}$ac_cv_build" >&6; }
2061 case $ac_cv_build in
2062 *-*-*) ;;
2063 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2064 echo "$as_me: error: invalid value of canonical build" >&2;}
2065 { (exit 1); exit 1; }; };;
2066 esac
2067 build=$ac_cv_build
2068 ac_save_IFS=$IFS; IFS='-'
2069 set x $ac_cv_build
2070 shift
2071 build_cpu=$1
2072 build_vendor=$2
2073 shift; shift
2074 # Remember, the first character of IFS is used to create $*,
2075 # except with old shells:
2076 build_os=$*
2077 IFS=$ac_save_IFS
2078 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2081 { echo "$as_me:$LINENO: checking host system type" >&5
2082 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2083 if test "${ac_cv_host+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086 if test "x$host_alias" = x; then
2087 ac_cv_host=$ac_cv_build
2088 else
2089 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2090 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2091 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2092 { (exit 1); exit 1; }; }
2096 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2097 echo "${ECHO_T}$ac_cv_host" >&6; }
2098 case $ac_cv_host in
2099 *-*-*) ;;
2100 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2101 echo "$as_me: error: invalid value of canonical host" >&2;}
2102 { (exit 1); exit 1; }; };;
2103 esac
2104 host=$ac_cv_host
2105 ac_save_IFS=$IFS; IFS='-'
2106 set x $ac_cv_host
2107 shift
2108 host_cpu=$1
2109 host_vendor=$2
2110 shift; shift
2111 # Remember, the first character of IFS is used to create $*,
2112 # except with old shells:
2113 host_os=$*
2114 IFS=$ac_save_IFS
2115 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2119 # check existence of the package
2122 # specify output header file
2123 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2130 cat >>confdefs.h <<\_ACEOF
2131 #define _GNU_SOURCE 1
2132 _ACEOF
2135 ac_ext=c
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 break 2
2162 done
2163 done
2164 IFS=$as_save_IFS
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170 { echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6; }
2172 else
2173 { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2179 if test -z "$ac_cv_prog_CC"; then
2180 ac_ct_CC=$CC
2181 # Extract the first word of "gcc", so it can be a program name with args.
2182 set dummy gcc; ac_word=$2
2183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188 if test -n "$ac_ct_CC"; then
2189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 ac_cv_prog_ac_ct_CC="gcc"
2199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 break 2
2202 done
2203 done
2204 IFS=$as_save_IFS
2208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209 if test -n "$ac_ct_CC"; then
2210 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2211 echo "${ECHO_T}$ac_ct_CC" >&6; }
2212 else
2213 { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2217 if test "x$ac_ct_CC" = x; then
2218 CC=""
2219 else
2220 case $cross_compiling:$ac_tool_warned in
2221 yes:)
2222 { echo "$as_me:$LINENO: 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." >&5
2225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2226 whose name does not start with the host triplet. If you think this
2227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2228 ac_tool_warned=yes ;;
2229 esac
2230 CC=$ac_ct_CC
2232 else
2233 CC="$ac_cv_prog_CC"
2236 if test -z "$CC"; then
2237 if test -n "$ac_tool_prefix"; then
2238 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2239 set dummy ${ac_tool_prefix}cc; ac_word=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_CC="${ac_tool_prefix}cc"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2259 done
2260 done
2261 IFS=$as_save_IFS
2265 CC=$ac_cv_prog_CC
2266 if test -n "$CC"; then
2267 { echo "$as_me:$LINENO: result: $CC" >&5
2268 echo "${ECHO_T}$CC" >&6; }
2269 else
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2277 if test -z "$CC"; then
2278 # Extract the first word of "cc", so it can be a program name with args.
2279 set dummy cc; ac_word=$2
2280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2287 else
2288 ac_prog_rejected=no
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2297 ac_prog_rejected=yes
2298 continue
2300 ac_cv_prog_CC="cc"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2304 done
2305 done
2306 IFS=$as_save_IFS
2308 if test $ac_prog_rejected = yes; then
2309 # We found a bogon in the path, so make sure we never use it.
2310 set dummy $ac_cv_prog_CC
2311 shift
2312 if test $# != 0; then
2313 # We chose a different compiler from the bogus one.
2314 # However, it has the same basename, so the bogon will be chosen
2315 # first if we set CC to just the basename; use the full file name.
2316 shift
2317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2322 CC=$ac_cv_prog_CC
2323 if test -n "$CC"; then
2324 { echo "$as_me:$LINENO: result: $CC" >&5
2325 echo "${ECHO_T}$CC" >&6; }
2326 else
2327 { echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6; }
2333 if test -z "$CC"; then
2334 if test -n "$ac_tool_prefix"; then
2335 for ac_prog in cl.exe
2337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 break 2
2358 done
2359 done
2360 IFS=$as_save_IFS
2364 CC=$ac_cv_prog_CC
2365 if test -n "$CC"; then
2366 { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2368 else
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2374 test -n "$CC" && break
2375 done
2377 if test -z "$CC"; then
2378 ac_ct_CC=$CC
2379 for ac_prog in cl.exe
2381 # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388 if test -n "$ac_ct_CC"; then
2389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_ac_ct_CC="$ac_prog"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 break 2
2402 done
2403 done
2404 IFS=$as_save_IFS
2408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then
2410 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2411 echo "${ECHO_T}$ac_ct_CC" >&6; }
2412 else
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2418 test -n "$ac_ct_CC" && break
2419 done
2421 if test "x$ac_ct_CC" = x; then
2422 CC=""
2423 else
2424 case $cross_compiling:$ac_tool_warned in
2425 yes:)
2426 { echo "$as_me:$LINENO: 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." >&5
2429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432 ac_tool_warned=yes ;;
2433 esac
2434 CC=$ac_ct_CC
2441 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details." >&2;}
2445 { (exit 1); exit 1; }; }
2447 # Provide some information about the compiler.
2448 echo "$as_me:$LINENO: checking for C compiler version" >&5
2449 ac_compiler=`set X $ac_compile; echo $2`
2450 { (ac_try="$ac_compiler --version >&5"
2451 case "(($ac_try" in
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2454 esac
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_compiler --version >&5") 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }
2460 { (ac_try="$ac_compiler -v >&5"
2461 case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464 esac
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_compiler -v >&5") 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }
2470 { (ac_try="$ac_compiler -V >&5"
2471 case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_compiler -V >&5") 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h. */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2489 main ()
2493 return 0;
2495 _ACEOF
2496 ac_clean_files_save=$ac_clean_files
2497 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2498 # Try to create an executable without -o first, disregard a.out.
2499 # It will help us diagnose broken compilers, and finding out an intuition
2500 # of exeext.
2501 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2502 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2503 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2505 # List of possible output files, starting from the most likely.
2506 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2507 # only as a last resort. b.out is created by i960 compilers.
2508 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2510 # The IRIX 6 linker writes into existing files which may not be
2511 # executable, retaining their permissions. Remove them first so a
2512 # subsequent execution test works.
2513 ac_rmfiles=
2514 for ac_file in $ac_files
2516 case $ac_file in
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2519 esac
2520 done
2521 rm -f $ac_rmfiles
2523 if { (ac_try="$ac_link_default"
2524 case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527 esac
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_link_default") 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; then
2533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2534 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2535 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2536 # so that the user can short-circuit this test for compilers unknown to
2537 # Autoconf.
2538 for ac_file in $ac_files ''
2540 test -f "$ac_file" || continue
2541 case $ac_file in
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2544 [ab].out )
2545 # We found the default executable, but exeext='' is most
2546 # certainly right.
2547 break;;
2548 *.* )
2549 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2550 then :; else
2551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553 # We set ac_cv_exeext here because the later test for it is not
2554 # safe: cross compilers may not add the suffix if given an `-o'
2555 # argument, so we may need to know it at that point already.
2556 # Even if this section looks crufty: it has the advantage of
2557 # actually working.
2558 break;;
2560 break;;
2561 esac
2562 done
2563 test "$ac_cv_exeext" = no && ac_cv_exeext=
2565 else
2566 ac_file=''
2569 { echo "$as_me:$LINENO: result: $ac_file" >&5
2570 echo "${ECHO_T}$ac_file" >&6; }
2571 if test -z "$ac_file"; then
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: C compiler cannot create executables
2578 See \`config.log' for more details." >&2;}
2579 { (exit 77); exit 77; }; }
2582 ac_exeext=$ac_cv_exeext
2584 # Check that the compiler produces executables we can run. If not, either
2585 # the compiler is broken, or we cross compile.
2586 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2587 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2588 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2589 # If not cross compiling, check that we can run a simple program.
2590 if test "$cross_compiling" != yes; then
2591 if { ac_try='./$ac_file'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2595 esac
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 cross_compiling=no
2602 else
2603 if test "$cross_compiling" = maybe; then
2604 cross_compiling=yes
2605 else
2606 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2607 If you meant to cross compile, use \`--host'.
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: cannot run C compiled programs.
2610 If you meant to cross compile, use \`--host'.
2611 See \`config.log' for more details." >&2;}
2612 { (exit 1); exit 1; }; }
2616 { echo "$as_me:$LINENO: result: yes" >&5
2617 echo "${ECHO_T}yes" >&6; }
2619 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2620 ac_clean_files=$ac_clean_files_save
2621 # Check that the compiler produces executables we can run. If not, either
2622 # the compiler is broken, or we cross compile.
2623 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2624 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2625 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2626 echo "${ECHO_T}$cross_compiling" >&6; }
2628 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2629 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2630 if { (ac_try="$ac_link"
2631 case "(($ac_try" in
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2634 esac
2635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2636 (eval "$ac_link") 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; then
2640 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2641 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2642 # work properly (i.e., refer to `conftest.exe'), while it won't with
2643 # `rm'.
2644 for ac_file in conftest.exe conftest conftest.*; do
2645 test -f "$ac_file" || continue
2646 case $ac_file in
2647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2648 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2649 break;;
2650 * ) break;;
2651 esac
2652 done
2653 else
2654 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2655 See \`config.log' for more details." >&5
2656 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2657 See \`config.log' for more details." >&2;}
2658 { (exit 1); exit 1; }; }
2661 rm -f conftest$ac_cv_exeext
2662 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2663 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2665 rm -f conftest.$ac_ext
2666 EXEEXT=$ac_cv_exeext
2667 ac_exeext=$EXEEXT
2668 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2669 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2670 if test "${ac_cv_objext+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673 cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h. */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2681 main ()
2685 return 0;
2687 _ACEOF
2688 rm -f conftest.o conftest.obj
2689 if { (ac_try="$ac_compile"
2690 case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compile") 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; then
2699 for ac_file in conftest.o conftest.obj conftest.*; do
2700 test -f "$ac_file" || continue;
2701 case $ac_file in
2702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2703 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2704 break;;
2705 esac
2706 done
2707 else
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2711 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&5
2713 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2714 See \`config.log' for more details." >&2;}
2715 { (exit 1); exit 1; }; }
2718 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2720 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2721 echo "${ECHO_T}$ac_cv_objext" >&6; }
2722 OBJEXT=$ac_cv_objext
2723 ac_objext=$OBJEXT
2724 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2725 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2726 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729 cat >conftest.$ac_ext <<_ACEOF
2730 /* confdefs.h. */
2731 _ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h. */
2737 main ()
2739 #ifndef __GNUC__
2740 choke me
2741 #endif
2744 return 0;
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2749 case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compile") 2>conftest.er1
2755 ac_status=$?
2756 grep -v '^ *+' conftest.er1 >conftest.err
2757 rm -f conftest.er1
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } && {
2761 test -z "$ac_c_werror_flag" ||
2762 test ! -s conftest.err
2763 } && test -s conftest.$ac_objext; then
2764 ac_compiler_gnu=yes
2765 else
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2769 ac_compiler_gnu=no
2772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2776 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2777 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2778 GCC=`test $ac_compiler_gnu = yes && echo yes`
2779 ac_test_CFLAGS=${CFLAGS+set}
2780 ac_save_CFLAGS=$CFLAGS
2781 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2782 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_cc_g+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786 ac_save_c_werror_flag=$ac_c_werror_flag
2787 ac_c_werror_flag=yes
2788 ac_cv_prog_cc_g=no
2789 CFLAGS="-g"
2790 cat >conftest.$ac_ext <<_ACEOF
2791 /* confdefs.h. */
2792 _ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2798 main ()
2802 return 0;
2804 _ACEOF
2805 rm -f conftest.$ac_objext
2806 if { (ac_try="$ac_compile"
2807 case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compile") 2>conftest.er1
2813 ac_status=$?
2814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } && {
2819 test -z "$ac_c_werror_flag" ||
2820 test ! -s conftest.err
2821 } && test -s conftest.$ac_objext; then
2822 ac_cv_prog_cc_g=yes
2823 else
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2827 CFLAGS=""
2828 cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h. */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2836 main ()
2840 return 0;
2842 _ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (ac_try="$ac_compile"
2845 case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848 esac
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_compile") 2>conftest.er1
2851 ac_status=$?
2852 grep -v '^ *+' conftest.er1 >conftest.err
2853 rm -f conftest.er1
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } && {
2857 test -z "$ac_c_werror_flag" ||
2858 test ! -s conftest.err
2859 } && test -s conftest.$ac_objext; then
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2865 ac_c_werror_flag=$ac_save_c_werror_flag
2866 CFLAGS="-g"
2867 cat >conftest.$ac_ext <<_ACEOF
2868 /* confdefs.h. */
2869 _ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2875 main ()
2879 return 0;
2881 _ACEOF
2882 rm -f conftest.$ac_objext
2883 if { (ac_try="$ac_compile"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compile") 2>conftest.er1
2890 ac_status=$?
2891 grep -v '^ *+' conftest.er1 >conftest.err
2892 rm -f conftest.er1
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } && {
2896 test -z "$ac_c_werror_flag" ||
2897 test ! -s conftest.err
2898 } && test -s conftest.$ac_objext; then
2899 ac_cv_prog_cc_g=yes
2900 else
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 ac_c_werror_flag=$ac_save_c_werror_flag
2916 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2917 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2918 if test "$ac_test_CFLAGS" = set; then
2919 CFLAGS=$ac_save_CFLAGS
2920 elif test $ac_cv_prog_cc_g = yes; then
2921 if test "$GCC" = yes; then
2922 CFLAGS="-g -O2"
2923 else
2924 CFLAGS="-g"
2926 else
2927 if test "$GCC" = yes; then
2928 CFLAGS="-O2"
2929 else
2930 CFLAGS=
2933 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2934 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2935 if test "${ac_cv_prog_cc_c89+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938 ac_cv_prog_cc_c89=no
2939 ac_save_CC=$CC
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #include <stdarg.h>
2947 #include <stdio.h>
2948 #include <sys/types.h>
2949 #include <sys/stat.h>
2950 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2951 struct buf { int x; };
2952 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2953 static char *e (p, i)
2954 char **p;
2955 int i;
2957 return p[i];
2959 static char *f (char * (*g) (char **, int), char **p, ...)
2961 char *s;
2962 va_list v;
2963 va_start (v,p);
2964 s = g (p, va_arg (v,int));
2965 va_end (v);
2966 return s;
2969 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2970 function prototypes and stuff, but not '\xHH' hex character constants.
2971 These don't provoke an error unfortunately, instead are silently treated
2972 as 'x'. The following induces an error, until -std is added to get
2973 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2974 array size at least. It's necessary to write '\x00'==0 to get something
2975 that's true only with -std. */
2976 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2978 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2979 inside strings and character constants. */
2980 #define FOO(x) 'x'
2981 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2983 int test (int i, double x);
2984 struct s1 {int (*f) (int a);};
2985 struct s2 {int (*f) (double a);};
2986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2987 int argc;
2988 char **argv;
2990 main ()
2992 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2994 return 0;
2996 _ACEOF
2997 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2998 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3000 CC="$ac_save_CC $ac_arg"
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3003 case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3009 ac_status=$?
3010 grep -v '^ *+' conftest.er1 >conftest.err
3011 rm -f conftest.er1
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } && {
3015 test -z "$ac_c_werror_flag" ||
3016 test ! -s conftest.err
3017 } && test -s conftest.$ac_objext; then
3018 ac_cv_prog_cc_c89=$ac_arg
3019 else
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3026 rm -f core conftest.err conftest.$ac_objext
3027 test "x$ac_cv_prog_cc_c89" != "xno" && break
3028 done
3029 rm -f conftest.$ac_ext
3030 CC=$ac_save_CC
3033 # AC_CACHE_VAL
3034 case "x$ac_cv_prog_cc_c89" in
3036 { echo "$as_me:$LINENO: result: none needed" >&5
3037 echo "${ECHO_T}none needed" >&6; } ;;
3038 xno)
3039 { echo "$as_me:$LINENO: result: unsupported" >&5
3040 echo "${ECHO_T}unsupported" >&6; } ;;
3042 CC="$CC $ac_cv_prog_cc_c89"
3043 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3044 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3045 esac
3048 ac_ext=c
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055 ac_ext=c
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3061 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3062 # On Suns, sometimes $CPP names a directory.
3063 if test -n "$CPP" && test -d "$CPP"; then
3064 CPP=
3066 if test -z "$CPP"; then
3067 if test "${ac_cv_prog_CPP+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 # Double quotes because CPP needs to be expanded
3071 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3073 ac_preproc_ok=false
3074 for ac_c_preproc_warn_flag in '' yes
3076 # Use a header file that comes with gcc, so configuring glibc
3077 # with a fresh cross-compiler works.
3078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3079 # <limits.h> exists even on freestanding compilers.
3080 # On the NeXT, cc -E runs the code through the compiler's parser,
3081 # not just through cpp. "Syntax error" is here to catch this case.
3082 cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h. */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3088 #ifdef __STDC__
3089 # include <limits.h>
3090 #else
3091 # include <assert.h>
3092 #endif
3093 Syntax error
3094 _ACEOF
3095 if { (ac_try="$ac_cpp conftest.$ac_ext"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev/null && {
3108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 }; then
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 # Broken: fails on valid input.
3117 continue
3120 rm -f conftest.err conftest.$ac_ext
3122 # OK, works on sane cases. Now check whether nonexistent headers
3123 # can be detected and how.
3124 cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3130 #include <ac_nonexistent.h>
3131 _ACEOF
3132 if { (ac_try="$ac_cpp conftest.$ac_ext"
3133 case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } >/dev/null && {
3145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3146 test ! -s conftest.err
3147 }; then
3148 # Broken: success on invalid input.
3149 continue
3150 else
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 # Passes both tests.
3155 ac_preproc_ok=:
3156 break
3159 rm -f conftest.err conftest.$ac_ext
3161 done
3162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3163 rm -f conftest.err conftest.$ac_ext
3164 if $ac_preproc_ok; then
3165 break
3168 done
3169 ac_cv_prog_CPP=$CPP
3172 CPP=$ac_cv_prog_CPP
3173 else
3174 ac_cv_prog_CPP=$CPP
3176 { echo "$as_me:$LINENO: result: $CPP" >&5
3177 echo "${ECHO_T}$CPP" >&6; }
3178 ac_preproc_ok=false
3179 for ac_c_preproc_warn_flag in '' yes
3181 # Use a header file that comes with gcc, so configuring glibc
3182 # with a fresh cross-compiler works.
3183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3184 # <limits.h> exists even on freestanding compilers.
3185 # On the NeXT, cc -E runs the code through the compiler's parser,
3186 # not just through cpp. "Syntax error" is here to catch this case.
3187 cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h. */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3193 #ifdef __STDC__
3194 # include <limits.h>
3195 #else
3196 # include <assert.h>
3197 #endif
3198 Syntax error
3199 _ACEOF
3200 if { (ac_try="$ac_cpp conftest.$ac_ext"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3207 ac_status=$?
3208 grep -v '^ *+' conftest.er1 >conftest.err
3209 rm -f conftest.er1
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } >/dev/null && {
3213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 }; then
3217 else
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3221 # Broken: fails on valid input.
3222 continue
3225 rm -f conftest.err conftest.$ac_ext
3227 # OK, works on sane cases. Now check whether nonexistent headers
3228 # can be detected and how.
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235 #include <ac_nonexistent.h>
3236 _ACEOF
3237 if { (ac_try="$ac_cpp conftest.$ac_ext"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } >/dev/null && {
3250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 }; then
3253 # Broken: success on invalid input.
3254 continue
3255 else
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 # Passes both tests.
3260 ac_preproc_ok=:
3261 break
3264 rm -f conftest.err conftest.$ac_ext
3266 done
3267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3268 rm -f conftest.err conftest.$ac_ext
3269 if $ac_preproc_ok; then
3271 else
3272 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3273 See \`config.log' for more details." >&5
3274 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3275 See \`config.log' for more details." >&2;}
3276 { (exit 1); exit 1; }; }
3279 ac_ext=c
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3287 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3288 if test "${ac_cv_path_GREP+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291 # Extract the first word of "grep ggrep" to use in msg output
3292 if test -z "$GREP"; then
3293 set dummy grep ggrep; ac_prog_name=$2
3294 if test "${ac_cv_path_GREP+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 ac_path_GREP_found=false
3298 # Loop through the user's path and test for each of PROGNAME-LIST
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_prog in grep ggrep; do
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3307 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3308 # Check for GNU ac_path_GREP and select it if it is found.
3309 # Check for GNU $ac_path_GREP
3310 case `"$ac_path_GREP" --version 2>&1` in
3311 *GNU*)
3312 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3314 ac_count=0
3315 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3316 while :
3318 cat "conftest.in" "conftest.in" >"conftest.tmp"
3319 mv "conftest.tmp" "conftest.in"
3320 cp "conftest.in" "conftest.nl"
3321 echo 'GREP' >> "conftest.nl"
3322 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3324 ac_count=`expr $ac_count + 1`
3325 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3326 # Best one so far, save it but keep looking for a better one
3327 ac_cv_path_GREP="$ac_path_GREP"
3328 ac_path_GREP_max=$ac_count
3330 # 10*(2^10) chars as input seems more than enough
3331 test $ac_count -gt 10 && break
3332 done
3333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3334 esac
3337 $ac_path_GREP_found && break 3
3338 done
3339 done
3341 done
3342 IFS=$as_save_IFS
3347 GREP="$ac_cv_path_GREP"
3348 if test -z "$GREP"; then
3349 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3350 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3351 { (exit 1); exit 1; }; }
3354 else
3355 ac_cv_path_GREP=$GREP
3360 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3361 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3362 GREP="$ac_cv_path_GREP"
3365 { echo "$as_me:$LINENO: checking for egrep" >&5
3366 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3367 if test "${ac_cv_path_EGREP+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3371 then ac_cv_path_EGREP="$GREP -E"
3372 else
3373 # Extract the first word of "egrep" to use in msg output
3374 if test -z "$EGREP"; then
3375 set dummy egrep; ac_prog_name=$2
3376 if test "${ac_cv_path_EGREP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379 ac_path_EGREP_found=false
3380 # Loop through the user's path and test for each of PROGNAME-LIST
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_prog in egrep; do
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3389 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3390 # Check for GNU ac_path_EGREP and select it if it is found.
3391 # Check for GNU $ac_path_EGREP
3392 case `"$ac_path_EGREP" --version 2>&1` in
3393 *GNU*)
3394 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3396 ac_count=0
3397 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3398 while :
3400 cat "conftest.in" "conftest.in" >"conftest.tmp"
3401 mv "conftest.tmp" "conftest.in"
3402 cp "conftest.in" "conftest.nl"
3403 echo 'EGREP' >> "conftest.nl"
3404 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3406 ac_count=`expr $ac_count + 1`
3407 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3408 # Best one so far, save it but keep looking for a better one
3409 ac_cv_path_EGREP="$ac_path_EGREP"
3410 ac_path_EGREP_max=$ac_count
3412 # 10*(2^10) chars as input seems more than enough
3413 test $ac_count -gt 10 && break
3414 done
3415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3416 esac
3419 $ac_path_EGREP_found && break 3
3420 done
3421 done
3423 done
3424 IFS=$as_save_IFS
3429 EGREP="$ac_cv_path_EGREP"
3430 if test -z "$EGREP"; then
3431 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3432 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3433 { (exit 1); exit 1; }; }
3436 else
3437 ac_cv_path_EGREP=$EGREP
3443 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3444 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3445 EGREP="$ac_cv_path_EGREP"
3449 { echo "$as_me:$LINENO: checking for AIX" >&5
3450 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #ifdef _AIX
3459 #endif
3461 _ACEOF
3462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3463 $EGREP "yes" >/dev/null 2>&1; then
3464 { echo "$as_me:$LINENO: result: yes" >&5
3465 echo "${ECHO_T}yes" >&6; }
3466 cat >>confdefs.h <<\_ACEOF
3467 #define _ALL_SOURCE 1
3468 _ACEOF
3470 else
3471 { echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6; }
3474 rm -f conftest*
3477 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3478 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3479 if test "${ac_cv_header_stdc+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482 cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h. */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3488 #include <stdlib.h>
3489 #include <stdarg.h>
3490 #include <string.h>
3491 #include <float.h>
3494 main ()
3498 return 0;
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_compile") 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && {
3515 test -z "$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 } && test -s conftest.$ac_objext; then
3518 ac_cv_header_stdc=yes
3519 else
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 ac_cv_header_stdc=no
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 if test $ac_cv_header_stdc = yes; then
3529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3530 cat >conftest.$ac_ext <<_ACEOF
3531 /* confdefs.h. */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3536 #include <string.h>
3538 _ACEOF
3539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3540 $EGREP "memchr" >/dev/null 2>&1; then
3542 else
3543 ac_cv_header_stdc=no
3545 rm -f conftest*
3549 if test $ac_cv_header_stdc = yes; then
3550 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 #include <stdlib.h>
3559 _ACEOF
3560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3561 $EGREP "free" >/dev/null 2>&1; then
3563 else
3564 ac_cv_header_stdc=no
3566 rm -f conftest*
3570 if test $ac_cv_header_stdc = yes; then
3571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3572 if test "$cross_compiling" = yes; then
3574 else
3575 cat >conftest.$ac_ext <<_ACEOF
3576 /* confdefs.h. */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581 #include <ctype.h>
3582 #include <stdlib.h>
3583 #if ((' ' & 0x0FF) == 0x020)
3584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3586 #else
3587 # define ISLOWER(c) \
3588 (('a' <= (c) && (c) <= 'i') \
3589 || ('j' <= (c) && (c) <= 'r') \
3590 || ('s' <= (c) && (c) <= 'z'))
3591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3592 #endif
3594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3596 main ()
3598 int i;
3599 for (i = 0; i < 256; i++)
3600 if (XOR (islower (i), ISLOWER (i))
3601 || toupper (i) != TOUPPER (i))
3602 return 2;
3603 return 0;
3605 _ACEOF
3606 rm -f conftest$ac_exeext
3607 if { (ac_try="$ac_link"
3608 case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611 esac
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_link") 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3617 { (case "(($ac_try" in
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3620 esac
3621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3622 (eval "$ac_try") 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3627 else
3628 echo "$as_me: program exited with status $ac_status" >&5
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3632 ( exit $ac_status )
3633 ac_cv_header_stdc=no
3635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3641 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3642 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3643 if test $ac_cv_header_stdc = yes; then
3645 cat >>confdefs.h <<\_ACEOF
3646 #define STDC_HEADERS 1
3647 _ACEOF
3651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3661 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3662 inttypes.h stdint.h unistd.h
3664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h. */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676 $ac_includes_default
3678 #include <$ac_header>
3679 _ACEOF
3680 rm -f conftest.$ac_objext
3681 if { (ac_try="$ac_compile"
3682 case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3685 esac
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_compile") 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } && {
3694 test -z "$ac_c_werror_flag" ||
3695 test ! -s conftest.err
3696 } && test -s conftest.$ac_objext; then
3697 eval "$as_ac_Header=yes"
3698 else
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3702 eval "$as_ac_Header=no"
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 ac_res=`eval echo '${'$as_ac_Header'}'`
3708 { echo "$as_me:$LINENO: result: $ac_res" >&5
3709 echo "${ECHO_T}$ac_res" >&6; }
3710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3711 cat >>confdefs.h <<_ACEOF
3712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3713 _ACEOF
3717 done
3720 if test "${ac_cv_header_minix_config_h+set}" = set; then
3721 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3722 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3723 if test "${ac_cv_header_minix_config_h+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3727 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3728 else
3729 # Is the header compilable?
3730 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3731 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 $ac_includes_default
3739 #include <minix/config.h>
3740 _ACEOF
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748 (eval "$ac_compile") 2>conftest.er1
3749 ac_status=$?
3750 grep -v '^ *+' conftest.er1 >conftest.err
3751 rm -f conftest.er1
3752 cat conftest.err >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } && {
3755 test -z "$ac_c_werror_flag" ||
3756 test ! -s conftest.err
3757 } && test -s conftest.$ac_objext; then
3758 ac_header_compiler=yes
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 ac_header_compiler=no
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3768 echo "${ECHO_T}$ac_header_compiler" >&6; }
3770 # Is the header present?
3771 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3772 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3773 cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h. */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 #include <minix/config.h>
3780 _ACEOF
3781 if { (ac_try="$ac_cpp conftest.$ac_ext"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3788 ac_status=$?
3789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } >/dev/null && {
3794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3795 test ! -s conftest.err
3796 }; then
3797 ac_header_preproc=yes
3798 else
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 ac_header_preproc=no
3805 rm -f conftest.err conftest.$ac_ext
3806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3807 echo "${ECHO_T}$ac_header_preproc" >&6; }
3809 # So? What about this header?
3810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3811 yes:no: )
3812 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3813 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3814 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3815 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3816 ac_header_preproc=yes
3818 no:yes:* )
3819 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3820 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3821 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3822 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3823 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3824 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3825 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3826 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3827 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3828 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3829 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3830 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3831 ( cat <<\_ASBOX
3832 ## ------------------------------- ##
3833 ## Report this to www.asterisk.org ##
3834 ## ------------------------------- ##
3835 _ASBOX
3836 ) | sed "s/^/$as_me: WARNING: /" >&2
3838 esac
3839 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3840 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3841 if test "${ac_cv_header_minix_config_h+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844 ac_cv_header_minix_config_h=$ac_header_preproc
3846 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3847 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3850 if test $ac_cv_header_minix_config_h = yes; then
3851 MINIX=yes
3852 else
3853 MINIX=
3857 if test "$MINIX" = yes; then
3859 cat >>confdefs.h <<\_ACEOF
3860 #define _POSIX_SOURCE 1
3861 _ACEOF
3864 cat >>confdefs.h <<\_ACEOF
3865 #define _POSIX_1_SOURCE 2
3866 _ACEOF
3869 cat >>confdefs.h <<\_ACEOF
3870 #define _MINIX 1
3871 _ACEOF
3885 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3886 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3887 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3897 # define __EXTENSIONS__ 1
3898 $ac_includes_default
3900 main ()
3904 return 0;
3906 _ACEOF
3907 rm -f conftest.$ac_objext
3908 if { (ac_try="$ac_compile"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
3924 ac_cv_safe_to_define___extensions__=yes
3925 else
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 ac_cv_safe_to_define___extensions__=no
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3935 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3936 test $ac_cv_safe_to_define___extensions__ = yes &&
3937 cat >>confdefs.h <<\_ACEOF
3938 #define __EXTENSIONS__ 1
3939 _ACEOF
3941 cat >>confdefs.h <<\_ACEOF
3942 #define _POSIX_PTHREAD_SEMANTICS 1
3943 _ACEOF
3945 cat >>confdefs.h <<\_ACEOF
3946 #define _TANDEM_SOURCE 1
3947 _ACEOF
3949 # note- does not work on FreeBSD
3951 case "${host_os}" in
3952 freebsd*)
3953 ac_default_prefix=/usr/local
3954 CPPFLAGS=-I/usr/local/include
3955 LDFLAGS=-L/usr/local/lib
3958 ac_default_prefix=/usr
3959 if test ${sysconfdir} = '${prefix}/etc'; then
3960 sysconfdir=/etc
3962 if test ${mandir} = '${prefix}/man'; then
3963 mandir=/usr/share/man
3966 esac
3968 if test ${localstatedir} = '${prefix}/var'; then
3969 localstatedir=/var
3972 BUILD_PLATFORM=${build}
3973 BUILD_CPU=${build_cpu}
3974 BUILD_VENDOR=${build_vendor}
3975 BUILD_OS=${build_os}
3982 HOST_PLATFORM=${host}
3983 HOST_CPU=${host_cpu}
3984 HOST_VENDOR=${host_vendor}
3985 HOST_OS=${host_os}
3992 case "${host_os}" in
3993 freebsd*)
3994 OSARCH=FreeBSD
3996 netbsd*)
3997 OSARCH=NetBSD
3999 openbsd*)
4000 OSARCH=OpenBSD
4002 solaris*)
4003 OSARCH=SunOS
4006 OSARCH=${HOST_OS}
4008 esac
4012 # check for uname
4013 if test -n "$ac_tool_prefix"; then
4014 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4015 set dummy ${ac_tool_prefix}uname; ac_word=$2
4016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4018 if test "${ac_cv_path_UNAME+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 case $UNAME in
4022 [\\/]* | ?:[\\/]*)
4023 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 break 2
4037 done
4038 done
4039 IFS=$as_save_IFS
4042 esac
4044 UNAME=$ac_cv_path_UNAME
4045 if test -n "$UNAME"; then
4046 { echo "$as_me:$LINENO: result: $UNAME" >&5
4047 echo "${ECHO_T}$UNAME" >&6; }
4048 else
4049 { echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6; }
4055 if test -z "$ac_cv_path_UNAME"; then
4056 ac_pt_UNAME=$UNAME
4057 # Extract the first word of "uname", so it can be a program name with args.
4058 set dummy uname; ac_word=$2
4059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4061 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064 case $ac_pt_UNAME in
4065 [\\/]* | ?:[\\/]*)
4066 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4076 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 break 2
4080 done
4081 done
4082 IFS=$as_save_IFS
4085 esac
4087 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4088 if test -n "$ac_pt_UNAME"; then
4089 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4090 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4091 else
4092 { echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6; }
4096 if test "x$ac_pt_UNAME" = x; then
4097 UNAME="No"
4098 else
4099 case $cross_compiling:$ac_tool_warned in
4100 yes:)
4101 { echo "$as_me:$LINENO: 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." >&5
4104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4105 whose name does not start with the host triplet. If you think this
4106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4107 ac_tool_warned=yes ;;
4108 esac
4109 UNAME=$ac_pt_UNAME
4111 else
4112 UNAME="$ac_cv_path_UNAME"
4115 if test ! x"${UNAME}" = xNo; then
4116 PBX_OSREV=$(${UNAME} -r)
4126 # cross-compile checks
4127 if test "${cross_compiling}" = "yes";
4128 then
4129 if test -n "$ac_tool_prefix"; then
4130 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4131 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4134 if test "${ac_cv_prog_CC+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 break 2
4151 done
4152 done
4153 IFS=$as_save_IFS
4157 CC=$ac_cv_prog_CC
4158 if test -n "$CC"; then
4159 { echo "$as_me:$LINENO: result: $CC" >&5
4160 echo "${ECHO_T}$CC" >&6; }
4161 else
4162 { echo "$as_me:$LINENO: result: no" >&5
4163 echo "${ECHO_T}no" >&6; }
4168 if test -z "$ac_cv_prog_CC"; then
4169 ac_ct_CC=$CC
4170 # Extract the first word of "gcc", so it can be a program name with args.
4171 set dummy gcc; ac_word=$2
4172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177 if test -n "$ac_ct_CC"; then
4178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187 ac_cv_prog_ac_ct_CC="gcc"
4188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4191 done
4192 done
4193 IFS=$as_save_IFS
4197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198 if test -n "$ac_ct_CC"; then
4199 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4200 echo "${ECHO_T}$ac_ct_CC" >&6; }
4201 else
4202 { echo "$as_me:$LINENO: result: no" >&5
4203 echo "${ECHO_T}no" >&6; }
4206 if test "x$ac_ct_CC" = x; then
4207 CC=":"
4208 else
4209 case $cross_compiling:$ac_tool_warned in
4210 yes:)
4211 { echo "$as_me:$LINENO: 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." >&5
4214 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4215 whose name does not start with the host triplet. If you think this
4216 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4217 ac_tool_warned=yes ;;
4218 esac
4219 CC=$ac_ct_CC
4221 else
4222 CC="$ac_cv_prog_CC"
4225 if test -n "$ac_tool_prefix"; then
4226 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4227 set dummy ${ac_tool_prefix}g++; ac_word=$2
4228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4230 if test "${ac_cv_prog_CXX+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 if test -n "$CXX"; then
4234 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4247 done
4248 done
4249 IFS=$as_save_IFS
4253 CXX=$ac_cv_prog_CXX
4254 if test -n "$CXX"; then
4255 { echo "$as_me:$LINENO: result: $CXX" >&5
4256 echo "${ECHO_T}$CXX" >&6; }
4257 else
4258 { echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6; }
4264 if test -z "$ac_cv_prog_CXX"; then
4265 ac_ct_CXX=$CXX
4266 # Extract the first word of "g++", so it can be a program name with args.
4267 set dummy g++; ac_word=$2
4268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4270 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273 if test -n "$ac_ct_CXX"; then
4274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_ac_ct_CXX="g++"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4287 done
4288 done
4289 IFS=$as_save_IFS
4293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4294 if test -n "$ac_ct_CXX"; then
4295 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4296 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4297 else
4298 { echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6; }
4302 if test "x$ac_ct_CXX" = x; then
4303 CXX=":"
4304 else
4305 case $cross_compiling:$ac_tool_warned in
4306 yes:)
4307 { echo "$as_me:$LINENO: 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." >&5
4310 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4311 whose name does not start with the host triplet. If you think this
4312 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4313 ac_tool_warned=yes ;;
4314 esac
4315 CXX=$ac_ct_CXX
4317 else
4318 CXX="$ac_cv_prog_CXX"
4321 if test -n "$ac_tool_prefix"; then
4322 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4323 set dummy ${ac_tool_prefix}ld; ac_word=$2
4324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4326 if test "${ac_cv_prog_LD+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 if test -n "$LD"; then
4330 ac_cv_prog_LD="$LD" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_LD="${ac_tool_prefix}ld"
4340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4343 done
4344 done
4345 IFS=$as_save_IFS
4349 LD=$ac_cv_prog_LD
4350 if test -n "$LD"; then
4351 { echo "$as_me:$LINENO: result: $LD" >&5
4352 echo "${ECHO_T}$LD" >&6; }
4353 else
4354 { echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6; }
4360 if test -z "$ac_cv_prog_LD"; then
4361 ac_ct_LD=$LD
4362 # Extract the first word of "ld", so it can be a program name with args.
4363 set dummy ld; ac_word=$2
4364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4366 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369 if test -n "$ac_ct_LD"; then
4370 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_LD="ld"
4380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4383 done
4384 done
4385 IFS=$as_save_IFS
4389 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4390 if test -n "$ac_ct_LD"; then
4391 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4392 echo "${ECHO_T}$ac_ct_LD" >&6; }
4393 else
4394 { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4398 if test "x$ac_ct_LD" = x; then
4399 LD=":"
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { echo "$as_me:$LINENO: 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." >&5
4406 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4407 whose name does not start with the host triplet. If you think this
4408 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4409 ac_tool_warned=yes ;;
4410 esac
4411 LD=$ac_ct_LD
4413 else
4414 LD="$ac_cv_prog_LD"
4417 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_RANLIB+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425 if test -n "$RANLIB"; then
4426 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4439 done
4440 done
4441 IFS=$as_save_IFS
4445 RANLIB=$ac_cv_prog_RANLIB
4446 if test -n "$RANLIB"; then
4447 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4448 echo "${ECHO_T}$RANLIB" >&6; }
4449 else
4450 { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4456 if test -z "$ac_cv_prog_RANLIB"; then
4457 ac_ct_RANLIB=$RANLIB
4458 # Extract the first word of "ranlib", so it can be a program name with args.
4459 set dummy ranlib; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465 if test -n "$ac_ct_RANLIB"; then
4466 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_RANLIB="ranlib"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4479 done
4480 done
4481 IFS=$as_save_IFS
4485 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4486 if test -n "$ac_ct_RANLIB"; then
4487 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4488 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4489 else
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4494 if test "x$ac_ct_RANLIB" = x; then
4495 RANLIB=":"
4496 else
4497 case $cross_compiling:$ac_tool_warned in
4498 yes:)
4499 { echo "$as_me:$LINENO: 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." >&5
4502 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4503 whose name does not start with the host triplet. If you think this
4504 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4505 ac_tool_warned=yes ;;
4506 esac
4507 RANLIB=$ac_ct_RANLIB
4509 else
4510 RANLIB="$ac_cv_prog_RANLIB"
4515 # Checks for programs.
4516 ac_ext=c
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521 if test -n "$ac_tool_prefix"; then
4522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4523 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526 if test "${ac_cv_prog_CC+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529 if test -n "$CC"; then
4530 ac_cv_prog_CC="$CC" # Let the user override the test.
4531 else
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 break 2
4543 done
4544 done
4545 IFS=$as_save_IFS
4549 CC=$ac_cv_prog_CC
4550 if test -n "$CC"; then
4551 { echo "$as_me:$LINENO: result: $CC" >&5
4552 echo "${ECHO_T}$CC" >&6; }
4553 else
4554 { echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6; }
4560 if test -z "$ac_cv_prog_CC"; then
4561 ac_ct_CC=$CC
4562 # Extract the first word of "gcc", so it can be a program name with args.
4563 set dummy gcc; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 if test -n "$ac_ct_CC"; then
4570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CC="gcc"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4583 done
4584 done
4585 IFS=$as_save_IFS
4589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4590 if test -n "$ac_ct_CC"; then
4591 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4592 echo "${ECHO_T}$ac_ct_CC" >&6; }
4593 else
4594 { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4598 if test "x$ac_ct_CC" = x; then
4599 CC=""
4600 else
4601 case $cross_compiling:$ac_tool_warned in
4602 yes:)
4603 { echo "$as_me:$LINENO: 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." >&5
4606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4607 whose name does not start with the host triplet. If you think this
4608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4609 ac_tool_warned=yes ;;
4610 esac
4611 CC=$ac_ct_CC
4613 else
4614 CC="$ac_cv_prog_CC"
4617 if test -z "$CC"; then
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4620 set dummy ${ac_tool_prefix}cc; ac_word=$2
4621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623 if test "${ac_cv_prog_CC+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 if test -n "$CC"; then
4627 ac_cv_prog_CC="$CC" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_CC="${ac_tool_prefix}cc"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4640 done
4641 done
4642 IFS=$as_save_IFS
4646 CC=$ac_cv_prog_CC
4647 if test -n "$CC"; then
4648 { echo "$as_me:$LINENO: result: $CC" >&5
4649 echo "${ECHO_T}$CC" >&6; }
4650 else
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4658 if test -z "$CC"; then
4659 # Extract the first word of "cc", so it can be a program name with args.
4660 set dummy cc; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_CC+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 if test -n "$CC"; then
4667 ac_cv_prog_CC="$CC" # Let the user override the test.
4668 else
4669 ac_prog_rejected=no
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4678 ac_prog_rejected=yes
4679 continue
4681 ac_cv_prog_CC="cc"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4685 done
4686 done
4687 IFS=$as_save_IFS
4689 if test $ac_prog_rejected = yes; then
4690 # We found a bogon in the path, so make sure we never use it.
4691 set dummy $ac_cv_prog_CC
4692 shift
4693 if test $# != 0; then
4694 # We chose a different compiler from the bogus one.
4695 # However, it has the same basename, so the bogon will be chosen
4696 # first if we set CC to just the basename; use the full file name.
4697 shift
4698 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4703 CC=$ac_cv_prog_CC
4704 if test -n "$CC"; then
4705 { echo "$as_me:$LINENO: result: $CC" >&5
4706 echo "${ECHO_T}$CC" >&6; }
4707 else
4708 { echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6; }
4714 if test -z "$CC"; then
4715 if test -n "$ac_tool_prefix"; then
4716 for ac_prog in cl.exe
4718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4722 if test "${ac_cv_prog_CC+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 if test -n "$CC"; then
4726 ac_cv_prog_CC="$CC" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4739 done
4740 done
4741 IFS=$as_save_IFS
4745 CC=$ac_cv_prog_CC
4746 if test -n "$CC"; then
4747 { echo "$as_me:$LINENO: result: $CC" >&5
4748 echo "${ECHO_T}$CC" >&6; }
4749 else
4750 { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4755 test -n "$CC" && break
4756 done
4758 if test -z "$CC"; then
4759 ac_ct_CC=$CC
4760 for ac_prog in cl.exe
4762 # Extract the first word of "$ac_prog", so it can be a program name with args.
4763 set dummy $ac_prog; ac_word=$2
4764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769 if test -n "$ac_ct_CC"; then
4770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_ac_ct_CC="$ac_prog"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4783 done
4784 done
4785 IFS=$as_save_IFS
4789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4790 if test -n "$ac_ct_CC"; then
4791 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4792 echo "${ECHO_T}$ac_ct_CC" >&6; }
4793 else
4794 { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4799 test -n "$ac_ct_CC" && break
4800 done
4802 if test "x$ac_ct_CC" = x; then
4803 CC=""
4804 else
4805 case $cross_compiling:$ac_tool_warned in
4806 yes:)
4807 { echo "$as_me:$LINENO: 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." >&5
4810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4811 whose name does not start with the host triplet. If you think this
4812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4813 ac_tool_warned=yes ;;
4814 esac
4815 CC=$ac_ct_CC
4822 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4823 See \`config.log' for more details." >&5
4824 echo "$as_me: error: no acceptable C compiler found in \$PATH
4825 See \`config.log' for more details." >&2;}
4826 { (exit 1); exit 1; }; }
4828 # Provide some information about the compiler.
4829 echo "$as_me:$LINENO: checking for C compiler version" >&5
4830 ac_compiler=`set X $ac_compile; echo $2`
4831 { (ac_try="$ac_compiler --version >&5"
4832 case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835 esac
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_compiler --version >&5") 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }
4841 { (ac_try="$ac_compiler -v >&5"
4842 case "(($ac_try" in
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4845 esac
4846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4847 (eval "$ac_compiler -v >&5") 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }
4851 { (ac_try="$ac_compiler -V >&5"
4852 case "(($ac_try" in
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4855 esac
4856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4857 (eval "$ac_compiler -V >&5") 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }
4862 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4863 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4864 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4875 main ()
4877 #ifndef __GNUC__
4878 choke me
4879 #endif
4882 return 0;
4884 _ACEOF
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4887 case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890 esac
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_compile") 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && {
4899 test -z "$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 } && test -s conftest.$ac_objext; then
4902 ac_compiler_gnu=yes
4903 else
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 ac_compiler_gnu=no
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4914 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4915 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4916 GCC=`test $ac_compiler_gnu = yes && echo yes`
4917 ac_test_CFLAGS=${CFLAGS+set}
4918 ac_save_CFLAGS=$CFLAGS
4919 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4920 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4921 if test "${ac_cv_prog_cc_g+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924 ac_save_c_werror_flag=$ac_c_werror_flag
4925 ac_c_werror_flag=yes
4926 ac_cv_prog_cc_g=no
4927 CFLAGS="-g"
4928 cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h. */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4936 main ()
4940 return 0;
4942 _ACEOF
4943 rm -f conftest.$ac_objext
4944 if { (ac_try="$ac_compile"
4945 case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948 esac
4949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4950 (eval "$ac_compile") 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } && {
4957 test -z "$ac_c_werror_flag" ||
4958 test ! -s conftest.err
4959 } && test -s conftest.$ac_objext; then
4960 ac_cv_prog_cc_g=yes
4961 else
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4965 CFLAGS=""
4966 cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h. */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4974 main ()
4978 return 0;
4980 _ACEOF
4981 rm -f conftest.$ac_objext
4982 if { (ac_try="$ac_compile"
4983 case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986 esac
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_compile") 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } && {
4995 test -z "$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4997 } && test -s conftest.$ac_objext; then
4999 else
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_c_werror_flag=$ac_save_c_werror_flag
5004 CFLAGS="-g"
5005 cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h. */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5013 main ()
5017 return 0;
5019 _ACEOF
5020 rm -f conftest.$ac_objext
5021 if { (ac_try="$ac_compile"
5022 case "(($ac_try" in
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5025 esac
5026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027 (eval "$ac_compile") 2>conftest.er1
5028 ac_status=$?
5029 grep -v '^ *+' conftest.er1 >conftest.err
5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } && {
5034 test -z "$ac_c_werror_flag" ||
5035 test ! -s conftest.err
5036 } && test -s conftest.$ac_objext; then
5037 ac_cv_prog_cc_g=yes
5038 else
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 ac_c_werror_flag=$ac_save_c_werror_flag
5054 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5055 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5056 if test "$ac_test_CFLAGS" = set; then
5057 CFLAGS=$ac_save_CFLAGS
5058 elif test $ac_cv_prog_cc_g = yes; then
5059 if test "$GCC" = yes; then
5060 CFLAGS="-g -O2"
5061 else
5062 CFLAGS="-g"
5064 else
5065 if test "$GCC" = yes; then
5066 CFLAGS="-O2"
5067 else
5068 CFLAGS=
5071 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5072 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5073 if test "${ac_cv_prog_cc_c89+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 ac_cv_prog_cc_c89=no
5077 ac_save_CC=$CC
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 #include <stdarg.h>
5085 #include <stdio.h>
5086 #include <sys/types.h>
5087 #include <sys/stat.h>
5088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5089 struct buf { int x; };
5090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5091 static char *e (p, i)
5092 char **p;
5093 int i;
5095 return p[i];
5097 static char *f (char * (*g) (char **, int), char **p, ...)
5099 char *s;
5100 va_list v;
5101 va_start (v,p);
5102 s = g (p, va_arg (v,int));
5103 va_end (v);
5104 return s;
5107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5108 function prototypes and stuff, but not '\xHH' hex character constants.
5109 These don't provoke an error unfortunately, instead are silently treated
5110 as 'x'. The following induces an error, until -std is added to get
5111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5112 array size at least. It's necessary to write '\x00'==0 to get something
5113 that's true only with -std. */
5114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5117 inside strings and character constants. */
5118 #define FOO(x) 'x'
5119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5121 int test (int i, double x);
5122 struct s1 {int (*f) (int a);};
5123 struct s2 {int (*f) (double a);};
5124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5125 int argc;
5126 char **argv;
5128 main ()
5130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5132 return 0;
5134 _ACEOF
5135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5138 CC="$ac_save_CC $ac_arg"
5139 rm -f conftest.$ac_objext
5140 if { (ac_try="$ac_compile"
5141 case "(($ac_try" in
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5144 esac
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_compile") 2>conftest.er1
5147 ac_status=$?
5148 grep -v '^ *+' conftest.er1 >conftest.err
5149 rm -f conftest.er1
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } && {
5153 test -z "$ac_c_werror_flag" ||
5154 test ! -s conftest.err
5155 } && test -s conftest.$ac_objext; then
5156 ac_cv_prog_cc_c89=$ac_arg
5157 else
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5164 rm -f core conftest.err conftest.$ac_objext
5165 test "x$ac_cv_prog_cc_c89" != "xno" && break
5166 done
5167 rm -f conftest.$ac_ext
5168 CC=$ac_save_CC
5171 # AC_CACHE_VAL
5172 case "x$ac_cv_prog_cc_c89" in
5174 { echo "$as_me:$LINENO: result: none needed" >&5
5175 echo "${ECHO_T}none needed" >&6; } ;;
5176 xno)
5177 { echo "$as_me:$LINENO: result: unsupported" >&5
5178 echo "${ECHO_T}unsupported" >&6; } ;;
5180 CC="$CC $ac_cv_prog_cc_c89"
5181 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5182 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5183 esac
5186 ac_ext=c
5187 ac_cpp='$CPP $CPPFLAGS'
5188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192 ac_ext=cpp
5193 ac_cpp='$CXXCPP $CPPFLAGS'
5194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5197 if test -z "$CXX"; then
5198 if test -n "$CCC"; then
5199 CXX=$CCC
5200 else
5201 if test -n "$ac_tool_prefix"; then
5202 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5208 if test "${ac_cv_prog_CXX+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 if test -n "$CXX"; then
5212 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5227 IFS=$as_save_IFS
5231 CXX=$ac_cv_prog_CXX
5232 if test -n "$CXX"; then
5233 { echo "$as_me:$LINENO: result: $CXX" >&5
5234 echo "${ECHO_T}$CXX" >&6; }
5235 else
5236 { echo "$as_me:$LINENO: result: no" >&5
5237 echo "${ECHO_T}no" >&6; }
5241 test -n "$CXX" && break
5242 done
5244 if test -z "$CXX"; then
5245 ac_ct_CXX=$CXX
5246 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5248 # Extract the first word of "$ac_prog", so it can be a program name with args.
5249 set dummy $ac_prog; ac_word=$2
5250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5252 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255 if test -n "$ac_ct_CXX"; then
5256 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_prog_ac_ct_CXX="$ac_prog"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5269 done
5270 done
5271 IFS=$as_save_IFS
5275 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5276 if test -n "$ac_ct_CXX"; then
5277 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5278 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5279 else
5280 { echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6; }
5285 test -n "$ac_ct_CXX" && break
5286 done
5288 if test "x$ac_ct_CXX" = x; then
5289 CXX="g++"
5290 else
5291 case $cross_compiling:$ac_tool_warned in
5292 yes:)
5293 { echo "$as_me:$LINENO: 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." >&5
5296 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5297 whose name does not start with the host triplet. If you think this
5298 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5299 ac_tool_warned=yes ;;
5300 esac
5301 CXX=$ac_ct_CXX
5307 # Provide some information about the compiler.
5308 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5309 ac_compiler=`set X $ac_compile; echo $2`
5310 { (ac_try="$ac_compiler --version >&5"
5311 case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314 esac
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compiler --version >&5") 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }
5320 { (ac_try="$ac_compiler -v >&5"
5321 case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324 esac
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compiler -v >&5") 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }
5330 { (ac_try="$ac_compiler -V >&5"
5331 case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334 esac
5335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compiler -V >&5") 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }
5341 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5342 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5343 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346 cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h. */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5354 main ()
5356 #ifndef __GNUC__
5357 choke me
5358 #endif
5361 return 0;
5363 _ACEOF
5364 rm -f conftest.$ac_objext
5365 if { (ac_try="$ac_compile"
5366 case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5369 esac
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_compile") 2>conftest.er1
5372 ac_status=$?
5373 grep -v '^ *+' conftest.er1 >conftest.err
5374 rm -f conftest.er1
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } && {
5378 test -z "$ac_cxx_werror_flag" ||
5379 test ! -s conftest.err
5380 } && test -s conftest.$ac_objext; then
5381 ac_compiler_gnu=yes
5382 else
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5386 ac_compiler_gnu=no
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5393 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5394 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5395 GXX=`test $ac_compiler_gnu = yes && echo yes`
5396 ac_test_CXXFLAGS=${CXXFLAGS+set}
5397 ac_save_CXXFLAGS=$CXXFLAGS
5398 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5399 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5400 if test "${ac_cv_prog_cxx_g+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 else
5403 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5404 ac_cxx_werror_flag=yes
5405 ac_cv_prog_cxx_g=no
5406 CXXFLAGS="-g"
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5415 main ()
5419 return 0;
5421 _ACEOF
5422 rm -f conftest.$ac_objext
5423 if { (ac_try="$ac_compile"
5424 case "(($ac_try" in
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5427 esac
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_compile") 2>conftest.er1
5430 ac_status=$?
5431 grep -v '^ *+' conftest.er1 >conftest.err
5432 rm -f conftest.er1
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } && {
5436 test -z "$ac_cxx_werror_flag" ||
5437 test ! -s conftest.err
5438 } && test -s conftest.$ac_objext; then
5439 ac_cv_prog_cxx_g=yes
5440 else
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5444 CXXFLAGS=""
5445 cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h. */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5453 main ()
5457 return 0;
5459 _ACEOF
5460 rm -f conftest.$ac_objext
5461 if { (ac_try="$ac_compile"
5462 case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465 esac
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compile") 2>conftest.er1
5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && {
5474 test -z "$ac_cxx_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest.$ac_objext; then
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5483 CXXFLAGS="-g"
5484 cat >conftest.$ac_ext <<_ACEOF
5485 /* confdefs.h. */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5492 main ()
5496 return 0;
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (ac_try="$ac_compile"
5501 case "(($ac_try" in
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5504 esac
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_compile") 2>conftest.er1
5507 ac_status=$?
5508 grep -v '^ *+' conftest.er1 >conftest.err
5509 rm -f conftest.er1
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } && {
5513 test -z "$ac_cxx_werror_flag" ||
5514 test ! -s conftest.err
5515 } && test -s conftest.$ac_objext; then
5516 ac_cv_prog_cxx_g=yes
5517 else
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5533 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5534 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5535 if test "$ac_test_CXXFLAGS" = set; then
5536 CXXFLAGS=$ac_save_CXXFLAGS
5537 elif test $ac_cv_prog_cxx_g = yes; then
5538 if test "$GXX" = yes; then
5539 CXXFLAGS="-g -O2"
5540 else
5541 CXXFLAGS="-g"
5543 else
5544 if test "$GXX" = yes; then
5545 CXXFLAGS="-O2"
5546 else
5547 CXXFLAGS=
5550 ac_ext=c
5551 ac_cpp='$CPP $CPPFLAGS'
5552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5556 ac_ext=c
5557 ac_cpp='$CPP $CPPFLAGS'
5558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5562 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5563 # On Suns, sometimes $CPP names a directory.
5564 if test -n "$CPP" && test -d "$CPP"; then
5565 CPP=
5567 if test -z "$CPP"; then
5568 if test "${ac_cv_prog_CPP+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571 # Double quotes because CPP needs to be expanded
5572 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5574 ac_preproc_ok=false
5575 for ac_c_preproc_warn_flag in '' yes
5577 # Use a header file that comes with gcc, so configuring glibc
5578 # with a fresh cross-compiler works.
5579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580 # <limits.h> exists even on freestanding compilers.
5581 # On the NeXT, cc -E runs the code through the compiler's parser,
5582 # not just through cpp. "Syntax error" is here to catch this case.
5583 cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h. */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 #ifdef __STDC__
5590 # include <limits.h>
5591 #else
5592 # include <assert.h>
5593 #endif
5594 Syntax error
5595 _ACEOF
5596 if { (ac_try="$ac_cpp conftest.$ac_ext"
5597 case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } >/dev/null && {
5609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5610 test ! -s conftest.err
5611 }; then
5613 else
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 # Broken: fails on valid input.
5618 continue
5621 rm -f conftest.err conftest.$ac_ext
5623 # OK, works on sane cases. Now check whether nonexistent headers
5624 # can be detected and how.
5625 cat >conftest.$ac_ext <<_ACEOF
5626 /* confdefs.h. */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 #include <ac_nonexistent.h>
5632 _ACEOF
5633 if { (ac_try="$ac_cpp conftest.$ac_ext"
5634 case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637 esac
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } >/dev/null && {
5646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5647 test ! -s conftest.err
5648 }; then
5649 # Broken: success on invalid input.
5650 continue
5651 else
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5655 # Passes both tests.
5656 ac_preproc_ok=:
5657 break
5660 rm -f conftest.err conftest.$ac_ext
5662 done
5663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5664 rm -f conftest.err conftest.$ac_ext
5665 if $ac_preproc_ok; then
5666 break
5669 done
5670 ac_cv_prog_CPP=$CPP
5673 CPP=$ac_cv_prog_CPP
5674 else
5675 ac_cv_prog_CPP=$CPP
5677 { echo "$as_me:$LINENO: result: $CPP" >&5
5678 echo "${ECHO_T}$CPP" >&6; }
5679 ac_preproc_ok=false
5680 for ac_c_preproc_warn_flag in '' yes
5682 # Use a header file that comes with gcc, so configuring glibc
5683 # with a fresh cross-compiler works.
5684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5685 # <limits.h> exists even on freestanding compilers.
5686 # On the NeXT, cc -E runs the code through the compiler's parser,
5687 # not just through cpp. "Syntax error" is here to catch this case.
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 #ifdef __STDC__
5695 # include <limits.h>
5696 #else
5697 # include <assert.h>
5698 #endif
5699 Syntax error
5700 _ACEOF
5701 if { (ac_try="$ac_cpp conftest.$ac_ext"
5702 case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705 esac
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } >/dev/null && {
5714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5715 test ! -s conftest.err
5716 }; then
5718 else
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5722 # Broken: fails on valid input.
5723 continue
5726 rm -f conftest.err conftest.$ac_ext
5728 # OK, works on sane cases. Now check whether nonexistent headers
5729 # can be detected and how.
5730 cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h. */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #include <ac_nonexistent.h>
5737 _ACEOF
5738 if { (ac_try="$ac_cpp conftest.$ac_ext"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } >/dev/null && {
5751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5753 }; then
5754 # Broken: success on invalid input.
5755 continue
5756 else
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 # Passes both tests.
5761 ac_preproc_ok=:
5762 break
5765 rm -f conftest.err conftest.$ac_ext
5767 done
5768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5769 rm -f conftest.err conftest.$ac_ext
5770 if $ac_preproc_ok; then
5772 else
5773 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5774 See \`config.log' for more details." >&5
5775 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5776 See \`config.log' for more details." >&2;}
5777 { (exit 1); exit 1; }; }
5780 ac_ext=c
5781 ac_cpp='$CPP $CPPFLAGS'
5782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786 ac_ext=cpp
5787 ac_cpp='$CXXCPP $CPPFLAGS'
5788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5791 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5792 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5793 if test -z "$CXXCPP"; then
5794 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 # Double quotes because CXXCPP needs to be expanded
5798 for CXXCPP in "$CXX -E" "/lib/cpp"
5800 ac_preproc_ok=false
5801 for ac_cxx_preproc_warn_flag in '' yes
5803 # Use a header file that comes with gcc, so configuring glibc
5804 # with a fresh cross-compiler works.
5805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5806 # <limits.h> exists even on freestanding compilers.
5807 # On the NeXT, cc -E runs the code through the compiler's parser,
5808 # not just through cpp. "Syntax error" is here to catch this case.
5809 cat >conftest.$ac_ext <<_ACEOF
5810 /* confdefs.h. */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 #ifdef __STDC__
5816 # include <limits.h>
5817 #else
5818 # include <assert.h>
5819 #endif
5820 Syntax error
5821 _ACEOF
5822 if { (ac_try="$ac_cpp conftest.$ac_ext"
5823 case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826 esac
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev/null && {
5835 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5836 test ! -s conftest.err
5837 }; then
5839 else
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5843 # Broken: fails on valid input.
5844 continue
5847 rm -f conftest.err conftest.$ac_ext
5849 # OK, works on sane cases. Now check whether nonexistent headers
5850 # can be detected and how.
5851 cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h. */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 #include <ac_nonexistent.h>
5858 _ACEOF
5859 if { (ac_try="$ac_cpp conftest.$ac_ext"
5860 case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } >/dev/null && {
5872 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5873 test ! -s conftest.err
5874 }; then
5875 # Broken: success on invalid input.
5876 continue
5877 else
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 # Passes both tests.
5882 ac_preproc_ok=:
5883 break
5886 rm -f conftest.err conftest.$ac_ext
5888 done
5889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5890 rm -f conftest.err conftest.$ac_ext
5891 if $ac_preproc_ok; then
5892 break
5895 done
5896 ac_cv_prog_CXXCPP=$CXXCPP
5899 CXXCPP=$ac_cv_prog_CXXCPP
5900 else
5901 ac_cv_prog_CXXCPP=$CXXCPP
5903 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5904 echo "${ECHO_T}$CXXCPP" >&6; }
5905 ac_preproc_ok=false
5906 for ac_cxx_preproc_warn_flag in '' yes
5908 # Use a header file that comes with gcc, so configuring glibc
5909 # with a fresh cross-compiler works.
5910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911 # <limits.h> exists even on freestanding compilers.
5912 # On the NeXT, cc -E runs the code through the compiler's parser,
5913 # not just through cpp. "Syntax error" is here to catch this case.
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 #ifdef __STDC__
5921 # include <limits.h>
5922 #else
5923 # include <assert.h>
5924 #endif
5925 Syntax error
5926 _ACEOF
5927 if { (ac_try="$ac_cpp conftest.$ac_ext"
5928 case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } >/dev/null && {
5940 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5941 test ! -s conftest.err
5942 }; then
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 # Broken: fails on valid input.
5949 continue
5952 rm -f conftest.err conftest.$ac_ext
5954 # OK, works on sane cases. Now check whether nonexistent headers
5955 # can be detected and how.
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h. */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 #include <ac_nonexistent.h>
5963 _ACEOF
5964 if { (ac_try="$ac_cpp conftest.$ac_ext"
5965 case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } >/dev/null && {
5977 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5978 test ! -s conftest.err
5979 }; then
5980 # Broken: success on invalid input.
5981 continue
5982 else
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 # Passes both tests.
5987 ac_preproc_ok=:
5988 break
5991 rm -f conftest.err conftest.$ac_ext
5993 done
5994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5995 rm -f conftest.err conftest.$ac_ext
5996 if $ac_preproc_ok; then
5998 else
5999 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6000 See \`config.log' for more details." >&5
6001 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6002 See \`config.log' for more details." >&2;}
6003 { (exit 1); exit 1; }; }
6006 ac_ext=c
6007 ac_cpp='$CPP $CPPFLAGS'
6008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6012 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6013 # the developers regenerating the configure script don't have to install libtool.
6014 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6015 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6016 if test "${ac_cv_path_SED+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6020 for ac_i in 1 2 3 4 5 6 7; do
6021 ac_script="$ac_script$as_nl$ac_script"
6022 done
6023 echo "$ac_script" | sed 99q >conftest.sed
6024 $as_unset ac_script || ac_script=
6025 # Extract the first word of "sed gsed" to use in msg output
6026 if test -z "$SED"; then
6027 set dummy sed gsed; ac_prog_name=$2
6028 if test "${ac_cv_path_SED+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031 ac_path_SED_found=false
6032 # Loop through the user's path and test for each of PROGNAME-LIST
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_prog in sed gsed; do
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6041 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6042 # Check for GNU ac_path_SED and select it if it is found.
6043 # Check for GNU $ac_path_SED
6044 case `"$ac_path_SED" --version 2>&1` in
6045 *GNU*)
6046 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6048 ac_count=0
6049 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6050 while :
6052 cat "conftest.in" "conftest.in" >"conftest.tmp"
6053 mv "conftest.tmp" "conftest.in"
6054 cp "conftest.in" "conftest.nl"
6055 echo '' >> "conftest.nl"
6056 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6058 ac_count=`expr $ac_count + 1`
6059 if test $ac_count -gt ${ac_path_SED_max-0}; then
6060 # Best one so far, save it but keep looking for a better one
6061 ac_cv_path_SED="$ac_path_SED"
6062 ac_path_SED_max=$ac_count
6064 # 10*(2^10) chars as input seems more than enough
6065 test $ac_count -gt 10 && break
6066 done
6067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6068 esac
6071 $ac_path_SED_found && break 3
6072 done
6073 done
6075 done
6076 IFS=$as_save_IFS
6081 SED="$ac_cv_path_SED"
6082 if test -z "$SED"; then
6083 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6084 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6085 { (exit 1); exit 1; }; }
6088 else
6089 ac_cv_path_SED=$SED
6093 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6094 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6095 SED="$ac_cv_path_SED"
6096 rm -f conftest.sed
6098 { echo "$as_me:$LINENO: checking for egrep" >&5
6099 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6100 if test "${ac_cv_prog_egrep+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6104 then ac_cv_prog_egrep='grep -E'
6105 else ac_cv_prog_egrep='egrep'
6108 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6109 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6110 EGREP=$ac_cv_prog_egrep
6114 # Check whether --with-gnu-ld was given.
6115 if test "${with_gnu_ld+set}" = set; then
6116 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6117 else
6118 with_gnu_ld=no
6121 ac_prog=ld
6122 if test "$GCC" = yes; then
6123 # Check if gcc -print-prog-name=ld gives a path.
6124 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6125 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6126 case $host in
6127 *-*-mingw*)
6128 # gcc leaves a trailing carriage return which upsets mingw
6129 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6131 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6132 esac
6133 case $ac_prog in
6134 # Accept absolute paths.
6135 [\\/]* | ?:[\\/]*)
6136 re_direlt='/[^/][^/]*/\.\./'
6137 # Canonicalize the pathname of ld
6138 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6139 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6140 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6141 done
6142 test -z "$LD" && LD="$ac_prog"
6145 # If it fails, then pretend we aren't using GCC.
6146 ac_prog=ld
6149 # If it is relative, then search for the first ld in PATH.
6150 with_gnu_ld=unknown
6152 esac
6153 elif test "$with_gnu_ld" = yes; then
6154 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6155 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6156 else
6157 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6158 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6160 if test "${lt_cv_path_LD+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163 if test -z "$LD"; then
6164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6165 for ac_dir in $PATH; do
6166 IFS="$lt_save_ifs"
6167 test -z "$ac_dir" && ac_dir=.
6168 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6169 lt_cv_path_LD="$ac_dir/$ac_prog"
6170 # Check to see if the program is GNU ld. I'd rather use --version,
6171 # but apparently some variants of GNU ld only accept -v.
6172 # Break only if it was the GNU/non-GNU ld that we prefer.
6173 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6174 *GNU* | *'with BFD'*)
6175 test "$with_gnu_ld" != no && break
6178 test "$with_gnu_ld" != yes && break
6180 esac
6182 done
6183 IFS="$lt_save_ifs"
6184 else
6185 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6189 LD="$lt_cv_path_LD"
6190 if test -n "$LD"; then
6191 { echo "$as_me:$LINENO: result: $LD" >&5
6192 echo "${ECHO_T}$LD" >&6; }
6193 else
6194 { echo "$as_me:$LINENO: result: no" >&5
6195 echo "${ECHO_T}no" >&6; }
6197 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6198 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6199 { (exit 1); exit 1; }; }
6200 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6201 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6202 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6206 case `$LD -v 2>&1 </dev/null` in
6207 *GNU* | *'with BFD'*)
6208 lt_cv_prog_gnu_ld=yes
6211 lt_cv_prog_gnu_ld=no
6213 esac
6215 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6216 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6217 with_gnu_ld=$lt_cv_prog_gnu_ld
6219 # note - does not work on freebsd
6220 for ac_prog in gawk mawk nawk awk
6222 # Extract the first word of "$ac_prog", so it can be a program name with args.
6223 set dummy $ac_prog; ac_word=$2
6224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226 if test "${ac_cv_prog_AWK+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 if test -n "$AWK"; then
6230 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_AWK="$ac_prog"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6243 done
6244 done
6245 IFS=$as_save_IFS
6249 AWK=$ac_cv_prog_AWK
6250 if test -n "$AWK"; then
6251 { echo "$as_me:$LINENO: result: $AWK" >&5
6252 echo "${ECHO_T}$AWK" >&6; }
6253 else
6254 { echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6; }
6259 test -n "$AWK" && break
6260 done
6262 # Find a good install program. We prefer a C program (faster),
6263 # so one script is as good as another. But avoid the broken or
6264 # incompatible versions:
6265 # SysV /etc/install, /usr/sbin/install
6266 # SunOS /usr/etc/install
6267 # IRIX /sbin/install
6268 # AIX /bin/install
6269 # AmigaOS /C/install, which installs bootblocks on floppy discs
6270 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6271 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6272 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6273 # OS/2's system install, which has a completely different semantic
6274 # ./install, which can be erroneously created by make from ./install.sh.
6275 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6276 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6277 if test -z "$INSTALL"; then
6278 if test "${ac_cv_path_install+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 # Account for people who put trailing slashes in PATH elements.
6287 case $as_dir/ in
6288 ./ | .// | /cC/* | \
6289 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6290 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6291 /usr/ucb/* ) ;;
6293 # OSF1 and SCO ODT 3.0 have their own names for install.
6294 # Don't use installbsd from OSF since it installs stuff as root
6295 # by default.
6296 for ac_prog in ginstall scoinst install; do
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6299 if test $ac_prog = install &&
6300 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6301 # AIX install. It has an incompatible calling convention.
6303 elif test $ac_prog = install &&
6304 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6305 # program-specific install script used by HP pwplus--don't use.
6307 else
6308 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6309 break 3
6312 done
6313 done
6315 esac
6316 done
6317 IFS=$as_save_IFS
6321 if test "${ac_cv_path_install+set}" = set; then
6322 INSTALL=$ac_cv_path_install
6323 else
6324 # As a last resort, use the slow shell script. Don't cache a
6325 # value for INSTALL within a source directory, because that will
6326 # break other packages using the cache if that directory is
6327 # removed, or if the value is a relative name.
6328 INSTALL=$ac_install_sh
6331 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6332 echo "${ECHO_T}$INSTALL" >&6; }
6334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6335 # It thinks the first close brace ends the variable substitution.
6336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6340 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6342 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6343 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6344 LN_S=$as_ln_s
6345 if test "$LN_S" = "ln -s"; then
6346 { echo "$as_me:$LINENO: result: yes" >&5
6347 echo "${ECHO_T}yes" >&6; }
6348 else
6349 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6350 echo "${ECHO_T}no, using $LN_S" >&6; }
6353 if test -n "$ac_tool_prefix"; then
6354 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6355 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358 if test "${ac_cv_prog_RANLIB+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361 if test -n "$RANLIB"; then
6362 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 break 2
6375 done
6376 done
6377 IFS=$as_save_IFS
6381 RANLIB=$ac_cv_prog_RANLIB
6382 if test -n "$RANLIB"; then
6383 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6384 echo "${ECHO_T}$RANLIB" >&6; }
6385 else
6386 { echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6; }
6392 if test -z "$ac_cv_prog_RANLIB"; then
6393 ac_ct_RANLIB=$RANLIB
6394 # Extract the first word of "ranlib", so it can be a program name with args.
6395 set dummy ranlib; ac_word=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 if test -n "$ac_ct_RANLIB"; then
6402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6403 else
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_prog_ac_ct_RANLIB="ranlib"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 break 2
6415 done
6416 done
6417 IFS=$as_save_IFS
6421 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6422 if test -n "$ac_ct_RANLIB"; then
6423 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6424 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6425 else
6426 { echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6; }
6430 if test "x$ac_ct_RANLIB" = x; then
6431 RANLIB=":"
6432 else
6433 case $cross_compiling:$ac_tool_warned in
6434 yes:)
6435 { echo "$as_me:$LINENO: 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." >&5
6438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6439 whose name does not start with the host triplet. If you think this
6440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6441 ac_tool_warned=yes ;;
6442 esac
6443 RANLIB=$ac_ct_RANLIB
6445 else
6446 RANLIB="$ac_cv_prog_RANLIB"
6449 { echo "$as_me:$LINENO: checking for GNU make" >&5
6450 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6451 if test "${GNU_MAKE+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454 GNU_MAKE='Not Found' ;
6455 GNU_MAKE_VERSION_MAJOR=0 ;
6456 GNU_MAKE_VERSION_MINOR=0 ;
6457 for a in make gmake gnumake ; do
6458 if test -z "$a" ; then continue ; fi ;
6459 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6460 GNU_MAKE=$a ;
6461 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6462 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6463 break;
6465 done ;
6468 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6469 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6470 if test "x$GNU_MAKE" = "xNot Found" ; then
6471 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6472 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6473 { (exit 1); exit 1; }; }
6474 exit 1
6479 if test -n "$ac_tool_prefix"; then
6480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6481 set dummy ${ac_tool_prefix}strip; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_path_STRIP+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487 case $STRIP in
6488 [\\/]* | ?:[\\/]*)
6489 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6503 done
6504 done
6505 IFS=$as_save_IFS
6508 esac
6510 STRIP=$ac_cv_path_STRIP
6511 if test -n "$STRIP"; then
6512 { echo "$as_me:$LINENO: result: $STRIP" >&5
6513 echo "${ECHO_T}$STRIP" >&6; }
6514 else
6515 { echo "$as_me:$LINENO: result: no" >&5
6516 echo "${ECHO_T}no" >&6; }
6521 if test -z "$ac_cv_path_STRIP"; then
6522 ac_pt_STRIP=$STRIP
6523 # Extract the first word of "strip", so it can be a program name with args.
6524 set dummy strip; ac_word=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530 case $ac_pt_STRIP in
6531 [\\/]* | ?:[\\/]*)
6532 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6546 done
6547 done
6548 IFS=$as_save_IFS
6551 esac
6553 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6554 if test -n "$ac_pt_STRIP"; then
6555 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6556 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6557 else
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6562 if test "x$ac_pt_STRIP" = x; then
6563 STRIP=":"
6564 else
6565 case $cross_compiling:$ac_tool_warned in
6566 yes:)
6567 { echo "$as_me:$LINENO: 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." >&5
6570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6571 whose name does not start with the host triplet. If you think this
6572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6573 ac_tool_warned=yes ;;
6574 esac
6575 STRIP=$ac_pt_STRIP
6577 else
6578 STRIP="$ac_cv_path_STRIP"
6581 if test -n "$ac_tool_prefix"; then
6582 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6583 set dummy ${ac_tool_prefix}ar; ac_word=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_AR+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 case $AR in
6590 [\\/]* | ?:[\\/]*)
6591 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 break 2
6605 done
6606 done
6607 IFS=$as_save_IFS
6610 esac
6612 AR=$ac_cv_path_AR
6613 if test -n "$AR"; then
6614 { echo "$as_me:$LINENO: result: $AR" >&5
6615 echo "${ECHO_T}$AR" >&6; }
6616 else
6617 { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6623 if test -z "$ac_cv_path_AR"; then
6624 ac_pt_AR=$AR
6625 # Extract the first word of "ar", so it can be a program name with args.
6626 set dummy ar; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632 case $ac_pt_AR in
6633 [\\/]* | ?:[\\/]*)
6634 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6648 done
6649 done
6650 IFS=$as_save_IFS
6653 esac
6655 ac_pt_AR=$ac_cv_path_ac_pt_AR
6656 if test -n "$ac_pt_AR"; then
6657 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6658 echo "${ECHO_T}$ac_pt_AR" >&6; }
6659 else
6660 { echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6; }
6664 if test "x$ac_pt_AR" = x; then
6665 AR=":"
6666 else
6667 case $cross_compiling:$ac_tool_warned in
6668 yes:)
6669 { echo "$as_me:$LINENO: 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." >&5
6672 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6673 whose name does not start with the host triplet. If you think this
6674 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6675 ac_tool_warned=yes ;;
6676 esac
6677 AR=$ac_pt_AR
6679 else
6680 AR="$ac_cv_path_AR"
6684 GNU_LD=0
6685 if test "x$with_gnu_ld" = "xyes" ; then
6686 GNU_LD=1
6690 # Extract the first word of "awk", so it can be a program name with args.
6691 set dummy awk; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_path_AWK+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697 case $AWK in
6698 [\\/]* | ?:[\\/]*)
6699 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6713 done
6714 done
6715 IFS=$as_save_IFS
6717 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK=":"
6719 esac
6721 AWK=$ac_cv_path_AWK
6722 if test -n "$AWK"; then
6723 { echo "$as_me:$LINENO: result: $AWK" >&5
6724 echo "${ECHO_T}$AWK" >&6; }
6725 else
6726 { echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6; }
6731 # Extract the first word of "grep", so it can be a program name with args.
6732 set dummy grep; ac_word=$2
6733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735 if test "${ac_cv_path_GREP+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 case $GREP in
6739 [\\/]* | ?:[\\/]*)
6740 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6754 done
6755 done
6756 IFS=$as_save_IFS
6758 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6760 esac
6762 GREP=$ac_cv_path_GREP
6763 if test -n "$GREP"; then
6764 { echo "$as_me:$LINENO: result: $GREP" >&5
6765 echo "${ECHO_T}$GREP" >&6; }
6766 else
6767 { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6772 # Extract the first word of "find", so it can be a program name with args.
6773 set dummy find; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_FIND+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779 case $FIND in
6780 [\\/]* | ?:[\\/]*)
6781 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 break 2
6795 done
6796 done
6797 IFS=$as_save_IFS
6799 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6801 esac
6803 FIND=$ac_cv_path_FIND
6804 if test -n "$FIND"; then
6805 { echo "$as_me:$LINENO: result: $FIND" >&5
6806 echo "${ECHO_T}$FIND" >&6; }
6807 else
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6813 # Extract the first word of "compress", so it can be a program name with args.
6814 set dummy compress; ac_word=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_path_COMPRESS+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 case $COMPRESS in
6821 [\\/]* | ?:[\\/]*)
6822 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6836 done
6837 done
6838 IFS=$as_save_IFS
6840 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6842 esac
6844 COMPRESS=$ac_cv_path_COMPRESS
6845 if test -n "$COMPRESS"; then
6846 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6847 echo "${ECHO_T}$COMPRESS" >&6; }
6848 else
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6854 # Extract the first word of "basename", so it can be a program name with args.
6855 set dummy basename; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_path_BASENAME+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861 case $BASENAME in
6862 [\\/]* | ?:[\\/]*)
6863 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6877 done
6878 done
6879 IFS=$as_save_IFS
6881 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6883 esac
6885 BASENAME=$ac_cv_path_BASENAME
6886 if test -n "$BASENAME"; then
6887 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6888 echo "${ECHO_T}$BASENAME" >&6; }
6889 else
6890 { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6895 # Extract the first word of "id", so it can be a program name with args.
6896 set dummy id; ac_word=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_path_ID+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902 case $ID in
6903 [\\/]* | ?:[\\/]*)
6904 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6918 done
6919 done
6920 IFS=$as_save_IFS
6922 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6924 esac
6926 ID=$ac_cv_path_ID
6927 if test -n "$ID"; then
6928 { echo "$as_me:$LINENO: result: $ID" >&5
6929 echo "${ECHO_T}$ID" >&6; }
6930 else
6931 { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6936 # Extract the first word of "dirname", so it can be a program name with args.
6937 set dummy dirname; ac_word=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_path_DIRNAME+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 case $DIRNAME in
6944 [\\/]* | ?:[\\/]*)
6945 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6959 done
6960 done
6961 IFS=$as_save_IFS
6963 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
6965 esac
6967 DIRNAME=$ac_cv_path_DIRNAME
6968 if test -n "$DIRNAME"; then
6969 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6970 echo "${ECHO_T}$DIRNAME" >&6; }
6971 else
6972 { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6977 # Extract the first word of "sh", so it can be a program name with args.
6978 set dummy sh; ac_word=$2
6979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6981 if test "${ac_cv_path_SHELL+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984 case $SHELL in
6985 [\\/]* | ?:[\\/]*)
6986 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
7000 done
7001 done
7002 IFS=$as_save_IFS
7004 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7006 esac
7008 SHELL=$ac_cv_path_SHELL
7009 if test -n "$SHELL"; then
7010 { echo "$as_me:$LINENO: result: $SHELL" >&5
7011 echo "${ECHO_T}$SHELL" >&6; }
7012 else
7013 { echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6; }
7018 # Extract the first word of "ln", so it can be a program name with args.
7019 set dummy ln; ac_word=$2
7020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7022 if test "${ac_cv_path_LN+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025 case $LN in
7026 [\\/]* | ?:[\\/]*)
7027 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 break 2
7041 done
7042 done
7043 IFS=$as_save_IFS
7045 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7047 esac
7049 LN=$ac_cv_path_LN
7050 if test -n "$LN"; then
7051 { echo "$as_me:$LINENO: result: $LN" >&5
7052 echo "${ECHO_T}$LN" >&6; }
7053 else
7054 { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7059 # Extract the first word of "dot", so it can be a program name with args.
7060 set dummy dot; ac_word=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_path_DOT+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 case $DOT in
7067 [\\/]* | ?:[\\/]*)
7068 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7082 done
7083 done
7084 IFS=$as_save_IFS
7086 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7088 esac
7090 DOT=$ac_cv_path_DOT
7091 if test -n "$DOT"; then
7092 { echo "$as_me:$LINENO: result: $DOT" >&5
7093 echo "${ECHO_T}$DOT" >&6; }
7094 else
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7100 # Extract the first word of "wget", so it can be a program name with args.
7101 set dummy wget; ac_word=$2
7102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104 if test "${ac_cv_path_WGET+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107 case $WGET in
7108 [\\/]* | ?:[\\/]*)
7109 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7119 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7123 done
7124 done
7125 IFS=$as_save_IFS
7127 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7129 esac
7131 WGET=$ac_cv_path_WGET
7132 if test -n "$WGET"; then
7133 { echo "$as_me:$LINENO: result: $WGET" >&5
7134 echo "${ECHO_T}$WGET" >&6; }
7135 else
7136 { echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6; }
7141 if test "${WGET}" != ":" ; then
7142 DOWNLOAD=${WGET}
7143 else
7144 # Extract the first word of "fetch", so it can be a program name with args.
7145 set dummy fetch; ac_word=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_FETCH+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151 case $FETCH in
7152 [\\/]* | ?:[\\/]*)
7153 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7167 done
7168 done
7169 IFS=$as_save_IFS
7171 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7173 esac
7175 FETCH=$ac_cv_path_FETCH
7176 if test -n "$FETCH"; then
7177 { echo "$as_me:$LINENO: result: $FETCH" >&5
7178 echo "${ECHO_T}$FETCH" >&6; }
7179 else
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7185 DOWNLOAD=${FETCH}
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 if test -n "$SOXMIX"; then
7198 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7211 done
7212 done
7213 IFS=$as_save_IFS
7217 SOXMIX=$ac_cv_prog_SOXMIX
7218 if test -n "$SOXMIX"; then
7219 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7220 echo "${ECHO_T}$SOXMIX" >&6; }
7221 else
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7228 if test -z "$ac_cv_prog_SOXMIX"; then
7229 ac_ct_SOXMIX=$SOXMIX
7230 # Extract the first word of "soxmix", so it can be a program name with args.
7231 set dummy soxmix; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 if test -n "$ac_ct_SOXMIX"; then
7238 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7251 done
7252 done
7253 IFS=$as_save_IFS
7257 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7258 if test -n "$ac_ct_SOXMIX"; then
7259 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7260 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7261 else
7262 { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7266 if test "x$ac_ct_SOXMIX" = x; then
7267 SOXMIX=":"
7268 else
7269 case $cross_compiling:$ac_tool_warned in
7270 yes:)
7271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7272 whose name does not start with the host triplet. If you think this
7273 configuration is useful to you, please write to autoconf@gnu.org." >&5
7274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7275 whose name does not start with the host triplet. If you think this
7276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279 SOXMIX=$ac_ct_SOXMIX
7281 else
7282 SOXMIX="$ac_cv_prog_SOXMIX"
7285 if test "${SOXMIX}" != ":" ; then
7287 cat >>confdefs.h <<\_ACEOF
7288 #define HAVE_SOXMIX 1
7289 _ACEOF
7296 ac_ext=c
7297 ac_cpp='$CPP $CPPFLAGS'
7298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7302 acx_pthread_ok=no
7304 # We used to check for pthread.h first, but this fails if pthread.h
7305 # requires special compiler flags (e.g. on True64 or Sequent).
7306 # It gets checked for in the link test anyway.
7308 # First of all, check if the user has set any of the PTHREAD_LIBS,
7309 # etcetera environment variables, and if threads linking works using
7310 # them:
7311 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7312 save_CFLAGS="$CFLAGS"
7313 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7314 save_LIBS="$LIBS"
7315 LIBS="$PTHREAD_LIBS $LIBS"
7316 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7317 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7318 cat >conftest.$ac_ext <<_ACEOF
7319 /* confdefs.h. */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7325 /* Override any GCC internal prototype to avoid an error.
7326 Use char because int might match the return type of a GCC
7327 builtin and then its argument prototype would still apply. */
7328 #ifdef __cplusplus
7329 extern "C"
7330 #endif
7331 char pthread_join ();
7333 main ()
7335 return pthread_join ();
7337 return 0;
7339 _ACEOF
7340 rm -f conftest.$ac_objext conftest$ac_exeext
7341 if { (ac_try="$ac_link"
7342 case "(($ac_try" in
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7345 esac
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_link") 2>conftest.er1
7348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest$ac_exeext &&
7357 $as_test_x conftest$ac_exeext; then
7358 acx_pthread_ok=yes
7359 else
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7367 conftest$ac_exeext conftest.$ac_ext
7368 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7369 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7370 if test x"$acx_pthread_ok" = xno; then
7371 PTHREAD_LIBS=""
7372 PTHREAD_CFLAGS=""
7374 LIBS="$save_LIBS"
7375 CFLAGS="$save_CFLAGS"
7378 # We must check for the threads library under a number of different
7379 # names; the ordering is very important because some systems
7380 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7381 # libraries is broken (non-POSIX).
7383 # Create a list of thread flags to try. Items starting with a "-" are
7384 # C compiler flags, and other items are library names, except for "none"
7385 # which indicates that we try without any flags at all, and "pthread-config"
7386 # which is a program returning the flags for the Pth emulation library.
7388 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7390 # The ordering *is* (sometimes) important. Some notes on the
7391 # individual items follow:
7393 # pthreads: AIX (must check this before -lpthread)
7394 # none: in case threads are in libc; should be tried before -Kthread and
7395 # other compiler flags to prevent continual compiler warnings
7396 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7397 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7398 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7399 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7400 # -pthreads: Solaris/gcc
7401 # -mthreads: Mingw32/gcc, Lynx/gcc
7402 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7403 # doesn't hurt to check since this sometimes defines pthreads too;
7404 # also defines -D_REENTRANT)
7405 # ... -mt is also the pthreads flag for HP/aCC
7406 # pthread: Linux, etcetera
7407 # --thread-safe: KAI C++
7408 # pthread-config: use pthread-config program (for GNU Pth library)
7410 case "${host_cpu}-${host_os}" in
7411 *solaris*)
7413 # On Solaris (at least, for some versions), libc contains stubbed
7414 # (non-functional) versions of the pthreads routines, so link-based
7415 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7416 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7417 # a function called by this macro, so we could check for that, but
7418 # who knows whether they'll stub that too in a future libc.) So,
7419 # we'll just look for -pthreads and -lpthread first:
7421 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7423 esac
7425 if test x"$acx_pthread_ok" = xno; then
7426 for flag in $acx_pthread_flags; do
7428 case $flag in
7429 none)
7430 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7431 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7435 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7436 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7437 PTHREAD_CFLAGS="$flag"
7440 pthread-config)
7441 # Extract the first word of "pthread-config", so it can be a program name with args.
7442 set dummy pthread-config; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448 if test -n "$acx_pthread_config"; then
7449 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_prog_acx_pthread_config="yes"
7459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7462 done
7463 done
7464 IFS=$as_save_IFS
7466 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7469 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7470 if test -n "$acx_pthread_config"; then
7471 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7472 echo "${ECHO_T}$acx_pthread_config" >&6; }
7473 else
7474 { echo "$as_me:$LINENO: result: no" >&5
7475 echo "${ECHO_T}no" >&6; }
7479 if test x"$acx_pthread_config" = xno; then continue; fi
7480 PTHREAD_CFLAGS="`pthread-config --cflags`"
7481 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7485 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7486 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7487 PTHREAD_LIBS="-l$flag"
7489 esac
7491 save_LIBS="$LIBS"
7492 save_CFLAGS="$CFLAGS"
7493 LIBS="$PTHREAD_LIBS $LIBS"
7494 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7496 # Check for various functions. We must include pthread.h,
7497 # since some functions may be macros. (On the Sequent, we
7498 # need a special flag -Kthread to make this header compile.)
7499 # We check for pthread_join because it is in -lpthread on IRIX
7500 # while pthread_create is in libc. We check for pthread_attr_init
7501 # due to DEC craziness with -lpthreads. We check for
7502 # pthread_cleanup_push because it is one of the few pthread
7503 # functions on Solaris that doesn't have a non-functional libc stub.
7504 # We try pthread_create on general principles.
7505 cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h. */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 #include <pthread.h>
7513 main ()
7515 pthread_t th; pthread_join(th, 0);
7516 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7517 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7519 return 0;
7521 _ACEOF
7522 rm -f conftest.$ac_objext conftest$ac_exeext
7523 if { (ac_try="$ac_link"
7524 case "(($ac_try" in
7525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7526 *) ac_try_echo=$ac_try;;
7527 esac
7528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7529 (eval "$ac_link") 2>conftest.er1
7530 ac_status=$?
7531 grep -v '^ *+' conftest.er1 >conftest.err
7532 rm -f conftest.er1
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } && {
7536 test -z "$ac_c_werror_flag" ||
7537 test ! -s conftest.err
7538 } && test -s conftest$ac_exeext &&
7539 $as_test_x conftest$ac_exeext; then
7540 acx_pthread_ok=yes
7541 else
7542 echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7549 conftest$ac_exeext conftest.$ac_ext
7551 LIBS="$save_LIBS"
7552 CFLAGS="$save_CFLAGS"
7554 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7555 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7556 if test "x$acx_pthread_ok" = xyes; then
7557 break;
7560 PTHREAD_LIBS=""
7561 PTHREAD_CFLAGS=""
7562 done
7565 # Various other checks:
7566 if test "x$acx_pthread_ok" = xyes; then
7567 save_LIBS="$LIBS"
7568 LIBS="$PTHREAD_LIBS $LIBS"
7569 save_CFLAGS="$CFLAGS"
7570 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7572 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7573 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7574 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7575 attr_name=unknown
7576 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7577 cat >conftest.$ac_ext <<_ACEOF
7578 /* confdefs.h. */
7579 _ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7583 #include <pthread.h>
7585 main ()
7587 int attr=$attr; return attr;
7589 return 0;
7591 _ACEOF
7592 rm -f conftest.$ac_objext conftest$ac_exeext
7593 if { (ac_try="$ac_link"
7594 case "(($ac_try" in
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7597 esac
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_link") 2>conftest.er1
7600 ac_status=$?
7601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest$ac_exeext &&
7609 $as_test_x conftest$ac_exeext; then
7610 attr_name=$attr; break
7611 else
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7619 conftest$ac_exeext conftest.$ac_ext
7620 done
7621 { echo "$as_me:$LINENO: result: $attr_name" >&5
7622 echo "${ECHO_T}$attr_name" >&6; }
7623 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7625 cat >>confdefs.h <<_ACEOF
7626 #define PTHREAD_CREATE_JOINABLE $attr_name
7627 _ACEOF
7631 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7632 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7633 flag=no
7634 case "${host_cpu}-${host_os}" in
7635 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7636 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7637 esac
7638 { echo "$as_me:$LINENO: result: ${flag}" >&5
7639 echo "${ECHO_T}${flag}" >&6; }
7640 if test "x$flag" != xno; then
7641 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7644 LIBS="$save_LIBS"
7645 CFLAGS="$save_CFLAGS"
7647 # More AIX lossage: must compile with xlc_r or cc_r
7648 if test x"$GCC" != xyes; then
7649 for ac_prog in xlc_r cc_r
7651 # Extract the first word of "$ac_prog", so it can be a program name with args.
7652 set dummy $ac_prog; ac_word=$2
7653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7655 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658 if test -n "$PTHREAD_CC"; then
7659 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7660 else
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7668 ac_cv_prog_PTHREAD_CC="$ac_prog"
7669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7672 done
7673 done
7674 IFS=$as_save_IFS
7678 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7679 if test -n "$PTHREAD_CC"; then
7680 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7681 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7682 else
7683 { echo "$as_me:$LINENO: result: no" >&5
7684 echo "${ECHO_T}no" >&6; }
7688 test -n "$PTHREAD_CC" && break
7689 done
7690 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7692 else
7693 PTHREAD_CC=$CC
7695 else
7696 PTHREAD_CC="$CC"
7703 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7704 if test x"$acx_pthread_ok" = xyes; then
7706 cat >>confdefs.h <<\_ACEOF
7707 #define HAVE_PTHREAD 1
7708 _ACEOF
7711 else
7712 acx_pthread_ok=no
7715 ac_ext=c
7716 ac_cpp='$CPP $CPPFLAGS'
7717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7723 ac_ext=c
7724 ac_cpp='$CPP $CPPFLAGS'
7725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730 # Check whether --enable-dev-mode was given.
7731 if test "${enable_dev_mode+set}" = set; then
7732 enableval=$enable_dev_mode; case "${enableval}" in
7733 y|ye|yes) AST_DEVMODE=yes ;;
7734 n|no) AST_DEVMODE=no ;;
7735 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7736 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7737 { (exit 1); exit 1; }; } ;;
7738 esac
7743 # package option names should be in alphabetical order
7744 # by the --with option name, to make things easier for the users :-)
7747 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7748 ALSA_OPTION="asound"
7750 # Check whether --with-asound was given.
7751 if test "${with_asound+set}" = set; then
7752 withval=$with_asound;
7753 case ${withval} in
7754 n|no)
7755 USE_ALSA=no
7757 y|ye|yes)
7758 ALSA_MANDATORY="yes"
7761 ALSA_DIR="${withval}"
7762 ALSA_MANDATORY="yes"
7764 esac
7768 PBX_ALSA=0
7775 CURL_DESCRIP="cURL"
7776 CURL_OPTION="curl"
7778 # Check whether --with-curl was given.
7779 if test "${with_curl+set}" = set; then
7780 withval=$with_curl;
7781 case ${withval} in
7782 n|no)
7783 USE_CURL=no
7785 y|ye|yes)
7786 CURL_MANDATORY="yes"
7789 CURL_DIR="${withval}"
7790 CURL_MANDATORY="yes"
7792 esac
7796 PBX_CURL=0
7803 CAP_DESCRIP="POSIX 1.e capabilities"
7804 CAP_OPTION="cap"
7806 # Check whether --with-cap was given.
7807 if test "${with_cap+set}" = set; then
7808 withval=$with_cap;
7809 case ${withval} in
7810 n|no)
7811 USE_CAP=no
7813 y|ye|yes)
7814 CAP_MANDATORY="yes"
7817 CAP_DIR="${withval}"
7818 CAP_MANDATORY="yes"
7820 esac
7824 PBX_CAP=0
7831 CURSES_DESCRIP="curses"
7832 CURSES_OPTION="curses"
7834 # Check whether --with-curses was given.
7835 if test "${with_curses+set}" = set; then
7836 withval=$with_curses;
7837 case ${withval} in
7838 n|no)
7839 USE_CURSES=no
7841 y|ye|yes)
7842 CURSES_MANDATORY="yes"
7845 CURSES_DIR="${withval}"
7846 CURSES_MANDATORY="yes"
7848 esac
7852 PBX_CURSES=0
7859 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7860 GNUTLS_OPTION="gnutls"
7862 # Check whether --with-gnutls was given.
7863 if test "${with_gnutls+set}" = set; then
7864 withval=$with_gnutls;
7865 case ${withval} in
7866 n|no)
7867 USE_GNUTLS=no
7869 y|ye|yes)
7870 GNUTLS_MANDATORY="yes"
7873 GNUTLS_DIR="${withval}"
7874 GNUTLS_MANDATORY="yes"
7876 esac
7880 PBX_GNUTLS=0
7887 GSM_DESCRIP="GSM"
7888 GSM_OPTION="gsm"
7890 # Check whether --with-gsm was given.
7891 if test "${with_gsm+set}" = set; then
7892 withval=$with_gsm;
7893 case ${withval} in
7894 n|no)
7895 USE_GSM=no
7897 y|ye|yes)
7898 GSM_MANDATORY="yes"
7901 GSM_DIR="${withval}"
7902 GSM_MANDATORY="yes"
7904 esac
7908 PBX_GSM=0
7915 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7916 IKSEMEL_OPTION="iksemel"
7918 # Check whether --with-iksemel was given.
7919 if test "${with_iksemel+set}" = set; then
7920 withval=$with_iksemel;
7921 case ${withval} in
7922 n|no)
7923 USE_IKSEMEL=no
7925 y|ye|yes)
7926 IKSEMEL_MANDATORY="yes"
7929 IKSEMEL_DIR="${withval}"
7930 IKSEMEL_MANDATORY="yes"
7932 esac
7936 PBX_IKSEMEL=0
7943 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7944 IMAP_TK_OPTION="imap"
7946 # Check whether --with-imap was given.
7947 if test "${with_imap+set}" = set; then
7948 withval=$with_imap;
7949 case ${withval} in
7950 n|no)
7951 USE_IMAP_TK=no
7953 y|ye|yes)
7954 IMAP_TK_MANDATORY="yes"
7957 IMAP_TK_DIR="${withval}"
7958 IMAP_TK_MANDATORY="yes"
7960 esac
7964 PBX_IMAP_TK=0
7971 ISDNNET_DESCRIP="ISDN4Linux Library"
7972 ISDNNET_OPTION="isdnnet"
7974 # Check whether --with-isdnnet was given.
7975 if test "${with_isdnnet+set}" = set; then
7976 withval=$with_isdnnet;
7977 case ${withval} in
7978 n|no)
7979 USE_ISDNNET=no
7981 y|ye|yes)
7982 ISDNNET_MANDATORY="yes"
7985 ISDNNET_DIR="${withval}"
7986 ISDNNET_MANDATORY="yes"
7988 esac
7992 PBX_ISDNNET=0
7999 KDE_DESCRIP="KDE"
8000 KDE_OPTION="kde"
8002 # Check whether --with-kde was given.
8003 if test "${with_kde+set}" = set; then
8004 withval=$with_kde;
8005 case ${withval} in
8006 n|no)
8007 USE_KDE=no
8009 y|ye|yes)
8010 KDE_MANDATORY="yes"
8013 KDE_DIR="${withval}"
8014 KDE_MANDATORY="yes"
8016 esac
8020 PBX_KDE=0
8027 LTDL_DESCRIP="libtool"
8028 LTDL_OPTION="ltdl"
8030 # Check whether --with-ltdl was given.
8031 if test "${with_ltdl+set}" = set; then
8032 withval=$with_ltdl;
8033 case ${withval} in
8034 n|no)
8035 USE_LTDL=no
8037 y|ye|yes)
8038 LTDL_MANDATORY="yes"
8041 LTDL_DIR="${withval}"
8042 LTDL_MANDATORY="yes"
8044 esac
8048 PBX_LTDL=0
8055 MISDN_DESCRIP="mISDN User Library"
8056 MISDN_OPTION="misdn"
8058 # Check whether --with-misdn was given.
8059 if test "${with_misdn+set}" = set; then
8060 withval=$with_misdn;
8061 case ${withval} in
8062 n|no)
8063 USE_MISDN=no
8065 y|ye|yes)
8066 MISDN_MANDATORY="yes"
8069 MISDN_DIR="${withval}"
8070 MISDN_MANDATORY="yes"
8072 esac
8076 PBX_MISDN=0
8083 NBS_DESCRIP="Network Broadcast Sound"
8084 NBS_OPTION="nbs"
8086 # Check whether --with-nbs was given.
8087 if test "${with_nbs+set}" = set; then
8088 withval=$with_nbs;
8089 case ${withval} in
8090 n|no)
8091 USE_NBS=no
8093 y|ye|yes)
8094 NBS_MANDATORY="yes"
8097 NBS_DIR="${withval}"
8098 NBS_MANDATORY="yes"
8100 esac
8104 PBX_NBS=0
8111 NCURSES_DESCRIP="ncurses"
8112 NCURSES_OPTION="ncurses"
8114 # Check whether --with-ncurses was given.
8115 if test "${with_ncurses+set}" = set; then
8116 withval=$with_ncurses;
8117 case ${withval} in
8118 n|no)
8119 USE_NCURSES=no
8121 y|ye|yes)
8122 NCURSES_MANDATORY="yes"
8125 NCURSES_DIR="${withval}"
8126 NCURSES_MANDATORY="yes"
8128 esac
8132 PBX_NCURSES=0
8139 NETSNMP_DESCRIP="Net-SNMP"
8140 NETSNMP_OPTION="netsnmp"
8142 # Check whether --with-netsnmp was given.
8143 if test "${with_netsnmp+set}" = set; then
8144 withval=$with_netsnmp;
8145 case ${withval} in
8146 n|no)
8147 USE_NETSNMP=no
8149 y|ye|yes)
8150 NETSNMP_MANDATORY="yes"
8153 NETSNMP_DIR="${withval}"
8154 NETSNMP_MANDATORY="yes"
8156 esac
8160 PBX_NETSNMP=0
8167 NEWT_DESCRIP="newt"
8168 NEWT_OPTION="newt"
8170 # Check whether --with-newt was given.
8171 if test "${with_newt+set}" = set; then
8172 withval=$with_newt;
8173 case ${withval} in
8174 n|no)
8175 USE_NEWT=no
8177 y|ye|yes)
8178 NEWT_MANDATORY="yes"
8181 NEWT_DIR="${withval}"
8182 NEWT_MANDATORY="yes"
8184 esac
8188 PBX_NEWT=0
8195 UNIXODBC_DESCRIP="unixODBC"
8196 UNIXODBC_OPTION="odbc"
8198 # Check whether --with-odbc was given.
8199 if test "${with_odbc+set}" = set; then
8200 withval=$with_odbc;
8201 case ${withval} in
8202 n|no)
8203 USE_UNIXODBC=no
8205 y|ye|yes)
8206 UNIXODBC_MANDATORY="yes"
8209 UNIXODBC_DIR="${withval}"
8210 UNIXODBC_MANDATORY="yes"
8212 esac
8216 PBX_UNIXODBC=0
8223 OGG_DESCRIP="OGG"
8224 OGG_OPTION="ogg"
8226 # Check whether --with-ogg was given.
8227 if test "${with_ogg+set}" = set; then
8228 withval=$with_ogg;
8229 case ${withval} in
8230 n|no)
8231 USE_OGG=no
8233 y|ye|yes)
8234 OGG_MANDATORY="yes"
8237 OGG_DIR="${withval}"
8238 OGG_MANDATORY="yes"
8240 esac
8244 PBX_OGG=0
8251 OSPTK_DESCRIP="OSP Toolkit"
8252 OSPTK_OPTION="osptk"
8254 # Check whether --with-osptk was given.
8255 if test "${with_osptk+set}" = set; then
8256 withval=$with_osptk;
8257 case ${withval} in
8258 n|no)
8259 USE_OSPTK=no
8261 y|ye|yes)
8262 OSPTK_MANDATORY="yes"
8265 OSPTK_DIR="${withval}"
8266 OSPTK_MANDATORY="yes"
8268 esac
8272 PBX_OSPTK=0
8279 OSS_DESCRIP="Open Sound System"
8280 OSS_OPTION="oss"
8282 # Check whether --with-oss was given.
8283 if test "${with_oss+set}" = set; then
8284 withval=$with_oss;
8285 case ${withval} in
8286 n|no)
8287 USE_OSS=no
8289 y|ye|yes)
8290 OSS_MANDATORY="yes"
8293 OSS_DIR="${withval}"
8294 OSS_MANDATORY="yes"
8296 esac
8300 PBX_OSS=0
8307 POPT_DESCRIP="popt"
8308 POPT_OPTION="popt"
8310 # Check whether --with-popt was given.
8311 if test "${with_popt+set}" = set; then
8312 withval=$with_popt;
8313 case ${withval} in
8314 n|no)
8315 USE_POPT=no
8317 y|ye|yes)
8318 POPT_MANDATORY="yes"
8321 POPT_DIR="${withval}"
8322 POPT_MANDATORY="yes"
8324 esac
8328 PBX_POPT=0
8335 PGSQL_DESCRIP="PostgreSQL"
8336 PGSQL_OPTION="postgres"
8338 # Check whether --with-postgres was given.
8339 if test "${with_postgres+set}" = set; then
8340 withval=$with_postgres;
8341 case ${withval} in
8342 n|no)
8343 USE_PGSQL=no
8345 y|ye|yes)
8346 PGSQL_MANDATORY="yes"
8349 PGSQL_DIR="${withval}"
8350 PGSQL_MANDATORY="yes"
8352 esac
8356 PBX_PGSQL=0
8363 PRI_DESCRIP="ISDN PRI"
8364 PRI_OPTION="pri"
8366 # Check whether --with-pri was given.
8367 if test "${with_pri+set}" = set; then
8368 withval=$with_pri;
8369 case ${withval} in
8370 n|no)
8371 USE_PRI=no
8373 y|ye|yes)
8374 PRI_MANDATORY="yes"
8377 PRI_DIR="${withval}"
8378 PRI_MANDATORY="yes"
8380 esac
8384 PBX_PRI=0
8391 PWLIB_DESCRIP="PWlib"
8392 PWLIB_OPTION="pwlib"
8394 # Check whether --with-pwlib was given.
8395 if test "${with_pwlib+set}" = set; then
8396 withval=$with_pwlib;
8397 case ${withval} in
8398 n|no)
8399 USE_PWLIB=no
8401 y|ye|yes)
8402 PWLIB_MANDATORY="yes"
8405 PWLIB_DIR="${withval}"
8406 PWLIB_MANDATORY="yes"
8408 esac
8412 PBX_PWLIB=0
8419 OPENH323_DESCRIP="OpenH323"
8420 OPENH323_OPTION="h323"
8422 # Check whether --with-h323 was given.
8423 if test "${with_h323+set}" = set; then
8424 withval=$with_h323;
8425 case ${withval} in
8426 n|no)
8427 USE_OPENH323=no
8429 y|ye|yes)
8430 OPENH323_MANDATORY="yes"
8433 OPENH323_DIR="${withval}"
8434 OPENH323_MANDATORY="yes"
8436 esac
8440 PBX_OPENH323=0
8447 RADIUS_DESCRIP="Radius Client"
8448 RADIUS_OPTION="radius"
8450 # Check whether --with-radius was given.
8451 if test "${with_radius+set}" = set; then
8452 withval=$with_radius;
8453 case ${withval} in
8454 n|no)
8455 USE_RADIUS=no
8457 y|ye|yes)
8458 RADIUS_MANDATORY="yes"
8461 RADIUS_DIR="${withval}"
8462 RADIUS_MANDATORY="yes"
8464 esac
8468 PBX_RADIUS=0
8475 SPEEX_DESCRIP="Speex"
8476 SPEEX_OPTION="speex"
8478 # Check whether --with-speex was given.
8479 if test "${with_speex+set}" = set; then
8480 withval=$with_speex;
8481 case ${withval} in
8482 n|no)
8483 USE_SPEEX=no
8485 y|ye|yes)
8486 SPEEX_MANDATORY="yes"
8489 SPEEX_DIR="${withval}"
8490 SPEEX_MANDATORY="yes"
8492 esac
8496 PBX_SPEEX=0
8503 SPEEXDSP_DESCRIP="Speexdsp"
8504 SPEEXDSP_OPTION="speexdsp"
8506 # Check whether --with-speexdsp was given.
8507 if test "${with_speexdsp+set}" = set; then
8508 withval=$with_speexdsp;
8509 case ${withval} in
8510 n|no)
8511 USE_SPEEXDSP=no
8513 y|ye|yes)
8514 SPEEXDSP_MANDATORY="yes"
8517 SPEEXDSP_DIR="${withval}"
8518 SPEEXDSP_MANDATORY="yes"
8520 esac
8524 PBX_SPEEXDSP=0
8531 SQLITE_DESCRIP="SQLite"
8532 SQLITE_OPTION="sqlite"
8534 # Check whether --with-sqlite was given.
8535 if test "${with_sqlite+set}" = set; then
8536 withval=$with_sqlite;
8537 case ${withval} in
8538 n|no)
8539 USE_SQLITE=no
8541 y|ye|yes)
8542 SQLITE_MANDATORY="yes"
8545 SQLITE_DIR="${withval}"
8546 SQLITE_MANDATORY="yes"
8548 esac
8552 PBX_SQLITE=0
8559 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8560 SUPPSERV_OPTION="suppserv"
8562 # Check whether --with-suppserv was given.
8563 if test "${with_suppserv+set}" = set; then
8564 withval=$with_suppserv;
8565 case ${withval} in
8566 n|no)
8567 USE_SUPPSERV=no
8569 y|ye|yes)
8570 SUPPSERV_MANDATORY="yes"
8573 SUPPSERV_DIR="${withval}"
8574 SUPPSERV_MANDATORY="yes"
8576 esac
8580 PBX_SUPPSERV=0
8587 OPENSSL_DESCRIP="OpenSSL"
8588 OPENSSL_OPTION="ssl"
8590 # Check whether --with-ssl was given.
8591 if test "${with_ssl+set}" = set; then
8592 withval=$with_ssl;
8593 case ${withval} in
8594 n|no)
8595 USE_OPENSSL=no
8597 y|ye|yes)
8598 OPENSSL_MANDATORY="yes"
8601 OPENSSL_DIR="${withval}"
8602 OPENSSL_MANDATORY="yes"
8604 esac
8608 PBX_OPENSSL=0
8615 FREETDS_DESCRIP="FreeTDS"
8616 FREETDS_OPTION="tds"
8618 # Check whether --with-tds was given.
8619 if test "${with_tds+set}" = set; then
8620 withval=$with_tds;
8621 case ${withval} in
8622 n|no)
8623 USE_FREETDS=no
8625 y|ye|yes)
8626 FREETDS_MANDATORY="yes"
8629 FREETDS_DIR="${withval}"
8630 FREETDS_MANDATORY="yes"
8632 esac
8636 PBX_FREETDS=0
8643 TERMCAP_DESCRIP="Termcap"
8644 TERMCAP_OPTION="termcap"
8646 # Check whether --with-termcap was given.
8647 if test "${with_termcap+set}" = set; then
8648 withval=$with_termcap;
8649 case ${withval} in
8650 n|no)
8651 USE_TERMCAP=no
8653 y|ye|yes)
8654 TERMCAP_MANDATORY="yes"
8657 TERMCAP_DIR="${withval}"
8658 TERMCAP_MANDATORY="yes"
8660 esac
8664 PBX_TERMCAP=0
8671 TINFO_DESCRIP="Term Info"
8672 TINFO_OPTION="tinfo"
8674 # Check whether --with-tinfo was given.
8675 if test "${with_tinfo+set}" = set; then
8676 withval=$with_tinfo;
8677 case ${withval} in
8678 n|no)
8679 USE_TINFO=no
8681 y|ye|yes)
8682 TINFO_MANDATORY="yes"
8685 TINFO_DIR="${withval}"
8686 TINFO_MANDATORY="yes"
8688 esac
8692 PBX_TINFO=0
8699 TONEZONE_DESCRIP="tonezone"
8700 TONEZONE_OPTION="tonezone"
8702 # Check whether --with-tonezone was given.
8703 if test "${with_tonezone+set}" = set; then
8704 withval=$with_tonezone;
8705 case ${withval} in
8706 n|no)
8707 USE_TONEZONE=no
8709 y|ye|yes)
8710 TONEZONE_MANDATORY="yes"
8713 TONEZONE_DIR="${withval}"
8714 TONEZONE_MANDATORY="yes"
8716 esac
8720 PBX_TONEZONE=0
8727 USB_DESCRIP="usb"
8728 USB_OPTION="usb"
8730 # Check whether --with-usb was given.
8731 if test "${with_usb+set}" = set; then
8732 withval=$with_usb;
8733 case ${withval} in
8734 n|no)
8735 USE_USB=no
8737 y|ye|yes)
8738 USB_MANDATORY="yes"
8741 USB_DIR="${withval}"
8742 USB_MANDATORY="yes"
8744 esac
8748 PBX_USB=0
8755 VORBIS_DESCRIP="Vorbis"
8756 VORBIS_OPTION="vorbis"
8758 # Check whether --with-vorbis was given.
8759 if test "${with_vorbis+set}" = set; then
8760 withval=$with_vorbis;
8761 case ${withval} in
8762 n|no)
8763 USE_VORBIS=no
8765 y|ye|yes)
8766 VORBIS_MANDATORY="yes"
8769 VORBIS_DIR="${withval}"
8770 VORBIS_MANDATORY="yes"
8772 esac
8776 PBX_VORBIS=0
8783 VPB_DESCRIP="Voicetronix API"
8784 VPB_OPTION="vpb"
8786 # Check whether --with-vpb was given.
8787 if test "${with_vpb+set}" = set; then
8788 withval=$with_vpb;
8789 case ${withval} in
8790 n|no)
8791 USE_VPB=no
8793 y|ye|yes)
8794 VPB_MANDATORY="yes"
8797 VPB_DIR="${withval}"
8798 VPB_MANDATORY="yes"
8800 esac
8804 PBX_VPB=0
8811 ZLIB_DESCRIP="zlib"
8812 ZLIB_OPTION="z"
8814 # Check whether --with-z was given.
8815 if test "${with_z+set}" = set; then
8816 withval=$with_z;
8817 case ${withval} in
8818 n|no)
8819 USE_ZLIB=no
8821 y|ye|yes)
8822 ZLIB_MANDATORY="yes"
8825 ZLIB_DIR="${withval}"
8826 ZLIB_MANDATORY="yes"
8828 esac
8832 PBX_ZLIB=0
8839 ZAPTEL_DESCRIP="Zaptel"
8840 ZAPTEL_OPTION="zaptel"
8842 # Check whether --with-zaptel was given.
8843 if test "${with_zaptel+set}" = set; then
8844 withval=$with_zaptel;
8845 case ${withval} in
8846 n|no)
8847 USE_ZAPTEL=no
8849 y|ye|yes)
8850 ZAPTEL_MANDATORY="yes"
8853 ZAPTEL_DIR="${withval}"
8854 ZAPTEL_MANDATORY="yes"
8856 esac
8860 PBX_ZAPTEL=0
8867 # check for basic system features and functionality before
8868 # checking for package libraries
8870 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8871 # for constant arguments. Useless!
8872 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8873 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8874 if test "${ac_cv_working_alloca_h+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883 #include <alloca.h>
8885 main ()
8887 char *p = (char *) alloca (2 * sizeof (int));
8888 if (p) return 0;
8890 return 0;
8892 _ACEOF
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894 if { (ac_try="$ac_link"
8895 case "(($ac_try" in
8896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897 *) ac_try_echo=$ac_try;;
8898 esac
8899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900 (eval "$ac_link") 2>conftest.er1
8901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } && {
8907 test -z "$ac_c_werror_flag" ||
8908 test ! -s conftest.err
8909 } && test -s conftest$ac_exeext &&
8910 $as_test_x conftest$ac_exeext; then
8911 ac_cv_working_alloca_h=yes
8912 else
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8916 ac_cv_working_alloca_h=no
8919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8920 conftest$ac_exeext conftest.$ac_ext
8922 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8923 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8924 if test $ac_cv_working_alloca_h = yes; then
8926 cat >>confdefs.h <<\_ACEOF
8927 #define HAVE_ALLOCA_H 1
8928 _ACEOF
8932 { echo "$as_me:$LINENO: checking for alloca" >&5
8933 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8934 if test "${ac_cv_func_alloca_works+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 else
8937 cat >conftest.$ac_ext <<_ACEOF
8938 /* confdefs.h. */
8939 _ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8943 #ifdef __GNUC__
8944 # define alloca __builtin_alloca
8945 #else
8946 # ifdef _MSC_VER
8947 # include <malloc.h>
8948 # define alloca _alloca
8949 # else
8950 # ifdef HAVE_ALLOCA_H
8951 # include <alloca.h>
8952 # else
8953 # ifdef _AIX
8954 #pragma alloca
8955 # else
8956 # ifndef alloca /* predefined by HP cc +Olibcalls */
8957 char *alloca ();
8958 # endif
8959 # endif
8960 # endif
8961 # endif
8962 #endif
8965 main ()
8967 char *p = (char *) alloca (1);
8968 if (p) return 0;
8970 return 0;
8972 _ACEOF
8973 rm -f conftest.$ac_objext conftest$ac_exeext
8974 if { (ac_try="$ac_link"
8975 case "(($ac_try" in
8976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8977 *) ac_try_echo=$ac_try;;
8978 esac
8979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8980 (eval "$ac_link") 2>conftest.er1
8981 ac_status=$?
8982 grep -v '^ *+' conftest.er1 >conftest.err
8983 rm -f conftest.er1
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } && {
8987 test -z "$ac_c_werror_flag" ||
8988 test ! -s conftest.err
8989 } && test -s conftest$ac_exeext &&
8990 $as_test_x conftest$ac_exeext; then
8991 ac_cv_func_alloca_works=yes
8992 else
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8996 ac_cv_func_alloca_works=no
8999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9000 conftest$ac_exeext conftest.$ac_ext
9002 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9003 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9005 if test $ac_cv_func_alloca_works = yes; then
9007 cat >>confdefs.h <<\_ACEOF
9008 #define HAVE_ALLOCA 1
9009 _ACEOF
9011 else
9012 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9013 # that cause trouble. Some versions do not even contain alloca or
9014 # contain a buggy version. If you still want to use their alloca,
9015 # use ar to extract alloca.o from them instead of compiling alloca.c.
9017 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9019 cat >>confdefs.h <<\_ACEOF
9020 #define C_ALLOCA 1
9021 _ACEOF
9024 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9025 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9026 if test "${ac_cv_os_cray+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 #if defined CRAY && ! defined CRAY2
9036 webecray
9037 #else
9038 wenotbecray
9039 #endif
9041 _ACEOF
9042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9043 $EGREP "webecray" >/dev/null 2>&1; then
9044 ac_cv_os_cray=yes
9045 else
9046 ac_cv_os_cray=no
9048 rm -f conftest*
9051 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9052 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9053 if test $ac_cv_os_cray = yes; then
9054 for ac_func in _getb67 GETB67 getb67; do
9055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 else
9061 cat >conftest.$ac_ext <<_ACEOF
9062 /* confdefs.h. */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9069 #define $ac_func innocuous_$ac_func
9071 /* System header to define __stub macros and hopefully few prototypes,
9072 which can conflict with char $ac_func (); below.
9073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9074 <limits.h> exists even on freestanding compilers. */
9076 #ifdef __STDC__
9077 # include <limits.h>
9078 #else
9079 # include <assert.h>
9080 #endif
9082 #undef $ac_func
9084 /* Override any GCC internal prototype to avoid an error.
9085 Use char because int might match the return type of a GCC
9086 builtin and then its argument prototype would still apply. */
9087 #ifdef __cplusplus
9088 extern "C"
9089 #endif
9090 char $ac_func ();
9091 /* The GNU C library defines this for functions which it implements
9092 to always fail with ENOSYS. Some functions are actually named
9093 something starting with __ and the normal name is an alias. */
9094 #if defined __stub_$ac_func || defined __stub___$ac_func
9095 choke me
9096 #endif
9099 main ()
9101 return $ac_func ();
9103 return 0;
9105 _ACEOF
9106 rm -f conftest.$ac_objext conftest$ac_exeext
9107 if { (ac_try="$ac_link"
9108 case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111 esac
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_link") 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } && {
9120 test -z "$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 } && test -s conftest$ac_exeext &&
9123 $as_test_x conftest$ac_exeext; then
9124 eval "$as_ac_var=yes"
9125 else
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9129 eval "$as_ac_var=no"
9132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9133 conftest$ac_exeext conftest.$ac_ext
9135 ac_res=`eval echo '${'$as_ac_var'}'`
9136 { echo "$as_me:$LINENO: result: $ac_res" >&5
9137 echo "${ECHO_T}$ac_res" >&6; }
9138 if test `eval echo '${'$as_ac_var'}'` = yes; then
9140 cat >>confdefs.h <<_ACEOF
9141 #define CRAY_STACKSEG_END $ac_func
9142 _ACEOF
9144 break
9147 done
9150 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9151 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9152 if test "${ac_cv_c_stack_direction+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9155 if test "$cross_compiling" = yes; then
9156 ac_cv_c_stack_direction=0
9157 else
9158 cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h. */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 $ac_includes_default
9166 find_stack_direction ()
9168 static char *addr = 0;
9169 auto char dummy;
9170 if (addr == 0)
9172 addr = &dummy;
9173 return find_stack_direction ();
9175 else
9176 return (&dummy > addr) ? 1 : -1;
9180 main ()
9182 return find_stack_direction () < 0;
9184 _ACEOF
9185 rm -f conftest$ac_exeext
9186 if { (ac_try="$ac_link"
9187 case "(($ac_try" in
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9190 esac
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_link") 2>&5
9193 ac_status=$?
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9196 { (case "(($ac_try" in
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9199 esac
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_try") 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; }; then
9205 ac_cv_c_stack_direction=1
9206 else
9207 echo "$as_me: program exited with status $ac_status" >&5
9208 echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9211 ( exit $ac_status )
9212 ac_cv_c_stack_direction=-1
9214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9219 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9220 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9222 cat >>confdefs.h <<_ACEOF
9223 #define STACK_DIRECTION $ac_cv_c_stack_direction
9224 _ACEOF
9234 ac_header_dirent=no
9235 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9236 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9237 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9238 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242 cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h. */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9248 #include <sys/types.h>
9249 #include <$ac_hdr>
9252 main ()
9254 if ((DIR *) 0)
9255 return 0;
9257 return 0;
9259 _ACEOF
9260 rm -f conftest.$ac_objext
9261 if { (ac_try="$ac_compile"
9262 case "(($ac_try" in
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9265 esac
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_compile") 2>conftest.er1
9268 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err
9270 rm -f conftest.er1
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest.$ac_objext; then
9277 eval "$as_ac_Header=yes"
9278 else
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9282 eval "$as_ac_Header=no"
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287 ac_res=`eval echo '${'$as_ac_Header'}'`
9288 { echo "$as_me:$LINENO: result: $ac_res" >&5
9289 echo "${ECHO_T}$ac_res" >&6; }
9290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9291 cat >>confdefs.h <<_ACEOF
9292 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9293 _ACEOF
9295 ac_header_dirent=$ac_hdr; break
9298 done
9299 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9300 if test $ac_header_dirent = dirent.h; then
9301 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9302 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9303 if test "${ac_cv_search_opendir+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 else
9306 ac_func_search_save_LIBS=$LIBS
9307 cat >conftest.$ac_ext <<_ACEOF
9308 /* confdefs.h. */
9309 _ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9314 /* Override any GCC internal prototype to avoid an error.
9315 Use char because int might match the return type of a GCC
9316 builtin and then its argument prototype would still apply. */
9317 #ifdef __cplusplus
9318 extern "C"
9319 #endif
9320 char opendir ();
9322 main ()
9324 return opendir ();
9326 return 0;
9328 _ACEOF
9329 for ac_lib in '' dir; do
9330 if test -z "$ac_lib"; then
9331 ac_res="none required"
9332 else
9333 ac_res=-l$ac_lib
9334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (ac_try="$ac_link"
9338 case "(($ac_try" in
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9341 esac
9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_link") 2>conftest.er1
9344 ac_status=$?
9345 grep -v '^ *+' conftest.er1 >conftest.err
9346 rm -f conftest.er1
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } && {
9350 test -z "$ac_c_werror_flag" ||
9351 test ! -s conftest.err
9352 } && test -s conftest$ac_exeext &&
9353 $as_test_x conftest$ac_exeext; then
9354 ac_cv_search_opendir=$ac_res
9355 else
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9363 conftest$ac_exeext
9364 if test "${ac_cv_search_opendir+set}" = set; then
9365 break
9367 done
9368 if test "${ac_cv_search_opendir+set}" = set; then
9370 else
9371 ac_cv_search_opendir=no
9373 rm conftest.$ac_ext
9374 LIBS=$ac_func_search_save_LIBS
9376 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9377 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9378 ac_res=$ac_cv_search_opendir
9379 if test "$ac_res" != no; then
9380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9384 else
9385 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9386 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9387 if test "${ac_cv_search_opendir+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390 ac_func_search_save_LIBS=$LIBS
9391 cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h. */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9398 /* Override any GCC internal prototype to avoid an error.
9399 Use char because int might match the return type of a GCC
9400 builtin and then its argument prototype would still apply. */
9401 #ifdef __cplusplus
9402 extern "C"
9403 #endif
9404 char opendir ();
9406 main ()
9408 return opendir ();
9410 return 0;
9412 _ACEOF
9413 for ac_lib in '' x; do
9414 if test -z "$ac_lib"; then
9415 ac_res="none required"
9416 else
9417 ac_res=-l$ac_lib
9418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9420 rm -f conftest.$ac_objext conftest$ac_exeext
9421 if { (ac_try="$ac_link"
9422 case "(($ac_try" in
9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424 *) ac_try_echo=$ac_try;;
9425 esac
9426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9427 (eval "$ac_link") 2>conftest.er1
9428 ac_status=$?
9429 grep -v '^ *+' conftest.er1 >conftest.err
9430 rm -f conftest.er1
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } && {
9434 test -z "$ac_c_werror_flag" ||
9435 test ! -s conftest.err
9436 } && test -s conftest$ac_exeext &&
9437 $as_test_x conftest$ac_exeext; then
9438 ac_cv_search_opendir=$ac_res
9439 else
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9447 conftest$ac_exeext
9448 if test "${ac_cv_search_opendir+set}" = set; then
9449 break
9451 done
9452 if test "${ac_cv_search_opendir+set}" = set; then
9454 else
9455 ac_cv_search_opendir=no
9457 rm conftest.$ac_ext
9458 LIBS=$ac_func_search_save_LIBS
9460 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9461 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9462 ac_res=$ac_cv_search_opendir
9463 if test "$ac_res" != no; then
9464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9470 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9471 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9472 if test "${ac_cv_header_stdc+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475 cat >conftest.$ac_ext <<_ACEOF
9476 /* confdefs.h. */
9477 _ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481 #include <stdlib.h>
9482 #include <stdarg.h>
9483 #include <string.h>
9484 #include <float.h>
9487 main ()
9491 return 0;
9493 _ACEOF
9494 rm -f conftest.$ac_objext
9495 if { (ac_try="$ac_compile"
9496 case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9499 esac
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_compile") 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && {
9508 test -z "$ac_c_werror_flag" ||
9509 test ! -s conftest.err
9510 } && test -s conftest.$ac_objext; then
9511 ac_cv_header_stdc=yes
9512 else
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 ac_cv_header_stdc=no
9519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521 if test $ac_cv_header_stdc = yes; then
9522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9523 cat >conftest.$ac_ext <<_ACEOF
9524 /* confdefs.h. */
9525 _ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9529 #include <string.h>
9531 _ACEOF
9532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9533 $EGREP "memchr" >/dev/null 2>&1; then
9535 else
9536 ac_cv_header_stdc=no
9538 rm -f conftest*
9542 if test $ac_cv_header_stdc = yes; then
9543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9544 cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h. */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9550 #include <stdlib.h>
9552 _ACEOF
9553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9554 $EGREP "free" >/dev/null 2>&1; then
9556 else
9557 ac_cv_header_stdc=no
9559 rm -f conftest*
9563 if test $ac_cv_header_stdc = yes; then
9564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9565 if test "$cross_compiling" = yes; then
9567 else
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h. */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9574 #include <ctype.h>
9575 #include <stdlib.h>
9576 #if ((' ' & 0x0FF) == 0x020)
9577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9579 #else
9580 # define ISLOWER(c) \
9581 (('a' <= (c) && (c) <= 'i') \
9582 || ('j' <= (c) && (c) <= 'r') \
9583 || ('s' <= (c) && (c) <= 'z'))
9584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9585 #endif
9587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9589 main ()
9591 int i;
9592 for (i = 0; i < 256; i++)
9593 if (XOR (islower (i), ISLOWER (i))
9594 || toupper (i) != TOUPPER (i))
9595 return 2;
9596 return 0;
9598 _ACEOF
9599 rm -f conftest$ac_exeext
9600 if { (ac_try="$ac_link"
9601 case "(($ac_try" in
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9604 esac
9605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606 (eval "$ac_link") 2>&5
9607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9610 { (case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613 esac
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_try") 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9620 else
9621 echo "$as_me: program exited with status $ac_status" >&5
9622 echo "$as_me: failed program was:" >&5
9623 sed 's/^/| /' conftest.$ac_ext >&5
9625 ( exit $ac_status )
9626 ac_cv_header_stdc=no
9628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9634 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9635 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9636 if test $ac_cv_header_stdc = yes; then
9638 cat >>confdefs.h <<\_ACEOF
9639 #define STDC_HEADERS 1
9640 _ACEOF
9644 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9645 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9646 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h. */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9655 #include <sys/types.h>
9656 #include <sys/wait.h>
9657 #ifndef WEXITSTATUS
9658 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9659 #endif
9660 #ifndef WIFEXITED
9661 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9662 #endif
9665 main ()
9667 int s;
9668 wait (&s);
9669 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9671 return 0;
9673 _ACEOF
9674 rm -f conftest.$ac_objext
9675 if { (ac_try="$ac_compile"
9676 case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9679 esac
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_compile") 2>conftest.er1
9682 ac_status=$?
9683 grep -v '^ *+' conftest.er1 >conftest.err
9684 rm -f conftest.er1
9685 cat conftest.err >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest.$ac_objext; then
9691 ac_cv_header_sys_wait_h=yes
9692 else
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_cv_header_sys_wait_h=no
9699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9702 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9703 if test $ac_cv_header_sys_wait_h = yes; then
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_SYS_WAIT_H 1
9707 _ACEOF
9734 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
9736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 ac_res=`eval echo '${'$as_ac_Header'}'`
9744 { echo "$as_me:$LINENO: result: $ac_res" >&5
9745 echo "${ECHO_T}$ac_res" >&6; }
9746 else
9747 # Is the header compilable?
9748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9750 cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h. */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9756 $ac_includes_default
9757 #include <$ac_header>
9758 _ACEOF
9759 rm -f conftest.$ac_objext
9760 if { (ac_try="$ac_compile"
9761 case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9764 esac
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_compile") 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } && {
9773 test -z "$ac_c_werror_flag" ||
9774 test ! -s conftest.err
9775 } && test -s conftest.$ac_objext; then
9776 ac_header_compiler=yes
9777 else
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 ac_header_compiler=no
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9786 echo "${ECHO_T}$ac_header_compiler" >&6; }
9788 # Is the header present?
9789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9791 cat >conftest.$ac_ext <<_ACEOF
9792 /* confdefs.h. */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9797 #include <$ac_header>
9798 _ACEOF
9799 if { (ac_try="$ac_cpp conftest.$ac_ext"
9800 case "(($ac_try" in
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9803 esac
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9806 ac_status=$?
9807 grep -v '^ *+' conftest.er1 >conftest.err
9808 rm -f conftest.er1
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } >/dev/null && {
9812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9813 test ! -s conftest.err
9814 }; then
9815 ac_header_preproc=yes
9816 else
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_header_preproc=no
9823 rm -f conftest.err conftest.$ac_ext
9824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9825 echo "${ECHO_T}$ac_header_preproc" >&6; }
9827 # So? What about this header?
9828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9829 yes:no: )
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9834 ac_header_preproc=yes
9836 no:yes:* )
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9849 ( cat <<\_ASBOX
9850 ## ------------------------------- ##
9851 ## Report this to www.asterisk.org ##
9852 ## ------------------------------- ##
9853 _ASBOX
9854 ) | sed "s/^/$as_me: WARNING: /" >&2
9856 esac
9857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 else
9862 eval "$as_ac_Header=\$ac_header_preproc"
9864 ac_res=`eval echo '${'$as_ac_Header'}'`
9865 { echo "$as_me:$LINENO: result: $ac_res" >&5
9866 echo "${ECHO_T}$ac_res" >&6; }
9869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9870 cat >>confdefs.h <<_ACEOF
9871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9872 _ACEOF
9876 done
9879 # Check whether --enable-largefile was given.
9880 if test "${enable_largefile+set}" = set; then
9881 enableval=$enable_largefile;
9884 if test "$enable_largefile" != no; then
9886 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9887 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9888 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891 ac_cv_sys_largefile_CC=no
9892 if test "$GCC" != yes; then
9893 ac_save_CC=$CC
9894 while :; do
9895 # IRIX 6.2 and later do not support large files by default,
9896 # so use the C compiler's -n32 option if that helps.
9897 cat >conftest.$ac_ext <<_ACEOF
9898 /* confdefs.h. */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 #include <sys/types.h>
9904 /* Check that off_t can represent 2**63 - 1 correctly.
9905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9906 since some C++ compilers masquerading as C compilers
9907 incorrectly reject 9223372036854775807. */
9908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9910 && LARGE_OFF_T % 2147483647 == 1)
9911 ? 1 : -1];
9913 main ()
9917 return 0;
9919 _ACEOF
9920 rm -f conftest.$ac_objext
9921 if { (ac_try="$ac_compile"
9922 case "(($ac_try" in
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9925 esac
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_compile") 2>conftest.er1
9928 ac_status=$?
9929 grep -v '^ *+' conftest.er1 >conftest.err
9930 rm -f conftest.er1
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } && {
9934 test -z "$ac_c_werror_flag" ||
9935 test ! -s conftest.err
9936 } && test -s conftest.$ac_objext; then
9937 break
9938 else
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9945 rm -f core conftest.err conftest.$ac_objext
9946 CC="$CC -n32"
9947 rm -f conftest.$ac_objext
9948 if { (ac_try="$ac_compile"
9949 case "(($ac_try" in
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9952 esac
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_compile") 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest.$ac_objext; then
9964 ac_cv_sys_largefile_CC=' -n32'; break
9965 else
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9972 rm -f core conftest.err conftest.$ac_objext
9973 break
9974 done
9975 CC=$ac_save_CC
9976 rm -f conftest.$ac_ext
9979 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9980 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9981 if test "$ac_cv_sys_largefile_CC" != no; then
9982 CC=$CC$ac_cv_sys_largefile_CC
9985 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9986 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9987 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990 while :; do
9991 cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h. */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9997 #include <sys/types.h>
9998 /* Check that off_t can represent 2**63 - 1 correctly.
9999 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10000 since some C++ compilers masquerading as C compilers
10001 incorrectly reject 9223372036854775807. */
10002 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10003 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10004 && LARGE_OFF_T % 2147483647 == 1)
10005 ? 1 : -1];
10007 main ()
10011 return 0;
10013 _ACEOF
10014 rm -f conftest.$ac_objext
10015 if { (ac_try="$ac_compile"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10019 esac
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_compile") 2>conftest.er1
10022 ac_status=$?
10023 grep -v '^ *+' conftest.er1 >conftest.err
10024 rm -f conftest.er1
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } && {
10028 test -z "$ac_c_werror_flag" ||
10029 test ! -s conftest.err
10030 } && test -s conftest.$ac_objext; then
10031 ac_cv_sys_file_offset_bits=no; break
10032 else
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 #define _FILE_OFFSET_BITS 64
10047 #include <sys/types.h>
10048 /* Check that off_t can represent 2**63 - 1 correctly.
10049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10050 since some C++ compilers masquerading as C compilers
10051 incorrectly reject 9223372036854775807. */
10052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10054 && LARGE_OFF_T % 2147483647 == 1)
10055 ? 1 : -1];
10057 main ()
10061 return 0;
10063 _ACEOF
10064 rm -f conftest.$ac_objext
10065 if { (ac_try="$ac_compile"
10066 case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10069 esac
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_compile") 2>conftest.er1
10072 ac_status=$?
10073 grep -v '^ *+' conftest.er1 >conftest.err
10074 rm -f conftest.er1
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest.$ac_objext; then
10081 ac_cv_sys_file_offset_bits=64; break
10082 else
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090 ac_cv_sys_file_offset_bits=unknown
10091 break
10092 done
10094 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10095 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10096 case $ac_cv_sys_file_offset_bits in #(
10097 no | unknown) ;;
10099 cat >>confdefs.h <<_ACEOF
10100 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10101 _ACEOF
10103 esac
10104 rm -f conftest*
10105 if test $ac_cv_sys_file_offset_bits = unknown; then
10106 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10107 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10108 if test "${ac_cv_sys_large_files+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 else
10111 while :; do
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h. */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 #include <sys/types.h>
10119 /* Check that off_t can represent 2**63 - 1 correctly.
10120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10121 since some C++ compilers masquerading as C compilers
10122 incorrectly reject 9223372036854775807. */
10123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10125 && LARGE_OFF_T % 2147483647 == 1)
10126 ? 1 : -1];
10128 main ()
10132 return 0;
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (ac_try="$ac_compile"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140 esac
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_compile") 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest.$ac_objext; then
10152 ac_cv_sys_large_files=no; break
10153 else
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10161 cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h. */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 #define _LARGE_FILES 1
10168 #include <sys/types.h>
10169 /* Check that off_t can represent 2**63 - 1 correctly.
10170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10171 since some C++ compilers masquerading as C compilers
10172 incorrectly reject 9223372036854775807. */
10173 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10175 && LARGE_OFF_T % 2147483647 == 1)
10176 ? 1 : -1];
10178 main ()
10182 return 0;
10184 _ACEOF
10185 rm -f conftest.$ac_objext
10186 if { (ac_try="$ac_compile"
10187 case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10190 esac
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_compile") 2>conftest.er1
10193 ac_status=$?
10194 grep -v '^ *+' conftest.er1 >conftest.err
10195 rm -f conftest.er1
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } && {
10199 test -z "$ac_c_werror_flag" ||
10200 test ! -s conftest.err
10201 } && test -s conftest.$ac_objext; then
10202 ac_cv_sys_large_files=1; break
10203 else
10204 echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10211 ac_cv_sys_large_files=unknown
10212 break
10213 done
10215 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10216 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10217 case $ac_cv_sys_large_files in #(
10218 no | unknown) ;;
10220 cat >>confdefs.h <<_ACEOF
10221 #define _LARGE_FILES $ac_cv_sys_large_files
10222 _ACEOF
10224 esac
10225 rm -f conftest*
10230 # Checks for typedefs, structures, and compiler characteristics.
10231 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10232 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10233 if test "${ac_cv_header_stdbool_h+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 else
10236 cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h. */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10243 #include <stdbool.h>
10244 #ifndef bool
10245 "error: bool is not defined"
10246 #endif
10247 #ifndef false
10248 "error: false is not defined"
10249 #endif
10250 #if false
10251 "error: false is not 0"
10252 #endif
10253 #ifndef true
10254 "error: true is not defined"
10255 #endif
10256 #if true != 1
10257 "error: true is not 1"
10258 #endif
10259 #ifndef __bool_true_false_are_defined
10260 "error: __bool_true_false_are_defined is not defined"
10261 #endif
10263 struct s { _Bool s: 1; _Bool t; } s;
10265 char a[true == 1 ? 1 : -1];
10266 char b[false == 0 ? 1 : -1];
10267 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10268 char d[(bool) 0.5 == true ? 1 : -1];
10269 bool e = &s;
10270 char f[(_Bool) 0.0 == false ? 1 : -1];
10271 char g[true];
10272 char h[sizeof (_Bool)];
10273 char i[sizeof s.t];
10274 enum { j = false, k = true, l = false * true, m = true * 256 };
10275 _Bool n[m];
10276 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10277 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10278 # if defined __xlc__ || defined __GNUC__
10279 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10280 reported by James Lemley on 2005-10-05; see
10281 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10282 This test is not quite right, since xlc is allowed to
10283 reject this program, as the initializer for xlcbug is
10284 not one of the forms that C requires support for.
10285 However, doing the test right would require a runtime
10286 test, and that would make cross-compilation harder.
10287 Let us hope that IBM fixes the xlc bug, and also adds
10288 support for this kind of constant expression. In the
10289 meantime, this test will reject xlc, which is OK, since
10290 our stdbool.h substitute should suffice. We also test
10291 this with GCC, where it should work, to detect more
10292 quickly whether someone messes up the test in the
10293 future. */
10294 char digs[] = "0123456789";
10295 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10296 # endif
10297 /* Catch a bug in an HP-UX C compiler. See
10298 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10299 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10301 _Bool q = true;
10302 _Bool *pq = &q;
10305 main ()
10308 *pq |= q;
10309 *pq |= ! q;
10310 /* Refer to every declared value, to avoid compiler optimizations. */
10311 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10312 + !m + !n + !o + !p + !q + !pq);
10315 return 0;
10317 _ACEOF
10318 rm -f conftest.$ac_objext
10319 if { (ac_try="$ac_compile"
10320 case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10323 esac
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_compile") 2>conftest.er1
10326 ac_status=$?
10327 grep -v '^ *+' conftest.er1 >conftest.err
10328 rm -f conftest.er1
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest.$ac_objext; then
10335 ac_cv_header_stdbool_h=yes
10336 else
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ac_cv_header_stdbool_h=no
10343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10346 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10347 { echo "$as_me:$LINENO: checking for _Bool" >&5
10348 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10349 if test "${ac_cv_type__Bool+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 else
10352 cat >conftest.$ac_ext <<_ACEOF
10353 /* confdefs.h. */
10354 _ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h. */
10358 $ac_includes_default
10359 typedef _Bool ac__type_new_;
10361 main ()
10363 if ((ac__type_new_ *) 0)
10364 return 0;
10365 if (sizeof (ac__type_new_))
10366 return 0;
10368 return 0;
10370 _ACEOF
10371 rm -f conftest.$ac_objext
10372 if { (ac_try="$ac_compile"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10376 esac
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_compile") 2>conftest.er1
10379 ac_status=$?
10380 grep -v '^ *+' conftest.er1 >conftest.err
10381 rm -f conftest.er1
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } && {
10385 test -z "$ac_c_werror_flag" ||
10386 test ! -s conftest.err
10387 } && test -s conftest.$ac_objext; then
10388 ac_cv_type__Bool=yes
10389 else
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10393 ac_cv_type__Bool=no
10396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10399 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10400 if test $ac_cv_type__Bool = yes; then
10402 cat >>confdefs.h <<_ACEOF
10403 #define HAVE__BOOL 1
10404 _ACEOF
10409 if test $ac_cv_header_stdbool_h = yes; then
10411 cat >>confdefs.h <<\_ACEOF
10412 #define HAVE_STDBOOL_H 1
10413 _ACEOF
10417 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10418 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10419 if test "${ac_cv_c_const+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 else
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10430 main ()
10432 /* FIXME: Include the comments suggested by Paul. */
10433 #ifndef __cplusplus
10434 /* Ultrix mips cc rejects this. */
10435 typedef int charset[2];
10436 const charset cs;
10437 /* SunOS 4.1.1 cc rejects this. */
10438 char const *const *pcpcc;
10439 char **ppc;
10440 /* NEC SVR4.0.2 mips cc rejects this. */
10441 struct point {int x, y;};
10442 static struct point const zero = {0,0};
10443 /* AIX XL C 1.02.0.0 rejects this.
10444 It does not let you subtract one const X* pointer from another in
10445 an arm of an if-expression whose if-part is not a constant
10446 expression */
10447 const char *g = "string";
10448 pcpcc = &g + (g ? g-g : 0);
10449 /* HPUX 7.0 cc rejects these. */
10450 ++pcpcc;
10451 ppc = (char**) pcpcc;
10452 pcpcc = (char const *const *) ppc;
10453 { /* SCO 3.2v4 cc rejects this. */
10454 char *t;
10455 char const *s = 0 ? (char *) 0 : (char const *) 0;
10457 *t++ = 0;
10458 if (s) return 0;
10460 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10461 int x[] = {25, 17};
10462 const int *foo = &x[0];
10463 ++foo;
10465 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10466 typedef const int *iptr;
10467 iptr p = 0;
10468 ++p;
10470 { /* AIX XL C 1.02.0.0 rejects this saying
10471 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10472 struct s { int j; const int *ap[3]; };
10473 struct s *b; b->j = 5;
10475 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10476 const int foo = 10;
10477 if (!foo) return 0;
10479 return !cs[0] && !zero.x;
10480 #endif
10483 return 0;
10485 _ACEOF
10486 rm -f conftest.$ac_objext
10487 if { (ac_try="$ac_compile"
10488 case "(($ac_try" in
10489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490 *) ac_try_echo=$ac_try;;
10491 esac
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493 (eval "$ac_compile") 2>conftest.er1
10494 ac_status=$?
10495 grep -v '^ *+' conftest.er1 >conftest.err
10496 rm -f conftest.er1
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } && {
10500 test -z "$ac_c_werror_flag" ||
10501 test ! -s conftest.err
10502 } && test -s conftest.$ac_objext; then
10503 ac_cv_c_const=yes
10504 else
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 ac_cv_c_const=no
10511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10513 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10514 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10515 if test $ac_cv_c_const = no; then
10517 cat >>confdefs.h <<\_ACEOF
10518 #define const
10519 _ACEOF
10523 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10524 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10525 if test "${ac_cv_type_uid_t+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528 cat >conftest.$ac_ext <<_ACEOF
10529 /* confdefs.h. */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10534 #include <sys/types.h>
10536 _ACEOF
10537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10538 $EGREP "uid_t" >/dev/null 2>&1; then
10539 ac_cv_type_uid_t=yes
10540 else
10541 ac_cv_type_uid_t=no
10543 rm -f conftest*
10546 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10547 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10548 if test $ac_cv_type_uid_t = no; then
10550 cat >>confdefs.h <<\_ACEOF
10551 #define uid_t int
10552 _ACEOF
10555 cat >>confdefs.h <<\_ACEOF
10556 #define gid_t int
10557 _ACEOF
10561 { echo "$as_me:$LINENO: checking for inline" >&5
10562 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10563 if test "${ac_cv_c_inline+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566 ac_cv_c_inline=no
10567 for ac_kw in inline __inline__ __inline; do
10568 cat >conftest.$ac_ext <<_ACEOF
10569 /* confdefs.h. */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10574 #ifndef __cplusplus
10575 typedef int foo_t;
10576 static $ac_kw foo_t static_foo () {return 0; }
10577 $ac_kw foo_t foo () {return 0; }
10578 #endif
10580 _ACEOF
10581 rm -f conftest.$ac_objext
10582 if { (ac_try="$ac_compile"
10583 case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586 esac
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_compile") 2>conftest.er1
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } && {
10595 test -z "$ac_c_werror_flag" ||
10596 test ! -s conftest.err
10597 } && test -s conftest.$ac_objext; then
10598 ac_cv_c_inline=$ac_kw
10599 else
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 test "$ac_cv_c_inline" != no && break
10608 done
10611 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10612 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10615 case $ac_cv_c_inline in
10616 inline | yes) ;;
10618 case $ac_cv_c_inline in
10619 no) ac_val=;;
10620 *) ac_val=$ac_cv_c_inline;;
10621 esac
10622 cat >>confdefs.h <<_ACEOF
10623 #ifndef __cplusplus
10624 #define inline $ac_val
10625 #endif
10626 _ACEOF
10628 esac
10630 { echo "$as_me:$LINENO: checking for mode_t" >&5
10631 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
10632 if test "${ac_cv_type_mode_t+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635 cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h. */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 $ac_includes_default
10642 typedef mode_t ac__type_new_;
10644 main ()
10646 if ((ac__type_new_ *) 0)
10647 return 0;
10648 if (sizeof (ac__type_new_))
10649 return 0;
10651 return 0;
10653 _ACEOF
10654 rm -f conftest.$ac_objext
10655 if { (ac_try="$ac_compile"
10656 case "(($ac_try" in
10657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10658 *) ac_try_echo=$ac_try;;
10659 esac
10660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10661 (eval "$ac_compile") 2>conftest.er1
10662 ac_status=$?
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } && {
10668 test -z "$ac_c_werror_flag" ||
10669 test ! -s conftest.err
10670 } && test -s conftest.$ac_objext; then
10671 ac_cv_type_mode_t=yes
10672 else
10673 echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10676 ac_cv_type_mode_t=no
10679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10681 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10682 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10683 if test $ac_cv_type_mode_t = yes; then
10685 else
10687 cat >>confdefs.h <<_ACEOF
10688 #define mode_t int
10689 _ACEOF
10693 { echo "$as_me:$LINENO: checking for off_t" >&5
10694 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
10695 if test "${ac_cv_type_off_t+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 else
10698 cat >conftest.$ac_ext <<_ACEOF
10699 /* confdefs.h. */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10704 $ac_includes_default
10705 typedef off_t ac__type_new_;
10707 main ()
10709 if ((ac__type_new_ *) 0)
10710 return 0;
10711 if (sizeof (ac__type_new_))
10712 return 0;
10714 return 0;
10716 _ACEOF
10717 rm -f conftest.$ac_objext
10718 if { (ac_try="$ac_compile"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722 esac
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_compile") 2>conftest.er1
10725 ac_status=$?
10726 grep -v '^ *+' conftest.er1 >conftest.err
10727 rm -f conftest.er1
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } && {
10731 test -z "$ac_c_werror_flag" ||
10732 test ! -s conftest.err
10733 } && test -s conftest.$ac_objext; then
10734 ac_cv_type_off_t=yes
10735 else
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10739 ac_cv_type_off_t=no
10742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10744 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10745 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10746 if test $ac_cv_type_off_t = yes; then
10748 else
10750 cat >>confdefs.h <<_ACEOF
10751 #define off_t long int
10752 _ACEOF
10756 { echo "$as_me:$LINENO: checking for pid_t" >&5
10757 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10758 if test "${ac_cv_type_pid_t+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761 cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h. */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10767 $ac_includes_default
10768 typedef pid_t ac__type_new_;
10770 main ()
10772 if ((ac__type_new_ *) 0)
10773 return 0;
10774 if (sizeof (ac__type_new_))
10775 return 0;
10777 return 0;
10779 _ACEOF
10780 rm -f conftest.$ac_objext
10781 if { (ac_try="$ac_compile"
10782 case "(($ac_try" in
10783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10785 esac
10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787 (eval "$ac_compile") 2>conftest.er1
10788 ac_status=$?
10789 grep -v '^ *+' conftest.er1 >conftest.err
10790 rm -f conftest.er1
10791 cat conftest.err >&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } && {
10794 test -z "$ac_c_werror_flag" ||
10795 test ! -s conftest.err
10796 } && test -s conftest.$ac_objext; then
10797 ac_cv_type_pid_t=yes
10798 else
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 ac_cv_type_pid_t=no
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10808 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10809 if test $ac_cv_type_pid_t = yes; then
10811 else
10813 cat >>confdefs.h <<_ACEOF
10814 #define pid_t int
10815 _ACEOF
10819 { echo "$as_me:$LINENO: checking for size_t" >&5
10820 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10821 if test "${ac_cv_type_size_t+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824 cat >conftest.$ac_ext <<_ACEOF
10825 /* confdefs.h. */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10830 $ac_includes_default
10831 typedef size_t ac__type_new_;
10833 main ()
10835 if ((ac__type_new_ *) 0)
10836 return 0;
10837 if (sizeof (ac__type_new_))
10838 return 0;
10840 return 0;
10842 _ACEOF
10843 rm -f conftest.$ac_objext
10844 if { (ac_try="$ac_compile"
10845 case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10848 esac
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850 (eval "$ac_compile") 2>conftest.er1
10851 ac_status=$?
10852 grep -v '^ *+' conftest.er1 >conftest.err
10853 rm -f conftest.er1
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } && {
10857 test -z "$ac_c_werror_flag" ||
10858 test ! -s conftest.err
10859 } && test -s conftest.$ac_objext; then
10860 ac_cv_type_size_t=yes
10861 else
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 ac_cv_type_size_t=no
10868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10870 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10871 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10872 if test $ac_cv_type_size_t = yes; then
10874 else
10876 cat >>confdefs.h <<_ACEOF
10877 #define size_t unsigned int
10878 _ACEOF
10882 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10883 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10884 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10887 cat >conftest.$ac_ext <<_ACEOF
10888 /* confdefs.h. */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10893 $ac_includes_default
10895 main ()
10897 static struct stat ac_aggr;
10898 if (ac_aggr.st_blksize)
10899 return 0;
10901 return 0;
10903 _ACEOF
10904 rm -f conftest.$ac_objext
10905 if { (ac_try="$ac_compile"
10906 case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10909 esac
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_compile") 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } && {
10918 test -z "$ac_c_werror_flag" ||
10919 test ! -s conftest.err
10920 } && test -s conftest.$ac_objext; then
10921 ac_cv_member_struct_stat_st_blksize=yes
10922 else
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h. */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10932 $ac_includes_default
10934 main ()
10936 static struct stat ac_aggr;
10937 if (sizeof ac_aggr.st_blksize)
10938 return 0;
10940 return 0;
10942 _ACEOF
10943 rm -f conftest.$ac_objext
10944 if { (ac_try="$ac_compile"
10945 case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_compile") 2>conftest.er1
10951 ac_status=$?
10952 grep -v '^ *+' conftest.er1 >conftest.err
10953 rm -f conftest.er1
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } && {
10957 test -z "$ac_c_werror_flag" ||
10958 test ! -s conftest.err
10959 } && test -s conftest.$ac_objext; then
10960 ac_cv_member_struct_stat_st_blksize=yes
10961 else
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 ac_cv_member_struct_stat_st_blksize=no
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10974 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10975 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10977 cat >>confdefs.h <<_ACEOF
10978 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10979 _ACEOF
10984 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10985 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10986 if test "${ac_cv_header_time+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989 cat >conftest.$ac_ext <<_ACEOF
10990 /* confdefs.h. */
10991 _ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995 #include <sys/types.h>
10996 #include <sys/time.h>
10997 #include <time.h>
11000 main ()
11002 if ((struct tm *) 0)
11003 return 0;
11005 return 0;
11007 _ACEOF
11008 rm -f conftest.$ac_objext
11009 if { (ac_try="$ac_compile"
11010 case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_compile") 2>conftest.er1
11016 ac_status=$?
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } && {
11022 test -z "$ac_c_werror_flag" ||
11023 test ! -s conftest.err
11024 } && test -s conftest.$ac_objext; then
11025 ac_cv_header_time=yes
11026 else
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_cv_header_time=no
11033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11035 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11036 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11037 if test $ac_cv_header_time = yes; then
11039 cat >>confdefs.h <<\_ACEOF
11040 #define TIME_WITH_SYS_TIME 1
11041 _ACEOF
11045 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11046 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11047 if test "${ac_cv_struct_tm+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 else
11050 cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h. */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11056 #include <sys/types.h>
11057 #include <time.h>
11060 main ()
11062 struct tm tm;
11063 int *p = &tm.tm_sec;
11064 return !p;
11066 return 0;
11068 _ACEOF
11069 rm -f conftest.$ac_objext
11070 if { (ac_try="$ac_compile"
11071 case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11074 esac
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_compile") 2>conftest.er1
11077 ac_status=$?
11078 grep -v '^ *+' conftest.er1 >conftest.err
11079 rm -f conftest.er1
11080 cat conftest.err >&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } && {
11083 test -z "$ac_c_werror_flag" ||
11084 test ! -s conftest.err
11085 } && test -s conftest.$ac_objext; then
11086 ac_cv_struct_tm=time.h
11087 else
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11091 ac_cv_struct_tm=sys/time.h
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11097 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11098 if test $ac_cv_struct_tm = sys/time.h; then
11100 cat >>confdefs.h <<\_ACEOF
11101 #define TM_IN_SYS_TIME 1
11102 _ACEOF
11106 { echo "$as_me:$LINENO: checking for working volatile" >&5
11107 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11108 if test "${ac_cv_c_volatile+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h. */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11119 main ()
11122 volatile int x;
11123 int * volatile y = (int *) 0;
11124 return !x && !y;
11126 return 0;
11128 _ACEOF
11129 rm -f conftest.$ac_objext
11130 if { (ac_try="$ac_compile"
11131 case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_compile") 2>conftest.er1
11137 ac_status=$?
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_c_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest.$ac_objext; then
11146 ac_cv_c_volatile=yes
11147 else
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 ac_cv_c_volatile=no
11154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11156 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11157 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11158 if test $ac_cv_c_volatile = no; then
11160 cat >>confdefs.h <<\_ACEOF
11161 #define volatile
11162 _ACEOF
11166 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11167 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11168 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11170 else
11171 cat >conftest.$ac_ext <<_ACEOF
11172 /* confdefs.h. */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 $ac_includes_default
11178 typedef ptrdiff_t ac__type_new_;
11180 main ()
11182 if ((ac__type_new_ *) 0)
11183 return 0;
11184 if (sizeof (ac__type_new_))
11185 return 0;
11187 return 0;
11189 _ACEOF
11190 rm -f conftest.$ac_objext
11191 if { (ac_try="$ac_compile"
11192 case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11195 esac
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_compile") 2>conftest.er1
11198 ac_status=$?
11199 grep -v '^ *+' conftest.er1 >conftest.err
11200 rm -f conftest.er1
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } && {
11204 test -z "$ac_c_werror_flag" ||
11205 test ! -s conftest.err
11206 } && test -s conftest.$ac_objext; then
11207 ac_cv_type_ptrdiff_t=yes
11208 else
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 ac_cv_type_ptrdiff_t=no
11215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11217 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11218 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11219 if test $ac_cv_type_ptrdiff_t = yes; then
11221 cat >>confdefs.h <<_ACEOF
11222 #define HAVE_PTRDIFF_T 1
11223 _ACEOF
11229 # Checks for library functions.
11231 for ac_header in unistd.h
11233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 ac_res=`eval echo '${'$as_ac_Header'}'`
11241 { echo "$as_me:$LINENO: result: $ac_res" >&5
11242 echo "${ECHO_T}$ac_res" >&6; }
11243 else
11244 # Is the header compilable?
11245 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11247 cat >conftest.$ac_ext <<_ACEOF
11248 /* confdefs.h. */
11249 _ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h. */
11253 $ac_includes_default
11254 #include <$ac_header>
11255 _ACEOF
11256 rm -f conftest.$ac_objext
11257 if { (ac_try="$ac_compile"
11258 case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11261 esac
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263 (eval "$ac_compile") 2>conftest.er1
11264 ac_status=$?
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } && {
11270 test -z "$ac_c_werror_flag" ||
11271 test ! -s conftest.err
11272 } && test -s conftest.$ac_objext; then
11273 ac_header_compiler=yes
11274 else
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11278 ac_header_compiler=no
11281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11283 echo "${ECHO_T}$ac_header_compiler" >&6; }
11285 # Is the header present?
11286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11288 cat >conftest.$ac_ext <<_ACEOF
11289 /* confdefs.h. */
11290 _ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h. */
11294 #include <$ac_header>
11295 _ACEOF
11296 if { (ac_try="$ac_cpp conftest.$ac_ext"
11297 case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11300 esac
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11303 ac_status=$?
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } >/dev/null && {
11309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11310 test ! -s conftest.err
11311 }; then
11312 ac_header_preproc=yes
11313 else
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11317 ac_header_preproc=no
11320 rm -f conftest.err conftest.$ac_ext
11321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11322 echo "${ECHO_T}$ac_header_preproc" >&6; }
11324 # So? What about this header?
11325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11326 yes:no: )
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11331 ac_header_preproc=yes
11333 no:yes:* )
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11346 ( cat <<\_ASBOX
11347 ## ------------------------------- ##
11348 ## Report this to www.asterisk.org ##
11349 ## ------------------------------- ##
11350 _ASBOX
11351 ) | sed "s/^/$as_me: WARNING: /" >&2
11353 esac
11354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359 eval "$as_ac_Header=\$ac_header_preproc"
11361 ac_res=`eval echo '${'$as_ac_Header'}'`
11362 { echo "$as_me:$LINENO: result: $ac_res" >&5
11363 echo "${ECHO_T}$ac_res" >&6; }
11366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11367 cat >>confdefs.h <<_ACEOF
11368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11369 _ACEOF
11373 done
11375 { echo "$as_me:$LINENO: checking for working chown" >&5
11376 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
11377 if test "${ac_cv_func_chown_works+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380 if test "$cross_compiling" = yes; then
11381 ac_cv_func_chown_works=no
11382 else
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h. */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 $ac_includes_default
11390 #include <fcntl.h>
11393 main ()
11395 char *f = "conftest.chown";
11396 struct stat before, after;
11398 if (creat (f, 0600) < 0)
11399 return 1;
11400 if (stat (f, &before) < 0)
11401 return 1;
11402 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11403 return 1;
11404 if (stat (f, &after) < 0)
11405 return 1;
11406 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11409 return 0;
11411 _ACEOF
11412 rm -f conftest$ac_exeext
11413 if { (ac_try="$ac_link"
11414 case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11417 esac
11418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_link") 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11423 { (case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426 esac
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_try") 2>&5
11429 ac_status=$?
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 ac_cv_func_chown_works=yes
11433 else
11434 echo "$as_me: program exited with status $ac_status" >&5
11435 echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11438 ( exit $ac_status )
11439 ac_cv_func_chown_works=no
11441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11445 rm -f conftest.chown
11448 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11449 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11450 if test $ac_cv_func_chown_works = yes; then
11452 cat >>confdefs.h <<\_ACEOF
11453 #define HAVE_CHOWN 1
11454 _ACEOF
11458 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11459 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
11460 if test "${ac_cv_func_closedir_void+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463 if test "$cross_compiling" = yes; then
11464 ac_cv_func_closedir_void=yes
11465 else
11466 cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h. */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 $ac_includes_default
11473 #include <$ac_header_dirent>
11474 #ifndef __cplusplus
11475 int closedir ();
11476 #endif
11479 main ()
11481 return closedir (opendir (".")) != 0;
11483 return 0;
11485 _ACEOF
11486 rm -f conftest$ac_exeext
11487 if { (ac_try="$ac_link"
11488 case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_link") 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11497 { (case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11500 esac
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_try") 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 ac_cv_func_closedir_void=no
11507 else
11508 echo "$as_me: program exited with status $ac_status" >&5
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11512 ( exit $ac_status )
11513 ac_cv_func_closedir_void=yes
11515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11520 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11521 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11522 if test $ac_cv_func_closedir_void = yes; then
11524 cat >>confdefs.h <<\_ACEOF
11525 #define CLOSEDIR_VOID 1
11526 _ACEOF
11530 { echo "$as_me:$LINENO: checking for error_at_line" >&5
11531 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
11532 if test "${ac_cv_lib_error_at_line+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 else
11535 cat >conftest.$ac_ext <<_ACEOF
11536 /* confdefs.h. */
11537 _ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11541 #include <error.h>
11543 main ()
11545 error_at_line (0, 0, "", 0, "an error occurred");
11547 return 0;
11549 _ACEOF
11550 rm -f conftest.$ac_objext conftest$ac_exeext
11551 if { (ac_try="$ac_link"
11552 case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11555 esac
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_link") 2>conftest.er1
11558 ac_status=$?
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } && {
11564 test -z "$ac_c_werror_flag" ||
11565 test ! -s conftest.err
11566 } && test -s conftest$ac_exeext &&
11567 $as_test_x conftest$ac_exeext; then
11568 ac_cv_lib_error_at_line=yes
11569 else
11570 echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 ac_cv_lib_error_at_line=no
11576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11577 conftest$ac_exeext conftest.$ac_ext
11579 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11580 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11581 if test $ac_cv_lib_error_at_line = no; then
11582 case " $LIBOBJS " in
11583 *" error.$ac_objext "* ) ;;
11584 *) LIBOBJS="$LIBOBJS error.$ac_objext"
11586 esac
11591 for ac_header in vfork.h
11593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 ac_res=`eval echo '${'$as_ac_Header'}'`
11601 { echo "$as_me:$LINENO: result: $ac_res" >&5
11602 echo "${ECHO_T}$ac_res" >&6; }
11603 else
11604 # Is the header compilable?
11605 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11607 cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h. */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 $ac_includes_default
11614 #include <$ac_header>
11615 _ACEOF
11616 rm -f conftest.$ac_objext
11617 if { (ac_try="$ac_compile"
11618 case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11621 esac
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_compile") 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } && {
11630 test -z "$ac_c_werror_flag" ||
11631 test ! -s conftest.err
11632 } && test -s conftest.$ac_objext; then
11633 ac_header_compiler=yes
11634 else
11635 echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11638 ac_header_compiler=no
11641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11643 echo "${ECHO_T}$ac_header_compiler" >&6; }
11645 # Is the header present?
11646 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11648 cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h. */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654 #include <$ac_header>
11655 _ACEOF
11656 if { (ac_try="$ac_cpp conftest.$ac_ext"
11657 case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11660 esac
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } >/dev/null && {
11669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11670 test ! -s conftest.err
11671 }; then
11672 ac_header_preproc=yes
11673 else
11674 echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 ac_header_preproc=no
11680 rm -f conftest.err conftest.$ac_ext
11681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11682 echo "${ECHO_T}$ac_header_preproc" >&6; }
11684 # So? What about this header?
11685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11686 yes:no: )
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11691 ac_header_preproc=yes
11693 no:yes:* )
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11706 ( cat <<\_ASBOX
11707 ## ------------------------------- ##
11708 ## Report this to www.asterisk.org ##
11709 ## ------------------------------- ##
11710 _ASBOX
11711 ) | sed "s/^/$as_me: WARNING: /" >&2
11713 esac
11714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719 eval "$as_ac_Header=\$ac_header_preproc"
11721 ac_res=`eval echo '${'$as_ac_Header'}'`
11722 { echo "$as_me:$LINENO: result: $ac_res" >&5
11723 echo "${ECHO_T}$ac_res" >&6; }
11726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11727 cat >>confdefs.h <<_ACEOF
11728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11729 _ACEOF
11733 done
11737 for ac_func in fork vfork
11739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11740 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 else
11745 cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h. */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11753 #define $ac_func innocuous_$ac_func
11755 /* System header to define __stub macros and hopefully few prototypes,
11756 which can conflict with char $ac_func (); below.
11757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758 <limits.h> exists even on freestanding compilers. */
11760 #ifdef __STDC__
11761 # include <limits.h>
11762 #else
11763 # include <assert.h>
11764 #endif
11766 #undef $ac_func
11768 /* Override any GCC internal prototype to avoid an error.
11769 Use char because int might match the return type of a GCC
11770 builtin and then its argument prototype would still apply. */
11771 #ifdef __cplusplus
11772 extern "C"
11773 #endif
11774 char $ac_func ();
11775 /* The GNU C library defines this for functions which it implements
11776 to always fail with ENOSYS. Some functions are actually named
11777 something starting with __ and the normal name is an alias. */
11778 #if defined __stub_$ac_func || defined __stub___$ac_func
11779 choke me
11780 #endif
11783 main ()
11785 return $ac_func ();
11787 return 0;
11789 _ACEOF
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (ac_try="$ac_link"
11792 case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795 esac
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_link") 2>conftest.er1
11798 ac_status=$?
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } && {
11804 test -z "$ac_c_werror_flag" ||
11805 test ! -s conftest.err
11806 } && test -s conftest$ac_exeext &&
11807 $as_test_x conftest$ac_exeext; then
11808 eval "$as_ac_var=yes"
11809 else
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11813 eval "$as_ac_var=no"
11816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11817 conftest$ac_exeext conftest.$ac_ext
11819 ac_res=`eval echo '${'$as_ac_var'}'`
11820 { echo "$as_me:$LINENO: result: $ac_res" >&5
11821 echo "${ECHO_T}$ac_res" >&6; }
11822 if test `eval echo '${'$as_ac_var'}'` = yes; then
11823 cat >>confdefs.h <<_ACEOF
11824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11825 _ACEOF
11828 done
11830 if test "x$ac_cv_func_fork" = xyes; then
11831 { echo "$as_me:$LINENO: checking for working fork" >&5
11832 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11833 if test "${ac_cv_func_fork_works+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 else
11836 if test "$cross_compiling" = yes; then
11837 ac_cv_func_fork_works=cross
11838 else
11839 cat >conftest.$ac_ext <<_ACEOF
11840 /* confdefs.h. */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 $ac_includes_default
11847 main ()
11850 /* By Ruediger Kuhlmann. */
11851 return fork () < 0;
11854 return 0;
11856 _ACEOF
11857 rm -f conftest$ac_exeext
11858 if { (ac_try="$ac_link"
11859 case "(($ac_try" in
11860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11862 esac
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_link") 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11868 { (case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871 esac
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_try") 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 ac_cv_func_fork_works=yes
11878 else
11879 echo "$as_me: program exited with status $ac_status" >&5
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11883 ( exit $ac_status )
11884 ac_cv_func_fork_works=no
11886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11891 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11892 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11894 else
11895 ac_cv_func_fork_works=$ac_cv_func_fork
11897 if test "x$ac_cv_func_fork_works" = xcross; then
11898 case $host in
11899 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11900 # Override, as these systems have only a dummy fork() stub
11901 ac_cv_func_fork_works=no
11904 ac_cv_func_fork_works=yes
11906 esac
11907 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11908 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11910 ac_cv_func_vfork_works=$ac_cv_func_vfork
11911 if test "x$ac_cv_func_vfork" = xyes; then
11912 { echo "$as_me:$LINENO: checking for working vfork" >&5
11913 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11914 if test "${ac_cv_func_vfork_works+set}" = set; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917 if test "$cross_compiling" = yes; then
11918 ac_cv_func_vfork_works=cross
11919 else
11920 cat >conftest.$ac_ext <<_ACEOF
11921 /* confdefs.h. */
11922 _ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h. */
11926 /* Thanks to Paul Eggert for this test. */
11927 $ac_includes_default
11928 #include <sys/wait.h>
11929 #ifdef HAVE_VFORK_H
11930 # include <vfork.h>
11931 #endif
11932 /* On some sparc systems, changes by the child to local and incoming
11933 argument registers are propagated back to the parent. The compiler
11934 is told about this with #include <vfork.h>, but some compilers
11935 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11936 static variable whose address is put into a register that is
11937 clobbered by the vfork. */
11938 static void
11939 #ifdef __cplusplus
11940 sparc_address_test (int arg)
11941 # else
11942 sparc_address_test (arg) int arg;
11943 #endif
11945 static pid_t child;
11946 if (!child) {
11947 child = vfork ();
11948 if (child < 0) {
11949 perror ("vfork");
11950 _exit(2);
11952 if (!child) {
11953 arg = getpid();
11954 write(-1, "", 0);
11955 _exit (arg);
11961 main ()
11963 pid_t parent = getpid ();
11964 pid_t child;
11966 sparc_address_test (0);
11968 child = vfork ();
11970 if (child == 0) {
11971 /* Here is another test for sparc vfork register problems. This
11972 test uses lots of local variables, at least as many local
11973 variables as main has allocated so far including compiler
11974 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11975 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11976 reuse the register of parent for one of the local variables,
11977 since it will think that parent can't possibly be used any more
11978 in this routine. Assigning to the local variable will thus
11979 munge parent in the parent process. */
11980 pid_t
11981 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11982 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11983 /* Convince the compiler that p..p7 are live; otherwise, it might
11984 use the same hardware register for all 8 local variables. */
11985 if (p != p1 || p != p2 || p != p3 || p != p4
11986 || p != p5 || p != p6 || p != p7)
11987 _exit(1);
11989 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11990 from child file descriptors. If the child closes a descriptor
11991 before it execs or exits, this munges the parent's descriptor
11992 as well. Test for this by closing stdout in the child. */
11993 _exit(close(fileno(stdout)) != 0);
11994 } else {
11995 int status;
11996 struct stat st;
11998 while (wait(&status) != child)
12000 return (
12001 /* Was there some problem with vforking? */
12002 child < 0
12004 /* Did the child fail? (This shouldn't happen.) */
12005 || status
12007 /* Did the vfork/compiler bug occur? */
12008 || parent != getpid()
12010 /* Did the file descriptor bug occur? */
12011 || fstat(fileno(stdout), &st) != 0
12015 _ACEOF
12016 rm -f conftest$ac_exeext
12017 if { (ac_try="$ac_link"
12018 case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12021 esac
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_link") 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12027 { (case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12030 esac
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_try") 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 ac_cv_func_vfork_works=yes
12037 else
12038 echo "$as_me: program exited with status $ac_status" >&5
12039 echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12042 ( exit $ac_status )
12043 ac_cv_func_vfork_works=no
12045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12050 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12051 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12054 if test "x$ac_cv_func_fork_works" = xcross; then
12055 ac_cv_func_vfork_works=$ac_cv_func_vfork
12056 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12057 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12060 if test "x$ac_cv_func_vfork_works" = xyes; then
12062 cat >>confdefs.h <<\_ACEOF
12063 #define HAVE_WORKING_VFORK 1
12064 _ACEOF
12066 else
12068 cat >>confdefs.h <<\_ACEOF
12069 #define vfork fork
12070 _ACEOF
12073 if test "x$ac_cv_func_fork_works" = xyes; then
12075 cat >>confdefs.h <<\_ACEOF
12076 #define HAVE_WORKING_FORK 1
12077 _ACEOF
12081 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12082 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12083 if test "${ac_cv_sys_largefile_source+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086 while :; do
12087 cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h. */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12093 #include <sys/types.h> /* for off_t */
12094 #include <stdio.h>
12096 main ()
12098 int (*fp) (FILE *, off_t, int) = fseeko;
12099 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12101 return 0;
12103 _ACEOF
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (ac_try="$ac_link"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_link") 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } && {
12118 test -z "$ac_c_werror_flag" ||
12119 test ! -s conftest.err
12120 } && test -s conftest$ac_exeext &&
12121 $as_test_x conftest$ac_exeext; then
12122 ac_cv_sys_largefile_source=no; break
12123 else
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12131 conftest$ac_exeext conftest.$ac_ext
12132 cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h. */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 #define _LARGEFILE_SOURCE 1
12139 #include <sys/types.h> /* for off_t */
12140 #include <stdio.h>
12142 main ()
12144 int (*fp) (FILE *, off_t, int) = fseeko;
12145 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12147 return 0;
12149 _ACEOF
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (ac_try="$ac_link"
12152 case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12155 esac
12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157 (eval "$ac_link") 2>conftest.er1
12158 ac_status=$?
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } && {
12164 test -z "$ac_c_werror_flag" ||
12165 test ! -s conftest.err
12166 } && test -s conftest$ac_exeext &&
12167 $as_test_x conftest$ac_exeext; then
12168 ac_cv_sys_largefile_source=1; break
12169 else
12170 echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12177 conftest$ac_exeext conftest.$ac_ext
12178 ac_cv_sys_largefile_source=unknown
12179 break
12180 done
12182 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12183 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12184 case $ac_cv_sys_largefile_source in #(
12185 no | unknown) ;;
12187 cat >>confdefs.h <<_ACEOF
12188 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12189 _ACEOF
12191 esac
12192 rm -f conftest*
12194 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12195 # in glibc 2.1.3, but that breaks too many other things.
12196 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12197 if test $ac_cv_sys_largefile_source != unknown; then
12199 cat >>confdefs.h <<\_ACEOF
12200 #define HAVE_FSEEKO 1
12201 _ACEOF
12205 if test $ac_cv_c_compiler_gnu = yes; then
12206 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12207 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12208 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 ac_pattern="Autoconf.*'x'"
12212 cat >conftest.$ac_ext <<_ACEOF
12213 /* confdefs.h. */
12214 _ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 #include <sgtty.h>
12219 Autoconf TIOCGETP
12220 _ACEOF
12221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12222 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12223 ac_cv_prog_gcc_traditional=yes
12224 else
12225 ac_cv_prog_gcc_traditional=no
12227 rm -f conftest*
12230 if test $ac_cv_prog_gcc_traditional = no; then
12231 cat >conftest.$ac_ext <<_ACEOF
12232 /* confdefs.h. */
12233 _ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h. */
12237 #include <termio.h>
12238 Autoconf TCGETA
12239 _ACEOF
12240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12241 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12242 ac_cv_prog_gcc_traditional=yes
12244 rm -f conftest*
12248 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12249 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12250 if test $ac_cv_prog_gcc_traditional = yes; then
12251 CC="$CC -traditional"
12255 # XXX: these are commented out until we determine whether it matters if our malloc()
12256 # acts exactly like glibc's or not
12257 # AC_FUNC_MALLOC
12258 # AC_FUNC_REALLOC
12259 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12260 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12261 if test "${ac_cv_func_memcmp_working+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264 if test "$cross_compiling" = yes; then
12265 ac_cv_func_memcmp_working=no
12266 else
12267 cat >conftest.$ac_ext <<_ACEOF
12268 /* confdefs.h. */
12269 _ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12273 $ac_includes_default
12275 main ()
12278 /* Some versions of memcmp are not 8-bit clean. */
12279 char c0 = '\100', c1 = '\200', c2 = '\201';
12280 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12281 return 1;
12283 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12284 or more and with at least one buffer not starting on a 4-byte boundary.
12285 William Lewis provided this test program. */
12287 char foo[21];
12288 char bar[21];
12289 int i;
12290 for (i = 0; i < 4; i++)
12292 char *a = foo + i;
12293 char *b = bar + i;
12294 strcpy (a, "--------01111111");
12295 strcpy (b, "--------10000000");
12296 if (memcmp (a, b, 16) >= 0)
12297 return 1;
12299 return 0;
12303 return 0;
12305 _ACEOF
12306 rm -f conftest$ac_exeext
12307 if { (ac_try="$ac_link"
12308 case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12311 esac
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_link") 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12317 { (case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12320 esac
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_try") 2>&5
12323 ac_status=$?
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 ac_cv_func_memcmp_working=yes
12327 else
12328 echo "$as_me: program exited with status $ac_status" >&5
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12332 ( exit $ac_status )
12333 ac_cv_func_memcmp_working=no
12335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12340 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12341 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12342 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12343 *" memcmp.$ac_objext "* ) ;;
12344 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12346 esac
12351 for ac_header in stdlib.h unistd.h
12353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 ac_res=`eval echo '${'$as_ac_Header'}'`
12361 { echo "$as_me:$LINENO: result: $ac_res" >&5
12362 echo "${ECHO_T}$ac_res" >&6; }
12363 else
12364 # Is the header compilable?
12365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12367 cat >conftest.$ac_ext <<_ACEOF
12368 /* confdefs.h. */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 $ac_includes_default
12374 #include <$ac_header>
12375 _ACEOF
12376 rm -f conftest.$ac_objext
12377 if { (ac_try="$ac_compile"
12378 case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12381 esac
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_compile") 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } && {
12390 test -z "$ac_c_werror_flag" ||
12391 test ! -s conftest.err
12392 } && test -s conftest.$ac_objext; then
12393 ac_header_compiler=yes
12394 else
12395 echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12398 ac_header_compiler=no
12401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12403 echo "${ECHO_T}$ac_header_compiler" >&6; }
12405 # Is the header present?
12406 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h. */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12414 #include <$ac_header>
12415 _ACEOF
12416 if { (ac_try="$ac_cpp conftest.$ac_ext"
12417 case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12420 esac
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12423 ac_status=$?
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } >/dev/null && {
12429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12431 }; then
12432 ac_header_preproc=yes
12433 else
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12437 ac_header_preproc=no
12440 rm -f conftest.err conftest.$ac_ext
12441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442 echo "${ECHO_T}$ac_header_preproc" >&6; }
12444 # So? What about this header?
12445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12446 yes:no: )
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12451 ac_header_preproc=yes
12453 no:yes:* )
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12466 ( cat <<\_ASBOX
12467 ## ------------------------------- ##
12468 ## Report this to www.asterisk.org ##
12469 ## ------------------------------- ##
12470 _ASBOX
12471 ) | sed "s/^/$as_me: WARNING: /" >&2
12473 esac
12474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 else
12479 eval "$as_ac_Header=\$ac_header_preproc"
12481 ac_res=`eval echo '${'$as_ac_Header'}'`
12482 { echo "$as_me:$LINENO: result: $ac_res" >&5
12483 echo "${ECHO_T}$ac_res" >&6; }
12486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12487 cat >>confdefs.h <<_ACEOF
12488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12489 _ACEOF
12493 done
12496 for ac_func in getpagesize
12498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504 cat >conftest.$ac_ext <<_ACEOF
12505 /* confdefs.h. */
12506 _ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12512 #define $ac_func innocuous_$ac_func
12514 /* System header to define __stub macros and hopefully few prototypes,
12515 which can conflict with char $ac_func (); below.
12516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12517 <limits.h> exists even on freestanding compilers. */
12519 #ifdef __STDC__
12520 # include <limits.h>
12521 #else
12522 # include <assert.h>
12523 #endif
12525 #undef $ac_func
12527 /* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12530 #ifdef __cplusplus
12531 extern "C"
12532 #endif
12533 char $ac_func ();
12534 /* The GNU C library defines this for functions which it implements
12535 to always fail with ENOSYS. Some functions are actually named
12536 something starting with __ and the normal name is an alias. */
12537 #if defined __stub_$ac_func || defined __stub___$ac_func
12538 choke me
12539 #endif
12542 main ()
12544 return $ac_func ();
12546 return 0;
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest$ac_exeext &&
12566 $as_test_x conftest$ac_exeext; then
12567 eval "$as_ac_var=yes"
12568 else
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 eval "$as_ac_var=no"
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576 conftest$ac_exeext conftest.$ac_ext
12578 ac_res=`eval echo '${'$as_ac_var'}'`
12579 { echo "$as_me:$LINENO: result: $ac_res" >&5
12580 echo "${ECHO_T}$ac_res" >&6; }
12581 if test `eval echo '${'$as_ac_var'}'` = yes; then
12582 cat >>confdefs.h <<_ACEOF
12583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12584 _ACEOF
12587 done
12589 { echo "$as_me:$LINENO: checking for working mmap" >&5
12590 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12591 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594 if test "$cross_compiling" = yes; then
12595 ac_cv_func_mmap_fixed_mapped=no
12596 else
12597 cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h. */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603 $ac_includes_default
12604 /* malloc might have been renamed as rpl_malloc. */
12605 #undef malloc
12607 /* Thanks to Mike Haertel and Jim Avera for this test.
12608 Here is a matrix of mmap possibilities:
12609 mmap private not fixed
12610 mmap private fixed at somewhere currently unmapped
12611 mmap private fixed at somewhere already mapped
12612 mmap shared not fixed
12613 mmap shared fixed at somewhere currently unmapped
12614 mmap shared fixed at somewhere already mapped
12615 For private mappings, we should verify that changes cannot be read()
12616 back from the file, nor mmap's back from the file at a different
12617 address. (There have been systems where private was not correctly
12618 implemented like the infamous i386 svr4.0, and systems where the
12619 VM page cache was not coherent with the file system buffer cache
12620 like early versions of FreeBSD and possibly contemporary NetBSD.)
12621 For shared mappings, we should conversely verify that changes get
12622 propagated back to all the places they're supposed to be.
12624 Grep wants private fixed already mapped.
12625 The main things grep needs to know about mmap are:
12626 * does it exist and is it safe to write into the mmap'd area
12627 * how to use it (BSD variants) */
12629 #include <fcntl.h>
12630 #include <sys/mman.h>
12632 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12633 char *malloc ();
12634 #endif
12636 /* This mess was copied from the GNU getpagesize.h. */
12637 #ifndef HAVE_GETPAGESIZE
12638 /* Assume that all systems that can run configure have sys/param.h. */
12639 # ifndef HAVE_SYS_PARAM_H
12640 # define HAVE_SYS_PARAM_H 1
12641 # endif
12643 # ifdef _SC_PAGESIZE
12644 # define getpagesize() sysconf(_SC_PAGESIZE)
12645 # else /* no _SC_PAGESIZE */
12646 # ifdef HAVE_SYS_PARAM_H
12647 # include <sys/param.h>
12648 # ifdef EXEC_PAGESIZE
12649 # define getpagesize() EXEC_PAGESIZE
12650 # else /* no EXEC_PAGESIZE */
12651 # ifdef NBPG
12652 # define getpagesize() NBPG * CLSIZE
12653 # ifndef CLSIZE
12654 # define CLSIZE 1
12655 # endif /* no CLSIZE */
12656 # else /* no NBPG */
12657 # ifdef NBPC
12658 # define getpagesize() NBPC
12659 # else /* no NBPC */
12660 # ifdef PAGESIZE
12661 # define getpagesize() PAGESIZE
12662 # endif /* PAGESIZE */
12663 # endif /* no NBPC */
12664 # endif /* no NBPG */
12665 # endif /* no EXEC_PAGESIZE */
12666 # else /* no HAVE_SYS_PARAM_H */
12667 # define getpagesize() 8192 /* punt totally */
12668 # endif /* no HAVE_SYS_PARAM_H */
12669 # endif /* no _SC_PAGESIZE */
12671 #endif /* no HAVE_GETPAGESIZE */
12674 main ()
12676 char *data, *data2, *data3;
12677 int i, pagesize;
12678 int fd;
12680 pagesize = getpagesize ();
12682 /* First, make a file with some known garbage in it. */
12683 data = (char *) malloc (pagesize);
12684 if (!data)
12685 return 1;
12686 for (i = 0; i < pagesize; ++i)
12687 *(data + i) = rand ();
12688 umask (0);
12689 fd = creat ("conftest.mmap", 0600);
12690 if (fd < 0)
12691 return 1;
12692 if (write (fd, data, pagesize) != pagesize)
12693 return 1;
12694 close (fd);
12696 /* Next, try to mmap the file at a fixed address which already has
12697 something else allocated at it. If we can, also make sure that
12698 we see the same garbage. */
12699 fd = open ("conftest.mmap", O_RDWR);
12700 if (fd < 0)
12701 return 1;
12702 data2 = (char *) malloc (2 * pagesize);
12703 if (!data2)
12704 return 1;
12705 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12706 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12707 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12708 return 1;
12709 for (i = 0; i < pagesize; ++i)
12710 if (*(data + i) != *(data2 + i))
12711 return 1;
12713 /* Finally, make sure that changes to the mapped area do not
12714 percolate back to the file as seen by read(). (This is a bug on
12715 some variants of i386 svr4.0.) */
12716 for (i = 0; i < pagesize; ++i)
12717 *(data2 + i) = *(data2 + i) + 1;
12718 data3 = (char *) malloc (pagesize);
12719 if (!data3)
12720 return 1;
12721 if (read (fd, data3, pagesize) != pagesize)
12722 return 1;
12723 for (i = 0; i < pagesize; ++i)
12724 if (*(data + i) != *(data3 + i))
12725 return 1;
12726 close (fd);
12727 return 0;
12729 _ACEOF
12730 rm -f conftest$ac_exeext
12731 if { (ac_try="$ac_link"
12732 case "(($ac_try" in
12733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734 *) ac_try_echo=$ac_try;;
12735 esac
12736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12737 (eval "$ac_link") 2>&5
12738 ac_status=$?
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12741 { (case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12744 esac
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_try") 2>&5
12747 ac_status=$?
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 ac_cv_func_mmap_fixed_mapped=yes
12751 else
12752 echo "$as_me: program exited with status $ac_status" >&5
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12756 ( exit $ac_status )
12757 ac_cv_func_mmap_fixed_mapped=no
12759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12764 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12765 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12766 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12768 cat >>confdefs.h <<\_ACEOF
12769 #define HAVE_MMAP 1
12770 _ACEOF
12773 rm -f conftest.mmap
12777 for ac_header in sys/select.h sys/socket.h
12779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12784 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 ac_res=`eval echo '${'$as_ac_Header'}'`
12787 { echo "$as_me:$LINENO: result: $ac_res" >&5
12788 echo "${ECHO_T}$ac_res" >&6; }
12789 else
12790 # Is the header compilable?
12791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12793 cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h. */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 $ac_includes_default
12800 #include <$ac_header>
12801 _ACEOF
12802 rm -f conftest.$ac_objext
12803 if { (ac_try="$ac_compile"
12804 case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807 esac
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_compile") 2>conftest.er1
12810 ac_status=$?
12811 grep -v '^ *+' conftest.er1 >conftest.err
12812 rm -f conftest.er1
12813 cat conftest.err >&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } && {
12816 test -z "$ac_c_werror_flag" ||
12817 test ! -s conftest.err
12818 } && test -s conftest.$ac_objext; then
12819 ac_header_compiler=yes
12820 else
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 ac_header_compiler=no
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12829 echo "${ECHO_T}$ac_header_compiler" >&6; }
12831 # Is the header present?
12832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12834 cat >conftest.$ac_ext <<_ACEOF
12835 /* confdefs.h. */
12836 _ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12840 #include <$ac_header>
12841 _ACEOF
12842 if { (ac_try="$ac_cpp conftest.$ac_ext"
12843 case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12846 esac
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12849 ac_status=$?
12850 grep -v '^ *+' conftest.er1 >conftest.err
12851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } >/dev/null && {
12855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12856 test ! -s conftest.err
12857 }; then
12858 ac_header_preproc=yes
12859 else
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12863 ac_header_preproc=no
12866 rm -f conftest.err conftest.$ac_ext
12867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12868 echo "${ECHO_T}$ac_header_preproc" >&6; }
12870 # So? What about this header?
12871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12872 yes:no: )
12873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12877 ac_header_preproc=yes
12879 no:yes:* )
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12892 ( cat <<\_ASBOX
12893 ## ------------------------------- ##
12894 ## Report this to www.asterisk.org ##
12895 ## ------------------------------- ##
12896 _ASBOX
12897 ) | sed "s/^/$as_me: WARNING: /" >&2
12899 esac
12900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12903 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 else
12905 eval "$as_ac_Header=\$ac_header_preproc"
12907 ac_res=`eval echo '${'$as_ac_Header'}'`
12908 { echo "$as_me:$LINENO: result: $ac_res" >&5
12909 echo "${ECHO_T}$ac_res" >&6; }
12912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12913 cat >>confdefs.h <<_ACEOF
12914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12915 _ACEOF
12919 done
12921 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12922 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12923 if test "${ac_cv_func_select_args+set}" = set; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 else
12926 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12927 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12928 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12929 cat >conftest.$ac_ext <<_ACEOF
12930 /* confdefs.h. */
12931 _ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12935 $ac_includes_default
12936 #ifdef HAVE_SYS_SELECT_H
12937 # include <sys/select.h>
12938 #endif
12939 #ifdef HAVE_SYS_SOCKET_H
12940 # include <sys/socket.h>
12941 #endif
12944 main ()
12946 extern int select ($ac_arg1,
12947 $ac_arg234, $ac_arg234, $ac_arg234,
12948 $ac_arg5);
12950 return 0;
12952 _ACEOF
12953 rm -f conftest.$ac_objext
12954 if { (ac_try="$ac_compile"
12955 case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12958 esac
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_compile") 2>conftest.er1
12961 ac_status=$?
12962 grep -v '^ *+' conftest.er1 >conftest.err
12963 rm -f conftest.er1
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } && {
12967 test -z "$ac_c_werror_flag" ||
12968 test ! -s conftest.err
12969 } && test -s conftest.$ac_objext; then
12970 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12971 else
12972 echo "$as_me: failed program was:" >&5
12973 sed 's/^/| /' conftest.$ac_ext >&5
12978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12979 done
12980 done
12981 done
12982 # Provide a safe default value.
12983 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12986 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12987 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12988 ac_save_IFS=$IFS; IFS=','
12989 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12990 IFS=$ac_save_IFS
12991 shift
12993 cat >>confdefs.h <<_ACEOF
12994 #define SELECT_TYPE_ARG1 $1
12995 _ACEOF
12998 cat >>confdefs.h <<_ACEOF
12999 #define SELECT_TYPE_ARG234 ($2)
13000 _ACEOF
13003 cat >>confdefs.h <<_ACEOF
13004 #define SELECT_TYPE_ARG5 ($3)
13005 _ACEOF
13007 rm -f conftest*
13009 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13010 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13011 if test "$ac_cv_prog_cc_c89" != no; then
13012 { echo "$as_me:$LINENO: result: yes" >&5
13013 echo "${ECHO_T}yes" >&6; }
13015 cat >>confdefs.h <<\_ACEOF
13016 #define PROTOTYPES 1
13017 _ACEOF
13020 cat >>confdefs.h <<\_ACEOF
13021 #define __PROTOTYPES 1
13022 _ACEOF
13024 else
13025 { echo "$as_me:$LINENO: result: no" >&5
13026 echo "${ECHO_T}no" >&6; }
13029 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13030 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13031 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13033 else
13034 ac_cv_func_setvbuf_reversed=no
13035 cat >conftest.$ac_ext <<_ACEOF
13036 /* confdefs.h. */
13037 _ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13041 #include <stdio.h>
13042 # ifdef PROTOTYPES
13043 int (setvbuf) (FILE *, int, char *, size_t);
13044 # endif
13046 main ()
13048 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13050 return 0;
13052 _ACEOF
13053 rm -f conftest.$ac_objext conftest$ac_exeext
13054 if { (ac_try="$ac_link"
13055 case "(($ac_try" in
13056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13057 *) ac_try_echo=$ac_try;;
13058 esac
13059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13060 (eval "$ac_link") 2>conftest.er1
13061 ac_status=$?
13062 grep -v '^ *+' conftest.er1 >conftest.err
13063 rm -f conftest.er1
13064 cat conftest.err >&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); } && {
13067 test -z "$ac_c_werror_flag" ||
13068 test ! -s conftest.err
13069 } && test -s conftest$ac_exeext &&
13070 $as_test_x conftest$ac_exeext; then
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h. */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 #include <stdio.h>
13078 # ifdef PROTOTYPES
13079 int (setvbuf) (FILE *, int, char *, size_t);
13080 # endif
13082 main ()
13084 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13086 return 0;
13088 _ACEOF
13089 rm -f conftest.$ac_objext conftest$ac_exeext
13090 if { (ac_try="$ac_link"
13091 case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13094 esac
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_link") 2>conftest.er1
13097 ac_status=$?
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } && {
13103 test -z "$ac_c_werror_flag" ||
13104 test ! -s conftest.err
13105 } && test -s conftest$ac_exeext &&
13106 $as_test_x conftest$ac_exeext; then
13107 # It compiles and links either way, so it must not be declared
13108 # with a prototype and most likely this is a K&R C compiler.
13109 # Try running it.
13110 if test "$cross_compiling" = yes; then
13111 : # Assume setvbuf is not reversed when cross-compiling.
13112 else
13113 cat >conftest.$ac_ext <<_ACEOF
13114 /* confdefs.h. */
13115 _ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13119 $ac_includes_default
13121 main ()
13123 /* This call has the arguments reversed.
13124 A reversed system may check and see that the address of buf
13125 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13126 char buf;
13127 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13128 return 1;
13129 putchar ('\r');
13130 return 0; /* Non-reversed systems SEGV here. */
13132 return 0;
13134 _ACEOF
13135 rm -f conftest$ac_exeext
13136 if { (ac_try="$ac_link"
13137 case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13140 esac
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142 (eval "$ac_link") 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13146 { (case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13149 esac
13150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_try") 2>&5
13152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13155 ac_cv_func_setvbuf_reversed=yes
13156 else
13157 echo "$as_me: program exited with status $ac_status" >&5
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13166 ac_cv_func_setvbuf_reversed=yes
13167 else
13168 echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13175 conftest$ac_exeext conftest.$ac_ext
13176 else
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13184 conftest$ac_exeext conftest.$ac_ext
13186 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13187 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13188 if test $ac_cv_func_setvbuf_reversed = yes; then
13190 cat >>confdefs.h <<\_ACEOF
13191 #define SETVBUF_REVERSED 1
13192 _ACEOF
13196 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13197 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13198 if test "${ac_cv_type_signal+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 else
13201 cat >conftest.$ac_ext <<_ACEOF
13202 /* confdefs.h. */
13203 _ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13207 #include <sys/types.h>
13208 #include <signal.h>
13211 main ()
13213 return *(signal (0, 0)) (0) == 1;
13215 return 0;
13217 _ACEOF
13218 rm -f conftest.$ac_objext
13219 if { (ac_try="$ac_compile"
13220 case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223 esac
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_compile") 2>conftest.er1
13226 ac_status=$?
13227 grep -v '^ *+' conftest.er1 >conftest.err
13228 rm -f conftest.er1
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } && {
13232 test -z "$ac_c_werror_flag" ||
13233 test ! -s conftest.err
13234 } && test -s conftest.$ac_objext; then
13235 ac_cv_type_signal=int
13236 else
13237 echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13240 ac_cv_type_signal=void
13243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13246 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13248 cat >>confdefs.h <<_ACEOF
13249 #define RETSIGTYPE $ac_cv_type_signal
13250 _ACEOF
13253 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13254 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13255 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13257 else
13258 rm -f conftest.sym conftest.file
13259 echo >conftest.file
13260 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13261 if test "$cross_compiling" = yes; then
13262 ac_cv_func_lstat_dereferences_slashed_symlink=no
13263 else
13264 cat >conftest.$ac_ext <<_ACEOF
13265 /* confdefs.h. */
13266 _ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 $ac_includes_default
13272 main ()
13274 struct stat sbuf;
13275 /* Linux will dereference the symlink and fail.
13276 That is better in the sense that it means we will not
13277 have to compile and use the lstat wrapper. */
13278 return lstat ("conftest.sym/", &sbuf) == 0;
13280 return 0;
13282 _ACEOF
13283 rm -f conftest$ac_exeext
13284 if { (ac_try="$ac_link"
13285 case "(($ac_try" in
13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287 *) ac_try_echo=$ac_try;;
13288 esac
13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290 (eval "$ac_link") 2>&5
13291 ac_status=$?
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13294 { (case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13297 esac
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_try") 2>&5
13300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; }; then
13303 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13304 else
13305 echo "$as_me: program exited with status $ac_status" >&5
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13309 ( exit $ac_status )
13310 ac_cv_func_lstat_dereferences_slashed_symlink=no
13312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13316 else
13317 # If the `ln -s' command failed, then we probably don't even
13318 # have an lstat function.
13319 ac_cv_func_lstat_dereferences_slashed_symlink=no
13321 rm -f conftest.sym conftest.file
13324 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13325 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13327 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13329 cat >>confdefs.h <<_ACEOF
13330 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13331 _ACEOF
13334 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13335 case " $LIBOBJS " in
13336 *" lstat.$ac_objext "* ) ;;
13337 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13339 esac
13343 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13344 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13345 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 else
13348 if test "$cross_compiling" = yes; then
13349 ac_cv_func_stat_empty_string_bug=yes
13350 else
13351 cat >conftest.$ac_ext <<_ACEOF
13352 /* confdefs.h. */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 $ac_includes_default
13359 main ()
13361 struct stat sbuf;
13362 return stat ("", &sbuf) == 0;
13364 return 0;
13366 _ACEOF
13367 rm -f conftest$ac_exeext
13368 if { (ac_try="$ac_link"
13369 case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13372 esac
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_link") 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13378 { (case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13381 esac
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_try") 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_cv_func_stat_empty_string_bug=no
13388 else
13389 echo "$as_me: program exited with status $ac_status" >&5
13390 echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13393 ( exit $ac_status )
13394 ac_cv_func_stat_empty_string_bug=yes
13396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13401 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13402 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13403 if test $ac_cv_func_stat_empty_string_bug = yes; then
13404 case " $LIBOBJS " in
13405 *" stat.$ac_objext "* ) ;;
13406 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13408 esac
13411 cat >>confdefs.h <<_ACEOF
13412 #define HAVE_STAT_EMPTY_STRING_BUG 1
13413 _ACEOF
13417 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13418 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13419 if test "${ac_cv_func_strcoll_works+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422 if test "$cross_compiling" = yes; then
13423 ac_cv_func_strcoll_works=no
13424 else
13425 cat >conftest.$ac_ext <<_ACEOF
13426 /* confdefs.h. */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 $ac_includes_default
13433 main ()
13435 return (strcoll ("abc", "def") >= 0 ||
13436 strcoll ("ABC", "DEF") >= 0 ||
13437 strcoll ("123", "456") >= 0)
13439 return 0;
13441 _ACEOF
13442 rm -f conftest$ac_exeext
13443 if { (ac_try="$ac_link"
13444 case "(($ac_try" in
13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13447 esac
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449 (eval "$ac_link") 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13453 { (case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13456 esac
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_try") 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 ac_cv_func_strcoll_works=yes
13463 else
13464 echo "$as_me: program exited with status $ac_status" >&5
13465 echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 ( exit $ac_status )
13469 ac_cv_func_strcoll_works=no
13471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13476 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13477 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13478 if test $ac_cv_func_strcoll_works = yes; then
13480 cat >>confdefs.h <<\_ACEOF
13481 #define HAVE_STRCOLL 1
13482 _ACEOF
13487 for ac_func in strftime
13489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 else
13495 cat >conftest.$ac_ext <<_ACEOF
13496 /* confdefs.h. */
13497 _ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13503 #define $ac_func innocuous_$ac_func
13505 /* System header to define __stub macros and hopefully few prototypes,
13506 which can conflict with char $ac_func (); below.
13507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13508 <limits.h> exists even on freestanding compilers. */
13510 #ifdef __STDC__
13511 # include <limits.h>
13512 #else
13513 # include <assert.h>
13514 #endif
13516 #undef $ac_func
13518 /* Override any GCC internal prototype to avoid an error.
13519 Use char because int might match the return type of a GCC
13520 builtin and then its argument prototype would still apply. */
13521 #ifdef __cplusplus
13522 extern "C"
13523 #endif
13524 char $ac_func ();
13525 /* The GNU C library defines this for functions which it implements
13526 to always fail with ENOSYS. Some functions are actually named
13527 something starting with __ and the normal name is an alias. */
13528 #if defined __stub_$ac_func || defined __stub___$ac_func
13529 choke me
13530 #endif
13533 main ()
13535 return $ac_func ();
13537 return 0;
13539 _ACEOF
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (ac_try="$ac_link"
13542 case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13545 esac
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_link") 2>conftest.er1
13548 ac_status=$?
13549 grep -v '^ *+' conftest.er1 >conftest.err
13550 rm -f conftest.er1
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } && {
13554 test -z "$ac_c_werror_flag" ||
13555 test ! -s conftest.err
13556 } && test -s conftest$ac_exeext &&
13557 $as_test_x conftest$ac_exeext; then
13558 eval "$as_ac_var=yes"
13559 else
13560 echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13563 eval "$as_ac_var=no"
13566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13567 conftest$ac_exeext conftest.$ac_ext
13569 ac_res=`eval echo '${'$as_ac_var'}'`
13570 { echo "$as_me:$LINENO: result: $ac_res" >&5
13571 echo "${ECHO_T}$ac_res" >&6; }
13572 if test `eval echo '${'$as_ac_var'}'` = yes; then
13573 cat >>confdefs.h <<_ACEOF
13574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13575 _ACEOF
13577 else
13578 # strftime is in -lintl on SCO UNIX.
13579 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13580 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13581 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584 ac_check_lib_save_LIBS=$LIBS
13585 LIBS="-lintl $LIBS"
13586 cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h. */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13593 /* Override any GCC internal prototype to avoid an error.
13594 Use char because int might match the return type of a GCC
13595 builtin and then its argument prototype would still apply. */
13596 #ifdef __cplusplus
13597 extern "C"
13598 #endif
13599 char strftime ();
13601 main ()
13603 return strftime ();
13605 return 0;
13607 _ACEOF
13608 rm -f conftest.$ac_objext conftest$ac_exeext
13609 if { (ac_try="$ac_link"
13610 case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13613 esac
13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_link") 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } && {
13622 test -z "$ac_c_werror_flag" ||
13623 test ! -s conftest.err
13624 } && test -s conftest$ac_exeext &&
13625 $as_test_x conftest$ac_exeext; then
13626 ac_cv_lib_intl_strftime=yes
13627 else
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13631 ac_cv_lib_intl_strftime=no
13634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13635 conftest$ac_exeext conftest.$ac_ext
13636 LIBS=$ac_check_lib_save_LIBS
13638 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13639 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13640 if test $ac_cv_lib_intl_strftime = yes; then
13641 cat >>confdefs.h <<\_ACEOF
13642 #define HAVE_STRFTIME 1
13643 _ACEOF
13645 LIBS="-lintl $LIBS"
13649 done
13651 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13652 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13653 if test "${ac_cv_func_strnlen_working+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656 if test "$cross_compiling" = yes; then
13657 ac_cv_func_strnlen_working=no
13658 else
13659 cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h. */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 $ac_includes_default
13667 main ()
13670 #define S "foobar"
13671 #define S_LEN (sizeof S - 1)
13673 /* At least one implementation is buggy: that of AIX 4.3 would
13674 give strnlen (S, 1) == 3. */
13676 int i;
13677 for (i = 0; i < S_LEN + 1; ++i)
13679 int expected = i <= S_LEN ? i : S_LEN;
13680 if (strnlen (S, i) != expected)
13681 return 1;
13683 return 0;
13686 return 0;
13688 _ACEOF
13689 rm -f conftest$ac_exeext
13690 if { (ac_try="$ac_link"
13691 case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13694 esac
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_link") 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703 esac
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_try") 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_cv_func_strnlen_working=yes
13710 else
13711 echo "$as_me: program exited with status $ac_status" >&5
13712 echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13715 ( exit $ac_status )
13716 ac_cv_func_strnlen_working=no
13718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13723 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13724 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13725 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13726 *" strnlen.$ac_objext "* ) ;;
13727 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13729 esac
13732 { echo "$as_me:$LINENO: checking for working strtod" >&5
13733 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13734 if test "${ac_cv_func_strtod+set}" = set; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 else
13737 if test "$cross_compiling" = yes; then
13738 ac_cv_func_strtod=no
13739 else
13740 cat >conftest.$ac_ext <<_ACEOF
13741 /* confdefs.h. */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13747 $ac_includes_default
13748 #ifndef strtod
13749 double strtod ();
13750 #endif
13752 main()
13755 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13756 char *string = " +69";
13757 char *term;
13758 double value;
13759 value = strtod (string, &term);
13760 if (value != 69 || term != (string + 4))
13761 return 1;
13765 /* Under Solaris 2.4, strtod returns the wrong value for the
13766 terminating character under some conditions. */
13767 char *string = "NaN";
13768 char *term;
13769 strtod (string, &term);
13770 if (term != string && *(term - 1) == 0)
13771 return 1;
13773 return 0;
13776 _ACEOF
13777 rm -f conftest$ac_exeext
13778 if { (ac_try="$ac_link"
13779 case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13782 esac
13783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_link") 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13788 { (case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13791 esac
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_try") 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797 ac_cv_func_strtod=yes
13798 else
13799 echo "$as_me: program exited with status $ac_status" >&5
13800 echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13803 ( exit $ac_status )
13804 ac_cv_func_strtod=no
13806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13811 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13812 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13813 if test $ac_cv_func_strtod = no; then
13814 case " $LIBOBJS " in
13815 *" strtod.$ac_objext "* ) ;;
13816 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13818 esac
13820 { echo "$as_me:$LINENO: checking for pow" >&5
13821 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13822 if test "${ac_cv_func_pow+set}" = set; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 else
13825 cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h. */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13833 #define pow innocuous_pow
13835 /* System header to define __stub macros and hopefully few prototypes,
13836 which can conflict with char pow (); below.
13837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13838 <limits.h> exists even on freestanding compilers. */
13840 #ifdef __STDC__
13841 # include <limits.h>
13842 #else
13843 # include <assert.h>
13844 #endif
13846 #undef pow
13848 /* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13851 #ifdef __cplusplus
13852 extern "C"
13853 #endif
13854 char pow ();
13855 /* The GNU C library defines this for functions which it implements
13856 to always fail with ENOSYS. Some functions are actually named
13857 something starting with __ and the normal name is an alias. */
13858 #if defined __stub_pow || defined __stub___pow
13859 choke me
13860 #endif
13863 main ()
13865 return pow ();
13867 return 0;
13869 _ACEOF
13870 rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (ac_try="$ac_link"
13872 case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13875 esac
13876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877 (eval "$ac_link") 2>conftest.er1
13878 ac_status=$?
13879 grep -v '^ *+' conftest.er1 >conftest.err
13880 rm -f conftest.er1
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } && {
13884 test -z "$ac_c_werror_flag" ||
13885 test ! -s conftest.err
13886 } && test -s conftest$ac_exeext &&
13887 $as_test_x conftest$ac_exeext; then
13888 ac_cv_func_pow=yes
13889 else
13890 echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13893 ac_cv_func_pow=no
13896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13897 conftest$ac_exeext conftest.$ac_ext
13899 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13900 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13902 if test $ac_cv_func_pow = no; then
13903 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13904 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13905 if test "${ac_cv_lib_m_pow+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 else
13908 ac_check_lib_save_LIBS=$LIBS
13909 LIBS="-lm $LIBS"
13910 cat >conftest.$ac_ext <<_ACEOF
13911 /* confdefs.h. */
13912 _ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h. */
13917 /* Override any GCC internal prototype to avoid an error.
13918 Use char because int might match the return type of a GCC
13919 builtin and then its argument prototype would still apply. */
13920 #ifdef __cplusplus
13921 extern "C"
13922 #endif
13923 char pow ();
13925 main ()
13927 return pow ();
13929 return 0;
13931 _ACEOF
13932 rm -f conftest.$ac_objext conftest$ac_exeext
13933 if { (ac_try="$ac_link"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13937 esac
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_link") 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } && {
13946 test -z "$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 } && test -s conftest$ac_exeext &&
13949 $as_test_x conftest$ac_exeext; then
13950 ac_cv_lib_m_pow=yes
13951 else
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13955 ac_cv_lib_m_pow=no
13958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13959 conftest$ac_exeext conftest.$ac_ext
13960 LIBS=$ac_check_lib_save_LIBS
13962 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13963 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13964 if test $ac_cv_lib_m_pow = yes; then
13965 POW_LIB=-lm
13966 else
13967 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13968 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13979 for ac_header in $ac_header_list
13981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 ac_res=`eval echo '${'$as_ac_Header'}'`
13989 { echo "$as_me:$LINENO: result: $ac_res" >&5
13990 echo "${ECHO_T}$ac_res" >&6; }
13991 else
13992 # Is the header compilable?
13993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h. */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 $ac_includes_default
14002 #include <$ac_header>
14003 _ACEOF
14004 rm -f conftest.$ac_objext
14005 if { (ac_try="$ac_compile"
14006 case "(($ac_try" in
14007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14008 *) ac_try_echo=$ac_try;;
14009 esac
14010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14011 (eval "$ac_compile") 2>conftest.er1
14012 ac_status=$?
14013 grep -v '^ *+' conftest.er1 >conftest.err
14014 rm -f conftest.er1
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } && {
14018 test -z "$ac_c_werror_flag" ||
14019 test ! -s conftest.err
14020 } && test -s conftest.$ac_objext; then
14021 ac_header_compiler=yes
14022 else
14023 echo "$as_me: failed program was:" >&5
14024 sed 's/^/| /' conftest.$ac_ext >&5
14026 ac_header_compiler=no
14029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14031 echo "${ECHO_T}$ac_header_compiler" >&6; }
14033 # Is the header present?
14034 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14036 cat >conftest.$ac_ext <<_ACEOF
14037 /* confdefs.h. */
14038 _ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14042 #include <$ac_header>
14043 _ACEOF
14044 if { (ac_try="$ac_cpp conftest.$ac_ext"
14045 case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14048 esac
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14051 ac_status=$?
14052 grep -v '^ *+' conftest.er1 >conftest.err
14053 rm -f conftest.er1
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } >/dev/null && {
14057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14058 test ! -s conftest.err
14059 }; then
14060 ac_header_preproc=yes
14061 else
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14065 ac_header_preproc=no
14068 rm -f conftest.err conftest.$ac_ext
14069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14070 echo "${ECHO_T}$ac_header_preproc" >&6; }
14072 # So? What about this header?
14073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14074 yes:no: )
14075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14079 ac_header_preproc=yes
14081 no:yes:* )
14082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14094 ( cat <<\_ASBOX
14095 ## ------------------------------- ##
14096 ## Report this to www.asterisk.org ##
14097 ## ------------------------------- ##
14098 _ASBOX
14099 ) | sed "s/^/$as_me: WARNING: /" >&2
14101 esac
14102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 else
14107 eval "$as_ac_Header=\$ac_header_preproc"
14109 ac_res=`eval echo '${'$as_ac_Header'}'`
14110 { echo "$as_me:$LINENO: result: $ac_res" >&5
14111 echo "${ECHO_T}$ac_res" >&6; }
14114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14115 cat >>confdefs.h <<_ACEOF
14116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14117 _ACEOF
14121 done
14131 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14132 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14133 if test "${ac_cv_func_utime_null+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 else
14136 rm -f conftest.data; >conftest.data
14137 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14138 if test "$cross_compiling" = yes; then
14139 ac_cv_func_utime_null=no
14140 else
14141 cat >conftest.$ac_ext <<_ACEOF
14142 /* confdefs.h. */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147 $ac_includes_default
14148 #ifdef HAVE_UTIME_H
14149 # include <utime.h>
14150 #endif
14152 main ()
14154 struct stat s, t;
14155 return ! (stat ("conftest.data", &s) == 0
14156 && utime ("conftest.data", 0) == 0
14157 && stat ("conftest.data", &t) == 0
14158 && t.st_mtime >= s.st_mtime
14159 && t.st_mtime - s.st_mtime < 120);
14161 return 0;
14163 _ACEOF
14164 rm -f conftest$ac_exeext
14165 if { (ac_try="$ac_link"
14166 case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14169 esac
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_link") 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14175 { (case "(($ac_try" in
14176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177 *) ac_try_echo=$ac_try;;
14178 esac
14179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180 (eval "$ac_try") 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; }; then
14184 ac_cv_func_utime_null=yes
14185 else
14186 echo "$as_me: program exited with status $ac_status" >&5
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14190 ( exit $ac_status )
14191 ac_cv_func_utime_null=no
14193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14198 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14199 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14200 if test $ac_cv_func_utime_null = yes; then
14202 cat >>confdefs.h <<\_ACEOF
14203 #define HAVE_UTIME_NULL 1
14204 _ACEOF
14207 rm -f conftest.data
14210 for ac_func in vprintf
14212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 else
14218 cat >conftest.$ac_ext <<_ACEOF
14219 /* confdefs.h. */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14226 #define $ac_func innocuous_$ac_func
14228 /* System header to define __stub macros and hopefully few prototypes,
14229 which can conflict with char $ac_func (); below.
14230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14231 <limits.h> exists even on freestanding compilers. */
14233 #ifdef __STDC__
14234 # include <limits.h>
14235 #else
14236 # include <assert.h>
14237 #endif
14239 #undef $ac_func
14241 /* Override any GCC internal prototype to avoid an error.
14242 Use char because int might match the return type of a GCC
14243 builtin and then its argument prototype would still apply. */
14244 #ifdef __cplusplus
14245 extern "C"
14246 #endif
14247 char $ac_func ();
14248 /* The GNU C library defines this for functions which it implements
14249 to always fail with ENOSYS. Some functions are actually named
14250 something starting with __ and the normal name is an alias. */
14251 #if defined __stub_$ac_func || defined __stub___$ac_func
14252 choke me
14253 #endif
14256 main ()
14258 return $ac_func ();
14260 return 0;
14262 _ACEOF
14263 rm -f conftest.$ac_objext conftest$ac_exeext
14264 if { (ac_try="$ac_link"
14265 case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14268 esac
14269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270 (eval "$ac_link") 2>conftest.er1
14271 ac_status=$?
14272 grep -v '^ *+' conftest.er1 >conftest.err
14273 rm -f conftest.er1
14274 cat conftest.err >&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } && {
14277 test -z "$ac_c_werror_flag" ||
14278 test ! -s conftest.err
14279 } && test -s conftest$ac_exeext &&
14280 $as_test_x conftest$ac_exeext; then
14281 eval "$as_ac_var=yes"
14282 else
14283 echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14286 eval "$as_ac_var=no"
14289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14290 conftest$ac_exeext conftest.$ac_ext
14292 ac_res=`eval echo '${'$as_ac_var'}'`
14293 { echo "$as_me:$LINENO: result: $ac_res" >&5
14294 echo "${ECHO_T}$ac_res" >&6; }
14295 if test `eval echo '${'$as_ac_var'}'` = yes; then
14296 cat >>confdefs.h <<_ACEOF
14297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14298 _ACEOF
14300 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14301 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14302 if test "${ac_cv_func__doprnt+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 else
14305 cat >conftest.$ac_ext <<_ACEOF
14306 /* confdefs.h. */
14307 _ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14313 #define _doprnt innocuous__doprnt
14315 /* System header to define __stub macros and hopefully few prototypes,
14316 which can conflict with char _doprnt (); below.
14317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14318 <limits.h> exists even on freestanding compilers. */
14320 #ifdef __STDC__
14321 # include <limits.h>
14322 #else
14323 # include <assert.h>
14324 #endif
14326 #undef _doprnt
14328 /* Override any GCC internal prototype to avoid an error.
14329 Use char because int might match the return type of a GCC
14330 builtin and then its argument prototype would still apply. */
14331 #ifdef __cplusplus
14332 extern "C"
14333 #endif
14334 char _doprnt ();
14335 /* The GNU C library defines this for functions which it implements
14336 to always fail with ENOSYS. Some functions are actually named
14337 something starting with __ and the normal name is an alias. */
14338 #if defined __stub__doprnt || defined __stub____doprnt
14339 choke me
14340 #endif
14343 main ()
14345 return _doprnt ();
14347 return 0;
14349 _ACEOF
14350 rm -f conftest.$ac_objext conftest$ac_exeext
14351 if { (ac_try="$ac_link"
14352 case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14355 esac
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_link") 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } && {
14364 test -z "$ac_c_werror_flag" ||
14365 test ! -s conftest.err
14366 } && test -s conftest$ac_exeext &&
14367 $as_test_x conftest$ac_exeext; then
14368 ac_cv_func__doprnt=yes
14369 else
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 ac_cv_func__doprnt=no
14376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14377 conftest$ac_exeext conftest.$ac_ext
14379 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14380 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14381 if test $ac_cv_func__doprnt = yes; then
14383 cat >>confdefs.h <<\_ACEOF
14384 #define HAVE_DOPRNT 1
14385 _ACEOF
14390 done
14442 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
14444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450 cat >conftest.$ac_ext <<_ACEOF
14451 /* confdefs.h. */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14458 #define $ac_func innocuous_$ac_func
14460 /* System header to define __stub macros and hopefully few prototypes,
14461 which can conflict with char $ac_func (); below.
14462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14463 <limits.h> exists even on freestanding compilers. */
14465 #ifdef __STDC__
14466 # include <limits.h>
14467 #else
14468 # include <assert.h>
14469 #endif
14471 #undef $ac_func
14473 /* Override any GCC internal prototype to avoid an error.
14474 Use char because int might match the return type of a GCC
14475 builtin and then its argument prototype would still apply. */
14476 #ifdef __cplusplus
14477 extern "C"
14478 #endif
14479 char $ac_func ();
14480 /* The GNU C library defines this for functions which it implements
14481 to always fail with ENOSYS. Some functions are actually named
14482 something starting with __ and the normal name is an alias. */
14483 #if defined __stub_$ac_func || defined __stub___$ac_func
14484 choke me
14485 #endif
14488 main ()
14490 return $ac_func ();
14492 return 0;
14494 _ACEOF
14495 rm -f conftest.$ac_objext conftest$ac_exeext
14496 if { (ac_try="$ac_link"
14497 case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14500 esac
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_link") 2>conftest.er1
14503 ac_status=$?
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } && {
14509 test -z "$ac_c_werror_flag" ||
14510 test ! -s conftest.err
14511 } && test -s conftest$ac_exeext &&
14512 $as_test_x conftest$ac_exeext; then
14513 eval "$as_ac_var=yes"
14514 else
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 eval "$as_ac_var=no"
14521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14522 conftest$ac_exeext conftest.$ac_ext
14524 ac_res=`eval echo '${'$as_ac_var'}'`
14525 { echo "$as_me:$LINENO: result: $ac_res" >&5
14526 echo "${ECHO_T}$ac_res" >&6; }
14527 if test `eval echo '${'$as_ac_var'}'` = yes; then
14528 cat >>confdefs.h <<_ACEOF
14529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14530 _ACEOF
14533 done
14536 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14537 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
14538 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
14539 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542 ac_func_search_save_LIBS=$LIBS
14543 cat >conftest.$ac_ext <<_ACEOF
14544 /* confdefs.h. */
14545 _ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h. */
14550 /* Override any GCC internal prototype to avoid an error.
14551 Use char because int might match the return type of a GCC
14552 builtin and then its argument prototype would still apply. */
14553 #ifdef __cplusplus
14554 extern "C"
14555 #endif
14556 char gethostbyname_r ();
14558 main ()
14560 return gethostbyname_r ();
14562 return 0;
14564 _ACEOF
14565 for ac_lib in '' socket nsl; do
14566 if test -z "$ac_lib"; then
14567 ac_res="none required"
14568 else
14569 ac_res=-l$ac_lib
14570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (ac_try="$ac_link"
14574 case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14577 esac
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_link") 2>conftest.er1
14580 ac_status=$?
14581 grep -v '^ *+' conftest.er1 >conftest.err
14582 rm -f conftest.er1
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } && {
14586 test -z "$ac_c_werror_flag" ||
14587 test ! -s conftest.err
14588 } && test -s conftest$ac_exeext &&
14589 $as_test_x conftest$ac_exeext; then
14590 ac_cv_search_gethostbyname_r=$ac_res
14591 else
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14599 conftest$ac_exeext
14600 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14601 break
14603 done
14604 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14606 else
14607 ac_cv_search_gethostbyname_r=no
14609 rm conftest.$ac_ext
14610 LIBS=$ac_func_search_save_LIBS
14612 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
14613 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14614 ac_res=$ac_cv_search_gethostbyname_r
14615 if test "$ac_res" != no; then
14616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14621 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
14622 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
14623 cat >conftest.$ac_ext <<_ACEOF
14624 /* confdefs.h. */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14629 #include <stdlib.h>
14630 #include <netdb.h>
14632 main ()
14634 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14636 return 0;
14638 _ACEOF
14639 rm -f conftest.$ac_objext conftest$ac_exeext
14640 if { (ac_try="$ac_link"
14641 case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644 esac
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_link") 2>conftest.er1
14647 ac_status=$?
14648 grep -v '^ *+' conftest.er1 >conftest.err
14649 rm -f conftest.er1
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } && {
14653 test -z "$ac_c_werror_flag" ||
14654 test ! -s conftest.err
14655 } && test -s conftest$ac_exeext &&
14656 $as_test_x conftest$ac_exeext; then
14657 { echo "$as_me:$LINENO: result: yes" >&5
14658 echo "${ECHO_T}yes" >&6; }
14660 cat >>confdefs.h <<\_ACEOF
14661 #define HAVE_GETHOSTBYNAME_R_6 1
14662 _ACEOF
14664 else
14665 echo "$as_me: failed program was:" >&5
14666 sed 's/^/| /' conftest.$ac_ext >&5
14668 { echo "$as_me:$LINENO: result: no" >&5
14669 echo "${ECHO_T}no" >&6; }
14673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14674 conftest$ac_exeext conftest.$ac_ext
14676 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
14677 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
14678 cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h. */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 #include <stdlib.h>
14685 #include <netdb.h>
14687 main ()
14689 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14691 return 0;
14693 _ACEOF
14694 rm -f conftest.$ac_objext conftest$ac_exeext
14695 if { (ac_try="$ac_link"
14696 case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14699 esac
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_link") 2>conftest.er1
14702 ac_status=$?
14703 grep -v '^ *+' conftest.er1 >conftest.err
14704 rm -f conftest.er1
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } && {
14708 test -z "$ac_c_werror_flag" ||
14709 test ! -s conftest.err
14710 } && test -s conftest$ac_exeext &&
14711 $as_test_x conftest$ac_exeext; then
14712 { echo "$as_me:$LINENO: result: yes" >&5
14713 echo "${ECHO_T}yes" >&6; }
14715 cat >>confdefs.h <<\_ACEOF
14716 #define HAVE_GETHOSTBYNAME_R_5 1
14717 _ACEOF
14719 else
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14723 { echo "$as_me:$LINENO: result: no" >&5
14724 echo "${ECHO_T}no" >&6; }
14728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14729 conftest$ac_exeext conftest.$ac_ext
14731 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14732 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14733 cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h. */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 #include <pthread.h>
14741 main ()
14743 int foo = PTHREAD_RWLOCK_INITIALIZER;
14745 return 0;
14747 _ACEOF
14748 rm -f conftest.$ac_objext conftest$ac_exeext
14749 if { (ac_try="$ac_link"
14750 case "(($ac_try" in
14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14753 esac
14754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755 (eval "$ac_link") 2>conftest.er1
14756 ac_status=$?
14757 grep -v '^ *+' conftest.er1 >conftest.err
14758 rm -f conftest.er1
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } && {
14762 test -z "$ac_c_werror_flag" ||
14763 test ! -s conftest.err
14764 } && test -s conftest$ac_exeext &&
14765 $as_test_x conftest$ac_exeext; then
14766 { echo "$as_me:$LINENO: result: yes" >&5
14767 echo "${ECHO_T}yes" >&6; }
14769 cat >>confdefs.h <<\_ACEOF
14770 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14771 _ACEOF
14773 else
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14777 { echo "$as_me:$LINENO: result: no" >&5
14778 echo "${ECHO_T}no" >&6; }
14782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14783 conftest$ac_exeext conftest.$ac_ext
14785 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14786 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14787 cat >conftest.$ac_ext <<_ACEOF
14788 /* confdefs.h. */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14793 #include <pthread.h>
14795 main ()
14797 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14799 return 0;
14801 _ACEOF
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;;
14807 esac
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_link") 2>conftest.er1
14810 ac_status=$?
14811 grep -v '^ *+' conftest.er1 >conftest.err
14812 rm -f conftest.er1
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 { echo "$as_me:$LINENO: result: yes" >&5
14821 echo "${ECHO_T}yes" >&6; }
14823 cat >>confdefs.h <<\_ACEOF
14824 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14825 _ACEOF
14827 else
14828 echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14831 { echo "$as_me:$LINENO: result: no" >&5
14832 echo "${ECHO_T}no" >&6; }
14836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14837 conftest$ac_exeext conftest.$ac_ext
14839 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14840 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14841 cat >conftest.$ac_ext <<_ACEOF
14842 /* confdefs.h. */
14843 _ACEOF
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h. */
14849 main ()
14851 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14853 return 0;
14855 _ACEOF
14856 rm -f conftest.$ac_objext conftest$ac_exeext
14857 if { (ac_try="$ac_link"
14858 case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14861 esac
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_link") 2>conftest.er1
14864 ac_status=$?
14865 grep -v '^ *+' conftest.er1 >conftest.err
14866 rm -f conftest.er1
14867 cat conftest.err >&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } && {
14870 test -z "$ac_c_werror_flag" ||
14871 test ! -s conftest.err
14872 } && test -s conftest$ac_exeext &&
14873 $as_test_x conftest$ac_exeext; then
14874 { echo "$as_me:$LINENO: result: yes" >&5
14875 echo "${ECHO_T}yes" >&6; }
14877 cat >>confdefs.h <<\_ACEOF
14878 #define HAVE_GCC_ATOMICS 1
14879 _ACEOF
14881 else
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 { echo "$as_me:$LINENO: result: no" >&5
14886 echo "${ECHO_T}no" >&6; }
14890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14891 conftest$ac_exeext conftest.$ac_ext
14894 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14895 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14896 saved_CFLAGS="$CFLAGS"
14897 CFLAGS="$CFLAGS -Werror"
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h. */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 static void __attribute__((pure)) *test(void *muffin, ...) {}
14906 main ()
14910 return 0;
14912 _ACEOF
14913 rm -f conftest.$ac_objext
14914 if { (ac_try="$ac_compile"
14915 case "(($ac_try" in
14916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14918 esac
14919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14920 (eval "$ac_compile") 2>conftest.er1
14921 ac_status=$?
14922 grep -v '^ *+' conftest.er1 >conftest.err
14923 rm -f conftest.er1
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } && {
14927 test -z "$ac_c_werror_flag" ||
14928 test ! -s conftest.err
14929 } && test -s conftest.$ac_objext; then
14930 { echo "$as_me:$LINENO: result: yes" >&5
14931 echo "${ECHO_T}yes" >&6; }
14933 cat >>confdefs.h <<_ACEOF
14934 #define HAVE_ATTRIBUTE_pure 1
14935 _ACEOF
14937 else
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 { echo "$as_me:$LINENO: result: no" >&5
14942 echo "${ECHO_T}no" >&6; }
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14947 CFLAGS="$saved_CFLAGS"
14950 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14951 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14952 saved_CFLAGS="$CFLAGS"
14953 CFLAGS="$CFLAGS -Werror"
14954 cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h. */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 static void __attribute__((malloc)) *test(void *muffin, ...) {}
14962 main ()
14966 return 0;
14968 _ACEOF
14969 rm -f conftest.$ac_objext
14970 if { (ac_try="$ac_compile"
14971 case "(($ac_try" in
14972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973 *) ac_try_echo=$ac_try;;
14974 esac
14975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976 (eval "$ac_compile") 2>conftest.er1
14977 ac_status=$?
14978 grep -v '^ *+' conftest.er1 >conftest.err
14979 rm -f conftest.er1
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } && {
14983 test -z "$ac_c_werror_flag" ||
14984 test ! -s conftest.err
14985 } && test -s conftest.$ac_objext; then
14986 { echo "$as_me:$LINENO: result: yes" >&5
14987 echo "${ECHO_T}yes" >&6; }
14989 cat >>confdefs.h <<_ACEOF
14990 #define HAVE_ATTRIBUTE_malloc 1
14991 _ACEOF
14993 else
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 { echo "$as_me:$LINENO: result: no" >&5
14998 echo "${ECHO_T}no" >&6; }
15001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 CFLAGS="$saved_CFLAGS"
15006 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
15007 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
15008 saved_CFLAGS="$CFLAGS"
15009 CFLAGS="$CFLAGS -Werror"
15010 cat >conftest.$ac_ext <<_ACEOF
15011 /* confdefs.h. */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 static void __attribute__((const)) *test(void *muffin, ...) {}
15018 main ()
15022 return 0;
15024 _ACEOF
15025 rm -f conftest.$ac_objext
15026 if { (ac_try="$ac_compile"
15027 case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15030 esac
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_compile") 2>conftest.er1
15033 ac_status=$?
15034 grep -v '^ *+' conftest.er1 >conftest.err
15035 rm -f conftest.er1
15036 cat conftest.err >&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } && {
15039 test -z "$ac_c_werror_flag" ||
15040 test ! -s conftest.err
15041 } && test -s conftest.$ac_objext; then
15042 { echo "$as_me:$LINENO: result: yes" >&5
15043 echo "${ECHO_T}yes" >&6; }
15045 cat >>confdefs.h <<_ACEOF
15046 #define HAVE_ATTRIBUTE_const 1
15047 _ACEOF
15049 else
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 { echo "$as_me:$LINENO: result: no" >&5
15054 echo "${ECHO_T}no" >&6; }
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059 CFLAGS="$saved_CFLAGS"
15062 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
15063 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
15064 saved_CFLAGS="$CFLAGS"
15065 CFLAGS="$CFLAGS -Werror"
15066 cat >conftest.$ac_ext <<_ACEOF
15067 /* confdefs.h. */
15068 _ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h. */
15072 static void __attribute__((unused)) *test(void *muffin, ...) {}
15074 main ()
15078 return 0;
15080 _ACEOF
15081 rm -f conftest.$ac_objext
15082 if { (ac_try="$ac_compile"
15083 case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15086 esac
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088 (eval "$ac_compile") 2>conftest.er1
15089 ac_status=$?
15090 grep -v '^ *+' conftest.er1 >conftest.err
15091 rm -f conftest.er1
15092 cat conftest.err >&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } && {
15095 test -z "$ac_c_werror_flag" ||
15096 test ! -s conftest.err
15097 } && test -s conftest.$ac_objext; then
15098 { echo "$as_me:$LINENO: result: yes" >&5
15099 echo "${ECHO_T}yes" >&6; }
15101 cat >>confdefs.h <<_ACEOF
15102 #define HAVE_ATTRIBUTE_unused 1
15103 _ACEOF
15105 else
15106 echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15109 { echo "$as_me:$LINENO: result: no" >&5
15110 echo "${ECHO_T}no" >&6; }
15113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15115 CFLAGS="$saved_CFLAGS"
15118 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
15119 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
15120 saved_CFLAGS="$CFLAGS"
15121 CFLAGS="$CFLAGS -Werror"
15122 cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h. */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
15130 main ()
15134 return 0;
15136 _ACEOF
15137 rm -f conftest.$ac_objext
15138 if { (ac_try="$ac_compile"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142 esac
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_compile") 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } && {
15151 test -z "$ac_c_werror_flag" ||
15152 test ! -s conftest.err
15153 } && test -s conftest.$ac_objext; then
15154 { echo "$as_me:$LINENO: result: yes" >&5
15155 echo "${ECHO_T}yes" >&6; }
15157 cat >>confdefs.h <<_ACEOF
15158 #define HAVE_ATTRIBUTE_always_inline 1
15159 _ACEOF
15161 else
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 { echo "$as_me:$LINENO: result: no" >&5
15166 echo "${ECHO_T}no" >&6; }
15169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171 CFLAGS="$saved_CFLAGS"
15174 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
15175 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
15176 saved_CFLAGS="$CFLAGS"
15177 CFLAGS="$CFLAGS -Werror"
15178 cat >conftest.$ac_ext <<_ACEOF
15179 /* confdefs.h. */
15180 _ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15184 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
15186 main ()
15190 return 0;
15192 _ACEOF
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;;
15198 esac
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_compile") 2>conftest.er1
15201 ac_status=$?
15202 grep -v '^ *+' conftest.er1 >conftest.err
15203 rm -f conftest.er1
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_deprecated 1
15215 _ACEOF
15217 else
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
15227 CFLAGS="$saved_CFLAGS"
15230 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
15231 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
15232 saved_CFLAGS="${CFLAGS}"
15233 CFLAGS="${CFLAGS} -ffunction-sections"
15234 cat >conftest.$ac_ext <<_ACEOF
15235 /* confdefs.h. */
15236 _ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15242 main ()
15244 int x = 1;
15246 return 0;
15248 _ACEOF
15249 rm -f conftest.$ac_objext
15250 if { (ac_try="$ac_compile"
15251 case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15254 esac
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_compile") 2>conftest.er1
15257 ac_status=$?
15258 grep -v '^ *+' conftest.er1 >conftest.err
15259 rm -f conftest.er1
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } && {
15263 test -z "$ac_c_werror_flag" ||
15264 test ! -s conftest.err
15265 } && test -s conftest.$ac_objext; then
15266 { echo "$as_me:$LINENO: result: yes" >&5
15267 echo "${ECHO_T}yes" >&6; }
15268 saved_LDFLAGS="${LDFLAGS}"
15269 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15270 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
15271 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
15272 cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h. */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15280 main ()
15282 int x = 1;
15284 return 0;
15286 _ACEOF
15287 rm -f conftest.$ac_objext conftest$ac_exeext
15288 if { (ac_try="$ac_link"
15289 case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15292 esac
15293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_link") 2>conftest.er1
15295 ac_status=$?
15296 grep -v '^ *+' conftest.er1 >conftest.err
15297 rm -f conftest.er1
15298 cat conftest.err >&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } && {
15301 test -z "$ac_c_werror_flag" ||
15302 test ! -s conftest.err
15303 } && test -s conftest$ac_exeext &&
15304 $as_test_x conftest$ac_exeext; then
15305 { echo "$as_me:$LINENO: result: yes" >&5
15306 echo "${ECHO_T}yes" >&6; }
15307 GC_CFLAGS="-ffunction-sections"
15308 GC_LDFLAGS="-Wl,--gc-sections"
15309 else
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 { echo "$as_me:$LINENO: result: no" >&5
15314 echo "${ECHO_T}no" >&6; }
15318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15319 conftest$ac_exeext conftest.$ac_ext
15320 LDFLAGS="${saved_LDFLAGS}"
15321 else
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; }
15330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15331 CFLAGS="${saved_CFLAGS}"
15335 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
15336 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15337 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15338 { echo "$as_me:$LINENO: result: yes" >&5
15339 echo "${ECHO_T}yes" >&6; }
15340 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15341 else
15342 { echo "$as_me:$LINENO: result: no" >&5
15343 echo "${ECHO_T}no" >&6; }
15344 AST_DECLARATION_AFTER_STATEMENT=
15348 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
15349 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
15350 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15351 { echo "$as_me:$LINENO: result: yes" >&5
15352 echo "${ECHO_T}yes" >&6; }
15353 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
15354 else
15355 { echo "$as_me:$LINENO: result: no" >&5
15356 echo "${ECHO_T}no" >&6; }
15357 AST_NO_STRICT_OVERFLOW=
15361 { echo "$as_me:$LINENO: checking for res_ninit" >&5
15362 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
15363 cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h. */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 #include <resolv.h>
15371 main ()
15373 int foo = res_ninit(NULL);
15375 return 0;
15377 _ACEOF
15378 rm -f conftest.$ac_objext conftest$ac_exeext
15379 if { (ac_try="$ac_link"
15380 case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15383 esac
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_link") 2>conftest.er1
15386 ac_status=$?
15387 grep -v '^ *+' conftest.er1 >conftest.err
15388 rm -f conftest.er1
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } && {
15392 test -z "$ac_c_werror_flag" ||
15393 test ! -s conftest.err
15394 } && test -s conftest$ac_exeext &&
15395 $as_test_x conftest$ac_exeext; then
15396 { echo "$as_me:$LINENO: result: yes" >&5
15397 echo "${ECHO_T}yes" >&6; }
15399 cat >>confdefs.h <<\_ACEOF
15400 #define HAVE_RES_NINIT 1
15401 _ACEOF
15403 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
15404 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h. */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 #include <resolv.h>
15413 main ()
15415 int foo = res_ndestroy(NULL);
15417 return 0;
15419 _ACEOF
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (ac_try="$ac_link"
15422 case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15425 esac
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_link") 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } && {
15434 test -z "$ac_c_werror_flag" ||
15435 test ! -s conftest.err
15436 } && test -s conftest$ac_exeext &&
15437 $as_test_x conftest$ac_exeext; then
15438 { echo "$as_me:$LINENO: result: yes" >&5
15439 echo "${ECHO_T}yes" >&6; }
15441 cat >>confdefs.h <<\_ACEOF
15442 #define HAVE_RES_NDESTROY 1
15443 _ACEOF
15445 else
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 { echo "$as_me:$LINENO: result: no" >&5
15450 echo "${ECHO_T}no" >&6; }
15454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15455 conftest$ac_exeext conftest.$ac_ext
15456 else
15457 echo "$as_me: failed program was:" >&5
15458 sed 's/^/| /' conftest.$ac_ext >&5
15460 { echo "$as_me:$LINENO: result: no" >&5
15461 echo "${ECHO_T}no" >&6; }
15465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15466 conftest$ac_exeext conftest.$ac_ext
15468 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
15469 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
15470 cat >conftest.$ac_ext <<_ACEOF
15471 /* confdefs.h. */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 #include <dlfcn.h>
15478 main ()
15480 int foo = RTLD_NOLOAD;
15482 return 0;
15484 _ACEOF
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (ac_try="$ac_link"
15487 case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_link") 2>conftest.er1
15493 ac_status=$?
15494 grep -v '^ *+' conftest.er1 >conftest.err
15495 rm -f conftest.er1
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } && {
15499 test -z "$ac_c_werror_flag" ||
15500 test ! -s conftest.err
15501 } && test -s conftest$ac_exeext &&
15502 $as_test_x conftest$ac_exeext; then
15503 { echo "$as_me:$LINENO: result: yes" >&5
15504 echo "${ECHO_T}yes" >&6; }
15506 cat >>confdefs.h <<\_ACEOF
15507 #define HAVE_RTLD_NOLOAD 1
15508 _ACEOF
15510 else
15511 echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15514 { echo "$as_me:$LINENO: result: no" >&5
15515 echo "${ECHO_T}no" >&6; }
15519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15520 conftest$ac_exeext conftest.$ac_ext
15522 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
15523 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
15524 cat >conftest.$ac_ext <<_ACEOF
15525 /* confdefs.h. */
15526 _ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h. */
15530 #include <netinet/in.h>
15532 main ()
15534 int foo = IP_MTU_DISCOVER;
15536 return 0;
15538 _ACEOF
15539 rm -f conftest.$ac_objext conftest$ac_exeext
15540 if { (ac_try="$ac_link"
15541 case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15544 esac
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_link") 2>conftest.er1
15547 ac_status=$?
15548 grep -v '^ *+' conftest.er1 >conftest.err
15549 rm -f conftest.er1
15550 cat conftest.err >&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } && {
15553 test -z "$ac_c_werror_flag" ||
15554 test ! -s conftest.err
15555 } && test -s conftest$ac_exeext &&
15556 $as_test_x conftest$ac_exeext; then
15557 { echo "$as_me:$LINENO: result: yes" >&5
15558 echo "${ECHO_T}yes" >&6; }
15560 cat >>confdefs.h <<\_ACEOF
15561 #define HAVE_IP_MTU_DISCOVER 1
15562 _ACEOF
15564 else
15565 echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15568 { echo "$as_me:$LINENO: result: no" >&5
15569 echo "${ECHO_T}no" >&6; }
15573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15574 conftest$ac_exeext conftest.$ac_ext
15576 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15577 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15578 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15579 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15582 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15583 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15584 else
15585 # Is the header compilable?
15586 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
15587 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
15588 cat >conftest.$ac_ext <<_ACEOF
15589 /* confdefs.h. */
15590 _ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15594 $ac_includes_default
15595 #include <libkern/OSAtomic.h>
15596 _ACEOF
15597 rm -f conftest.$ac_objext
15598 if { (ac_try="$ac_compile"
15599 case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15602 esac
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_compile") 2>conftest.er1
15605 ac_status=$?
15606 grep -v '^ *+' conftest.er1 >conftest.err
15607 rm -f conftest.er1
15608 cat conftest.err >&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } && {
15611 test -z "$ac_c_werror_flag" ||
15612 test ! -s conftest.err
15613 } && test -s conftest.$ac_objext; then
15614 ac_header_compiler=yes
15615 else
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 ac_header_compiler=no
15622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15624 echo "${ECHO_T}$ac_header_compiler" >&6; }
15626 # Is the header present?
15627 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
15628 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
15629 cat >conftest.$ac_ext <<_ACEOF
15630 /* confdefs.h. */
15631 _ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h. */
15635 #include <libkern/OSAtomic.h>
15636 _ACEOF
15637 if { (ac_try="$ac_cpp conftest.$ac_ext"
15638 case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15644 ac_status=$?
15645 grep -v '^ *+' conftest.er1 >conftest.err
15646 rm -f conftest.er1
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } >/dev/null && {
15650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15651 test ! -s conftest.err
15652 }; then
15653 ac_header_preproc=yes
15654 else
15655 echo "$as_me: failed program was:" >&5
15656 sed 's/^/| /' conftest.$ac_ext >&5
15658 ac_header_preproc=no
15661 rm -f conftest.err conftest.$ac_ext
15662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15663 echo "${ECHO_T}$ac_header_preproc" >&6; }
15665 # So? What about this header?
15666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15667 yes:no: )
15668 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
15669 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
15671 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
15672 ac_header_preproc=yes
15674 no:yes:* )
15675 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
15676 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
15678 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
15680 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
15682 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
15684 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
15685 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
15686 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
15687 ( cat <<\_ASBOX
15688 ## ------------------------------- ##
15689 ## Report this to www.asterisk.org ##
15690 ## ------------------------------- ##
15691 _ASBOX
15692 ) | sed "s/^/$as_me: WARNING: /" >&2
15694 esac
15695 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15696 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15697 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15698 echo $ECHO_N "(cached) $ECHO_C" >&6
15699 else
15700 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15702 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15703 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15706 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15708 cat >>confdefs.h <<_ACEOF
15709 #define HAVE_OSX_ATOMICS 1
15710 _ACEOF
15716 { echo "$as_me:$LINENO: checking for int" >&5
15717 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
15718 if test "${ac_cv_type_int+set}" = set; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15720 else
15721 cat >conftest.$ac_ext <<_ACEOF
15722 /* confdefs.h. */
15723 _ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h. */
15727 $ac_includes_default
15728 typedef int ac__type_new_;
15730 main ()
15732 if ((ac__type_new_ *) 0)
15733 return 0;
15734 if (sizeof (ac__type_new_))
15735 return 0;
15737 return 0;
15739 _ACEOF
15740 rm -f conftest.$ac_objext
15741 if { (ac_try="$ac_compile"
15742 case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15745 esac
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_compile") 2>conftest.er1
15748 ac_status=$?
15749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } && {
15754 test -z "$ac_c_werror_flag" ||
15755 test ! -s conftest.err
15756 } && test -s conftest.$ac_objext; then
15757 ac_cv_type_int=yes
15758 else
15759 echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15762 ac_cv_type_int=no
15765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15767 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15768 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15770 # The cast to long int works around a bug in the HP C Compiler
15771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15773 # This bug is HP SR number 8606223364.
15774 { echo "$as_me:$LINENO: checking size of int" >&5
15775 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15776 if test "${ac_cv_sizeof_int+set}" = set; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15778 else
15779 if test "$cross_compiling" = yes; then
15780 # Depending upon the size, compute the lo and hi bounds.
15781 cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h. */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 $ac_includes_default
15788 typedef int ac__type_sizeof_;
15790 main ()
15792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15793 test_array [0] = 0
15796 return 0;
15798 _ACEOF
15799 rm -f conftest.$ac_objext
15800 if { (ac_try="$ac_compile"
15801 case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15804 esac
15805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15806 (eval "$ac_compile") 2>conftest.er1
15807 ac_status=$?
15808 grep -v '^ *+' conftest.er1 >conftest.err
15809 rm -f conftest.er1
15810 cat conftest.err >&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } && {
15813 test -z "$ac_c_werror_flag" ||
15814 test ! -s conftest.err
15815 } && test -s conftest.$ac_objext; then
15816 ac_lo=0 ac_mid=0
15817 while :; do
15818 cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h. */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 $ac_includes_default
15825 typedef int ac__type_sizeof_;
15827 main ()
15829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15830 test_array [0] = 0
15833 return 0;
15835 _ACEOF
15836 rm -f conftest.$ac_objext
15837 if { (ac_try="$ac_compile"
15838 case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15841 esac
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_compile") 2>conftest.er1
15844 ac_status=$?
15845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } && {
15850 test -z "$ac_c_werror_flag" ||
15851 test ! -s conftest.err
15852 } && test -s conftest.$ac_objext; then
15853 ac_hi=$ac_mid; break
15854 else
15855 echo "$as_me: failed program was:" >&5
15856 sed 's/^/| /' conftest.$ac_ext >&5
15858 ac_lo=`expr $ac_mid + 1`
15859 if test $ac_lo -le $ac_mid; then
15860 ac_lo= ac_hi=
15861 break
15863 ac_mid=`expr 2 '*' $ac_mid + 1`
15866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15867 done
15868 else
15869 echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15872 cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h. */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 typedef int ac__type_sizeof_;
15881 main ()
15883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15884 test_array [0] = 0
15887 return 0;
15889 _ACEOF
15890 rm -f conftest.$ac_objext
15891 if { (ac_try="$ac_compile"
15892 case "(($ac_try" in
15893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894 *) ac_try_echo=$ac_try;;
15895 esac
15896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15897 (eval "$ac_compile") 2>conftest.er1
15898 ac_status=$?
15899 grep -v '^ *+' conftest.er1 >conftest.err
15900 rm -f conftest.er1
15901 cat conftest.err >&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } && {
15904 test -z "$ac_c_werror_flag" ||
15905 test ! -s conftest.err
15906 } && test -s conftest.$ac_objext; then
15907 ac_hi=-1 ac_mid=-1
15908 while :; do
15909 cat >conftest.$ac_ext <<_ACEOF
15910 /* confdefs.h. */
15911 _ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 $ac_includes_default
15916 typedef int ac__type_sizeof_;
15918 main ()
15920 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15921 test_array [0] = 0
15924 return 0;
15926 _ACEOF
15927 rm -f conftest.$ac_objext
15928 if { (ac_try="$ac_compile"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15932 esac
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_compile") 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest.$ac_objext; then
15944 ac_lo=$ac_mid; break
15945 else
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 ac_hi=`expr '(' $ac_mid ')' - 1`
15950 if test $ac_mid -le $ac_hi; then
15951 ac_lo= ac_hi=
15952 break
15954 ac_mid=`expr 2 '*' $ac_mid`
15957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15958 done
15959 else
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 ac_lo= ac_hi=
15966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15970 # Binary search between lo and hi bounds.
15971 while test "x$ac_lo" != "x$ac_hi"; do
15972 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15973 cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h. */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15979 $ac_includes_default
15980 typedef int ac__type_sizeof_;
15982 main ()
15984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15985 test_array [0] = 0
15988 return 0;
15990 _ACEOF
15991 rm -f conftest.$ac_objext
15992 if { (ac_try="$ac_compile"
15993 case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15996 esac
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_compile") 2>conftest.er1
15999 ac_status=$?
16000 grep -v '^ *+' conftest.er1 >conftest.err
16001 rm -f conftest.er1
16002 cat conftest.err >&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } && {
16005 test -z "$ac_c_werror_flag" ||
16006 test ! -s conftest.err
16007 } && test -s conftest.$ac_objext; then
16008 ac_hi=$ac_mid
16009 else
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 ac_lo=`expr '(' $ac_mid ')' + 1`
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 done
16018 case $ac_lo in
16019 ?*) ac_cv_sizeof_int=$ac_lo;;
16020 '') if test "$ac_cv_type_int" = yes; then
16021 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16022 See \`config.log' for more details." >&5
16023 echo "$as_me: error: cannot compute sizeof (int)
16024 See \`config.log' for more details." >&2;}
16025 { (exit 77); exit 77; }; }
16026 else
16027 ac_cv_sizeof_int=0
16028 fi ;;
16029 esac
16030 else
16031 cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h. */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037 $ac_includes_default
16038 typedef int ac__type_sizeof_;
16039 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16040 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16041 #include <stdio.h>
16042 #include <stdlib.h>
16044 main ()
16047 FILE *f = fopen ("conftest.val", "w");
16048 if (! f)
16049 return 1;
16050 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16052 long int i = longval ();
16053 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16054 return 1;
16055 fprintf (f, "%ld\n", i);
16057 else
16059 unsigned long int i = ulongval ();
16060 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16061 return 1;
16062 fprintf (f, "%lu\n", i);
16064 return ferror (f) || fclose (f) != 0;
16067 return 0;
16069 _ACEOF
16070 rm -f conftest$ac_exeext
16071 if { (ac_try="$ac_link"
16072 case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16075 esac
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_link") 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16081 { (case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16084 esac
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_try") 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16090 ac_cv_sizeof_int=`cat conftest.val`
16091 else
16092 echo "$as_me: program exited with status $ac_status" >&5
16093 echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16096 ( exit $ac_status )
16097 if test "$ac_cv_type_int" = yes; then
16098 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16099 See \`config.log' for more details." >&5
16100 echo "$as_me: error: cannot compute sizeof (int)
16101 See \`config.log' for more details." >&2;}
16102 { (exit 77); exit 77; }; }
16103 else
16104 ac_cv_sizeof_int=0
16107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16109 rm -f conftest.val
16111 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16112 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16116 cat >>confdefs.h <<_ACEOF
16117 #define SIZEOF_INT $ac_cv_sizeof_int
16118 _ACEOF
16122 # do the package library checks now
16125 if test "${USE_ALSA}" != "no"; then
16126 pbxlibdir=""
16127 if test "x${ALSA_DIR}" != "x"; then
16128 if test -d ${ALSA_DIR}/lib; then
16129 pbxlibdir="-L${ALSA_DIR}/lib"
16130 else
16131 pbxlibdir="-L${ALSA_DIR}"
16134 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16135 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16136 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16137 echo $ECHO_N "(cached) $ECHO_C" >&6
16138 else
16139 ac_check_lib_save_LIBS=$LIBS
16140 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16141 cat >conftest.$ac_ext <<_ACEOF
16142 /* confdefs.h. */
16143 _ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16148 /* Override any GCC internal prototype to avoid an error.
16149 Use char because int might match the return type of a GCC
16150 builtin and then its argument prototype would still apply. */
16151 #ifdef __cplusplus
16152 extern "C"
16153 #endif
16154 char snd_spcm_init ();
16156 main ()
16158 return snd_spcm_init ();
16160 return 0;
16162 _ACEOF
16163 rm -f conftest.$ac_objext conftest$ac_exeext
16164 if { (ac_try="$ac_link"
16165 case "(($ac_try" in
16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16168 esac
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170 (eval "$ac_link") 2>conftest.er1
16171 ac_status=$?
16172 grep -v '^ *+' conftest.er1 >conftest.err
16173 rm -f conftest.er1
16174 cat conftest.err >&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } && {
16177 test -z "$ac_c_werror_flag" ||
16178 test ! -s conftest.err
16179 } && test -s conftest$ac_exeext &&
16180 $as_test_x conftest$ac_exeext; then
16181 ac_cv_lib_asound_snd_spcm_init=yes
16182 else
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16186 ac_cv_lib_asound_snd_spcm_init=no
16189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16190 conftest$ac_exeext conftest.$ac_ext
16191 LIBS=$ac_check_lib_save_LIBS
16193 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16194 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16195 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16196 AST_ALSA_FOUND=yes
16197 else
16198 AST_ALSA_FOUND=no
16202 if test "${AST_ALSA_FOUND}" = "yes"; then
16203 ALSA_LIB="-lasound -lm -ldl"
16204 ALSA_HEADER_FOUND="1"
16205 if test "x${ALSA_DIR}" != "x"; then
16206 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
16207 ALSA_INCLUDE="-I${ALSA_DIR}/include"
16208 saved_cppflags="${CPPFLAGS}"
16209 CPPFLAGS="${CPPFLAGS} -I${ALSA_DIR}/include"
16210 if test "xalsa/asoundlib.h" != "x" ; then
16211 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
16212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16213 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16214 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16218 ac_res=`eval echo '${'$as_ac_Header'}'`
16219 { echo "$as_me:$LINENO: result: $ac_res" >&5
16220 echo "${ECHO_T}$ac_res" >&6; }
16221 else
16222 # Is the header compilable?
16223 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
16224 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
16225 cat >conftest.$ac_ext <<_ACEOF
16226 /* confdefs.h. */
16227 _ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16231 $ac_includes_default
16232 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16233 _ACEOF
16234 rm -f conftest.$ac_objext
16235 if { (ac_try="$ac_compile"
16236 case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16239 esac
16240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_compile") 2>conftest.er1
16242 ac_status=$?
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } && {
16248 test -z "$ac_c_werror_flag" ||
16249 test ! -s conftest.err
16250 } && test -s conftest.$ac_objext; then
16251 ac_header_compiler=yes
16252 else
16253 echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16256 ac_header_compiler=no
16259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16261 echo "${ECHO_T}$ac_header_compiler" >&6; }
16263 # Is the header present?
16264 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16265 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16266 cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h. */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16272 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16273 _ACEOF
16274 if { (ac_try="$ac_cpp conftest.$ac_ext"
16275 case "(($ac_try" in
16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277 *) ac_try_echo=$ac_try;;
16278 esac
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16281 ac_status=$?
16282 grep -v '^ *+' conftest.er1 >conftest.err
16283 rm -f conftest.er1
16284 cat conftest.err >&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } >/dev/null && {
16287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16288 test ! -s conftest.err
16289 }; then
16290 ac_header_preproc=yes
16291 else
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 ac_header_preproc=no
16298 rm -f conftest.err conftest.$ac_ext
16299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16300 echo "${ECHO_T}$ac_header_preproc" >&6; }
16302 # So? What about this header?
16303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16304 yes:no: )
16305 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16306 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16308 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16309 ac_header_preproc=yes
16311 no:yes:* )
16312 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16313 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16315 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16317 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16319 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16321 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16322 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16323 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16324 ( cat <<\_ASBOX
16325 ## ------------------------------- ##
16326 ## Report this to www.asterisk.org ##
16327 ## ------------------------------- ##
16328 _ASBOX
16329 ) | sed "s/^/$as_me: WARNING: /" >&2
16331 esac
16332 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16333 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16335 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 else
16337 eval "$as_ac_Header=\$ac_header_preproc"
16339 ac_res=`eval echo '${'$as_ac_Header'}'`
16340 { echo "$as_me:$LINENO: result: $ac_res" >&5
16341 echo "${ECHO_T}$ac_res" >&6; }
16344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16345 ALSA_HEADER_FOUND=1
16346 else
16347 ALSA_HEADER_FOUND=0
16352 CPPFLAGS="${saved_cppflags}"
16353 else
16354 if test "xalsa/asoundlib.h" != "x" ; then
16355 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16356 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16357 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16358 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16362 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16363 else
16364 # Is the header compilable?
16365 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16366 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16367 cat >conftest.$ac_ext <<_ACEOF
16368 /* confdefs.h. */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 $ac_includes_default
16374 #include <alsa/asoundlib.h>
16375 _ACEOF
16376 rm -f conftest.$ac_objext
16377 if { (ac_try="$ac_compile"
16378 case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16381 esac
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_compile") 2>conftest.er1
16384 ac_status=$?
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } && {
16390 test -z "$ac_c_werror_flag" ||
16391 test ! -s conftest.err
16392 } && test -s conftest.$ac_objext; then
16393 ac_header_compiler=yes
16394 else
16395 echo "$as_me: failed program was:" >&5
16396 sed 's/^/| /' conftest.$ac_ext >&5
16398 ac_header_compiler=no
16401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16403 echo "${ECHO_T}$ac_header_compiler" >&6; }
16405 # Is the header present?
16406 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16407 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16408 cat >conftest.$ac_ext <<_ACEOF
16409 /* confdefs.h. */
16410 _ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h. */
16414 #include <alsa/asoundlib.h>
16415 _ACEOF
16416 if { (ac_try="$ac_cpp conftest.$ac_ext"
16417 case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16423 ac_status=$?
16424 grep -v '^ *+' conftest.er1 >conftest.err
16425 rm -f conftest.er1
16426 cat conftest.err >&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } >/dev/null && {
16429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16430 test ! -s conftest.err
16431 }; then
16432 ac_header_preproc=yes
16433 else
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16437 ac_header_preproc=no
16440 rm -f conftest.err conftest.$ac_ext
16441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16442 echo "${ECHO_T}$ac_header_preproc" >&6; }
16444 # So? What about this header?
16445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16446 yes:no: )
16447 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16448 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16450 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16451 ac_header_preproc=yes
16453 no:yes:* )
16454 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16455 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16457 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16459 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16461 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16463 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16465 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16466 ( cat <<\_ASBOX
16467 ## ------------------------------- ##
16468 ## Report this to www.asterisk.org ##
16469 ## ------------------------------- ##
16470 _ASBOX
16471 ) | sed "s/^/$as_me: WARNING: /" >&2
16473 esac
16474 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16475 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16476 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16478 else
16479 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
16481 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16482 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16485 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16486 ALSA_HEADER_FOUND=1
16487 else
16488 ALSA_HEADER_FOUND=0
16494 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16495 if test -n "${ALSA_MANDATORY}" ;
16496 then
16497 { echo "$as_me:$LINENO: ***" >&5
16498 echo "$as_me: ***" >&6;}
16499 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16500 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16501 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16502 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16503 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16504 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16505 exit 1
16507 ALSA_LIB=""
16508 ALSA_INCLUDE=""
16509 PBX_ALSA=0
16510 else
16511 PBX_ALSA=1
16513 cat >>confdefs.h <<_ACEOF
16514 #define HAVE_ALSA 1
16515 _ACEOF
16518 elif test -n "${ALSA_MANDATORY}";
16519 then
16520 { echo "$as_me:$LINENO: ***" >&5
16521 echo "$as_me: ***" >&6;}
16522 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16523 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16524 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16525 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16526 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16527 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16528 exit 1
16534 if test "${USE_CURSES}" != "no"; then
16535 pbxlibdir=""
16536 if test "x${CURSES_DIR}" != "x"; then
16537 if test -d ${CURSES_DIR}/lib; then
16538 pbxlibdir="-L${CURSES_DIR}/lib"
16539 else
16540 pbxlibdir="-L${CURSES_DIR}"
16543 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16544 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16545 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548 ac_check_lib_save_LIBS=$LIBS
16549 LIBS="-lcurses ${pbxlibdir} $LIBS"
16550 cat >conftest.$ac_ext <<_ACEOF
16551 /* confdefs.h. */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16557 /* Override any GCC internal prototype to avoid an error.
16558 Use char because int might match the return type of a GCC
16559 builtin and then its argument prototype would still apply. */
16560 #ifdef __cplusplus
16561 extern "C"
16562 #endif
16563 char initscr ();
16565 main ()
16567 return initscr ();
16569 return 0;
16571 _ACEOF
16572 rm -f conftest.$ac_objext conftest$ac_exeext
16573 if { (ac_try="$ac_link"
16574 case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16577 esac
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_link") 2>conftest.er1
16580 ac_status=$?
16581 grep -v '^ *+' conftest.er1 >conftest.err
16582 rm -f conftest.er1
16583 cat conftest.err >&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } && {
16586 test -z "$ac_c_werror_flag" ||
16587 test ! -s conftest.err
16588 } && test -s conftest$ac_exeext &&
16589 $as_test_x conftest$ac_exeext; then
16590 ac_cv_lib_curses_initscr=yes
16591 else
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16595 ac_cv_lib_curses_initscr=no
16598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16599 conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_lib_save_LIBS
16602 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16603 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16604 if test $ac_cv_lib_curses_initscr = yes; then
16605 AST_CURSES_FOUND=yes
16606 else
16607 AST_CURSES_FOUND=no
16611 if test "${AST_CURSES_FOUND}" = "yes"; then
16612 CURSES_LIB="-lcurses "
16613 CURSES_HEADER_FOUND="1"
16614 if test "x${CURSES_DIR}" != "x"; then
16615 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16616 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16617 saved_cppflags="${CPPFLAGS}"
16618 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16619 if test "xcurses.h" != "x" ; then
16620 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
16621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16622 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16623 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 ac_res=`eval echo '${'$as_ac_Header'}'`
16628 { echo "$as_me:$LINENO: result: $ac_res" >&5
16629 echo "${ECHO_T}$ac_res" >&6; }
16630 else
16631 # Is the header compilable?
16632 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16633 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16634 cat >conftest.$ac_ext <<_ACEOF
16635 /* confdefs.h. */
16636 _ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 $ac_includes_default
16641 #include <${CURSES_DIR}/include/curses.h>
16642 _ACEOF
16643 rm -f conftest.$ac_objext
16644 if { (ac_try="$ac_compile"
16645 case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16648 esac
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_compile") 2>conftest.er1
16651 ac_status=$?
16652 grep -v '^ *+' conftest.er1 >conftest.err
16653 rm -f conftest.er1
16654 cat conftest.err >&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); } && {
16657 test -z "$ac_c_werror_flag" ||
16658 test ! -s conftest.err
16659 } && test -s conftest.$ac_objext; then
16660 ac_header_compiler=yes
16661 else
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16665 ac_header_compiler=no
16668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16670 echo "${ECHO_T}$ac_header_compiler" >&6; }
16672 # Is the header present?
16673 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16674 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16675 cat >conftest.$ac_ext <<_ACEOF
16676 /* confdefs.h. */
16677 _ACEOF
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h. */
16681 #include <${CURSES_DIR}/include/curses.h>
16682 _ACEOF
16683 if { (ac_try="$ac_cpp conftest.$ac_ext"
16684 case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16687 esac
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16690 ac_status=$?
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } >/dev/null && {
16696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16697 test ! -s conftest.err
16698 }; then
16699 ac_header_preproc=yes
16700 else
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16704 ac_header_preproc=no
16707 rm -f conftest.err conftest.$ac_ext
16708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16709 echo "${ECHO_T}$ac_header_preproc" >&6; }
16711 # So? What about this header?
16712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16713 yes:no: )
16714 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16715 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16716 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16717 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16718 ac_header_preproc=yes
16720 no:yes:* )
16721 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16722 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16723 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16724 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16725 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16726 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16727 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16728 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16729 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16730 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16731 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16732 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16733 ( cat <<\_ASBOX
16734 ## ------------------------------- ##
16735 ## Report this to www.asterisk.org ##
16736 ## ------------------------------- ##
16737 _ASBOX
16738 ) | sed "s/^/$as_me: WARNING: /" >&2
16740 esac
16741 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16742 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 else
16746 eval "$as_ac_Header=\$ac_header_preproc"
16748 ac_res=`eval echo '${'$as_ac_Header'}'`
16749 { echo "$as_me:$LINENO: result: $ac_res" >&5
16750 echo "${ECHO_T}$ac_res" >&6; }
16753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16754 CURSES_HEADER_FOUND=1
16755 else
16756 CURSES_HEADER_FOUND=0
16761 CPPFLAGS="${saved_cppflags}"
16762 else
16763 if test "xcurses.h" != "x" ; then
16764 if test "${ac_cv_header_curses_h+set}" = set; then
16765 { echo "$as_me:$LINENO: checking for curses.h" >&5
16766 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16767 if test "${ac_cv_header_curses_h+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16771 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16772 else
16773 # Is the header compilable?
16774 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16775 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16776 cat >conftest.$ac_ext <<_ACEOF
16777 /* confdefs.h. */
16778 _ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16782 $ac_includes_default
16783 #include <curses.h>
16784 _ACEOF
16785 rm -f conftest.$ac_objext
16786 if { (ac_try="$ac_compile"
16787 case "(($ac_try" in
16788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16789 *) ac_try_echo=$ac_try;;
16790 esac
16791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16792 (eval "$ac_compile") 2>conftest.er1
16793 ac_status=$?
16794 grep -v '^ *+' conftest.er1 >conftest.err
16795 rm -f conftest.er1
16796 cat conftest.err >&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); } && {
16799 test -z "$ac_c_werror_flag" ||
16800 test ! -s conftest.err
16801 } && test -s conftest.$ac_objext; then
16802 ac_header_compiler=yes
16803 else
16804 echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16807 ac_header_compiler=no
16810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16812 echo "${ECHO_T}$ac_header_compiler" >&6; }
16814 # Is the header present?
16815 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16816 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16817 cat >conftest.$ac_ext <<_ACEOF
16818 /* confdefs.h. */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16823 #include <curses.h>
16824 _ACEOF
16825 if { (ac_try="$ac_cpp conftest.$ac_ext"
16826 case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16829 esac
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16832 ac_status=$?
16833 grep -v '^ *+' conftest.er1 >conftest.err
16834 rm -f conftest.er1
16835 cat conftest.err >&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } >/dev/null && {
16838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16839 test ! -s conftest.err
16840 }; then
16841 ac_header_preproc=yes
16842 else
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16846 ac_header_preproc=no
16849 rm -f conftest.err conftest.$ac_ext
16850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16851 echo "${ECHO_T}$ac_header_preproc" >&6; }
16853 # So? What about this header?
16854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16855 yes:no: )
16856 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16857 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16858 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16859 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16860 ac_header_preproc=yes
16862 no:yes:* )
16863 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16864 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16865 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16866 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16867 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16868 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16869 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16870 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16871 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16872 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16873 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16874 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16875 ( cat <<\_ASBOX
16876 ## ------------------------------- ##
16877 ## Report this to www.asterisk.org ##
16878 ## ------------------------------- ##
16879 _ASBOX
16880 ) | sed "s/^/$as_me: WARNING: /" >&2
16882 esac
16883 { echo "$as_me:$LINENO: checking for curses.h" >&5
16884 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16885 if test "${ac_cv_header_curses_h+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 else
16888 ac_cv_header_curses_h=$ac_header_preproc
16890 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16891 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16894 if test $ac_cv_header_curses_h = yes; then
16895 CURSES_HEADER_FOUND=1
16896 else
16897 CURSES_HEADER_FOUND=0
16903 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16904 if test -n "${CURSES_MANDATORY}" ;
16905 then
16906 { echo "$as_me:$LINENO: ***" >&5
16907 echo "$as_me: ***" >&6;}
16908 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16909 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16910 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16911 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16912 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16913 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16914 exit 1
16916 CURSES_LIB=""
16917 CURSES_INCLUDE=""
16918 PBX_CURSES=0
16919 else
16920 PBX_CURSES=1
16922 cat >>confdefs.h <<_ACEOF
16923 #define HAVE_CURSES 1
16924 _ACEOF
16927 elif test -n "${CURSES_MANDATORY}";
16928 then
16929 { echo "$as_me:$LINENO: ***" >&5
16930 echo "$as_me: ***" >&6;}
16931 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16932 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16933 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16934 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16935 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16936 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16937 exit 1
16942 if test "x${host_os}" = "xlinux-gnu" ; then
16944 if test "${USE_CAP}" != "no"; then
16945 pbxlibdir=""
16946 if test "x${CAP_DIR}" != "x"; then
16947 if test -d ${CAP_DIR}/lib; then
16948 pbxlibdir="-L${CAP_DIR}/lib"
16949 else
16950 pbxlibdir="-L${CAP_DIR}"
16953 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
16954 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
16955 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16957 else
16958 ac_check_lib_save_LIBS=$LIBS
16959 LIBS="-lcap ${pbxlibdir} $LIBS"
16960 cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h. */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16967 /* Override any GCC internal prototype to avoid an error.
16968 Use char because int might match the return type of a GCC
16969 builtin and then its argument prototype would still apply. */
16970 #ifdef __cplusplus
16971 extern "C"
16972 #endif
16973 char cap_from_text ();
16975 main ()
16977 return cap_from_text ();
16979 return 0;
16981 _ACEOF
16982 rm -f conftest.$ac_objext conftest$ac_exeext
16983 if { (ac_try="$ac_link"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_link") 2>conftest.er1
16990 ac_status=$?
16991 grep -v '^ *+' conftest.er1 >conftest.err
16992 rm -f conftest.er1
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } && {
16996 test -z "$ac_c_werror_flag" ||
16997 test ! -s conftest.err
16998 } && test -s conftest$ac_exeext &&
16999 $as_test_x conftest$ac_exeext; then
17000 ac_cv_lib_cap_cap_from_text=yes
17001 else
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 ac_cv_lib_cap_cap_from_text=no
17008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17009 conftest$ac_exeext conftest.$ac_ext
17010 LIBS=$ac_check_lib_save_LIBS
17012 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
17013 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
17014 if test $ac_cv_lib_cap_cap_from_text = yes; then
17015 AST_CAP_FOUND=yes
17016 else
17017 AST_CAP_FOUND=no
17021 if test "${AST_CAP_FOUND}" = "yes"; then
17022 CAP_LIB="-lcap "
17023 CAP_HEADER_FOUND="1"
17024 if test "x${CAP_DIR}" != "x"; then
17025 CAP_LIB="${pbxlibdir} ${CAP_LIB}"
17026 CAP_INCLUDE="-I${CAP_DIR}/include"
17027 saved_cppflags="${CPPFLAGS}"
17028 CPPFLAGS="${CPPFLAGS} -I${CAP_DIR}/include"
17029 if test "xsys/capability.h" != "x" ; then
17030 as_ac_Header=`echo "ac_cv_header_${CAP_DIR}/include/sys/capability.h" | $as_tr_sh`
17031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17032 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17033 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17037 ac_res=`eval echo '${'$as_ac_Header'}'`
17038 { echo "$as_me:$LINENO: result: $ac_res" >&5
17039 echo "${ECHO_T}$ac_res" >&6; }
17040 else
17041 # Is the header compilable?
17042 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h usability" >&5
17043 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h usability... $ECHO_C" >&6; }
17044 cat >conftest.$ac_ext <<_ACEOF
17045 /* confdefs.h. */
17046 _ACEOF
17047 cat confdefs.h >>conftest.$ac_ext
17048 cat >>conftest.$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17050 $ac_includes_default
17051 #include <${CAP_DIR}/include/sys/capability.h>
17052 _ACEOF
17053 rm -f conftest.$ac_objext
17054 if { (ac_try="$ac_compile"
17055 case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17058 esac
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_compile") 2>conftest.er1
17061 ac_status=$?
17062 grep -v '^ *+' conftest.er1 >conftest.err
17063 rm -f conftest.er1
17064 cat conftest.err >&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } && {
17067 test -z "$ac_c_werror_flag" ||
17068 test ! -s conftest.err
17069 } && test -s conftest.$ac_objext; then
17070 ac_header_compiler=yes
17071 else
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075 ac_header_compiler=no
17078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17080 echo "${ECHO_T}$ac_header_compiler" >&6; }
17082 # Is the header present?
17083 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h presence" >&5
17084 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h presence... $ECHO_C" >&6; }
17085 cat >conftest.$ac_ext <<_ACEOF
17086 /* confdefs.h. */
17087 _ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17091 #include <${CAP_DIR}/include/sys/capability.h>
17092 _ACEOF
17093 if { (ac_try="$ac_cpp conftest.$ac_ext"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17100 ac_status=$?
17101 grep -v '^ *+' conftest.er1 >conftest.err
17102 rm -f conftest.er1
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } >/dev/null && {
17106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17107 test ! -s conftest.err
17108 }; then
17109 ac_header_preproc=yes
17110 else
17111 echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17114 ac_header_preproc=no
17117 rm -f conftest.err conftest.$ac_ext
17118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17119 echo "${ECHO_T}$ac_header_preproc" >&6; }
17121 # So? What about this header?
17122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17123 yes:no: )
17124 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17125 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17126 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&5
17127 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&2;}
17128 ac_header_preproc=yes
17130 no:yes:* )
17131 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&5
17132 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&2;}
17133 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&5
17134 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&2;}
17135 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&5
17136 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&2;}
17137 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17138 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17139 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&5
17140 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&2;}
17141 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&5
17142 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&2;}
17143 ( cat <<\_ASBOX
17144 ## ------------------------------- ##
17145 ## Report this to www.asterisk.org ##
17146 ## ------------------------------- ##
17147 _ASBOX
17148 ) | sed "s/^/$as_me: WARNING: /" >&2
17150 esac
17151 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17152 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 else
17156 eval "$as_ac_Header=\$ac_header_preproc"
17158 ac_res=`eval echo '${'$as_ac_Header'}'`
17159 { echo "$as_me:$LINENO: result: $ac_res" >&5
17160 echo "${ECHO_T}$ac_res" >&6; }
17163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17164 CAP_HEADER_FOUND=1
17165 else
17166 CAP_HEADER_FOUND=0
17171 CPPFLAGS="${saved_cppflags}"
17172 else
17173 if test "xsys/capability.h" != "x" ; then
17174 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17175 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17176 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17177 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17180 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17181 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17182 else
17183 # Is the header compilable?
17184 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
17185 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
17186 cat >conftest.$ac_ext <<_ACEOF
17187 /* confdefs.h. */
17188 _ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h. */
17192 $ac_includes_default
17193 #include <sys/capability.h>
17194 _ACEOF
17195 rm -f conftest.$ac_objext
17196 if { (ac_try="$ac_compile"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200 esac
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_compile") 2>conftest.er1
17203 ac_status=$?
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } && {
17209 test -z "$ac_c_werror_flag" ||
17210 test ! -s conftest.err
17211 } && test -s conftest.$ac_objext; then
17212 ac_header_compiler=yes
17213 else
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 ac_header_compiler=no
17220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17222 echo "${ECHO_T}$ac_header_compiler" >&6; }
17224 # Is the header present?
17225 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
17226 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
17227 cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h. */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17233 #include <sys/capability.h>
17234 _ACEOF
17235 if { (ac_try="$ac_cpp conftest.$ac_ext"
17236 case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17242 ac_status=$?
17243 grep -v '^ *+' conftest.er1 >conftest.err
17244 rm -f conftest.er1
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } >/dev/null && {
17248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17249 test ! -s conftest.err
17250 }; then
17251 ac_header_preproc=yes
17252 else
17253 echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17256 ac_header_preproc=no
17259 rm -f conftest.err conftest.$ac_ext
17260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17261 echo "${ECHO_T}$ac_header_preproc" >&6; }
17263 # So? What about this header?
17264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17265 yes:no: )
17266 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17267 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17268 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
17269 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
17270 ac_header_preproc=yes
17272 no:yes:* )
17273 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
17274 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
17275 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
17276 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
17277 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
17278 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
17279 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17280 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17281 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
17282 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
17283 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
17284 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
17285 ( cat <<\_ASBOX
17286 ## ------------------------------- ##
17287 ## Report this to www.asterisk.org ##
17288 ## ------------------------------- ##
17289 _ASBOX
17290 ) | sed "s/^/$as_me: WARNING: /" >&2
17292 esac
17293 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17294 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17295 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 else
17298 ac_cv_header_sys_capability_h=$ac_header_preproc
17300 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17301 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17304 if test $ac_cv_header_sys_capability_h = yes; then
17305 CAP_HEADER_FOUND=1
17306 else
17307 CAP_HEADER_FOUND=0
17313 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
17314 if test -n "${CAP_MANDATORY}" ;
17315 then
17316 { echo "$as_me:$LINENO: ***" >&5
17317 echo "$as_me: ***" >&6;}
17318 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
17319 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
17320 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
17321 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
17322 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17323 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17324 exit 1
17326 CAP_LIB=""
17327 CAP_INCLUDE=""
17328 PBX_CAP=0
17329 else
17330 PBX_CAP=1
17332 cat >>confdefs.h <<_ACEOF
17333 #define HAVE_CAP 1
17334 _ACEOF
17337 elif test -n "${CAP_MANDATORY}";
17338 then
17339 { echo "$as_me:$LINENO: ***" >&5
17340 echo "$as_me: ***" >&6;}
17341 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
17342 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
17343 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17344 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17345 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17346 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17347 exit 1
17354 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
17355 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
17356 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
17357 saved_cppflags="${CPPFLAGS}"
17358 if test "x${GETIFADDRS_DIR}" != "x"; then
17359 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
17361 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
17363 cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h. */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 #include <ifaddrs.h>
17371 main ()
17373 struct ifaddrs *p; getifaddrs(&p);
17376 return 0;
17378 _ACEOF
17379 rm -f conftest.$ac_objext
17380 if { (ac_try="$ac_compile"
17381 case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17384 esac
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_compile") 2>conftest.er1
17387 ac_status=$?
17388 grep -v '^ *+' conftest.er1 >conftest.err
17389 rm -f conftest.er1
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } && {
17393 test -z "$ac_c_werror_flag" ||
17394 test ! -s conftest.err
17395 } && test -s conftest.$ac_objext; then
17396 { echo "$as_me:$LINENO: result: yes" >&5
17397 echo "${ECHO_T}yes" >&6; }
17398 PBX_GETIFADDRS=1
17400 cat >>confdefs.h <<\_ACEOF
17401 #define HAVE_GETIFADDRS 1
17402 _ACEOF
17405 cat >>confdefs.h <<\_ACEOF
17406 #define HAVE_GETIFADDRS_VERSION
17407 _ACEOF
17410 else
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 { echo "$as_me:$LINENO: result: no" >&5
17415 echo "${ECHO_T}no" >&6; }
17419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17420 CPPFLAGS="${saved_cppflags}"
17424 GSM_INTERNAL="yes"
17426 GSM_SYSTEM="yes"
17427 if test "${USE_GSM}" != "no"; then
17428 if test "${GSM_DIR}" = "internal"; then
17429 GSM_SYSTEM="no"
17430 elif test "${GSM_DIR}" != ""; then
17431 GSM_INTERNAL="no"
17433 if test "${GSM_SYSTEM}" = "yes"; then
17434 gsmlibdir=""
17435 if test "x${GSM_DIR}" != "x"; then
17436 if test -d ${GSM_DIR}/lib; then
17437 gsmlibdir="-L${GSM_DIR}/lib"
17438 else
17439 gsmlibdir="-L${GSM_DIR}"
17442 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17443 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17444 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17445 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 else
17447 ac_check_lib_save_LIBS=$LIBS
17448 LIBS="-lgsm ${gsmlibdir} $LIBS"
17449 cat >conftest.$ac_ext <<_ACEOF
17450 /* confdefs.h. */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17456 /* Override any GCC internal prototype to avoid an error.
17457 Use char because int might match the return type of a GCC
17458 builtin and then its argument prototype would still apply. */
17459 #ifdef __cplusplus
17460 extern "C"
17461 #endif
17462 char gsm_create ();
17464 main ()
17466 return gsm_create ();
17468 return 0;
17470 _ACEOF
17471 rm -f conftest.$ac_objext conftest$ac_exeext
17472 if { (ac_try="$ac_link"
17473 case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17476 esac
17477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_link") 2>conftest.er1
17479 ac_status=$?
17480 grep -v '^ *+' conftest.er1 >conftest.err
17481 rm -f conftest.er1
17482 cat conftest.err >&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } && {
17485 test -z "$ac_c_werror_flag" ||
17486 test ! -s conftest.err
17487 } && test -s conftest$ac_exeext &&
17488 $as_test_x conftest$ac_exeext; then
17489 ac_cv_lib_gsm_gsm_create=yes
17490 else
17491 echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17494 ac_cv_lib_gsm_gsm_create=no
17497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17498 conftest$ac_exeext conftest.$ac_ext
17499 LIBS=$ac_check_lib_save_LIBS
17501 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17502 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17503 if test $ac_cv_lib_gsm_gsm_create = yes; then
17505 cat >>confdefs.h <<_ACEOF
17506 #define HAVE_GSM 1
17507 _ACEOF
17511 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17512 if test "x${GSM_DIR}" != "x" ; then
17513 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
17514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17515 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17516 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 ac_res=`eval echo '${'$as_ac_Header'}'`
17521 { echo "$as_me:$LINENO: result: $ac_res" >&5
17522 echo "${ECHO_T}$ac_res" >&6; }
17523 else
17524 # Is the header compilable?
17525 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17526 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17527 cat >conftest.$ac_ext <<_ACEOF
17528 /* confdefs.h. */
17529 _ACEOF
17530 cat confdefs.h >>conftest.$ac_ext
17531 cat >>conftest.$ac_ext <<_ACEOF
17532 /* end confdefs.h. */
17533 $ac_includes_default
17534 #include <${GSM_DIR}/include/gsm.h>
17535 _ACEOF
17536 rm -f conftest.$ac_objext
17537 if { (ac_try="$ac_compile"
17538 case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17541 esac
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_compile") 2>conftest.er1
17544 ac_status=$?
17545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } && {
17550 test -z "$ac_c_werror_flag" ||
17551 test ! -s conftest.err
17552 } && test -s conftest.$ac_objext; then
17553 ac_header_compiler=yes
17554 else
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17558 ac_header_compiler=no
17561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17563 echo "${ECHO_T}$ac_header_compiler" >&6; }
17565 # Is the header present?
17566 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17567 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17568 cat >conftest.$ac_ext <<_ACEOF
17569 /* confdefs.h. */
17570 _ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17574 #include <${GSM_DIR}/include/gsm.h>
17575 _ACEOF
17576 if { (ac_try="$ac_cpp conftest.$ac_ext"
17577 case "(($ac_try" in
17578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579 *) ac_try_echo=$ac_try;;
17580 esac
17581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17583 ac_status=$?
17584 grep -v '^ *+' conftest.er1 >conftest.err
17585 rm -f conftest.er1
17586 cat conftest.err >&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } >/dev/null && {
17589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17590 test ! -s conftest.err
17591 }; then
17592 ac_header_preproc=yes
17593 else
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17597 ac_header_preproc=no
17600 rm -f conftest.err conftest.$ac_ext
17601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17602 echo "${ECHO_T}$ac_header_preproc" >&6; }
17604 # So? What about this header?
17605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17606 yes:no: )
17607 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17608 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17609 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17610 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17611 ac_header_preproc=yes
17613 no:yes:* )
17614 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17615 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17616 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17617 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17618 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17619 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17620 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17621 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17622 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17623 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17624 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17625 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17626 ( cat <<\_ASBOX
17627 ## ------------------------------- ##
17628 ## Report this to www.asterisk.org ##
17629 ## ------------------------------- ##
17630 _ASBOX
17631 ) | sed "s/^/$as_me: WARNING: /" >&2
17633 esac
17634 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17635 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 else
17639 eval "$as_ac_Header=\$ac_header_preproc"
17641 ac_res=`eval echo '${'$as_ac_Header'}'`
17642 { echo "$as_me:$LINENO: result: $ac_res" >&5
17643 echo "${ECHO_T}$ac_res" >&6; }
17646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17647 GSM_HEADER_FOUND=1
17648 else
17649 GSM_HEADER_FOUND=0
17653 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17655 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17656 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 ac_res=`eval echo '${'$as_ac_Header'}'`
17661 { echo "$as_me:$LINENO: result: $ac_res" >&5
17662 echo "${ECHO_T}$ac_res" >&6; }
17663 else
17664 # Is the header compilable?
17665 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17666 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17667 cat >conftest.$ac_ext <<_ACEOF
17668 /* confdefs.h. */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 $ac_includes_default
17674 #include <${GSM_DIR}/include/gsm/gsm.h>
17675 _ACEOF
17676 rm -f conftest.$ac_objext
17677 if { (ac_try="$ac_compile"
17678 case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17681 esac
17682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683 (eval "$ac_compile") 2>conftest.er1
17684 ac_status=$?
17685 grep -v '^ *+' conftest.er1 >conftest.err
17686 rm -f conftest.er1
17687 cat conftest.err >&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } && {
17690 test -z "$ac_c_werror_flag" ||
17691 test ! -s conftest.err
17692 } && test -s conftest.$ac_objext; then
17693 ac_header_compiler=yes
17694 else
17695 echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17698 ac_header_compiler=no
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17703 echo "${ECHO_T}$ac_header_compiler" >&6; }
17705 # Is the header present?
17706 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17707 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17708 cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h. */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17714 #include <${GSM_DIR}/include/gsm/gsm.h>
17715 _ACEOF
17716 if { (ac_try="$ac_cpp conftest.$ac_ext"
17717 case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17723 ac_status=$?
17724 grep -v '^ *+' conftest.er1 >conftest.err
17725 rm -f conftest.er1
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } >/dev/null && {
17729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17731 }; then
17732 ac_header_preproc=yes
17733 else
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 ac_header_preproc=no
17740 rm -f conftest.err conftest.$ac_ext
17741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17742 echo "${ECHO_T}$ac_header_preproc" >&6; }
17744 # So? What about this header?
17745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17746 yes:no: )
17747 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17748 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17750 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17751 ac_header_preproc=yes
17753 no:yes:* )
17754 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17755 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17756 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17757 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17758 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17759 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17761 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17762 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17763 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17764 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17765 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17766 ( cat <<\_ASBOX
17767 ## ------------------------------- ##
17768 ## Report this to www.asterisk.org ##
17769 ## ------------------------------- ##
17770 _ASBOX
17771 ) | sed "s/^/$as_me: WARNING: /" >&2
17773 esac
17774 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17775 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17777 echo $ECHO_N "(cached) $ECHO_C" >&6
17778 else
17779 eval "$as_ac_Header=\$ac_header_preproc"
17781 ac_res=`eval echo '${'$as_ac_Header'}'`
17782 { echo "$as_me:$LINENO: result: $ac_res" >&5
17783 echo "${ECHO_T}$ac_res" >&6; }
17786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17787 GSM_GSM_HEADER_FOUND=1
17788 else
17789 GSM_GSM_HEADER_FOUND=0
17793 else
17794 if test "${ac_cv_header_gsm_h+set}" = set; then
17795 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17796 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17797 if test "${ac_cv_header_gsm_h+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17801 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17802 else
17803 # Is the header compilable?
17804 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17805 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17806 cat >conftest.$ac_ext <<_ACEOF
17807 /* confdefs.h. */
17808 _ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812 $ac_includes_default
17813 #include <gsm.h>
17814 _ACEOF
17815 rm -f conftest.$ac_objext
17816 if { (ac_try="$ac_compile"
17817 case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17820 esac
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_compile") 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } && {
17829 test -z "$ac_c_werror_flag" ||
17830 test ! -s conftest.err
17831 } && test -s conftest.$ac_objext; then
17832 ac_header_compiler=yes
17833 else
17834 echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.$ac_ext >&5
17837 ac_header_compiler=no
17840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17842 echo "${ECHO_T}$ac_header_compiler" >&6; }
17844 # Is the header present?
17845 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17846 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17847 cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h. */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17853 #include <gsm.h>
17854 _ACEOF
17855 if { (ac_try="$ac_cpp conftest.$ac_ext"
17856 case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17859 esac
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17862 ac_status=$?
17863 grep -v '^ *+' conftest.er1 >conftest.err
17864 rm -f conftest.er1
17865 cat conftest.err >&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } >/dev/null && {
17868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17869 test ! -s conftest.err
17870 }; then
17871 ac_header_preproc=yes
17872 else
17873 echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17876 ac_header_preproc=no
17879 rm -f conftest.err conftest.$ac_ext
17880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17881 echo "${ECHO_T}$ac_header_preproc" >&6; }
17883 # So? What about this header?
17884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17885 yes:no: )
17886 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17887 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17888 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17889 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17890 ac_header_preproc=yes
17892 no:yes:* )
17893 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17894 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17895 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17896 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17897 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17898 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17899 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17900 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17901 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17902 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17903 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17904 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17905 ( cat <<\_ASBOX
17906 ## ------------------------------- ##
17907 ## Report this to www.asterisk.org ##
17908 ## ------------------------------- ##
17909 _ASBOX
17910 ) | sed "s/^/$as_me: WARNING: /" >&2
17912 esac
17913 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17914 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17915 if test "${ac_cv_header_gsm_h+set}" = set; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 else
17918 ac_cv_header_gsm_h=$ac_header_preproc
17920 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17921 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17924 if test $ac_cv_header_gsm_h = yes; then
17925 GSM_HEADER_FOUND=1
17926 else
17927 GSM_HEADER_FOUND=0
17931 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17932 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17933 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17934 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17938 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17939 else
17940 # Is the header compilable?
17941 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17942 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17943 cat >conftest.$ac_ext <<_ACEOF
17944 /* confdefs.h. */
17945 _ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h. */
17949 $ac_includes_default
17950 #include <gsm/gsm.h>
17951 _ACEOF
17952 rm -f conftest.$ac_objext
17953 if { (ac_try="$ac_compile"
17954 case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17957 esac
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_compile") 2>conftest.er1
17960 ac_status=$?
17961 grep -v '^ *+' conftest.er1 >conftest.err
17962 rm -f conftest.er1
17963 cat conftest.err >&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } && {
17966 test -z "$ac_c_werror_flag" ||
17967 test ! -s conftest.err
17968 } && test -s conftest.$ac_objext; then
17969 ac_header_compiler=yes
17970 else
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17974 ac_header_compiler=no
17977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17979 echo "${ECHO_T}$ac_header_compiler" >&6; }
17981 # Is the header present?
17982 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17983 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17984 cat >conftest.$ac_ext <<_ACEOF
17985 /* confdefs.h. */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 #include <gsm/gsm.h>
17991 _ACEOF
17992 if { (ac_try="$ac_cpp conftest.$ac_ext"
17993 case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17996 esac
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17999 ac_status=$?
18000 grep -v '^ *+' conftest.er1 >conftest.err
18001 rm -f conftest.er1
18002 cat conftest.err >&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } >/dev/null && {
18005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18006 test ! -s conftest.err
18007 }; then
18008 ac_header_preproc=yes
18009 else
18010 echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18013 ac_header_preproc=no
18016 rm -f conftest.err conftest.$ac_ext
18017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18018 echo "${ECHO_T}$ac_header_preproc" >&6; }
18020 # So? What about this header?
18021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18022 yes:no: )
18023 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18024 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18025 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
18026 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
18027 ac_header_preproc=yes
18029 no:yes:* )
18030 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
18031 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
18032 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
18033 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
18034 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
18035 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
18036 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
18037 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18038 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
18039 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
18040 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
18041 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
18042 ( cat <<\_ASBOX
18043 ## ------------------------------- ##
18044 ## Report this to www.asterisk.org ##
18045 ## ------------------------------- ##
18046 _ASBOX
18047 ) | sed "s/^/$as_me: WARNING: /" >&2
18049 esac
18050 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
18051 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
18052 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
18053 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 else
18055 ac_cv_header_gsm_gsm_h=$ac_header_preproc
18057 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
18058 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
18061 if test $ac_cv_header_gsm_gsm_h = yes; then
18062 GSM_GSM_HEADER_FOUND=1
18063 else
18064 GSM_GSM_HEADER_FOUND=0
18069 if test "${GSM_HEADER_FOUND}" = "0" ; then
18070 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
18071 if test "x${GSM_MANDATORY}" = "xyes" ; then
18072 { echo "$as_me:$LINENO: ***" >&5
18073 echo "$as_me: ***" >&6;}
18074 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
18075 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
18076 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
18077 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
18078 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
18079 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
18080 exit 1
18084 GSM_OK=0
18085 if test "${GSM_HEADER_FOUND}" = "1" ; then
18087 cat >>confdefs.h <<_ACEOF
18088 #define HAVE_GSM_HEADER 1
18089 _ACEOF
18091 GSM_OK=1
18092 else
18093 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
18095 cat >>confdefs.h <<_ACEOF
18096 #define HAVE_GSM_GSM_HEADER 1
18097 _ACEOF
18099 GSM_OK=1
18102 if test "${GSM_OK}" = "1" ; then
18103 GSM_LIB="-lgsm"
18104 if test "x${GSM_DIR}" != "x"; then
18105 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
18106 GSM_INCLUDE="-I${GSM_DIR}/include"
18108 PBX_GSM=1
18109 GSM_INTERNAL="no"
18113 if test "${GSM_INTERNAL}" = "yes"; then
18114 PBX_GSM=1
18116 cat >>confdefs.h <<_ACEOF
18117 #define HAVE_GSM_HEADER 1
18118 _ACEOF
18124 if test "${USE_IKSEMEL}" != "no"; then
18125 pbxlibdir=""
18126 if test "x${IKSEMEL_DIR}" != "x"; then
18127 if test -d ${IKSEMEL_DIR}/lib; then
18128 pbxlibdir="-L${IKSEMEL_DIR}/lib"
18129 else
18130 pbxlibdir="-L${IKSEMEL_DIR}"
18133 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
18134 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
18135 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
18136 echo $ECHO_N "(cached) $ECHO_C" >&6
18137 else
18138 ac_check_lib_save_LIBS=$LIBS
18139 LIBS="-liksemel ${pbxlibdir} $LIBS"
18140 cat >conftest.$ac_ext <<_ACEOF
18141 /* confdefs.h. */
18142 _ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h. */
18147 /* Override any GCC internal prototype to avoid an error.
18148 Use char because int might match the return type of a GCC
18149 builtin and then its argument prototype would still apply. */
18150 #ifdef __cplusplus
18151 extern "C"
18152 #endif
18153 char iks_start_sasl ();
18155 main ()
18157 return iks_start_sasl ();
18159 return 0;
18161 _ACEOF
18162 rm -f conftest.$ac_objext conftest$ac_exeext
18163 if { (ac_try="$ac_link"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_link") 2>conftest.er1
18170 ac_status=$?
18171 grep -v '^ *+' conftest.er1 >conftest.err
18172 rm -f conftest.er1
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } && {
18176 test -z "$ac_c_werror_flag" ||
18177 test ! -s conftest.err
18178 } && test -s conftest$ac_exeext &&
18179 $as_test_x conftest$ac_exeext; then
18180 ac_cv_lib_iksemel_iks_start_sasl=yes
18181 else
18182 echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 ac_cv_lib_iksemel_iks_start_sasl=no
18188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18189 conftest$ac_exeext conftest.$ac_ext
18190 LIBS=$ac_check_lib_save_LIBS
18192 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
18193 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
18194 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
18195 AST_IKSEMEL_FOUND=yes
18196 else
18197 AST_IKSEMEL_FOUND=no
18201 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
18202 IKSEMEL_LIB="-liksemel "
18203 IKSEMEL_HEADER_FOUND="1"
18204 if test "x${IKSEMEL_DIR}" != "x"; then
18205 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
18206 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
18207 saved_cppflags="${CPPFLAGS}"
18208 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
18209 if test "xiksemel.h" != "x" ; then
18210 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
18211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18212 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18213 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18215 echo $ECHO_N "(cached) $ECHO_C" >&6
18217 ac_res=`eval echo '${'$as_ac_Header'}'`
18218 { echo "$as_me:$LINENO: result: $ac_res" >&5
18219 echo "${ECHO_T}$ac_res" >&6; }
18220 else
18221 # Is the header compilable?
18222 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
18223 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
18224 cat >conftest.$ac_ext <<_ACEOF
18225 /* confdefs.h. */
18226 _ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h. */
18230 $ac_includes_default
18231 #include <${IKSEMEL_DIR}/include/iksemel.h>
18232 _ACEOF
18233 rm -f conftest.$ac_objext
18234 if { (ac_try="$ac_compile"
18235 case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18238 esac
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_compile") 2>conftest.er1
18241 ac_status=$?
18242 grep -v '^ *+' conftest.er1 >conftest.err
18243 rm -f conftest.er1
18244 cat conftest.err >&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } && {
18247 test -z "$ac_c_werror_flag" ||
18248 test ! -s conftest.err
18249 } && test -s conftest.$ac_objext; then
18250 ac_header_compiler=yes
18251 else
18252 echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18255 ac_header_compiler=no
18258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18260 echo "${ECHO_T}$ac_header_compiler" >&6; }
18262 # Is the header present?
18263 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
18264 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
18265 cat >conftest.$ac_ext <<_ACEOF
18266 /* confdefs.h. */
18267 _ACEOF
18268 cat confdefs.h >>conftest.$ac_ext
18269 cat >>conftest.$ac_ext <<_ACEOF
18270 /* end confdefs.h. */
18271 #include <${IKSEMEL_DIR}/include/iksemel.h>
18272 _ACEOF
18273 if { (ac_try="$ac_cpp conftest.$ac_ext"
18274 case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18280 ac_status=$?
18281 grep -v '^ *+' conftest.er1 >conftest.err
18282 rm -f conftest.er1
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } >/dev/null && {
18286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18287 test ! -s conftest.err
18288 }; then
18289 ac_header_preproc=yes
18290 else
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18294 ac_header_preproc=no
18297 rm -f conftest.err conftest.$ac_ext
18298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18299 echo "${ECHO_T}$ac_header_preproc" >&6; }
18301 # So? What about this header?
18302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18303 yes:no: )
18304 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18305 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18306 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
18307 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
18308 ac_header_preproc=yes
18310 no:yes:* )
18311 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
18312 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
18313 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
18314 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
18315 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
18316 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
18317 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18318 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18319 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
18320 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
18321 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
18322 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
18323 ( cat <<\_ASBOX
18324 ## ------------------------------- ##
18325 ## Report this to www.asterisk.org ##
18326 ## ------------------------------- ##
18327 _ASBOX
18328 ) | sed "s/^/$as_me: WARNING: /" >&2
18330 esac
18331 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18332 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 else
18336 eval "$as_ac_Header=\$ac_header_preproc"
18338 ac_res=`eval echo '${'$as_ac_Header'}'`
18339 { echo "$as_me:$LINENO: result: $ac_res" >&5
18340 echo "${ECHO_T}$ac_res" >&6; }
18343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18344 IKSEMEL_HEADER_FOUND=1
18345 else
18346 IKSEMEL_HEADER_FOUND=0
18351 CPPFLAGS="${saved_cppflags}"
18352 else
18353 if test "xiksemel.h" != "x" ; then
18354 if test "${ac_cv_header_iksemel_h+set}" = set; then
18355 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18356 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18357 if test "${ac_cv_header_iksemel_h+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18361 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18362 else
18363 # Is the header compilable?
18364 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18365 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
18366 cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h. */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 $ac_includes_default
18373 #include <iksemel.h>
18374 _ACEOF
18375 rm -f conftest.$ac_objext
18376 if { (ac_try="$ac_compile"
18377 case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_compile") 2>conftest.er1
18383 ac_status=$?
18384 grep -v '^ *+' conftest.er1 >conftest.err
18385 rm -f conftest.er1
18386 cat conftest.err >&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); } && {
18389 test -z "$ac_c_werror_flag" ||
18390 test ! -s conftest.err
18391 } && test -s conftest.$ac_objext; then
18392 ac_header_compiler=yes
18393 else
18394 echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18397 ac_header_compiler=no
18400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18402 echo "${ECHO_T}$ac_header_compiler" >&6; }
18404 # Is the header present?
18405 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18406 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18407 cat >conftest.$ac_ext <<_ACEOF
18408 /* confdefs.h. */
18409 _ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 #include <iksemel.h>
18414 _ACEOF
18415 if { (ac_try="$ac_cpp conftest.$ac_ext"
18416 case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18419 esac
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18422 ac_status=$?
18423 grep -v '^ *+' conftest.er1 >conftest.err
18424 rm -f conftest.er1
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } >/dev/null && {
18428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18429 test ! -s conftest.err
18430 }; then
18431 ac_header_preproc=yes
18432 else
18433 echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18436 ac_header_preproc=no
18439 rm -f conftest.err conftest.$ac_ext
18440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18441 echo "${ECHO_T}$ac_header_preproc" >&6; }
18443 # So? What about this header?
18444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18445 yes:no: )
18446 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18447 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18449 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18450 ac_header_preproc=yes
18452 no:yes:* )
18453 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18454 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18455 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18456 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18457 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18458 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18460 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18461 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18462 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18463 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18464 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18465 ( cat <<\_ASBOX
18466 ## ------------------------------- ##
18467 ## Report this to www.asterisk.org ##
18468 ## ------------------------------- ##
18469 _ASBOX
18470 ) | sed "s/^/$as_me: WARNING: /" >&2
18472 esac
18473 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18474 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18475 if test "${ac_cv_header_iksemel_h+set}" = set; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 else
18478 ac_cv_header_iksemel_h=$ac_header_preproc
18480 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18481 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18484 if test $ac_cv_header_iksemel_h = yes; then
18485 IKSEMEL_HEADER_FOUND=1
18486 else
18487 IKSEMEL_HEADER_FOUND=0
18493 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18494 if test -n "${IKSEMEL_MANDATORY}" ;
18495 then
18496 { echo "$as_me:$LINENO: ***" >&5
18497 echo "$as_me: ***" >&6;}
18498 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18499 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18500 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18501 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18502 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18503 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18504 exit 1
18506 IKSEMEL_LIB=""
18507 IKSEMEL_INCLUDE=""
18508 PBX_IKSEMEL=0
18509 else
18510 PBX_IKSEMEL=1
18512 cat >>confdefs.h <<_ACEOF
18513 #define HAVE_IKSEMEL 1
18514 _ACEOF
18517 elif test -n "${IKSEMEL_MANDATORY}";
18518 then
18519 { echo "$as_me:$LINENO: ***" >&5
18520 echo "$as_me: ***" >&6;}
18521 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18522 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18523 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18524 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18525 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18526 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18527 exit 1
18532 if test "${PBX_IKSEMEL}" = 1; then
18534 if test "${USE_GNUTLS}" != "no"; then
18535 pbxlibdir=""
18536 if test "x${GNUTLS_DIR}" != "x"; then
18537 if test -d ${GNUTLS_DIR}/lib; then
18538 pbxlibdir="-L${GNUTLS_DIR}/lib"
18539 else
18540 pbxlibdir="-L${GNUTLS_DIR}"
18543 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18544 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18545 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18546 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548 ac_check_lib_save_LIBS=$LIBS
18549 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18550 cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h. */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18557 /* Override any GCC internal prototype to avoid an error.
18558 Use char because int might match the return type of a GCC
18559 builtin and then its argument prototype would still apply. */
18560 #ifdef __cplusplus
18561 extern "C"
18562 #endif
18563 char gnutls_bye ();
18565 main ()
18567 return gnutls_bye ();
18569 return 0;
18571 _ACEOF
18572 rm -f conftest.$ac_objext conftest$ac_exeext
18573 if { (ac_try="$ac_link"
18574 case "(($ac_try" in
18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576 *) ac_try_echo=$ac_try;;
18577 esac
18578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579 (eval "$ac_link") 2>conftest.er1
18580 ac_status=$?
18581 grep -v '^ *+' conftest.er1 >conftest.err
18582 rm -f conftest.er1
18583 cat conftest.err >&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); } && {
18586 test -z "$ac_c_werror_flag" ||
18587 test ! -s conftest.err
18588 } && test -s conftest$ac_exeext &&
18589 $as_test_x conftest$ac_exeext; then
18590 ac_cv_lib_gnutls_gnutls_bye=yes
18591 else
18592 echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.$ac_ext >&5
18595 ac_cv_lib_gnutls_gnutls_bye=no
18598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18599 conftest$ac_exeext conftest.$ac_ext
18600 LIBS=$ac_check_lib_save_LIBS
18602 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18603 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18604 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18605 AST_GNUTLS_FOUND=yes
18606 else
18607 AST_GNUTLS_FOUND=no
18611 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18612 GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
18613 GNUTLS_HEADER_FOUND="1"
18614 if test "x${GNUTLS_DIR}" != "x"; then
18615 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
18616 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
18617 saved_cppflags="${CPPFLAGS}"
18618 CPPFLAGS="${CPPFLAGS} -I${GNUTLS_DIR}/include"
18619 if test "xgnutls/gnutls.h" != "x" ; then
18620 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
18621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18622 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18623 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18625 echo $ECHO_N "(cached) $ECHO_C" >&6
18627 ac_res=`eval echo '${'$as_ac_Header'}'`
18628 { echo "$as_me:$LINENO: result: $ac_res" >&5
18629 echo "${ECHO_T}$ac_res" >&6; }
18630 else
18631 # Is the header compilable?
18632 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
18633 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
18634 cat >conftest.$ac_ext <<_ACEOF
18635 /* confdefs.h. */
18636 _ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18640 $ac_includes_default
18641 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18642 _ACEOF
18643 rm -f conftest.$ac_objext
18644 if { (ac_try="$ac_compile"
18645 case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18648 esac
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_compile") 2>conftest.er1
18651 ac_status=$?
18652 grep -v '^ *+' conftest.er1 >conftest.err
18653 rm -f conftest.er1
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } && {
18657 test -z "$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18659 } && test -s conftest.$ac_objext; then
18660 ac_header_compiler=yes
18661 else
18662 echo "$as_me: failed program was:" >&5
18663 sed 's/^/| /' conftest.$ac_ext >&5
18665 ac_header_compiler=no
18668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18670 echo "${ECHO_T}$ac_header_compiler" >&6; }
18672 # Is the header present?
18673 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
18674 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
18675 cat >conftest.$ac_ext <<_ACEOF
18676 /* confdefs.h. */
18677 _ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18681 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18682 _ACEOF
18683 if { (ac_try="$ac_cpp conftest.$ac_ext"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18690 ac_status=$?
18691 grep -v '^ *+' conftest.er1 >conftest.err
18692 rm -f conftest.er1
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } >/dev/null && {
18696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18697 test ! -s conftest.err
18698 }; then
18699 ac_header_preproc=yes
18700 else
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18704 ac_header_preproc=no
18707 rm -f conftest.err conftest.$ac_ext
18708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18709 echo "${ECHO_T}$ac_header_preproc" >&6; }
18711 # So? What about this header?
18712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18713 yes:no: )
18714 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18715 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18716 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
18717 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18718 ac_header_preproc=yes
18720 no:yes:* )
18721 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
18722 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
18723 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18724 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18725 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
18726 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18727 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18728 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18729 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18730 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18731 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18732 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18733 ( cat <<\_ASBOX
18734 ## ------------------------------- ##
18735 ## Report this to www.asterisk.org ##
18736 ## ------------------------------- ##
18737 _ASBOX
18738 ) | sed "s/^/$as_me: WARNING: /" >&2
18740 esac
18741 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18742 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 else
18746 eval "$as_ac_Header=\$ac_header_preproc"
18748 ac_res=`eval echo '${'$as_ac_Header'}'`
18749 { echo "$as_me:$LINENO: result: $ac_res" >&5
18750 echo "${ECHO_T}$ac_res" >&6; }
18753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18754 GNUTLS_HEADER_FOUND=1
18755 else
18756 GNUTLS_HEADER_FOUND=0
18761 CPPFLAGS="${saved_cppflags}"
18762 else
18763 if test "xgnutls/gnutls.h" != "x" ; then
18764 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18765 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18766 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18767 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18770 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18771 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18772 else
18773 # Is the header compilable?
18774 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18775 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18776 cat >conftest.$ac_ext <<_ACEOF
18777 /* confdefs.h. */
18778 _ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18782 $ac_includes_default
18783 #include <gnutls/gnutls.h>
18784 _ACEOF
18785 rm -f conftest.$ac_objext
18786 if { (ac_try="$ac_compile"
18787 case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18790 esac
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_compile") 2>conftest.er1
18793 ac_status=$?
18794 grep -v '^ *+' conftest.er1 >conftest.err
18795 rm -f conftest.er1
18796 cat conftest.err >&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } && {
18799 test -z "$ac_c_werror_flag" ||
18800 test ! -s conftest.err
18801 } && test -s conftest.$ac_objext; then
18802 ac_header_compiler=yes
18803 else
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18807 ac_header_compiler=no
18810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18812 echo "${ECHO_T}$ac_header_compiler" >&6; }
18814 # Is the header present?
18815 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18816 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18817 cat >conftest.$ac_ext <<_ACEOF
18818 /* confdefs.h. */
18819 _ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18823 #include <gnutls/gnutls.h>
18824 _ACEOF
18825 if { (ac_try="$ac_cpp conftest.$ac_ext"
18826 case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18829 esac
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18832 ac_status=$?
18833 grep -v '^ *+' conftest.er1 >conftest.err
18834 rm -f conftest.er1
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } >/dev/null && {
18838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18839 test ! -s conftest.err
18840 }; then
18841 ac_header_preproc=yes
18842 else
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_header_preproc=no
18849 rm -f conftest.err conftest.$ac_ext
18850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18851 echo "${ECHO_T}$ac_header_preproc" >&6; }
18853 # So? What about this header?
18854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18855 yes:no: )
18856 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18857 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18858 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18859 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18860 ac_header_preproc=yes
18862 no:yes:* )
18863 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18864 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18865 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18866 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18867 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18868 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18869 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18870 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18871 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18872 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18873 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18874 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18875 ( cat <<\_ASBOX
18876 ## ------------------------------- ##
18877 ## Report this to www.asterisk.org ##
18878 ## ------------------------------- ##
18879 _ASBOX
18880 ) | sed "s/^/$as_me: WARNING: /" >&2
18882 esac
18883 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18884 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18885 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 else
18888 ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
18890 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18891 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18894 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18895 GNUTLS_HEADER_FOUND=1
18896 else
18897 GNUTLS_HEADER_FOUND=0
18903 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18904 if test -n "${GNUTLS_MANDATORY}" ;
18905 then
18906 { echo "$as_me:$LINENO: ***" >&5
18907 echo "$as_me: ***" >&6;}
18908 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18909 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18910 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18911 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18912 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18913 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18914 exit 1
18916 GNUTLS_LIB=""
18917 GNUTLS_INCLUDE=""
18918 PBX_GNUTLS=0
18919 else
18920 PBX_GNUTLS=1
18922 cat >>confdefs.h <<_ACEOF
18923 #define HAVE_GNUTLS 1
18924 _ACEOF
18927 elif test -n "${GNUTLS_MANDATORY}";
18928 then
18929 { echo "$as_me:$LINENO: ***" >&5
18930 echo "$as_me: ***" >&6;}
18931 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18932 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18933 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18934 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18935 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18936 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18937 exit 1
18943 if test "${USE_IMAP_TK}" != "no"; then
18944 saved_cppflags="${CPPFLAGS}"
18945 saved_libs="${LIBS}"
18946 switch_to_system_on_failure="no"
18947 if test "${IMAP_TK_DIR}" = ""; then
18948 IMAP_TK_DIR=`pwd`"/../imap-2004g"
18949 switch_to_system_on_failure="yes"
18951 if test "${IMAP_TK_DIR}" != "system"; then
18952 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18953 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18954 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
18955 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
18957 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
18958 imap_include="-I${IMAP_TK_DIR}/c-client"
18959 CPPFLAGS="${CPPFLAGS} ${imap_include}"
18960 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
18961 cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h. */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18967 #include "c-client.h"
18968 void mm_searched (MAILSTREAM *stream,unsigned long number)
18971 void mm_exists (MAILSTREAM *stream,unsigned long number)
18974 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18977 void mm_flags (MAILSTREAM *stream,unsigned long number)
18980 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18983 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18986 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18989 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18992 void mm_log (char *string,long errflg)
18995 void mm_dlog (char *string)
18998 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19001 void mm_critical (MAILSTREAM *stream)
19004 void mm_nocritical (MAILSTREAM *stream)
19007 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19010 void mm_fatal (char *string)
19014 main ()
19017 MAILSTREAM *foo = mail_open(NULL, "", 0);
19021 return 0;
19023 _ACEOF
19024 rm -f conftest.$ac_objext conftest$ac_exeext
19025 if { (ac_try="$ac_link"
19026 case "(($ac_try" in
19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19029 esac
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031 (eval "$ac_link") 2>conftest.er1
19032 ac_status=$?
19033 grep -v '^ *+' conftest.er1 >conftest.err
19034 rm -f conftest.er1
19035 cat conftest.err >&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } && {
19038 test -z "$ac_c_werror_flag" ||
19039 test ! -s conftest.err
19040 } && test -s conftest$ac_exeext &&
19041 $as_test_x conftest$ac_exeext; then
19042 ac_cv_imap_tk="yes"
19043 else
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_cv_imap_tk="no"
19051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19052 conftest$ac_exeext conftest.$ac_ext
19053 if test "${ac_cv_imap_tk}" = "yes"; then
19054 cat >conftest.$ac_ext <<_ACEOF
19055 /* confdefs.h. */
19056 _ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19060 #include "c-client.h"
19061 void mm_searched (MAILSTREAM *stream,unsigned long number)
19064 void mm_exists (MAILSTREAM *stream,unsigned long number)
19067 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19070 void mm_flags (MAILSTREAM *stream,unsigned long number)
19073 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19076 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19079 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19082 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19085 void mm_log (char *string,long errflg)
19088 void mm_dlog (char *string)
19091 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19094 void mm_critical (MAILSTREAM *stream)
19097 void mm_nocritical (MAILSTREAM *stream)
19100 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19103 void mm_fatal (char *string)
19107 main ()
19110 long check = mail_expunge_full(NULL, "", 0);
19114 return 0;
19116 _ACEOF
19117 rm -f conftest.$ac_objext conftest$ac_exeext
19118 if { (ac_try="$ac_link"
19119 case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19122 esac
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_link") 2>conftest.er1
19125 ac_status=$?
19126 grep -v '^ *+' conftest.er1 >conftest.err
19127 rm -f conftest.er1
19128 cat conftest.err >&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } && {
19131 test -z "$ac_c_werror_flag" ||
19132 test ! -s conftest.err
19133 } && test -s conftest$ac_exeext &&
19134 $as_test_x conftest$ac_exeext; then
19135 ac_cv_imap_tk2006="yes"
19136 else
19137 echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19140 ac_cv_imap_tk2006="no"
19144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19145 conftest$ac_exeext conftest.$ac_ext
19147 CPPFLAGS="${saved_cppflags}"
19148 LIBS="${saved_libs}"
19149 if test "${ac_cv_imap_tk}" = "no"; then
19150 { echo "$as_me:$LINENO: result: no" >&5
19151 echo "${ECHO_T}no" >&6; }
19152 if test "${switch_to_system_on_failure}" = "yes"; then
19153 IMAP_TK_DIR="system"
19154 else #This means they specified a directory. Search for a package installation there too
19155 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
19156 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
19157 CPPFLAGS="${saved_cppflags}"
19158 LIBS="${saved_libs}"
19159 imap_include="-I${IMAP_TK_DIR}/include"
19160 imap_ldflags="-L${IMAP_TK_DIR}/lib"
19161 imap_libs="-lc-client"
19162 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19163 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
19164 cat >conftest.$ac_ext <<_ACEOF
19165 /* confdefs.h. */
19166 _ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19170 #include "c-client.h"
19171 void mm_searched (MAILSTREAM *stream,unsigned long number)
19174 void mm_exists (MAILSTREAM *stream,unsigned long number)
19177 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19180 void mm_flags (MAILSTREAM *stream,unsigned long number)
19183 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19186 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19189 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19192 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19195 void mm_log (char *string,long errflg)
19198 void mm_dlog (char *string)
19201 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19204 void mm_critical (MAILSTREAM *stream)
19207 void mm_nocritical (MAILSTREAM *stream)
19210 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19213 void mm_fatal (char *string)
19217 main ()
19220 MAILSTREAM *foo = mail_open(NULL, "", 0);
19224 return 0;
19226 _ACEOF
19227 rm -f conftest.$ac_objext conftest$ac_exeext
19228 if { (ac_try="$ac_link"
19229 case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19232 esac
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_link") 2>conftest.er1
19235 ac_status=$?
19236 grep -v '^ *+' conftest.er1 >conftest.err
19237 rm -f conftest.er1
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } && {
19241 test -z "$ac_c_werror_flag" ||
19242 test ! -s conftest.err
19243 } && test -s conftest$ac_exeext &&
19244 $as_test_x conftest$ac_exeext; then
19245 ac_cv_imap_tk="yes"
19246 else
19247 echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19250 ac_cv_imap_tk="no"
19254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19255 conftest$ac_exeext conftest.$ac_ext
19256 if test "${ac_cv_imap_tk}" = "yes"; then
19257 cat >conftest.$ac_ext <<_ACEOF
19258 /* confdefs.h. */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19263 #include "c-client.h"
19264 void mm_searched (MAILSTREAM *stream,unsigned long number)
19267 void mm_exists (MAILSTREAM *stream,unsigned long number)
19270 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19273 void mm_flags (MAILSTREAM *stream,unsigned long number)
19276 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19279 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19282 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19285 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19288 void mm_log (char *string,long errflg)
19291 void mm_dlog (char *string)
19294 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19297 void mm_critical (MAILSTREAM *stream)
19300 void mm_nocritical (MAILSTREAM *stream)
19303 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19306 void mm_fatal (char *string)
19310 main ()
19313 long check = mail_expunge_full(NULL, "", 0);
19317 return 0;
19319 _ACEOF
19320 rm -f conftest.$ac_objext conftest$ac_exeext
19321 if { (ac_try="$ac_link"
19322 case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19325 esac
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_link") 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } && {
19334 test -z "$ac_c_werror_flag" ||
19335 test ! -s conftest.err
19336 } && test -s conftest$ac_exeext &&
19337 $as_test_x conftest$ac_exeext; then
19338 ac_cv_imap_tk2006="yes"
19339 else
19340 echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19343 ac_cv_imap_tk2006="no"
19347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19348 conftest$ac_exeext conftest.$ac_ext
19353 if test "${IMAP_TK_DIR}" = "system"; then
19354 #We will enter here if user specified "system" or if any of above checks failed
19355 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
19356 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
19357 CPPFLAGS="${saved_cppflags}"
19358 LIBS="${saved_libs}"
19359 imap_ldflags=""
19360 imap_libs="-lc-client"
19361 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
19362 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19363 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19364 cat >conftest.$ac_ext <<_ACEOF
19365 /* confdefs.h. */
19366 _ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h. */
19370 #include <stdio.h>
19371 #include <imap/c-client.h>
19372 void mm_searched (MAILSTREAM *stream,unsigned long number)
19375 void mm_exists (MAILSTREAM *stream,unsigned long number)
19378 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19381 void mm_flags (MAILSTREAM *stream,unsigned long number)
19384 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19387 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19390 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19393 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19396 void mm_log (char *string,long errflg)
19399 void mm_dlog (char *string)
19402 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19405 void mm_critical (MAILSTREAM *stream)
19408 void mm_nocritical (MAILSTREAM *stream)
19411 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19414 void mm_fatal (char *string)
19418 main ()
19421 MAILSTREAM *foo = mail_open(NULL, "", 0);
19425 return 0;
19427 _ACEOF
19428 rm -f conftest.$ac_objext conftest$ac_exeext
19429 if { (ac_try="$ac_link"
19430 case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_link") 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } && {
19442 test -z "$ac_c_werror_flag" ||
19443 test ! -s conftest.err
19444 } && test -s conftest$ac_exeext &&
19445 $as_test_x conftest$ac_exeext; then
19446 ac_cv_imap_tk="yes"
19447 else
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19451 ac_cv_imap_tk="no"
19455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19456 conftest$ac_exeext conftest.$ac_ext
19457 if test "${ac_cv_imap_tk}" = "yes"; then
19458 cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h. */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19464 #include <stdio.h>
19465 #include <imap/c-client.h>
19466 void mm_searched (MAILSTREAM *stream,unsigned long number)
19469 void mm_exists (MAILSTREAM *stream,unsigned long number)
19472 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19475 void mm_flags (MAILSTREAM *stream,unsigned long number)
19478 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19481 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19484 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19487 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19490 void mm_log (char *string,long errflg)
19493 void mm_dlog (char *string)
19496 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19499 void mm_critical (MAILSTREAM *stream)
19502 void mm_nocritical (MAILSTREAM *stream)
19505 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19508 void mm_fatal (char *string)
19512 main ()
19515 long check = mail_expunge_full(NULL, "", 0);
19519 return 0;
19521 _ACEOF
19522 rm -f conftest.$ac_objext conftest$ac_exeext
19523 if { (ac_try="$ac_link"
19524 case "(($ac_try" in
19525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526 *) ac_try_echo=$ac_try;;
19527 esac
19528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529 (eval "$ac_link") 2>conftest.er1
19530 ac_status=$?
19531 grep -v '^ *+' conftest.er1 >conftest.err
19532 rm -f conftest.er1
19533 cat conftest.err >&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } && {
19536 test -z "$ac_c_werror_flag" ||
19537 test ! -s conftest.err
19538 } && test -s conftest$ac_exeext &&
19539 $as_test_x conftest$ac_exeext; then
19540 ac_cv_imap_tk2006="yes"
19541 else
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19545 ac_cv_imap_tk2006="no"
19549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19550 conftest$ac_exeext conftest.$ac_ext
19551 else #looking in imap directory didn't work, try c-client
19552 imap_ldflags=""
19553 imap_libs="-lc-client"
19554 imap_include="-DUSE_SYSTEM_CCLIENT"
19555 CPPFLAGS="${saved_cppflags}"
19556 LIBS="${saved_libs}"
19557 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19558 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19559 cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h. */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565 #include <stdio.h>
19566 #include <c-client/c-client.h>
19567 void mm_searched (MAILSTREAM *stream,unsigned long number)
19570 void mm_exists (MAILSTREAM *stream,unsigned long number)
19573 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19576 void mm_flags (MAILSTREAM *stream,unsigned long number)
19579 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19582 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19585 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19588 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19591 void mm_log (char *string,long errflg)
19594 void mm_dlog (char *string)
19597 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19600 void mm_critical (MAILSTREAM *stream)
19603 void mm_nocritical (MAILSTREAM *stream)
19606 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19609 void mm_fatal (char *string)
19613 main ()
19616 MAILSTREAM *foo = mail_open(NULL, "", 0);
19620 return 0;
19622 _ACEOF
19623 rm -f conftest.$ac_objext conftest$ac_exeext
19624 if { (ac_try="$ac_link"
19625 case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19628 esac
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_link") 2>conftest.er1
19631 ac_status=$?
19632 grep -v '^ *+' conftest.er1 >conftest.err
19633 rm -f conftest.er1
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } && {
19637 test -z "$ac_c_werror_flag" ||
19638 test ! -s conftest.err
19639 } && test -s conftest$ac_exeext &&
19640 $as_test_x conftest$ac_exeext; then
19641 ac_cv_imap_tk="yes"
19642 else
19643 echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19646 ac_cv_imap_tk="no"
19650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19651 conftest$ac_exeext conftest.$ac_ext
19652 if test "${ac_cv_imap_tk}" = "yes"; then
19653 cat >conftest.$ac_ext <<_ACEOF
19654 /* confdefs.h. */
19655 _ACEOF
19656 cat confdefs.h >>conftest.$ac_ext
19657 cat >>conftest.$ac_ext <<_ACEOF
19658 /* end confdefs.h. */
19659 #include <stdio.h>
19660 #include <c-client/c-client.h>
19661 void mm_searched (MAILSTREAM *stream,unsigned long number)
19664 void mm_exists (MAILSTREAM *stream,unsigned long number)
19667 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19670 void mm_flags (MAILSTREAM *stream,unsigned long number)
19673 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19676 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19679 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19682 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19685 void mm_log (char *string,long errflg)
19688 void mm_dlog (char *string)
19691 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19694 void mm_critical (MAILSTREAM *stream)
19697 void mm_nocritical (MAILSTREAM *stream)
19700 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19703 void mm_fatal (char *string)
19707 main ()
19710 long check = mail_expunge_full(NULL, "", 0);
19714 return 0;
19716 _ACEOF
19717 rm -f conftest.$ac_objext conftest$ac_exeext
19718 if { (ac_try="$ac_link"
19719 case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_link") 2>conftest.er1
19725 ac_status=$?
19726 grep -v '^ *+' conftest.er1 >conftest.err
19727 rm -f conftest.er1
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest$ac_exeext &&
19734 $as_test_x conftest$ac_exeext; then
19735 ac_cv_imap_tk2006="yes"
19736 else
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ac_cv_imap_tk2006="no"
19744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19745 conftest$ac_exeext conftest.$ac_ext
19749 if test "${ac_cv_imap_tk}" = "yes"; then
19750 { echo "$as_me:$LINENO: result: yes" >&5
19751 echo "${ECHO_T}yes" >&6; }
19752 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
19753 IMAP_TK_INCLUDE="${imap_include}"
19754 PBX_IMAP_TK=1
19756 cat >>confdefs.h <<\_ACEOF
19757 #define HAVE_IMAP_TK 1
19758 _ACEOF
19760 if test "${ac_cv_imap_tk2006}" = "yes"; then
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_IMAP_TK2006 1
19764 _ACEOF
19767 elif test -n "${IMAP_TK_MANDATORY}"; then
19768 { echo "$as_me:$LINENO: result: no" >&5
19769 echo "${ECHO_T}no" >&6; }
19770 { echo "$as_me:$LINENO: ***" >&5
19771 echo "$as_me: ***" >&6;}
19772 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
19773 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
19774 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19775 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19776 { echo "$as_me:$LINENO: *** including --without-imap." >&5
19777 echo "$as_me: *** including --without-imap." >&6;}
19778 exit 1
19779 else
19780 { echo "$as_me:$LINENO: result: no" >&5
19781 echo "${ECHO_T}no" >&6; }
19783 CPPFLAGS="${saved_cppflags}"
19784 LIBS="${saved_libs}"
19787 # Needed by unixodbc
19789 if test "${USE_LTDL}" != "no"; then
19790 pbxlibdir=""
19791 if test "x${LTDL_DIR}" != "x"; then
19792 if test -d ${LTDL_DIR}/lib; then
19793 pbxlibdir="-L${LTDL_DIR}/lib"
19794 else
19795 pbxlibdir="-L${LTDL_DIR}"
19798 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
19799 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
19800 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803 ac_check_lib_save_LIBS=$LIBS
19804 LIBS="-lltdl ${pbxlibdir} $LIBS"
19805 cat >conftest.$ac_ext <<_ACEOF
19806 /* confdefs.h. */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19812 /* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19815 #ifdef __cplusplus
19816 extern "C"
19817 #endif
19818 char lt_dlinit ();
19820 main ()
19822 return lt_dlinit ();
19824 return 0;
19826 _ACEOF
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (ac_try="$ac_link"
19829 case "(($ac_try" in
19830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831 *) ac_try_echo=$ac_try;;
19832 esac
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834 (eval "$ac_link") 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest$ac_exeext &&
19844 $as_test_x conftest$ac_exeext; then
19845 ac_cv_lib_ltdl_lt_dlinit=yes
19846 else
19847 echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19850 ac_cv_lib_ltdl_lt_dlinit=no
19853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19854 conftest$ac_exeext conftest.$ac_ext
19855 LIBS=$ac_check_lib_save_LIBS
19857 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
19858 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
19859 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
19860 AST_LTDL_FOUND=yes
19861 else
19862 AST_LTDL_FOUND=no
19866 if test "${AST_LTDL_FOUND}" = "yes"; then
19867 LTDL_LIB="-lltdl "
19868 LTDL_HEADER_FOUND="1"
19869 if test "x${LTDL_DIR}" != "x"; then
19870 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
19871 LTDL_INCLUDE="-I${LTDL_DIR}/include"
19872 saved_cppflags="${CPPFLAGS}"
19873 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
19874 if test "xltdl.h" != "x" ; then
19875 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" | $as_tr_sh`
19876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19877 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19878 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 ac_res=`eval echo '${'$as_ac_Header'}'`
19883 { echo "$as_me:$LINENO: result: $ac_res" >&5
19884 echo "${ECHO_T}$ac_res" >&6; }
19885 else
19886 # Is the header compilable?
19887 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
19888 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
19889 cat >conftest.$ac_ext <<_ACEOF
19890 /* confdefs.h. */
19891 _ACEOF
19892 cat confdefs.h >>conftest.$ac_ext
19893 cat >>conftest.$ac_ext <<_ACEOF
19894 /* end confdefs.h. */
19895 $ac_includes_default
19896 #include <${LTDL_DIR}/include/ltdl.h>
19897 _ACEOF
19898 rm -f conftest.$ac_objext
19899 if { (ac_try="$ac_compile"
19900 case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19903 esac
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_compile") 2>conftest.er1
19906 ac_status=$?
19907 grep -v '^ *+' conftest.er1 >conftest.err
19908 rm -f conftest.er1
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } && {
19912 test -z "$ac_c_werror_flag" ||
19913 test ! -s conftest.err
19914 } && test -s conftest.$ac_objext; then
19915 ac_header_compiler=yes
19916 else
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19920 ac_header_compiler=no
19923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19925 echo "${ECHO_T}$ac_header_compiler" >&6; }
19927 # Is the header present?
19928 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
19929 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
19930 cat >conftest.$ac_ext <<_ACEOF
19931 /* confdefs.h. */
19932 _ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19936 #include <${LTDL_DIR}/include/ltdl.h>
19937 _ACEOF
19938 if { (ac_try="$ac_cpp conftest.$ac_ext"
19939 case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19942 esac
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19945 ac_status=$?
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } >/dev/null && {
19951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19952 test ! -s conftest.err
19953 }; then
19954 ac_header_preproc=yes
19955 else
19956 echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19959 ac_header_preproc=no
19962 rm -f conftest.err conftest.$ac_ext
19963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19964 echo "${ECHO_T}$ac_header_preproc" >&6; }
19966 # So? What about this header?
19967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19968 yes:no: )
19969 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19970 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
19972 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
19973 ac_header_preproc=yes
19975 no:yes:* )
19976 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
19977 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
19978 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
19979 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
19980 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
19981 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
19982 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
19983 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19984 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
19985 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
19986 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
19987 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
19988 ( cat <<\_ASBOX
19989 ## ------------------------------- ##
19990 ## Report this to www.asterisk.org ##
19991 ## ------------------------------- ##
19992 _ASBOX
19993 ) | sed "s/^/$as_me: WARNING: /" >&2
19995 esac
19996 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19997 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6
20000 else
20001 eval "$as_ac_Header=\$ac_header_preproc"
20003 ac_res=`eval echo '${'$as_ac_Header'}'`
20004 { echo "$as_me:$LINENO: result: $ac_res" >&5
20005 echo "${ECHO_T}$ac_res" >&6; }
20008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20009 LTDL_HEADER_FOUND=1
20010 else
20011 LTDL_HEADER_FOUND=0
20016 CPPFLAGS="${saved_cppflags}"
20017 else
20018 if test "xltdl.h" != "x" ; then
20019 if test "${ac_cv_header_ltdl_h+set}" = set; then
20020 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20021 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20022 if test "${ac_cv_header_ltdl_h+set}" = set; then
20023 echo $ECHO_N "(cached) $ECHO_C" >&6
20025 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20026 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20027 else
20028 # Is the header compilable?
20029 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
20030 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
20031 cat >conftest.$ac_ext <<_ACEOF
20032 /* confdefs.h. */
20033 _ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h. */
20037 $ac_includes_default
20038 #include <ltdl.h>
20039 _ACEOF
20040 rm -f conftest.$ac_objext
20041 if { (ac_try="$ac_compile"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_compile") 2>conftest.er1
20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest.$ac_objext; then
20057 ac_header_compiler=yes
20058 else
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 ac_header_compiler=no
20065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20067 echo "${ECHO_T}$ac_header_compiler" >&6; }
20069 # Is the header present?
20070 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
20071 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
20072 cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h. */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20078 #include <ltdl.h>
20079 _ACEOF
20080 if { (ac_try="$ac_cpp conftest.$ac_ext"
20081 case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20087 ac_status=$?
20088 grep -v '^ *+' conftest.er1 >conftest.err
20089 rm -f conftest.er1
20090 cat conftest.err >&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } >/dev/null && {
20093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20095 }; then
20096 ac_header_preproc=yes
20097 else
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 ac_header_preproc=no
20104 rm -f conftest.err conftest.$ac_ext
20105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20106 echo "${ECHO_T}$ac_header_preproc" >&6; }
20108 # So? What about this header?
20109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20110 yes:no: )
20111 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20112 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20113 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
20114 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
20115 ac_header_preproc=yes
20117 no:yes:* )
20118 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
20119 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
20121 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
20123 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
20124 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
20125 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20126 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
20127 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
20128 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
20129 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
20130 ( cat <<\_ASBOX
20131 ## ------------------------------- ##
20132 ## Report this to www.asterisk.org ##
20133 ## ------------------------------- ##
20134 _ASBOX
20135 ) | sed "s/^/$as_me: WARNING: /" >&2
20137 esac
20138 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20139 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20140 if test "${ac_cv_header_ltdl_h+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143 ac_cv_header_ltdl_h=$ac_header_preproc
20145 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20146 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20149 if test $ac_cv_header_ltdl_h = yes; then
20150 LTDL_HEADER_FOUND=1
20151 else
20152 LTDL_HEADER_FOUND=0
20158 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
20159 if test -n "${LTDL_MANDATORY}" ;
20160 then
20161 { echo "$as_me:$LINENO: ***" >&5
20162 echo "$as_me: ***" >&6;}
20163 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
20164 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
20165 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
20166 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
20167 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20168 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20169 exit 1
20171 LTDL_LIB=""
20172 LTDL_INCLUDE=""
20173 PBX_LTDL=0
20174 else
20175 PBX_LTDL=1
20177 cat >>confdefs.h <<_ACEOF
20178 #define HAVE_LTDL 1
20179 _ACEOF
20182 elif test -n "${LTDL_MANDATORY}";
20183 then
20184 { echo "$as_me:$LINENO: ***" >&5
20185 echo "$as_me: ***" >&6;}
20186 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
20187 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
20188 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20189 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20190 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20191 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20192 exit 1
20197 ac_ext=cpp
20198 ac_cpp='$CXXCPP $CPPFLAGS'
20199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20204 if test "${USE_KDE}" != "no"; then
20205 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
20206 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
20207 saved_libs="${LIBS}"
20208 saved_cppflags="${CPPFLAGS}"
20209 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
20210 if test -d ${KDE_DIR}/lib; then
20211 kdelibdir="${KDE_DIR}/lib"
20212 else
20213 kdelibdir="${KDE_DIR}"
20215 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
20218 cat >conftest.$ac_ext <<_ACEOF
20219 /* confdefs.h. */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 #include "kcrash.h"
20226 main ()
20228 KCrash::defaultCrashHandler(1);
20230 return 0;
20233 _ACEOF
20234 rm -f conftest.$ac_objext conftest$ac_exeext
20235 if { (ac_try="$ac_link"
20236 case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20239 esac
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241 (eval "$ac_link") 2>conftest.er1
20242 ac_status=$?
20243 grep -v '^ *+' conftest.er1 >conftest.err
20244 rm -f conftest.er1
20245 cat conftest.err >&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } && {
20248 test -z "$ac_cxx_werror_flag" ||
20249 test ! -s conftest.err
20250 } && test -s conftest$ac_exeext &&
20251 $as_test_x conftest$ac_exeext; then
20252 ac_cv_lib_kde_crash="yes"
20253 else
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20257 ac_cv_lib_kde_crash="no"
20260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20261 conftest$ac_exeext conftest.$ac_ext
20263 LIBS="${saved_libs}"
20264 CPPFLAGS="${saved_cppflags}"
20266 if test "${ac_cv_lib_kde_crash}" = "yes"; then
20267 { echo "$as_me:$LINENO: result: yes" >&5
20268 echo "${ECHO_T}yes" >&6; }
20269 KDE_LIB="-lkdecore -lkdeui"
20270 if test "${KDE_DIR}" != ""; then
20271 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
20272 KDE_INCLUDE="-I${KDE_DIR}/include"
20274 PBX_KDE=1
20276 cat >>confdefs.h <<\_ACEOF
20277 #define HAVE_LIBKDE 1
20278 _ACEOF
20280 elif test -n "${KDE_MANDATORY}"; then
20281 { echo "$as_me:$LINENO: result: no" >&5
20282 echo "${ECHO_T}no" >&6; }
20283 { echo "$as_me:$LINENO: ***" >&5
20284 echo "$as_me: ***" >&6;}
20285 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
20286 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
20287 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20288 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20289 { echo "$as_me:$LINENO: *** including --without-kde." >&5
20290 echo "$as_me: *** including --without-kde." >&6;}
20291 exit 1
20292 else
20293 { echo "$as_me:$LINENO: result: no" >&5
20294 echo "${ECHO_T}no" >&6; }
20297 if test "${PBX_KDE}" = 1; then
20298 if test -n "$ac_tool_prefix"; then
20299 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
20300 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
20301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20303 if test "${ac_cv_path_KDEINIT+set}" = set; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20305 else
20306 case $KDEINIT in
20307 [\\/]* | ?:[\\/]*)
20308 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
20311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20312 for as_dir in $PATH
20314 IFS=$as_save_IFS
20315 test -z "$as_dir" && as_dir=.
20316 for ac_exec_ext in '' $ac_executable_extensions; do
20317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20318 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
20319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20320 break 2
20322 done
20323 done
20324 IFS=$as_save_IFS
20327 esac
20329 KDEINIT=$ac_cv_path_KDEINIT
20330 if test -n "$KDEINIT"; then
20331 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
20332 echo "${ECHO_T}$KDEINIT" >&6; }
20333 else
20334 { echo "$as_me:$LINENO: result: no" >&5
20335 echo "${ECHO_T}no" >&6; }
20340 if test -z "$ac_cv_path_KDEINIT"; then
20341 ac_pt_KDEINIT=$KDEINIT
20342 # Extract the first word of "kdeinit", so it can be a program name with args.
20343 set dummy kdeinit; ac_word=$2
20344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20346 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20348 else
20349 case $ac_pt_KDEINIT in
20350 [\\/]* | ?:[\\/]*)
20351 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
20354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20355 for as_dir in $PATH
20357 IFS=$as_save_IFS
20358 test -z "$as_dir" && as_dir=.
20359 for ac_exec_ext in '' $ac_executable_extensions; do
20360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20361 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
20362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20363 break 2
20365 done
20366 done
20367 IFS=$as_save_IFS
20370 esac
20372 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
20373 if test -n "$ac_pt_KDEINIT"; then
20374 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
20375 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
20376 else
20377 { echo "$as_me:$LINENO: result: no" >&5
20378 echo "${ECHO_T}no" >&6; }
20381 if test "x$ac_pt_KDEINIT" = x; then
20382 KDEINIT="No"
20383 else
20384 case $cross_compiling:$ac_tool_warned in
20385 yes:)
20386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20387 whose name does not start with the host triplet. If you think this
20388 configuration is useful to you, please write to autoconf@gnu.org." >&5
20389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20390 whose name does not start with the host triplet. If you think this
20391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20392 ac_tool_warned=yes ;;
20393 esac
20394 KDEINIT=$ac_pt_KDEINIT
20396 else
20397 KDEINIT="$ac_cv_path_KDEINIT"
20400 if test ! x"${KDEINIT}" = xNo; then
20401 KDEDIR=$(${DIRNAME} ${KDEINIT})
20402 KDEDIR=$(${DIRNAME} ${KDEDIR})
20407 ac_ext=c
20408 ac_cpp='$CPP $CPPFLAGS'
20409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20415 if test "${USE_MISDN}" != "no"; then
20416 pbxlibdir=""
20417 if test "x${MISDN_DIR}" != "x"; then
20418 if test -d ${MISDN_DIR}/lib; then
20419 pbxlibdir="-L${MISDN_DIR}/lib"
20420 else
20421 pbxlibdir="-L${MISDN_DIR}"
20424 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
20425 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
20426 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
20427 echo $ECHO_N "(cached) $ECHO_C" >&6
20428 else
20429 ac_check_lib_save_LIBS=$LIBS
20430 LIBS="-lmISDN ${pbxlibdir} $LIBS"
20431 cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h. */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20438 /* Override any GCC internal prototype to avoid an error.
20439 Use char because int might match the return type of a GCC
20440 builtin and then its argument prototype would still apply. */
20441 #ifdef __cplusplus
20442 extern "C"
20443 #endif
20444 char mISDN_open ();
20446 main ()
20448 return mISDN_open ();
20450 return 0;
20452 _ACEOF
20453 rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (ac_try="$ac_link"
20455 case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_link") 2>conftest.er1
20461 ac_status=$?
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } && {
20467 test -z "$ac_c_werror_flag" ||
20468 test ! -s conftest.err
20469 } && test -s conftest$ac_exeext &&
20470 $as_test_x conftest$ac_exeext; then
20471 ac_cv_lib_mISDN_mISDN_open=yes
20472 else
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 ac_cv_lib_mISDN_mISDN_open=no
20479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20480 conftest$ac_exeext conftest.$ac_ext
20481 LIBS=$ac_check_lib_save_LIBS
20483 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
20484 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
20485 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
20486 AST_MISDN_FOUND=yes
20487 else
20488 AST_MISDN_FOUND=no
20492 if test "${AST_MISDN_FOUND}" = "yes"; then
20493 MISDN_LIB="-lmISDN "
20494 MISDN_HEADER_FOUND="1"
20495 if test "x${MISDN_DIR}" != "x"; then
20496 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
20497 MISDN_INCLUDE="-I${MISDN_DIR}/include"
20498 saved_cppflags="${CPPFLAGS}"
20499 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
20500 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20501 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
20502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20503 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20504 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20508 ac_res=`eval echo '${'$as_ac_Header'}'`
20509 { echo "$as_me:$LINENO: result: $ac_res" >&5
20510 echo "${ECHO_T}$ac_res" >&6; }
20511 else
20512 # Is the header compilable?
20513 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
20514 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20515 cat >conftest.$ac_ext <<_ACEOF
20516 /* confdefs.h. */
20517 _ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20521 $ac_includes_default
20522 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20523 _ACEOF
20524 rm -f conftest.$ac_objext
20525 if { (ac_try="$ac_compile"
20526 case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20529 esac
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_compile") 2>conftest.er1
20532 ac_status=$?
20533 grep -v '^ *+' conftest.er1 >conftest.err
20534 rm -f conftest.er1
20535 cat conftest.err >&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } && {
20538 test -z "$ac_c_werror_flag" ||
20539 test ! -s conftest.err
20540 } && test -s conftest.$ac_objext; then
20541 ac_header_compiler=yes
20542 else
20543 echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20546 ac_header_compiler=no
20549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20551 echo "${ECHO_T}$ac_header_compiler" >&6; }
20553 # Is the header present?
20554 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
20555 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20556 cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h. */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20563 _ACEOF
20564 if { (ac_try="$ac_cpp conftest.$ac_ext"
20565 case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20568 esac
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20571 ac_status=$?
20572 grep -v '^ *+' conftest.er1 >conftest.err
20573 rm -f conftest.er1
20574 cat conftest.err >&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } >/dev/null && {
20577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20578 test ! -s conftest.err
20579 }; then
20580 ac_header_preproc=yes
20581 else
20582 echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20585 ac_header_preproc=no
20588 rm -f conftest.err conftest.$ac_ext
20589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20590 echo "${ECHO_T}$ac_header_preproc" >&6; }
20592 # So? What about this header?
20593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20594 yes:no: )
20595 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20596 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20597 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20598 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20599 ac_header_preproc=yes
20601 no:yes:* )
20602 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20603 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20604 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20605 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20606 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20607 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20608 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20609 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20610 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20611 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20612 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20613 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20614 ( cat <<\_ASBOX
20615 ## ------------------------------- ##
20616 ## Report this to www.asterisk.org ##
20617 ## ------------------------------- ##
20618 _ASBOX
20619 ) | sed "s/^/$as_me: WARNING: /" >&2
20621 esac
20622 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20623 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20625 echo $ECHO_N "(cached) $ECHO_C" >&6
20626 else
20627 eval "$as_ac_Header=\$ac_header_preproc"
20629 ac_res=`eval echo '${'$as_ac_Header'}'`
20630 { echo "$as_me:$LINENO: result: $ac_res" >&5
20631 echo "${ECHO_T}$ac_res" >&6; }
20634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20635 MISDN_HEADER_FOUND=1
20636 else
20637 MISDN_HEADER_FOUND=0
20642 CPPFLAGS="${saved_cppflags}"
20643 else
20644 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20645 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20646 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20647 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20648 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20652 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20653 else
20654 # Is the header compilable?
20655 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
20656 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20657 cat >conftest.$ac_ext <<_ACEOF
20658 /* confdefs.h. */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20663 $ac_includes_default
20664 #include <mISDNuser/mISDNlib.h>
20665 _ACEOF
20666 rm -f conftest.$ac_objext
20667 if { (ac_try="$ac_compile"
20668 case "(($ac_try" in
20669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670 *) ac_try_echo=$ac_try;;
20671 esac
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673 (eval "$ac_compile") 2>conftest.er1
20674 ac_status=$?
20675 grep -v '^ *+' conftest.er1 >conftest.err
20676 rm -f conftest.er1
20677 cat conftest.err >&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } && {
20680 test -z "$ac_c_werror_flag" ||
20681 test ! -s conftest.err
20682 } && test -s conftest.$ac_objext; then
20683 ac_header_compiler=yes
20684 else
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20688 ac_header_compiler=no
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20693 echo "${ECHO_T}$ac_header_compiler" >&6; }
20695 # Is the header present?
20696 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
20697 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h. */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 #include <mISDNuser/mISDNlib.h>
20705 _ACEOF
20706 if { (ac_try="$ac_cpp conftest.$ac_ext"
20707 case "(($ac_try" in
20708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709 *) ac_try_echo=$ac_try;;
20710 esac
20711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20713 ac_status=$?
20714 grep -v '^ *+' conftest.er1 >conftest.err
20715 rm -f conftest.er1
20716 cat conftest.err >&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } >/dev/null && {
20719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20720 test ! -s conftest.err
20721 }; then
20722 ac_header_preproc=yes
20723 else
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20727 ac_header_preproc=no
20730 rm -f conftest.err conftest.$ac_ext
20731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20732 echo "${ECHO_T}$ac_header_preproc" >&6; }
20734 # So? What about this header?
20735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20736 yes:no: )
20737 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20738 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20739 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20740 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20741 ac_header_preproc=yes
20743 no:yes:* )
20744 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20745 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20746 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20747 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20748 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20749 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20750 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20751 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20753 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20754 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20755 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20756 ( cat <<\_ASBOX
20757 ## ------------------------------- ##
20758 ## Report this to www.asterisk.org ##
20759 ## ------------------------------- ##
20760 _ASBOX
20761 ) | sed "s/^/$as_me: WARNING: /" >&2
20763 esac
20764 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20765 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20766 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20768 else
20769 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
20771 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20772 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20775 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
20776 MISDN_HEADER_FOUND=1
20777 else
20778 MISDN_HEADER_FOUND=0
20784 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
20785 if test -n "${MISDN_MANDATORY}" ;
20786 then
20787 { echo "$as_me:$LINENO: ***" >&5
20788 echo "$as_me: ***" >&6;}
20789 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
20790 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
20791 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
20792 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
20793 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20794 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20795 exit 1
20797 MISDN_LIB=""
20798 MISDN_INCLUDE=""
20799 PBX_MISDN=0
20800 else
20801 PBX_MISDN=1
20803 cat >>confdefs.h <<_ACEOF
20804 #define HAVE_MISDN 1
20805 _ACEOF
20808 elif test -n "${MISDN_MANDATORY}";
20809 then
20810 { echo "$as_me:$LINENO: ***" >&5
20811 echo "$as_me: ***" >&6;}
20812 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
20813 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
20814 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20815 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20816 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20817 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20818 exit 1
20823 if test "${PBX_MISDN}" = 1; then
20825 if test "${USE_ISDNNET}" != "no"; then
20826 pbxlibdir=""
20827 if test "x${ISDNNET_DIR}" != "x"; then
20828 if test -d ${ISDNNET_DIR}/lib; then
20829 pbxlibdir="-L${ISDNNET_DIR}/lib"
20830 else
20831 pbxlibdir="-L${ISDNNET_DIR}"
20834 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
20835 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
20836 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20838 else
20839 ac_check_lib_save_LIBS=$LIBS
20840 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
20841 cat >conftest.$ac_ext <<_ACEOF
20842 /* confdefs.h. */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20848 /* Override any GCC internal prototype to avoid an error.
20849 Use char because int might match the return type of a GCC
20850 builtin and then its argument prototype would still apply. */
20851 #ifdef __cplusplus
20852 extern "C"
20853 #endif
20854 char init_manager ();
20856 main ()
20858 return init_manager ();
20860 return 0;
20862 _ACEOF
20863 rm -f conftest.$ac_objext conftest$ac_exeext
20864 if { (ac_try="$ac_link"
20865 case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20868 esac
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870 (eval "$ac_link") 2>conftest.er1
20871 ac_status=$?
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && {
20877 test -z "$ac_c_werror_flag" ||
20878 test ! -s conftest.err
20879 } && test -s conftest$ac_exeext &&
20880 $as_test_x conftest$ac_exeext; then
20881 ac_cv_lib_isdnnet_init_manager=yes
20882 else
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20886 ac_cv_lib_isdnnet_init_manager=no
20889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20890 conftest$ac_exeext conftest.$ac_ext
20891 LIBS=$ac_check_lib_save_LIBS
20893 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
20894 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
20895 if test $ac_cv_lib_isdnnet_init_manager = yes; then
20896 AST_ISDNNET_FOUND=yes
20897 else
20898 AST_ISDNNET_FOUND=no
20902 if test "${AST_ISDNNET_FOUND}" = "yes"; then
20903 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
20904 ISDNNET_HEADER_FOUND="1"
20905 if test "x${ISDNNET_DIR}" != "x"; then
20906 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
20907 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
20908 saved_cppflags="${CPPFLAGS}"
20909 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include"
20910 if test "xmISDNuser/isdn_net.h" != "x" ; then
20911 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
20912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20913 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
20914 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20916 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 ac_res=`eval echo '${'$as_ac_Header'}'`
20919 { echo "$as_me:$LINENO: result: $ac_res" >&5
20920 echo "${ECHO_T}$ac_res" >&6; }
20921 else
20922 # Is the header compilable?
20923 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
20924 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
20925 cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h. */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20931 $ac_includes_default
20932 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20933 _ACEOF
20934 rm -f conftest.$ac_objext
20935 if { (ac_try="$ac_compile"
20936 case "(($ac_try" in
20937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938 *) ac_try_echo=$ac_try;;
20939 esac
20940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20941 (eval "$ac_compile") 2>conftest.er1
20942 ac_status=$?
20943 grep -v '^ *+' conftest.er1 >conftest.err
20944 rm -f conftest.er1
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_objext; then
20951 ac_header_compiler=yes
20952 else
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 ac_header_compiler=no
20959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20961 echo "${ECHO_T}$ac_header_compiler" >&6; }
20963 # Is the header present?
20964 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
20965 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
20966 cat >conftest.$ac_ext <<_ACEOF
20967 /* confdefs.h. */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20973 _ACEOF
20974 if { (ac_try="$ac_cpp conftest.$ac_ext"
20975 case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20978 esac
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20981 ac_status=$?
20982 grep -v '^ *+' conftest.er1 >conftest.err
20983 rm -f conftest.er1
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } >/dev/null && {
20987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20988 test ! -s conftest.err
20989 }; then
20990 ac_header_preproc=yes
20991 else
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20995 ac_header_preproc=no
20998 rm -f conftest.err conftest.$ac_ext
20999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21000 echo "${ECHO_T}$ac_header_preproc" >&6; }
21002 # So? What about this header?
21003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21004 yes:no: )
21005 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21006 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21007 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21008 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21009 ac_header_preproc=yes
21011 no:yes:* )
21012 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21013 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21014 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21015 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21016 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21017 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21018 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21019 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21020 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21021 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21022 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21023 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21024 ( cat <<\_ASBOX
21025 ## ------------------------------- ##
21026 ## Report this to www.asterisk.org ##
21027 ## ------------------------------- ##
21028 _ASBOX
21029 ) | sed "s/^/$as_me: WARNING: /" >&2
21031 esac
21032 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
21033 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 else
21037 eval "$as_ac_Header=\$ac_header_preproc"
21039 ac_res=`eval echo '${'$as_ac_Header'}'`
21040 { echo "$as_me:$LINENO: result: $ac_res" >&5
21041 echo "${ECHO_T}$ac_res" >&6; }
21044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21045 ISDNNET_HEADER_FOUND=1
21046 else
21047 ISDNNET_HEADER_FOUND=0
21052 CPPFLAGS="${saved_cppflags}"
21053 else
21054 if test "xmISDNuser/isdn_net.h" != "x" ; then
21055 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21056 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21057 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21058 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21061 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21062 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21063 else
21064 # Is the header compilable?
21065 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
21066 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
21067 cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h. */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21073 $ac_includes_default
21074 #include <mISDNuser/isdn_net.h>
21075 _ACEOF
21076 rm -f conftest.$ac_objext
21077 if { (ac_try="$ac_compile"
21078 case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21081 esac
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_compile") 2>conftest.er1
21084 ac_status=$?
21085 grep -v '^ *+' conftest.er1 >conftest.err
21086 rm -f conftest.er1
21087 cat conftest.err >&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); } && {
21090 test -z "$ac_c_werror_flag" ||
21091 test ! -s conftest.err
21092 } && test -s conftest.$ac_objext; then
21093 ac_header_compiler=yes
21094 else
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21098 ac_header_compiler=no
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21103 echo "${ECHO_T}$ac_header_compiler" >&6; }
21105 # Is the header present?
21106 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
21107 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
21108 cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h. */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 #include <mISDNuser/isdn_net.h>
21115 _ACEOF
21116 if { (ac_try="$ac_cpp conftest.$ac_ext"
21117 case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21120 esac
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21123 ac_status=$?
21124 grep -v '^ *+' conftest.er1 >conftest.err
21125 rm -f conftest.er1
21126 cat conftest.err >&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } >/dev/null && {
21129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21130 test ! -s conftest.err
21131 }; then
21132 ac_header_preproc=yes
21133 else
21134 echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21137 ac_header_preproc=no
21140 rm -f conftest.err conftest.$ac_ext
21141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21142 echo "${ECHO_T}$ac_header_preproc" >&6; }
21144 # So? What about this header?
21145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21146 yes:no: )
21147 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21148 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21150 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21151 ac_header_preproc=yes
21153 no:yes:* )
21154 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21155 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21156 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21157 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21158 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21159 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21160 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21161 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21162 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21163 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21165 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21166 ( cat <<\_ASBOX
21167 ## ------------------------------- ##
21168 ## Report this to www.asterisk.org ##
21169 ## ------------------------------- ##
21170 _ASBOX
21171 ) | sed "s/^/$as_me: WARNING: /" >&2
21173 esac
21174 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21175 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21176 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 else
21179 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
21181 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21182 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21185 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
21186 ISDNNET_HEADER_FOUND=1
21187 else
21188 ISDNNET_HEADER_FOUND=0
21194 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
21195 if test -n "${ISDNNET_MANDATORY}" ;
21196 then
21197 { echo "$as_me:$LINENO: ***" >&5
21198 echo "$as_me: ***" >&6;}
21199 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
21200 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
21201 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
21202 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
21203 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21204 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21205 exit 1
21207 ISDNNET_LIB=""
21208 ISDNNET_INCLUDE=""
21209 PBX_ISDNNET=0
21210 else
21211 PBX_ISDNNET=1
21213 cat >>confdefs.h <<_ACEOF
21214 #define HAVE_ISDNNET 1
21215 _ACEOF
21218 elif test -n "${ISDNNET_MANDATORY}";
21219 then
21220 { echo "$as_me:$LINENO: ***" >&5
21221 echo "$as_me: ***" >&6;}
21222 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
21223 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
21224 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21225 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21226 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21227 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21228 exit 1
21233 if test "${USE_SUPPSERV}" != "no"; then
21234 pbxlibdir=""
21235 if test "x${SUPPSERV_DIR}" != "x"; then
21236 if test -d ${SUPPSERV_DIR}/lib; then
21237 pbxlibdir="-L${SUPPSERV_DIR}/lib"
21238 else
21239 pbxlibdir="-L${SUPPSERV_DIR}"
21242 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
21243 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
21244 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 else
21247 ac_check_lib_save_LIBS=$LIBS
21248 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
21249 cat >conftest.$ac_ext <<_ACEOF
21250 /* confdefs.h. */
21251 _ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21256 /* Override any GCC internal prototype to avoid an error.
21257 Use char because int might match the return type of a GCC
21258 builtin and then its argument prototype would still apply. */
21259 #ifdef __cplusplus
21260 extern "C"
21261 #endif
21262 char encodeFac ();
21264 main ()
21266 return encodeFac ();
21268 return 0;
21270 _ACEOF
21271 rm -f conftest.$ac_objext conftest$ac_exeext
21272 if { (ac_try="$ac_link"
21273 case "(($ac_try" in
21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21276 esac
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_link") 2>conftest.er1
21279 ac_status=$?
21280 grep -v '^ *+' conftest.er1 >conftest.err
21281 rm -f conftest.er1
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } && {
21285 test -z "$ac_c_werror_flag" ||
21286 test ! -s conftest.err
21287 } && test -s conftest$ac_exeext &&
21288 $as_test_x conftest$ac_exeext; then
21289 ac_cv_lib_suppserv_encodeFac=yes
21290 else
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 ac_cv_lib_suppserv_encodeFac=no
21297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21298 conftest$ac_exeext conftest.$ac_ext
21299 LIBS=$ac_check_lib_save_LIBS
21301 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
21302 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
21303 if test $ac_cv_lib_suppserv_encodeFac = yes; then
21304 AST_SUPPSERV_FOUND=yes
21305 else
21306 AST_SUPPSERV_FOUND=no
21310 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
21311 SUPPSERV_LIB="-lsuppserv "
21312 SUPPSERV_HEADER_FOUND="1"
21313 if test "x${SUPPSERV_DIR}" != "x"; then
21314 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
21315 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
21316 saved_cppflags="${CPPFLAGS}"
21317 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
21318 if test "xmISDNuser/suppserv.h" != "x" ; then
21319 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
21320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21321 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21322 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21324 echo $ECHO_N "(cached) $ECHO_C" >&6
21326 ac_res=`eval echo '${'$as_ac_Header'}'`
21327 { echo "$as_me:$LINENO: result: $ac_res" >&5
21328 echo "${ECHO_T}$ac_res" >&6; }
21329 else
21330 # Is the header compilable?
21331 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
21332 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21333 cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h. */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339 $ac_includes_default
21340 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21341 _ACEOF
21342 rm -f conftest.$ac_objext
21343 if { (ac_try="$ac_compile"
21344 case "(($ac_try" in
21345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21346 *) ac_try_echo=$ac_try;;
21347 esac
21348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21349 (eval "$ac_compile") 2>conftest.er1
21350 ac_status=$?
21351 grep -v '^ *+' conftest.er1 >conftest.err
21352 rm -f conftest.er1
21353 cat conftest.err >&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } && {
21356 test -z "$ac_c_werror_flag" ||
21357 test ! -s conftest.err
21358 } && test -s conftest.$ac_objext; then
21359 ac_header_compiler=yes
21360 else
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21364 ac_header_compiler=no
21367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21369 echo "${ECHO_T}$ac_header_compiler" >&6; }
21371 # Is the header present?
21372 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
21373 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21374 cat >conftest.$ac_ext <<_ACEOF
21375 /* confdefs.h. */
21376 _ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21380 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21381 _ACEOF
21382 if { (ac_try="$ac_cpp conftest.$ac_ext"
21383 case "(($ac_try" in
21384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385 *) ac_try_echo=$ac_try;;
21386 esac
21387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21389 ac_status=$?
21390 grep -v '^ *+' conftest.er1 >conftest.err
21391 rm -f conftest.er1
21392 cat conftest.err >&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } >/dev/null && {
21395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21396 test ! -s conftest.err
21397 }; then
21398 ac_header_preproc=yes
21399 else
21400 echo "$as_me: failed program was:" >&5
21401 sed 's/^/| /' conftest.$ac_ext >&5
21403 ac_header_preproc=no
21406 rm -f conftest.err conftest.$ac_ext
21407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21408 echo "${ECHO_T}$ac_header_preproc" >&6; }
21410 # So? What about this header?
21411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21412 yes:no: )
21413 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21414 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21415 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21416 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21417 ac_header_preproc=yes
21419 no:yes:* )
21420 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
21421 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21422 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21423 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21424 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21425 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21426 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21427 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21428 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21429 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21430 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21431 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21432 ( cat <<\_ASBOX
21433 ## ------------------------------- ##
21434 ## Report this to www.asterisk.org ##
21435 ## ------------------------------- ##
21436 _ASBOX
21437 ) | sed "s/^/$as_me: WARNING: /" >&2
21439 esac
21440 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21441 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21444 else
21445 eval "$as_ac_Header=\$ac_header_preproc"
21447 ac_res=`eval echo '${'$as_ac_Header'}'`
21448 { echo "$as_me:$LINENO: result: $ac_res" >&5
21449 echo "${ECHO_T}$ac_res" >&6; }
21452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21453 SUPPSERV_HEADER_FOUND=1
21454 else
21455 SUPPSERV_HEADER_FOUND=0
21460 CPPFLAGS="${saved_cppflags}"
21461 else
21462 if test "xmISDNuser/suppserv.h" != "x" ; then
21463 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21464 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21465 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21466 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21469 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21470 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21471 else
21472 # Is the header compilable?
21473 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
21474 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21475 cat >conftest.$ac_ext <<_ACEOF
21476 /* confdefs.h. */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 $ac_includes_default
21482 #include <mISDNuser/suppserv.h>
21483 _ACEOF
21484 rm -f conftest.$ac_objext
21485 if { (ac_try="$ac_compile"
21486 case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21489 esac
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_compile") 2>conftest.er1
21492 ac_status=$?
21493 grep -v '^ *+' conftest.er1 >conftest.err
21494 rm -f conftest.er1
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } && {
21498 test -z "$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21500 } && test -s conftest.$ac_objext; then
21501 ac_header_compiler=yes
21502 else
21503 echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21506 ac_header_compiler=no
21509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21511 echo "${ECHO_T}$ac_header_compiler" >&6; }
21513 # Is the header present?
21514 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
21515 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21516 cat >conftest.$ac_ext <<_ACEOF
21517 /* confdefs.h. */
21518 _ACEOF
21519 cat confdefs.h >>conftest.$ac_ext
21520 cat >>conftest.$ac_ext <<_ACEOF
21521 /* end confdefs.h. */
21522 #include <mISDNuser/suppserv.h>
21523 _ACEOF
21524 if { (ac_try="$ac_cpp conftest.$ac_ext"
21525 case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21528 esac
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21531 ac_status=$?
21532 grep -v '^ *+' conftest.er1 >conftest.err
21533 rm -f conftest.er1
21534 cat conftest.err >&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } >/dev/null && {
21537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 }; then
21540 ac_header_preproc=yes
21541 else
21542 echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21545 ac_header_preproc=no
21548 rm -f conftest.err conftest.$ac_ext
21549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21550 echo "${ECHO_T}$ac_header_preproc" >&6; }
21552 # So? What about this header?
21553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21554 yes:no: )
21555 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21556 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21557 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21558 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21559 ac_header_preproc=yes
21561 no:yes:* )
21562 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
21563 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21564 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21565 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21566 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21567 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21568 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21569 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21570 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21571 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21572 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21573 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21574 ( cat <<\_ASBOX
21575 ## ------------------------------- ##
21576 ## Report this to www.asterisk.org ##
21577 ## ------------------------------- ##
21578 _ASBOX
21579 ) | sed "s/^/$as_me: WARNING: /" >&2
21581 esac
21582 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21583 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21584 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21585 echo $ECHO_N "(cached) $ECHO_C" >&6
21586 else
21587 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
21589 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21590 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21593 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
21594 SUPPSERV_HEADER_FOUND=1
21595 else
21596 SUPPSERV_HEADER_FOUND=0
21602 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
21603 if test -n "${SUPPSERV_MANDATORY}" ;
21604 then
21605 { echo "$as_me:$LINENO: ***" >&5
21606 echo "$as_me: ***" >&6;}
21607 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
21608 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
21609 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
21610 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
21611 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21612 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21613 exit 1
21615 SUPPSERV_LIB=""
21616 SUPPSERV_INCLUDE=""
21617 PBX_SUPPSERV=0
21618 else
21619 PBX_SUPPSERV=1
21621 cat >>confdefs.h <<_ACEOF
21622 #define HAVE_SUPPSERV 1
21623 _ACEOF
21626 elif test -n "${SUPPSERV_MANDATORY}";
21627 then
21628 { echo "$as_me:$LINENO: ***" >&5
21629 echo "$as_me: ***" >&6;}
21630 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
21631 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
21632 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21633 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21634 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21635 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21636 exit 1
21640 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21641 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21642 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21643 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21644 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21647 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21648 else
21649 # Is the header compilable?
21650 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
21651 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
21652 cat >conftest.$ac_ext <<_ACEOF
21653 /* confdefs.h. */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21658 $ac_includes_default
21659 #include <linux/mISDNdsp.h>
21660 _ACEOF
21661 rm -f conftest.$ac_objext
21662 if { (ac_try="$ac_compile"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21666 esac
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_compile") 2>conftest.er1
21669 ac_status=$?
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } && {
21675 test -z "$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21677 } && test -s conftest.$ac_objext; then
21678 ac_header_compiler=yes
21679 else
21680 echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 ac_header_compiler=no
21686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21688 echo "${ECHO_T}$ac_header_compiler" >&6; }
21690 # Is the header present?
21691 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
21692 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
21693 cat >conftest.$ac_ext <<_ACEOF
21694 /* confdefs.h. */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21699 #include <linux/mISDNdsp.h>
21700 _ACEOF
21701 if { (ac_try="$ac_cpp conftest.$ac_ext"
21702 case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21705 esac
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21708 ac_status=$?
21709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } >/dev/null && {
21714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21716 }; then
21717 ac_header_preproc=yes
21718 else
21719 echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 ac_header_preproc=no
21725 rm -f conftest.err conftest.$ac_ext
21726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21727 echo "${ECHO_T}$ac_header_preproc" >&6; }
21729 # So? What about this header?
21730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21731 yes:no: )
21732 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21733 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21734 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
21735 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
21736 ac_header_preproc=yes
21738 no:yes:* )
21739 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
21740 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
21741 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
21742 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
21743 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
21744 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
21745 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
21746 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
21748 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
21750 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
21751 ( cat <<\_ASBOX
21752 ## ------------------------------- ##
21753 ## Report this to www.asterisk.org ##
21754 ## ------------------------------- ##
21755 _ASBOX
21756 ) | sed "s/^/$as_me: WARNING: /" >&2
21758 esac
21759 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21760 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21761 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21763 else
21764 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
21766 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21767 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21770 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
21772 cat >>confdefs.h <<_ACEOF
21773 #define MISDN_1_2 1
21774 _ACEOF
21782 if test "${USE_NBS}" != "no"; then
21783 pbxlibdir=""
21784 if test "x${NBS_DIR}" != "x"; then
21785 if test -d ${NBS_DIR}/lib; then
21786 pbxlibdir="-L${NBS_DIR}/lib"
21787 else
21788 pbxlibdir="-L${NBS_DIR}"
21791 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
21792 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
21793 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
21794 echo $ECHO_N "(cached) $ECHO_C" >&6
21795 else
21796 ac_check_lib_save_LIBS=$LIBS
21797 LIBS="-lnbs ${pbxlibdir} $LIBS"
21798 cat >conftest.$ac_ext <<_ACEOF
21799 /* confdefs.h. */
21800 _ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h. */
21805 /* Override any GCC internal prototype to avoid an error.
21806 Use char because int might match the return type of a GCC
21807 builtin and then its argument prototype would still apply. */
21808 #ifdef __cplusplus
21809 extern "C"
21810 #endif
21811 char nbs_connect ();
21813 main ()
21815 return nbs_connect ();
21817 return 0;
21819 _ACEOF
21820 rm -f conftest.$ac_objext conftest$ac_exeext
21821 if { (ac_try="$ac_link"
21822 case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21825 esac
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_link") 2>conftest.er1
21828 ac_status=$?
21829 grep -v '^ *+' conftest.er1 >conftest.err
21830 rm -f conftest.er1
21831 cat conftest.err >&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } && {
21834 test -z "$ac_c_werror_flag" ||
21835 test ! -s conftest.err
21836 } && test -s conftest$ac_exeext &&
21837 $as_test_x conftest$ac_exeext; then
21838 ac_cv_lib_nbs_nbs_connect=yes
21839 else
21840 echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21843 ac_cv_lib_nbs_nbs_connect=no
21846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21847 conftest$ac_exeext conftest.$ac_ext
21848 LIBS=$ac_check_lib_save_LIBS
21850 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
21851 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
21852 if test $ac_cv_lib_nbs_nbs_connect = yes; then
21853 AST_NBS_FOUND=yes
21854 else
21855 AST_NBS_FOUND=no
21859 if test "${AST_NBS_FOUND}" = "yes"; then
21860 NBS_LIB="-lnbs "
21861 NBS_HEADER_FOUND="1"
21862 if test "x${NBS_DIR}" != "x"; then
21863 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
21864 NBS_INCLUDE="-I${NBS_DIR}/include"
21865 saved_cppflags="${CPPFLAGS}"
21866 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include"
21867 if test "xnbs.h" != "x" ; then
21868 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
21869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21870 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21871 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
21875 ac_res=`eval echo '${'$as_ac_Header'}'`
21876 { echo "$as_me:$LINENO: result: $ac_res" >&5
21877 echo "${ECHO_T}$ac_res" >&6; }
21878 else
21879 # Is the header compilable?
21880 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
21881 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
21882 cat >conftest.$ac_ext <<_ACEOF
21883 /* confdefs.h. */
21884 _ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h. */
21888 $ac_includes_default
21889 #include <${NBS_DIR}/include/nbs.h>
21890 _ACEOF
21891 rm -f conftest.$ac_objext
21892 if { (ac_try="$ac_compile"
21893 case "(($ac_try" in
21894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895 *) ac_try_echo=$ac_try;;
21896 esac
21897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898 (eval "$ac_compile") 2>conftest.er1
21899 ac_status=$?
21900 grep -v '^ *+' conftest.er1 >conftest.err
21901 rm -f conftest.er1
21902 cat conftest.err >&5
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } && {
21905 test -z "$ac_c_werror_flag" ||
21906 test ! -s conftest.err
21907 } && test -s conftest.$ac_objext; then
21908 ac_header_compiler=yes
21909 else
21910 echo "$as_me: failed program was:" >&5
21911 sed 's/^/| /' conftest.$ac_ext >&5
21913 ac_header_compiler=no
21916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21918 echo "${ECHO_T}$ac_header_compiler" >&6; }
21920 # Is the header present?
21921 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
21922 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
21923 cat >conftest.$ac_ext <<_ACEOF
21924 /* confdefs.h. */
21925 _ACEOF
21926 cat confdefs.h >>conftest.$ac_ext
21927 cat >>conftest.$ac_ext <<_ACEOF
21928 /* end confdefs.h. */
21929 #include <${NBS_DIR}/include/nbs.h>
21930 _ACEOF
21931 if { (ac_try="$ac_cpp conftest.$ac_ext"
21932 case "(($ac_try" in
21933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934 *) ac_try_echo=$ac_try;;
21935 esac
21936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21938 ac_status=$?
21939 grep -v '^ *+' conftest.er1 >conftest.err
21940 rm -f conftest.er1
21941 cat conftest.err >&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } >/dev/null && {
21944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21945 test ! -s conftest.err
21946 }; then
21947 ac_header_preproc=yes
21948 else
21949 echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21952 ac_header_preproc=no
21955 rm -f conftest.err conftest.$ac_ext
21956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21957 echo "${ECHO_T}$ac_header_preproc" >&6; }
21959 # So? What about this header?
21960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21961 yes:no: )
21962 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21963 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21964 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
21965 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
21966 ac_header_preproc=yes
21968 no:yes:* )
21969 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
21970 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
21971 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
21972 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
21973 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
21974 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
21975 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
21976 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21977 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
21978 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
21979 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
21980 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
21981 ( cat <<\_ASBOX
21982 ## ------------------------------- ##
21983 ## Report this to www.asterisk.org ##
21984 ## ------------------------------- ##
21985 _ASBOX
21986 ) | sed "s/^/$as_me: WARNING: /" >&2
21988 esac
21989 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21990 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21992 echo $ECHO_N "(cached) $ECHO_C" >&6
21993 else
21994 eval "$as_ac_Header=\$ac_header_preproc"
21996 ac_res=`eval echo '${'$as_ac_Header'}'`
21997 { echo "$as_me:$LINENO: result: $ac_res" >&5
21998 echo "${ECHO_T}$ac_res" >&6; }
22001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22002 NBS_HEADER_FOUND=1
22003 else
22004 NBS_HEADER_FOUND=0
22009 CPPFLAGS="${saved_cppflags}"
22010 else
22011 if test "xnbs.h" != "x" ; then
22012 if test "${ac_cv_header_nbs_h+set}" = set; then
22013 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22014 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22015 if test "${ac_cv_header_nbs_h+set}" = set; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22019 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22020 else
22021 # Is the header compilable?
22022 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
22023 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
22024 cat >conftest.$ac_ext <<_ACEOF
22025 /* confdefs.h. */
22026 _ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h. */
22030 $ac_includes_default
22031 #include <nbs.h>
22032 _ACEOF
22033 rm -f conftest.$ac_objext
22034 if { (ac_try="$ac_compile"
22035 case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22038 esac
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_compile") 2>conftest.er1
22041 ac_status=$?
22042 grep -v '^ *+' conftest.er1 >conftest.err
22043 rm -f conftest.er1
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } && {
22047 test -z "$ac_c_werror_flag" ||
22048 test ! -s conftest.err
22049 } && test -s conftest.$ac_objext; then
22050 ac_header_compiler=yes
22051 else
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 ac_header_compiler=no
22058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22060 echo "${ECHO_T}$ac_header_compiler" >&6; }
22062 # Is the header present?
22063 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
22064 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
22065 cat >conftest.$ac_ext <<_ACEOF
22066 /* confdefs.h. */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22071 #include <nbs.h>
22072 _ACEOF
22073 if { (ac_try="$ac_cpp conftest.$ac_ext"
22074 case "(($ac_try" in
22075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076 *) ac_try_echo=$ac_try;;
22077 esac
22078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22080 ac_status=$?
22081 grep -v '^ *+' conftest.er1 >conftest.err
22082 rm -f conftest.er1
22083 cat conftest.err >&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } >/dev/null && {
22086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22087 test ! -s conftest.err
22088 }; then
22089 ac_header_preproc=yes
22090 else
22091 echo "$as_me: failed program was:" >&5
22092 sed 's/^/| /' conftest.$ac_ext >&5
22094 ac_header_preproc=no
22097 rm -f conftest.err conftest.$ac_ext
22098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22099 echo "${ECHO_T}$ac_header_preproc" >&6; }
22101 # So? What about this header?
22102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22103 yes:no: )
22104 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22105 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
22107 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
22108 ac_header_preproc=yes
22110 no:yes:* )
22111 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
22112 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
22113 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
22114 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
22115 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
22116 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
22117 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
22118 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22119 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
22120 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
22121 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
22122 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
22123 ( cat <<\_ASBOX
22124 ## ------------------------------- ##
22125 ## Report this to www.asterisk.org ##
22126 ## ------------------------------- ##
22127 _ASBOX
22128 ) | sed "s/^/$as_me: WARNING: /" >&2
22130 esac
22131 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22132 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22133 if test "${ac_cv_header_nbs_h+set}" = set; then
22134 echo $ECHO_N "(cached) $ECHO_C" >&6
22135 else
22136 ac_cv_header_nbs_h=$ac_header_preproc
22138 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22139 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22142 if test $ac_cv_header_nbs_h = yes; then
22143 NBS_HEADER_FOUND=1
22144 else
22145 NBS_HEADER_FOUND=0
22151 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
22152 if test -n "${NBS_MANDATORY}" ;
22153 then
22154 { echo "$as_me:$LINENO: ***" >&5
22155 echo "$as_me: ***" >&6;}
22156 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
22157 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
22158 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
22159 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
22160 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22161 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22162 exit 1
22164 NBS_LIB=""
22165 NBS_INCLUDE=""
22166 PBX_NBS=0
22167 else
22168 PBX_NBS=1
22170 cat >>confdefs.h <<_ACEOF
22171 #define HAVE_NBS 1
22172 _ACEOF
22175 elif test -n "${NBS_MANDATORY}";
22176 then
22177 { echo "$as_me:$LINENO: ***" >&5
22178 echo "$as_me: ***" >&6;}
22179 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
22180 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
22181 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22182 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22183 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22184 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22185 exit 1
22191 if test "${USE_NCURSES}" != "no"; then
22192 pbxlibdir=""
22193 if test "x${NCURSES_DIR}" != "x"; then
22194 if test -d ${NCURSES_DIR}/lib; then
22195 pbxlibdir="-L${NCURSES_DIR}/lib"
22196 else
22197 pbxlibdir="-L${NCURSES_DIR}"
22200 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
22201 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
22202 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
22203 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 else
22205 ac_check_lib_save_LIBS=$LIBS
22206 LIBS="-lncurses ${pbxlibdir} $LIBS"
22207 cat >conftest.$ac_ext <<_ACEOF
22208 /* confdefs.h. */
22209 _ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h. */
22214 /* Override any GCC internal prototype to avoid an error.
22215 Use char because int might match the return type of a GCC
22216 builtin and then its argument prototype would still apply. */
22217 #ifdef __cplusplus
22218 extern "C"
22219 #endif
22220 char initscr ();
22222 main ()
22224 return initscr ();
22226 return 0;
22228 _ACEOF
22229 rm -f conftest.$ac_objext conftest$ac_exeext
22230 if { (ac_try="$ac_link"
22231 case "(($ac_try" in
22232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22233 *) ac_try_echo=$ac_try;;
22234 esac
22235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22236 (eval "$ac_link") 2>conftest.er1
22237 ac_status=$?
22238 grep -v '^ *+' conftest.er1 >conftest.err
22239 rm -f conftest.er1
22240 cat conftest.err >&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } && {
22243 test -z "$ac_c_werror_flag" ||
22244 test ! -s conftest.err
22245 } && test -s conftest$ac_exeext &&
22246 $as_test_x conftest$ac_exeext; then
22247 ac_cv_lib_ncurses_initscr=yes
22248 else
22249 echo "$as_me: failed program was:" >&5
22250 sed 's/^/| /' conftest.$ac_ext >&5
22252 ac_cv_lib_ncurses_initscr=no
22255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22256 conftest$ac_exeext conftest.$ac_ext
22257 LIBS=$ac_check_lib_save_LIBS
22259 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
22260 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
22261 if test $ac_cv_lib_ncurses_initscr = yes; then
22262 AST_NCURSES_FOUND=yes
22263 else
22264 AST_NCURSES_FOUND=no
22268 if test "${AST_NCURSES_FOUND}" = "yes"; then
22269 NCURSES_LIB="-lncurses "
22270 NCURSES_HEADER_FOUND="1"
22271 if test "x${NCURSES_DIR}" != "x"; then
22272 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
22273 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
22274 saved_cppflags="${CPPFLAGS}"
22275 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
22276 if test "xcurses.h" != "x" ; then
22277 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
22278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22279 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22280 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22282 echo $ECHO_N "(cached) $ECHO_C" >&6
22284 ac_res=`eval echo '${'$as_ac_Header'}'`
22285 { echo "$as_me:$LINENO: result: $ac_res" >&5
22286 echo "${ECHO_T}$ac_res" >&6; }
22287 else
22288 # Is the header compilable?
22289 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
22290 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
22291 cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h. */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 $ac_includes_default
22298 #include <${NCURSES_DIR}/include/curses.h>
22299 _ACEOF
22300 rm -f conftest.$ac_objext
22301 if { (ac_try="$ac_compile"
22302 case "(($ac_try" in
22303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22305 esac
22306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307 (eval "$ac_compile") 2>conftest.er1
22308 ac_status=$?
22309 grep -v '^ *+' conftest.er1 >conftest.err
22310 rm -f conftest.er1
22311 cat conftest.err >&5
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); } && {
22314 test -z "$ac_c_werror_flag" ||
22315 test ! -s conftest.err
22316 } && test -s conftest.$ac_objext; then
22317 ac_header_compiler=yes
22318 else
22319 echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22322 ac_header_compiler=no
22325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22327 echo "${ECHO_T}$ac_header_compiler" >&6; }
22329 # Is the header present?
22330 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
22331 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
22332 cat >conftest.$ac_ext <<_ACEOF
22333 /* confdefs.h. */
22334 _ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h. */
22338 #include <${NCURSES_DIR}/include/curses.h>
22339 _ACEOF
22340 if { (ac_try="$ac_cpp conftest.$ac_ext"
22341 case "(($ac_try" in
22342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343 *) ac_try_echo=$ac_try;;
22344 esac
22345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22347 ac_status=$?
22348 grep -v '^ *+' conftest.er1 >conftest.err
22349 rm -f conftest.er1
22350 cat conftest.err >&5
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); } >/dev/null && {
22353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22354 test ! -s conftest.err
22355 }; then
22356 ac_header_preproc=yes
22357 else
22358 echo "$as_me: failed program was:" >&5
22359 sed 's/^/| /' conftest.$ac_ext >&5
22361 ac_header_preproc=no
22364 rm -f conftest.err conftest.$ac_ext
22365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22366 echo "${ECHO_T}$ac_header_preproc" >&6; }
22368 # So? What about this header?
22369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22370 yes:no: )
22371 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22372 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22373 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
22374 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
22375 ac_header_preproc=yes
22377 no:yes:* )
22378 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
22379 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
22380 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
22381 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
22382 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
22383 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
22384 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
22385 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22386 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
22387 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
22388 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
22389 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
22390 ( cat <<\_ASBOX
22391 ## ------------------------------- ##
22392 ## Report this to www.asterisk.org ##
22393 ## ------------------------------- ##
22394 _ASBOX
22395 ) | sed "s/^/$as_me: WARNING: /" >&2
22397 esac
22398 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22399 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22401 echo $ECHO_N "(cached) $ECHO_C" >&6
22402 else
22403 eval "$as_ac_Header=\$ac_header_preproc"
22405 ac_res=`eval echo '${'$as_ac_Header'}'`
22406 { echo "$as_me:$LINENO: result: $ac_res" >&5
22407 echo "${ECHO_T}$ac_res" >&6; }
22410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22411 NCURSES_HEADER_FOUND=1
22412 else
22413 NCURSES_HEADER_FOUND=0
22418 CPPFLAGS="${saved_cppflags}"
22419 else
22420 if test "xcurses.h" != "x" ; then
22421 if test "${ac_cv_header_curses_h+set}" = set; then
22422 { echo "$as_me:$LINENO: checking for curses.h" >&5
22423 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22424 if test "${ac_cv_header_curses_h+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22427 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22428 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22429 else
22430 # Is the header compilable?
22431 { echo "$as_me:$LINENO: checking curses.h usability" >&5
22432 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
22433 cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h. */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22439 $ac_includes_default
22440 #include <curses.h>
22441 _ACEOF
22442 rm -f conftest.$ac_objext
22443 if { (ac_try="$ac_compile"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_compile") 2>conftest.er1
22450 ac_status=$?
22451 grep -v '^ *+' conftest.er1 >conftest.err
22452 rm -f conftest.er1
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } && {
22456 test -z "$ac_c_werror_flag" ||
22457 test ! -s conftest.err
22458 } && test -s conftest.$ac_objext; then
22459 ac_header_compiler=yes
22460 else
22461 echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22464 ac_header_compiler=no
22467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22469 echo "${ECHO_T}$ac_header_compiler" >&6; }
22471 # Is the header present?
22472 { echo "$as_me:$LINENO: checking curses.h presence" >&5
22473 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
22474 cat >conftest.$ac_ext <<_ACEOF
22475 /* confdefs.h. */
22476 _ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h. */
22480 #include <curses.h>
22481 _ACEOF
22482 if { (ac_try="$ac_cpp conftest.$ac_ext"
22483 case "(($ac_try" in
22484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22486 esac
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22489 ac_status=$?
22490 grep -v '^ *+' conftest.er1 >conftest.err
22491 rm -f conftest.er1
22492 cat conftest.err >&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } >/dev/null && {
22495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22496 test ! -s conftest.err
22497 }; then
22498 ac_header_preproc=yes
22499 else
22500 echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22503 ac_header_preproc=no
22506 rm -f conftest.err conftest.$ac_ext
22507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22508 echo "${ECHO_T}$ac_header_preproc" >&6; }
22510 # So? What about this header?
22511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22512 yes:no: )
22513 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22514 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22515 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
22516 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
22517 ac_header_preproc=yes
22519 no:yes:* )
22520 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
22521 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
22522 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
22523 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
22524 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
22525 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
22526 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
22527 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22528 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
22529 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
22530 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
22531 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
22532 ( cat <<\_ASBOX
22533 ## ------------------------------- ##
22534 ## Report this to www.asterisk.org ##
22535 ## ------------------------------- ##
22536 _ASBOX
22537 ) | sed "s/^/$as_me: WARNING: /" >&2
22539 esac
22540 { echo "$as_me:$LINENO: checking for curses.h" >&5
22541 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22542 if test "${ac_cv_header_curses_h+set}" = set; then
22543 echo $ECHO_N "(cached) $ECHO_C" >&6
22544 else
22545 ac_cv_header_curses_h=$ac_header_preproc
22547 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22548 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22551 if test $ac_cv_header_curses_h = yes; then
22552 NCURSES_HEADER_FOUND=1
22553 else
22554 NCURSES_HEADER_FOUND=0
22560 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
22561 if test -n "${NCURSES_MANDATORY}" ;
22562 then
22563 { echo "$as_me:$LINENO: ***" >&5
22564 echo "$as_me: ***" >&6;}
22565 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
22566 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
22567 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
22568 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
22569 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22570 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22571 exit 1
22573 NCURSES_LIB=""
22574 NCURSES_INCLUDE=""
22575 PBX_NCURSES=0
22576 else
22577 PBX_NCURSES=1
22579 cat >>confdefs.h <<_ACEOF
22580 #define HAVE_NCURSES 1
22581 _ACEOF
22584 elif test -n "${NCURSES_MANDATORY}";
22585 then
22586 { echo "$as_me:$LINENO: ***" >&5
22587 echo "$as_me: ***" >&6;}
22588 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
22589 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
22590 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22591 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22592 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22593 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22594 exit 1
22599 NETSNMP_CONFIG=No
22600 if test "${USE_NETSNMP}" != "no"; then
22601 if test "x${NETSNMP_DIR}" != "x"; then
22602 if test -n "$ac_tool_prefix"; then
22603 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22604 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22607 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22608 echo $ECHO_N "(cached) $ECHO_C" >&6
22609 else
22610 case $NETSNMP_CONFIG in
22611 [\\/]* | ?:[\\/]*)
22612 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22616 for as_dir in ${NETSNMP_DIR}/bin
22618 IFS=$as_save_IFS
22619 test -z "$as_dir" && as_dir=.
22620 for ac_exec_ext in '' $ac_executable_extensions; do
22621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22622 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22624 break 2
22626 done
22627 done
22628 IFS=$as_save_IFS
22631 esac
22633 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22634 if test -n "$NETSNMP_CONFIG"; then
22635 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22636 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22637 else
22638 { echo "$as_me:$LINENO: result: no" >&5
22639 echo "${ECHO_T}no" >&6; }
22644 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22645 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22646 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22647 set dummy net-snmp-config; ac_word=$2
22648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22650 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22651 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 else
22653 case $ac_pt_NETSNMP_CONFIG in
22654 [\\/]* | ?:[\\/]*)
22655 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22659 for as_dir in ${NETSNMP_DIR}/bin
22661 IFS=$as_save_IFS
22662 test -z "$as_dir" && as_dir=.
22663 for ac_exec_ext in '' $ac_executable_extensions; do
22664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22665 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22667 break 2
22669 done
22670 done
22671 IFS=$as_save_IFS
22674 esac
22676 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22677 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22678 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22679 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22680 else
22681 { echo "$as_me:$LINENO: result: no" >&5
22682 echo "${ECHO_T}no" >&6; }
22685 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22686 NETSNMP_CONFIG="No"
22687 else
22688 case $cross_compiling:$ac_tool_warned in
22689 yes:)
22690 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22691 whose name does not start with the host triplet. If you think this
22692 configuration is useful to you, please write to autoconf@gnu.org." >&5
22693 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22694 whose name does not start with the host triplet. If you think this
22695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22696 ac_tool_warned=yes ;;
22697 esac
22698 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22700 else
22701 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22704 if test x"${NETSNMP_CONFIG}" = xNo; then
22705 { echo "$as_me:$LINENO: ***" >&5
22706 echo "$as_me: ***" >&6;}
22707 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
22708 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
22709 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
22710 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
22711 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22712 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22713 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22714 echo "$as_me: *** including --without-netsnmp" >&6;}
22715 exit 1
22717 else
22718 if test -n "$ac_tool_prefix"; then
22719 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22720 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22723 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22724 echo $ECHO_N "(cached) $ECHO_C" >&6
22725 else
22726 case $NETSNMP_CONFIG in
22727 [\\/]* | ?:[\\/]*)
22728 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22732 for as_dir in $PATH
22734 IFS=$as_save_IFS
22735 test -z "$as_dir" && as_dir=.
22736 for ac_exec_ext in '' $ac_executable_extensions; do
22737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22738 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22740 break 2
22742 done
22743 done
22744 IFS=$as_save_IFS
22747 esac
22749 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22750 if test -n "$NETSNMP_CONFIG"; then
22751 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22752 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22753 else
22754 { echo "$as_me:$LINENO: result: no" >&5
22755 echo "${ECHO_T}no" >&6; }
22760 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22761 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22762 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22763 set dummy net-snmp-config; ac_word=$2
22764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22766 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22767 echo $ECHO_N "(cached) $ECHO_C" >&6
22768 else
22769 case $ac_pt_NETSNMP_CONFIG in
22770 [\\/]* | ?:[\\/]*)
22771 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22775 for as_dir in $PATH
22777 IFS=$as_save_IFS
22778 test -z "$as_dir" && as_dir=.
22779 for ac_exec_ext in '' $ac_executable_extensions; do
22780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22781 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22783 break 2
22785 done
22786 done
22787 IFS=$as_save_IFS
22790 esac
22792 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22793 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22794 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22795 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22796 else
22797 { echo "$as_me:$LINENO: result: no" >&5
22798 echo "${ECHO_T}no" >&6; }
22801 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22802 NETSNMP_CONFIG="No"
22803 else
22804 case $cross_compiling:$ac_tool_warned in
22805 yes:)
22806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22807 whose name does not start with the host triplet. If you think this
22808 configuration is useful to you, please write to autoconf@gnu.org." >&5
22809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22810 whose name does not start with the host triplet. If you think this
22811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22812 ac_tool_warned=yes ;;
22813 esac
22814 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22816 else
22817 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22822 if test x"${NETSNMP_CONFIG}" != xNo; then
22823 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
22825 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
22826 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
22827 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22829 else
22830 ac_check_lib_save_LIBS=$LIBS
22831 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
22832 cat >conftest.$ac_ext <<_ACEOF
22833 /* confdefs.h. */
22834 _ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h. */
22839 /* Override any GCC internal prototype to avoid an error.
22840 Use char because int might match the return type of a GCC
22841 builtin and then its argument prototype would still apply. */
22842 #ifdef __cplusplus
22843 extern "C"
22844 #endif
22845 char snmp_register_callback ();
22847 main ()
22849 return snmp_register_callback ();
22851 return 0;
22853 _ACEOF
22854 rm -f conftest.$ac_objext conftest$ac_exeext
22855 if { (ac_try="$ac_link"
22856 case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22859 esac
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_link") 2>conftest.er1
22862 ac_status=$?
22863 grep -v '^ *+' conftest.er1 >conftest.err
22864 rm -f conftest.er1
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } && {
22868 test -z "$ac_c_werror_flag" ||
22869 test ! -s conftest.err
22870 } && test -s conftest$ac_exeext &&
22871 $as_test_x conftest$ac_exeext; then
22872 ac_cv_lib_netsnmp_snmp_register_callback=yes
22873 else
22874 echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22877 ac_cv_lib_netsnmp_snmp_register_callback=no
22880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22881 conftest$ac_exeext conftest.$ac_ext
22882 LIBS=$ac_check_lib_save_LIBS
22884 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
22885 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
22886 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
22888 cat >>confdefs.h <<_ACEOF
22889 #define HAVE_NETSNMP 1
22890 _ACEOF
22895 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
22896 NETSNMP_LIB="${NETSNMP_libs}"
22897 PBX_NETSNMP=1
22898 elif test -n "${NETSNMP_MANDATORY}";
22899 then
22900 { echo "$as_me:$LINENO: ***" >&5
22901 echo "$as_me: ***" >&6;}
22902 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22903 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22904 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22905 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22906 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22907 echo "$as_me: *** including --without-netsnmp" >&6;}
22908 exit 1
22910 elif test -n "${NETSNMP_MANDATORY}";
22911 then
22912 { echo "$as_me:$LINENO: ***" >&5
22913 echo "$as_me: ***" >&6;}
22914 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22915 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22916 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22917 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22918 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22919 echo "$as_me: *** including --without-netsnmp" >&6;}
22920 exit 1
22924 if test "${USE_NEWT}" != "no"; then
22925 pbxlibdir=""
22926 if test "x${NEWT_DIR}" != "x"; then
22927 if test -d ${NEWT_DIR}/lib; then
22928 pbxlibdir="-L${NEWT_DIR}/lib"
22929 else
22930 pbxlibdir="-L${NEWT_DIR}"
22933 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
22934 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
22935 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22937 else
22938 ac_check_lib_save_LIBS=$LIBS
22939 LIBS="-lnewt ${pbxlibdir} $LIBS"
22940 cat >conftest.$ac_ext <<_ACEOF
22941 /* confdefs.h. */
22942 _ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22947 /* Override any GCC internal prototype to avoid an error.
22948 Use char because int might match the return type of a GCC
22949 builtin and then its argument prototype would still apply. */
22950 #ifdef __cplusplus
22951 extern "C"
22952 #endif
22953 char newtBell ();
22955 main ()
22957 return newtBell ();
22959 return 0;
22961 _ACEOF
22962 rm -f conftest.$ac_objext conftest$ac_exeext
22963 if { (ac_try="$ac_link"
22964 case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22967 esac
22968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969 (eval "$ac_link") 2>conftest.er1
22970 ac_status=$?
22971 grep -v '^ *+' conftest.er1 >conftest.err
22972 rm -f conftest.er1
22973 cat conftest.err >&5
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); } && {
22976 test -z "$ac_c_werror_flag" ||
22977 test ! -s conftest.err
22978 } && test -s conftest$ac_exeext &&
22979 $as_test_x conftest$ac_exeext; then
22980 ac_cv_lib_newt_newtBell=yes
22981 else
22982 echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22985 ac_cv_lib_newt_newtBell=no
22988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22989 conftest$ac_exeext conftest.$ac_ext
22990 LIBS=$ac_check_lib_save_LIBS
22992 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
22993 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
22994 if test $ac_cv_lib_newt_newtBell = yes; then
22995 AST_NEWT_FOUND=yes
22996 else
22997 AST_NEWT_FOUND=no
23001 if test "${AST_NEWT_FOUND}" = "yes"; then
23002 NEWT_LIB="-lnewt "
23003 NEWT_HEADER_FOUND="1"
23004 if test "x${NEWT_DIR}" != "x"; then
23005 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
23006 NEWT_INCLUDE="-I${NEWT_DIR}/include"
23007 saved_cppflags="${CPPFLAGS}"
23008 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
23009 if test "xnewt.h" != "x" ; then
23010 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
23011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23012 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23013 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23017 ac_res=`eval echo '${'$as_ac_Header'}'`
23018 { echo "$as_me:$LINENO: result: $ac_res" >&5
23019 echo "${ECHO_T}$ac_res" >&6; }
23020 else
23021 # Is the header compilable?
23022 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
23023 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
23024 cat >conftest.$ac_ext <<_ACEOF
23025 /* confdefs.h. */
23026 _ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23030 $ac_includes_default
23031 #include <${NEWT_DIR}/include/newt.h>
23032 _ACEOF
23033 rm -f conftest.$ac_objext
23034 if { (ac_try="$ac_compile"
23035 case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23038 esac
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040 (eval "$ac_compile") 2>conftest.er1
23041 ac_status=$?
23042 grep -v '^ *+' conftest.er1 >conftest.err
23043 rm -f conftest.er1
23044 cat conftest.err >&5
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); } && {
23047 test -z "$ac_c_werror_flag" ||
23048 test ! -s conftest.err
23049 } && test -s conftest.$ac_objext; then
23050 ac_header_compiler=yes
23051 else
23052 echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23055 ac_header_compiler=no
23058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23060 echo "${ECHO_T}$ac_header_compiler" >&6; }
23062 # Is the header present?
23063 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
23064 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
23065 cat >conftest.$ac_ext <<_ACEOF
23066 /* confdefs.h. */
23067 _ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 #include <${NEWT_DIR}/include/newt.h>
23072 _ACEOF
23073 if { (ac_try="$ac_cpp conftest.$ac_ext"
23074 case "(($ac_try" in
23075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076 *) ac_try_echo=$ac_try;;
23077 esac
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23080 ac_status=$?
23081 grep -v '^ *+' conftest.er1 >conftest.err
23082 rm -f conftest.er1
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } >/dev/null && {
23086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23088 }; then
23089 ac_header_preproc=yes
23090 else
23091 echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23094 ac_header_preproc=no
23097 rm -f conftest.err conftest.$ac_ext
23098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23099 echo "${ECHO_T}$ac_header_preproc" >&6; }
23101 # So? What about this header?
23102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23103 yes:no: )
23104 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23105 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23106 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
23107 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
23108 ac_header_preproc=yes
23110 no:yes:* )
23111 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
23112 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
23113 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
23114 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
23115 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
23116 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
23117 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
23118 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23119 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
23120 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
23121 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
23122 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
23123 ( cat <<\_ASBOX
23124 ## ------------------------------- ##
23125 ## Report this to www.asterisk.org ##
23126 ## ------------------------------- ##
23127 _ASBOX
23128 ) | sed "s/^/$as_me: WARNING: /" >&2
23130 esac
23131 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23132 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23134 echo $ECHO_N "(cached) $ECHO_C" >&6
23135 else
23136 eval "$as_ac_Header=\$ac_header_preproc"
23138 ac_res=`eval echo '${'$as_ac_Header'}'`
23139 { echo "$as_me:$LINENO: result: $ac_res" >&5
23140 echo "${ECHO_T}$ac_res" >&6; }
23143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23144 NEWT_HEADER_FOUND=1
23145 else
23146 NEWT_HEADER_FOUND=0
23151 CPPFLAGS="${saved_cppflags}"
23152 else
23153 if test "xnewt.h" != "x" ; then
23154 if test "${ac_cv_header_newt_h+set}" = set; then
23155 { echo "$as_me:$LINENO: checking for newt.h" >&5
23156 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23157 if test "${ac_cv_header_newt_h+set}" = set; then
23158 echo $ECHO_N "(cached) $ECHO_C" >&6
23160 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23161 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23162 else
23163 # Is the header compilable?
23164 { echo "$as_me:$LINENO: checking newt.h usability" >&5
23165 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
23166 cat >conftest.$ac_ext <<_ACEOF
23167 /* confdefs.h. */
23168 _ACEOF
23169 cat confdefs.h >>conftest.$ac_ext
23170 cat >>conftest.$ac_ext <<_ACEOF
23171 /* end confdefs.h. */
23172 $ac_includes_default
23173 #include <newt.h>
23174 _ACEOF
23175 rm -f conftest.$ac_objext
23176 if { (ac_try="$ac_compile"
23177 case "(($ac_try" in
23178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23179 *) ac_try_echo=$ac_try;;
23180 esac
23181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23182 (eval "$ac_compile") 2>conftest.er1
23183 ac_status=$?
23184 grep -v '^ *+' conftest.er1 >conftest.err
23185 rm -f conftest.er1
23186 cat conftest.err >&5
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } && {
23189 test -z "$ac_c_werror_flag" ||
23190 test ! -s conftest.err
23191 } && test -s conftest.$ac_objext; then
23192 ac_header_compiler=yes
23193 else
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23197 ac_header_compiler=no
23200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23202 echo "${ECHO_T}$ac_header_compiler" >&6; }
23204 # Is the header present?
23205 { echo "$as_me:$LINENO: checking newt.h presence" >&5
23206 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
23207 cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h. */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23213 #include <newt.h>
23214 _ACEOF
23215 if { (ac_try="$ac_cpp conftest.$ac_ext"
23216 case "(($ac_try" in
23217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23218 *) ac_try_echo=$ac_try;;
23219 esac
23220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23222 ac_status=$?
23223 grep -v '^ *+' conftest.er1 >conftest.err
23224 rm -f conftest.er1
23225 cat conftest.err >&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } >/dev/null && {
23228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23229 test ! -s conftest.err
23230 }; then
23231 ac_header_preproc=yes
23232 else
23233 echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23236 ac_header_preproc=no
23239 rm -f conftest.err conftest.$ac_ext
23240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23241 echo "${ECHO_T}$ac_header_preproc" >&6; }
23243 # So? What about this header?
23244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23245 yes:no: )
23246 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23247 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23248 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
23249 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
23250 ac_header_preproc=yes
23252 no:yes:* )
23253 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
23254 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
23255 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
23256 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
23257 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
23258 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
23259 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
23260 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23261 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
23262 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
23263 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
23264 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
23265 ( cat <<\_ASBOX
23266 ## ------------------------------- ##
23267 ## Report this to www.asterisk.org ##
23268 ## ------------------------------- ##
23269 _ASBOX
23270 ) | sed "s/^/$as_me: WARNING: /" >&2
23272 esac
23273 { echo "$as_me:$LINENO: checking for newt.h" >&5
23274 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23275 if test "${ac_cv_header_newt_h+set}" = set; then
23276 echo $ECHO_N "(cached) $ECHO_C" >&6
23277 else
23278 ac_cv_header_newt_h=$ac_header_preproc
23280 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23281 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23284 if test $ac_cv_header_newt_h = yes; then
23285 NEWT_HEADER_FOUND=1
23286 else
23287 NEWT_HEADER_FOUND=0
23293 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
23294 if test -n "${NEWT_MANDATORY}" ;
23295 then
23296 { echo "$as_me:$LINENO: ***" >&5
23297 echo "$as_me: ***" >&6;}
23298 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
23299 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
23300 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
23301 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
23302 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23303 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23304 exit 1
23306 NEWT_LIB=""
23307 NEWT_INCLUDE=""
23308 PBX_NEWT=0
23309 else
23310 PBX_NEWT=1
23312 cat >>confdefs.h <<_ACEOF
23313 #define HAVE_NEWT 1
23314 _ACEOF
23317 elif test -n "${NEWT_MANDATORY}";
23318 then
23319 { echo "$as_me:$LINENO: ***" >&5
23320 echo "$as_me: ***" >&6;}
23321 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
23322 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
23323 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23324 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23325 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23326 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23327 exit 1
23333 if test "${USE_UNIXODBC}" != "no"; then
23334 pbxlibdir=""
23335 if test "x${UNIXODBC_DIR}" != "x"; then
23336 if test -d ${UNIXODBC_DIR}/lib; then
23337 pbxlibdir="-L${UNIXODBC_DIR}/lib"
23338 else
23339 pbxlibdir="-L${UNIXODBC_DIR}"
23342 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
23343 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
23344 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23346 else
23347 ac_check_lib_save_LIBS=$LIBS
23348 LIBS="-lodbc ${pbxlibdir} $LIBS"
23349 cat >conftest.$ac_ext <<_ACEOF
23350 /* confdefs.h. */
23351 _ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h. */
23356 /* Override any GCC internal prototype to avoid an error.
23357 Use char because int might match the return type of a GCC
23358 builtin and then its argument prototype would still apply. */
23359 #ifdef __cplusplus
23360 extern "C"
23361 #endif
23362 char SQLConnect ();
23364 main ()
23366 return SQLConnect ();
23368 return 0;
23370 _ACEOF
23371 rm -f conftest.$ac_objext conftest$ac_exeext
23372 if { (ac_try="$ac_link"
23373 case "(($ac_try" in
23374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375 *) ac_try_echo=$ac_try;;
23376 esac
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378 (eval "$ac_link") 2>conftest.er1
23379 ac_status=$?
23380 grep -v '^ *+' conftest.er1 >conftest.err
23381 rm -f conftest.er1
23382 cat conftest.err >&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } && {
23385 test -z "$ac_c_werror_flag" ||
23386 test ! -s conftest.err
23387 } && test -s conftest$ac_exeext &&
23388 $as_test_x conftest$ac_exeext; then
23389 ac_cv_lib_odbc_SQLConnect=yes
23390 else
23391 echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23394 ac_cv_lib_odbc_SQLConnect=no
23397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23398 conftest$ac_exeext conftest.$ac_ext
23399 LIBS=$ac_check_lib_save_LIBS
23401 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
23402 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
23403 if test $ac_cv_lib_odbc_SQLConnect = yes; then
23404 AST_UNIXODBC_FOUND=yes
23405 else
23406 AST_UNIXODBC_FOUND=no
23410 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
23411 UNIXODBC_LIB="-lodbc "
23412 UNIXODBC_HEADER_FOUND="1"
23413 if test "x${UNIXODBC_DIR}" != "x"; then
23414 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
23415 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
23416 saved_cppflags="${CPPFLAGS}"
23417 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
23418 if test "xsql.h" != "x" ; then
23419 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
23420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23421 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23422 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23424 echo $ECHO_N "(cached) $ECHO_C" >&6
23426 ac_res=`eval echo '${'$as_ac_Header'}'`
23427 { echo "$as_me:$LINENO: result: $ac_res" >&5
23428 echo "${ECHO_T}$ac_res" >&6; }
23429 else
23430 # Is the header compilable?
23431 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
23432 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
23433 cat >conftest.$ac_ext <<_ACEOF
23434 /* confdefs.h. */
23435 _ACEOF
23436 cat confdefs.h >>conftest.$ac_ext
23437 cat >>conftest.$ac_ext <<_ACEOF
23438 /* end confdefs.h. */
23439 $ac_includes_default
23440 #include <${UNIXODBC_DIR}/include/sql.h>
23441 _ACEOF
23442 rm -f conftest.$ac_objext
23443 if { (ac_try="$ac_compile"
23444 case "(($ac_try" in
23445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23446 *) ac_try_echo=$ac_try;;
23447 esac
23448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23449 (eval "$ac_compile") 2>conftest.er1
23450 ac_status=$?
23451 grep -v '^ *+' conftest.er1 >conftest.err
23452 rm -f conftest.er1
23453 cat conftest.err >&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); } && {
23456 test -z "$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23458 } && test -s conftest.$ac_objext; then
23459 ac_header_compiler=yes
23460 else
23461 echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23464 ac_header_compiler=no
23467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23469 echo "${ECHO_T}$ac_header_compiler" >&6; }
23471 # Is the header present?
23472 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
23473 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
23474 cat >conftest.$ac_ext <<_ACEOF
23475 /* confdefs.h. */
23476 _ACEOF
23477 cat confdefs.h >>conftest.$ac_ext
23478 cat >>conftest.$ac_ext <<_ACEOF
23479 /* end confdefs.h. */
23480 #include <${UNIXODBC_DIR}/include/sql.h>
23481 _ACEOF
23482 if { (ac_try="$ac_cpp conftest.$ac_ext"
23483 case "(($ac_try" in
23484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23485 *) ac_try_echo=$ac_try;;
23486 esac
23487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23489 ac_status=$?
23490 grep -v '^ *+' conftest.er1 >conftest.err
23491 rm -f conftest.er1
23492 cat conftest.err >&5
23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); } >/dev/null && {
23495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23496 test ! -s conftest.err
23497 }; then
23498 ac_header_preproc=yes
23499 else
23500 echo "$as_me: failed program was:" >&5
23501 sed 's/^/| /' conftest.$ac_ext >&5
23503 ac_header_preproc=no
23506 rm -f conftest.err conftest.$ac_ext
23507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23508 echo "${ECHO_T}$ac_header_preproc" >&6; }
23510 # So? What about this header?
23511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23512 yes:no: )
23513 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23514 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23515 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
23516 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
23517 ac_header_preproc=yes
23519 no:yes:* )
23520 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
23521 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
23522 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
23523 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
23524 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
23525 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
23526 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
23527 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23528 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
23529 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
23530 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
23531 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
23532 ( cat <<\_ASBOX
23533 ## ------------------------------- ##
23534 ## Report this to www.asterisk.org ##
23535 ## ------------------------------- ##
23536 _ASBOX
23537 ) | sed "s/^/$as_me: WARNING: /" >&2
23539 esac
23540 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23541 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23543 echo $ECHO_N "(cached) $ECHO_C" >&6
23544 else
23545 eval "$as_ac_Header=\$ac_header_preproc"
23547 ac_res=`eval echo '${'$as_ac_Header'}'`
23548 { echo "$as_me:$LINENO: result: $ac_res" >&5
23549 echo "${ECHO_T}$ac_res" >&6; }
23552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23553 UNIXODBC_HEADER_FOUND=1
23554 else
23555 UNIXODBC_HEADER_FOUND=0
23560 CPPFLAGS="${saved_cppflags}"
23561 else
23562 if test "xsql.h" != "x" ; then
23563 if test "${ac_cv_header_sql_h+set}" = set; then
23564 { echo "$as_me:$LINENO: checking for sql.h" >&5
23565 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23566 if test "${ac_cv_header_sql_h+set}" = set; then
23567 echo $ECHO_N "(cached) $ECHO_C" >&6
23569 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23570 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23571 else
23572 # Is the header compilable?
23573 { echo "$as_me:$LINENO: checking sql.h usability" >&5
23574 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
23575 cat >conftest.$ac_ext <<_ACEOF
23576 /* confdefs.h. */
23577 _ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 $ac_includes_default
23582 #include <sql.h>
23583 _ACEOF
23584 rm -f conftest.$ac_objext
23585 if { (ac_try="$ac_compile"
23586 case "(($ac_try" in
23587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23589 esac
23590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591 (eval "$ac_compile") 2>conftest.er1
23592 ac_status=$?
23593 grep -v '^ *+' conftest.er1 >conftest.err
23594 rm -f conftest.er1
23595 cat conftest.err >&5
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); } && {
23598 test -z "$ac_c_werror_flag" ||
23599 test ! -s conftest.err
23600 } && test -s conftest.$ac_objext; then
23601 ac_header_compiler=yes
23602 else
23603 echo "$as_me: failed program was:" >&5
23604 sed 's/^/| /' conftest.$ac_ext >&5
23606 ac_header_compiler=no
23609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23611 echo "${ECHO_T}$ac_header_compiler" >&6; }
23613 # Is the header present?
23614 { echo "$as_me:$LINENO: checking sql.h presence" >&5
23615 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
23616 cat >conftest.$ac_ext <<_ACEOF
23617 /* confdefs.h. */
23618 _ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h. */
23622 #include <sql.h>
23623 _ACEOF
23624 if { (ac_try="$ac_cpp conftest.$ac_ext"
23625 case "(($ac_try" in
23626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23627 *) ac_try_echo=$ac_try;;
23628 esac
23629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23631 ac_status=$?
23632 grep -v '^ *+' conftest.er1 >conftest.err
23633 rm -f conftest.er1
23634 cat conftest.err >&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } >/dev/null && {
23637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23638 test ! -s conftest.err
23639 }; then
23640 ac_header_preproc=yes
23641 else
23642 echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23645 ac_header_preproc=no
23648 rm -f conftest.err conftest.$ac_ext
23649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23650 echo "${ECHO_T}$ac_header_preproc" >&6; }
23652 # So? What about this header?
23653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23654 yes:no: )
23655 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23656 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23657 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
23658 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
23659 ac_header_preproc=yes
23661 no:yes:* )
23662 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
23663 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
23664 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
23665 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
23666 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
23667 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
23668 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
23669 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23670 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
23671 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
23672 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
23673 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
23674 ( cat <<\_ASBOX
23675 ## ------------------------------- ##
23676 ## Report this to www.asterisk.org ##
23677 ## ------------------------------- ##
23678 _ASBOX
23679 ) | sed "s/^/$as_me: WARNING: /" >&2
23681 esac
23682 { echo "$as_me:$LINENO: checking for sql.h" >&5
23683 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23684 if test "${ac_cv_header_sql_h+set}" = set; then
23685 echo $ECHO_N "(cached) $ECHO_C" >&6
23686 else
23687 ac_cv_header_sql_h=$ac_header_preproc
23689 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23690 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23693 if test $ac_cv_header_sql_h = yes; then
23694 UNIXODBC_HEADER_FOUND=1
23695 else
23696 UNIXODBC_HEADER_FOUND=0
23702 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
23703 if test -n "${UNIXODBC_MANDATORY}" ;
23704 then
23705 { echo "$as_me:$LINENO: ***" >&5
23706 echo "$as_me: ***" >&6;}
23707 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
23708 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
23709 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
23710 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
23711 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23712 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23713 exit 1
23715 UNIXODBC_LIB=""
23716 UNIXODBC_INCLUDE=""
23717 PBX_UNIXODBC=0
23718 else
23719 PBX_UNIXODBC=1
23721 cat >>confdefs.h <<_ACEOF
23722 #define HAVE_UNIXODBC 1
23723 _ACEOF
23726 elif test -n "${UNIXODBC_MANDATORY}";
23727 then
23728 { echo "$as_me:$LINENO: ***" >&5
23729 echo "$as_me: ***" >&6;}
23730 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
23731 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
23732 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23733 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23734 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23735 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23736 exit 1
23742 if test "${USE_OGG}" != "no"; then
23743 pbxlibdir=""
23744 if test "x${OGG_DIR}" != "x"; then
23745 if test -d ${OGG_DIR}/lib; then
23746 pbxlibdir="-L${OGG_DIR}/lib"
23747 else
23748 pbxlibdir="-L${OGG_DIR}"
23751 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
23752 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
23753 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
23754 echo $ECHO_N "(cached) $ECHO_C" >&6
23755 else
23756 ac_check_lib_save_LIBS=$LIBS
23757 LIBS="-logg ${pbxlibdir} $LIBS"
23758 cat >conftest.$ac_ext <<_ACEOF
23759 /* confdefs.h. */
23760 _ACEOF
23761 cat confdefs.h >>conftest.$ac_ext
23762 cat >>conftest.$ac_ext <<_ACEOF
23763 /* end confdefs.h. */
23765 /* Override any GCC internal prototype to avoid an error.
23766 Use char because int might match the return type of a GCC
23767 builtin and then its argument prototype would still apply. */
23768 #ifdef __cplusplus
23769 extern "C"
23770 #endif
23771 char ogg_sync_init ();
23773 main ()
23775 return ogg_sync_init ();
23777 return 0;
23779 _ACEOF
23780 rm -f conftest.$ac_objext conftest$ac_exeext
23781 if { (ac_try="$ac_link"
23782 case "(($ac_try" in
23783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23785 esac
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_link") 2>conftest.er1
23788 ac_status=$?
23789 grep -v '^ *+' conftest.er1 >conftest.err
23790 rm -f conftest.er1
23791 cat conftest.err >&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } && {
23794 test -z "$ac_c_werror_flag" ||
23795 test ! -s conftest.err
23796 } && test -s conftest$ac_exeext &&
23797 $as_test_x conftest$ac_exeext; then
23798 ac_cv_lib_ogg_ogg_sync_init=yes
23799 else
23800 echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23803 ac_cv_lib_ogg_ogg_sync_init=no
23806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23807 conftest$ac_exeext conftest.$ac_ext
23808 LIBS=$ac_check_lib_save_LIBS
23810 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
23811 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
23812 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
23813 AST_OGG_FOUND=yes
23814 else
23815 AST_OGG_FOUND=no
23819 if test "${AST_OGG_FOUND}" = "yes"; then
23820 OGG_LIB="-logg "
23821 OGG_HEADER_FOUND="1"
23822 if test "x${OGG_DIR}" != "x"; then
23823 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
23824 OGG_INCLUDE="-I${OGG_DIR}/include"
23825 saved_cppflags="${CPPFLAGS}"
23826 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
23827 if test "x" != "x" ; then
23828 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
23829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23830 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23831 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23833 echo $ECHO_N "(cached) $ECHO_C" >&6
23835 ac_res=`eval echo '${'$as_ac_Header'}'`
23836 { echo "$as_me:$LINENO: result: $ac_res" >&5
23837 echo "${ECHO_T}$ac_res" >&6; }
23838 else
23839 # Is the header compilable?
23840 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
23841 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
23842 cat >conftest.$ac_ext <<_ACEOF
23843 /* confdefs.h. */
23844 _ACEOF
23845 cat confdefs.h >>conftest.$ac_ext
23846 cat >>conftest.$ac_ext <<_ACEOF
23847 /* end confdefs.h. */
23848 $ac_includes_default
23849 #include <${OGG_DIR}/include/>
23850 _ACEOF
23851 rm -f conftest.$ac_objext
23852 if { (ac_try="$ac_compile"
23853 case "(($ac_try" in
23854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855 *) ac_try_echo=$ac_try;;
23856 esac
23857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858 (eval "$ac_compile") 2>conftest.er1
23859 ac_status=$?
23860 grep -v '^ *+' conftest.er1 >conftest.err
23861 rm -f conftest.er1
23862 cat conftest.err >&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } && {
23865 test -z "$ac_c_werror_flag" ||
23866 test ! -s conftest.err
23867 } && test -s conftest.$ac_objext; then
23868 ac_header_compiler=yes
23869 else
23870 echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.$ac_ext >&5
23873 ac_header_compiler=no
23876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23878 echo "${ECHO_T}$ac_header_compiler" >&6; }
23880 # Is the header present?
23881 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
23882 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
23883 cat >conftest.$ac_ext <<_ACEOF
23884 /* confdefs.h. */
23885 _ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h. */
23889 #include <${OGG_DIR}/include/>
23890 _ACEOF
23891 if { (ac_try="$ac_cpp conftest.$ac_ext"
23892 case "(($ac_try" in
23893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23894 *) ac_try_echo=$ac_try;;
23895 esac
23896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23898 ac_status=$?
23899 grep -v '^ *+' conftest.er1 >conftest.err
23900 rm -f conftest.er1
23901 cat conftest.err >&5
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); } >/dev/null && {
23904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23905 test ! -s conftest.err
23906 }; then
23907 ac_header_preproc=yes
23908 else
23909 echo "$as_me: failed program was:" >&5
23910 sed 's/^/| /' conftest.$ac_ext >&5
23912 ac_header_preproc=no
23915 rm -f conftest.err conftest.$ac_ext
23916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23917 echo "${ECHO_T}$ac_header_preproc" >&6; }
23919 # So? What about this header?
23920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23921 yes:no: )
23922 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
23923 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
23924 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
23925 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
23926 ac_header_preproc=yes
23928 no:yes:* )
23929 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
23930 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
23931 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
23932 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
23933 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
23934 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
23935 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
23936 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
23937 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
23938 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
23939 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
23940 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
23941 ( cat <<\_ASBOX
23942 ## ------------------------------- ##
23943 ## Report this to www.asterisk.org ##
23944 ## ------------------------------- ##
23945 _ASBOX
23946 ) | sed "s/^/$as_me: WARNING: /" >&2
23948 esac
23949 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23950 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23952 echo $ECHO_N "(cached) $ECHO_C" >&6
23953 else
23954 eval "$as_ac_Header=\$ac_header_preproc"
23956 ac_res=`eval echo '${'$as_ac_Header'}'`
23957 { echo "$as_me:$LINENO: result: $ac_res" >&5
23958 echo "${ECHO_T}$ac_res" >&6; }
23961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23962 OGG_HEADER_FOUND=1
23963 else
23964 OGG_HEADER_FOUND=0
23969 CPPFLAGS="${saved_cppflags}"
23970 else
23971 if test "x" != "x" ; then
23972 if test "${ac_cv_header_+set}" = set; then
23973 { echo "$as_me:$LINENO: checking for " >&5
23974 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23975 if test "${ac_cv_header_+set}" = set; then
23976 echo $ECHO_N "(cached) $ECHO_C" >&6
23978 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23979 echo "${ECHO_T}$ac_cv_header_" >&6; }
23980 else
23981 # Is the header compilable?
23982 { echo "$as_me:$LINENO: checking usability" >&5
23983 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23984 cat >conftest.$ac_ext <<_ACEOF
23985 /* confdefs.h. */
23986 _ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h. */
23990 $ac_includes_default
23991 #include <>
23992 _ACEOF
23993 rm -f conftest.$ac_objext
23994 if { (ac_try="$ac_compile"
23995 case "(($ac_try" in
23996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23997 *) ac_try_echo=$ac_try;;
23998 esac
23999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24000 (eval "$ac_compile") 2>conftest.er1
24001 ac_status=$?
24002 grep -v '^ *+' conftest.er1 >conftest.err
24003 rm -f conftest.er1
24004 cat conftest.err >&5
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); } && {
24007 test -z "$ac_c_werror_flag" ||
24008 test ! -s conftest.err
24009 } && test -s conftest.$ac_objext; then
24010 ac_header_compiler=yes
24011 else
24012 echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24015 ac_header_compiler=no
24018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24020 echo "${ECHO_T}$ac_header_compiler" >&6; }
24022 # Is the header present?
24023 { echo "$as_me:$LINENO: checking presence" >&5
24024 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24025 cat >conftest.$ac_ext <<_ACEOF
24026 /* confdefs.h. */
24027 _ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h. */
24031 #include <>
24032 _ACEOF
24033 if { (ac_try="$ac_cpp conftest.$ac_ext"
24034 case "(($ac_try" in
24035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24036 *) ac_try_echo=$ac_try;;
24037 esac
24038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24040 ac_status=$?
24041 grep -v '^ *+' conftest.er1 >conftest.err
24042 rm -f conftest.er1
24043 cat conftest.err >&5
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); } >/dev/null && {
24046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24047 test ! -s conftest.err
24048 }; then
24049 ac_header_preproc=yes
24050 else
24051 echo "$as_me: failed program was:" >&5
24052 sed 's/^/| /' conftest.$ac_ext >&5
24054 ac_header_preproc=no
24057 rm -f conftest.err conftest.$ac_ext
24058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24059 echo "${ECHO_T}$ac_header_preproc" >&6; }
24061 # So? What about this header?
24062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24063 yes:no: )
24064 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24065 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24066 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24067 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24068 ac_header_preproc=yes
24070 no:yes:* )
24071 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24072 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24073 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24074 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24075 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24076 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24077 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24078 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24079 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24080 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24081 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24082 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24083 ( cat <<\_ASBOX
24084 ## ------------------------------- ##
24085 ## Report this to www.asterisk.org ##
24086 ## ------------------------------- ##
24087 _ASBOX
24088 ) | sed "s/^/$as_me: WARNING: /" >&2
24090 esac
24091 { echo "$as_me:$LINENO: checking for " >&5
24092 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24093 if test "${ac_cv_header_+set}" = set; then
24094 echo $ECHO_N "(cached) $ECHO_C" >&6
24095 else
24096 ac_cv_header_=$ac_header_preproc
24098 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24099 echo "${ECHO_T}$ac_cv_header_" >&6; }
24102 if test $ac_cv_header_ = yes; then
24103 OGG_HEADER_FOUND=1
24104 else
24105 OGG_HEADER_FOUND=0
24111 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
24112 if test -n "${OGG_MANDATORY}" ;
24113 then
24114 { echo "$as_me:$LINENO: ***" >&5
24115 echo "$as_me: ***" >&6;}
24116 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
24117 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
24118 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
24119 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
24120 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24121 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24122 exit 1
24124 OGG_LIB=""
24125 OGG_INCLUDE=""
24126 PBX_OGG=0
24127 else
24128 PBX_OGG=1
24130 cat >>confdefs.h <<_ACEOF
24131 #define HAVE_OGG 1
24132 _ACEOF
24135 elif test -n "${OGG_MANDATORY}";
24136 then
24137 { echo "$as_me:$LINENO: ***" >&5
24138 echo "$as_me: ***" >&6;}
24139 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
24140 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
24141 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24142 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24143 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24144 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24145 exit 1
24150 if test "${USE_OSS}" != "no"; then
24151 PBX_OSS=0
24152 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24153 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24154 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24155 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24156 echo $ECHO_N "(cached) $ECHO_C" >&6
24158 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24159 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24160 else
24161 # Is the header compilable?
24162 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
24163 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
24164 cat >conftest.$ac_ext <<_ACEOF
24165 /* confdefs.h. */
24166 _ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h. */
24170 $ac_includes_default
24171 #include <linux/soundcard.h>
24172 _ACEOF
24173 rm -f conftest.$ac_objext
24174 if { (ac_try="$ac_compile"
24175 case "(($ac_try" in
24176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177 *) ac_try_echo=$ac_try;;
24178 esac
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180 (eval "$ac_compile") 2>conftest.er1
24181 ac_status=$?
24182 grep -v '^ *+' conftest.er1 >conftest.err
24183 rm -f conftest.er1
24184 cat conftest.err >&5
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); } && {
24187 test -z "$ac_c_werror_flag" ||
24188 test ! -s conftest.err
24189 } && test -s conftest.$ac_objext; then
24190 ac_header_compiler=yes
24191 else
24192 echo "$as_me: failed program was:" >&5
24193 sed 's/^/| /' conftest.$ac_ext >&5
24195 ac_header_compiler=no
24198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24200 echo "${ECHO_T}$ac_header_compiler" >&6; }
24202 # Is the header present?
24203 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
24204 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
24205 cat >conftest.$ac_ext <<_ACEOF
24206 /* confdefs.h. */
24207 _ACEOF
24208 cat confdefs.h >>conftest.$ac_ext
24209 cat >>conftest.$ac_ext <<_ACEOF
24210 /* end confdefs.h. */
24211 #include <linux/soundcard.h>
24212 _ACEOF
24213 if { (ac_try="$ac_cpp conftest.$ac_ext"
24214 case "(($ac_try" in
24215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24216 *) ac_try_echo=$ac_try;;
24217 esac
24218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24220 ac_status=$?
24221 grep -v '^ *+' conftest.er1 >conftest.err
24222 rm -f conftest.er1
24223 cat conftest.err >&5
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); } >/dev/null && {
24226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24227 test ! -s conftest.err
24228 }; then
24229 ac_header_preproc=yes
24230 else
24231 echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24234 ac_header_preproc=no
24237 rm -f conftest.err conftest.$ac_ext
24238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24239 echo "${ECHO_T}$ac_header_preproc" >&6; }
24241 # So? What about this header?
24242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24243 yes:no: )
24244 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24245 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24246 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
24247 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
24248 ac_header_preproc=yes
24250 no:yes:* )
24251 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
24252 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
24253 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
24254 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
24255 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
24256 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
24257 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24258 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24259 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
24260 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
24261 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
24262 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
24263 ( cat <<\_ASBOX
24264 ## ------------------------------- ##
24265 ## Report this to www.asterisk.org ##
24266 ## ------------------------------- ##
24267 _ASBOX
24268 ) | sed "s/^/$as_me: WARNING: /" >&2
24270 esac
24271 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24272 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24273 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24275 else
24276 ac_cv_header_linux_soundcard_h=$ac_header_preproc
24278 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24279 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24282 if test $ac_cv_header_linux_soundcard_h = yes; then
24284 PBX_OSS=1
24286 cat >>confdefs.h <<_ACEOF
24287 #define HAVE_OSS 1
24288 _ACEOF
24294 if test "$PBX_OSS" = "0"; then
24295 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24296 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24297 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24298 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24299 echo $ECHO_N "(cached) $ECHO_C" >&6
24301 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24302 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24303 else
24304 # Is the header compilable?
24305 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
24306 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
24307 cat >conftest.$ac_ext <<_ACEOF
24308 /* confdefs.h. */
24309 _ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h. */
24313 $ac_includes_default
24314 #include <sys/soundcard.h>
24315 _ACEOF
24316 rm -f conftest.$ac_objext
24317 if { (ac_try="$ac_compile"
24318 case "(($ac_try" in
24319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320 *) ac_try_echo=$ac_try;;
24321 esac
24322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323 (eval "$ac_compile") 2>conftest.er1
24324 ac_status=$?
24325 grep -v '^ *+' conftest.er1 >conftest.err
24326 rm -f conftest.er1
24327 cat conftest.err >&5
24328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); } && {
24330 test -z "$ac_c_werror_flag" ||
24331 test ! -s conftest.err
24332 } && test -s conftest.$ac_objext; then
24333 ac_header_compiler=yes
24334 else
24335 echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24338 ac_header_compiler=no
24341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24343 echo "${ECHO_T}$ac_header_compiler" >&6; }
24345 # Is the header present?
24346 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
24347 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
24348 cat >conftest.$ac_ext <<_ACEOF
24349 /* confdefs.h. */
24350 _ACEOF
24351 cat confdefs.h >>conftest.$ac_ext
24352 cat >>conftest.$ac_ext <<_ACEOF
24353 /* end confdefs.h. */
24354 #include <sys/soundcard.h>
24355 _ACEOF
24356 if { (ac_try="$ac_cpp conftest.$ac_ext"
24357 case "(($ac_try" in
24358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24359 *) ac_try_echo=$ac_try;;
24360 esac
24361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24363 ac_status=$?
24364 grep -v '^ *+' conftest.er1 >conftest.err
24365 rm -f conftest.er1
24366 cat conftest.err >&5
24367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); } >/dev/null && {
24369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24370 test ! -s conftest.err
24371 }; then
24372 ac_header_preproc=yes
24373 else
24374 echo "$as_me: failed program was:" >&5
24375 sed 's/^/| /' conftest.$ac_ext >&5
24377 ac_header_preproc=no
24380 rm -f conftest.err conftest.$ac_ext
24381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24382 echo "${ECHO_T}$ac_header_preproc" >&6; }
24384 # So? What about this header?
24385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24386 yes:no: )
24387 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24388 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24389 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
24390 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
24391 ac_header_preproc=yes
24393 no:yes:* )
24394 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
24395 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
24396 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
24397 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
24398 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
24399 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
24400 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24401 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24402 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
24403 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
24404 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
24405 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
24406 ( cat <<\_ASBOX
24407 ## ------------------------------- ##
24408 ## Report this to www.asterisk.org ##
24409 ## ------------------------------- ##
24410 _ASBOX
24411 ) | sed "s/^/$as_me: WARNING: /" >&2
24413 esac
24414 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24415 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24416 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24417 echo $ECHO_N "(cached) $ECHO_C" >&6
24418 else
24419 ac_cv_header_sys_soundcard_h=$ac_header_preproc
24421 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24422 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24425 if test $ac_cv_header_sys_soundcard_h = yes; then
24427 PBX_OSS=1
24429 cat >>confdefs.h <<_ACEOF
24430 #define HAVE_OSS 1
24431 _ACEOF
24438 if test "$PBX_OSS" = "0"; then
24440 if test "${USE_OSS}" != "no"; then
24441 pbxlibdir=""
24442 if test "x${OSS_DIR}" != "x"; then
24443 if test -d ${OSS_DIR}/lib; then
24444 pbxlibdir="-L${OSS_DIR}/lib"
24445 else
24446 pbxlibdir="-L${OSS_DIR}"
24449 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
24450 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
24451 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
24452 echo $ECHO_N "(cached) $ECHO_C" >&6
24453 else
24454 ac_check_lib_save_LIBS=$LIBS
24455 LIBS="-lossaudio ${pbxlibdir} $LIBS"
24456 cat >conftest.$ac_ext <<_ACEOF
24457 /* confdefs.h. */
24458 _ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h. */
24463 /* Override any GCC internal prototype to avoid an error.
24464 Use char because int might match the return type of a GCC
24465 builtin and then its argument prototype would still apply. */
24466 #ifdef __cplusplus
24467 extern "C"
24468 #endif
24469 char oss_ioctl_mixer ();
24471 main ()
24473 return oss_ioctl_mixer ();
24475 return 0;
24477 _ACEOF
24478 rm -f conftest.$ac_objext conftest$ac_exeext
24479 if { (ac_try="$ac_link"
24480 case "(($ac_try" in
24481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24482 *) ac_try_echo=$ac_try;;
24483 esac
24484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24485 (eval "$ac_link") 2>conftest.er1
24486 ac_status=$?
24487 grep -v '^ *+' conftest.er1 >conftest.err
24488 rm -f conftest.er1
24489 cat conftest.err >&5
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); } && {
24492 test -z "$ac_c_werror_flag" ||
24493 test ! -s conftest.err
24494 } && test -s conftest$ac_exeext &&
24495 $as_test_x conftest$ac_exeext; then
24496 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
24497 else
24498 echo "$as_me: failed program was:" >&5
24499 sed 's/^/| /' conftest.$ac_ext >&5
24501 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
24504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24505 conftest$ac_exeext conftest.$ac_ext
24506 LIBS=$ac_check_lib_save_LIBS
24508 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
24509 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
24510 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
24511 AST_OSS_FOUND=yes
24512 else
24513 AST_OSS_FOUND=no
24517 if test "${AST_OSS_FOUND}" = "yes"; then
24518 OSS_LIB="-lossaudio "
24519 OSS_HEADER_FOUND="1"
24520 if test "x${OSS_DIR}" != "x"; then
24521 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
24522 OSS_INCLUDE="-I${OSS_DIR}/include"
24523 saved_cppflags="${CPPFLAGS}"
24524 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include"
24525 if test "xsoundcard.h" != "x" ; then
24526 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
24527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24528 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24529 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24531 echo $ECHO_N "(cached) $ECHO_C" >&6
24533 ac_res=`eval echo '${'$as_ac_Header'}'`
24534 { echo "$as_me:$LINENO: result: $ac_res" >&5
24535 echo "${ECHO_T}$ac_res" >&6; }
24536 else
24537 # Is the header compilable?
24538 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
24539 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
24540 cat >conftest.$ac_ext <<_ACEOF
24541 /* confdefs.h. */
24542 _ACEOF
24543 cat confdefs.h >>conftest.$ac_ext
24544 cat >>conftest.$ac_ext <<_ACEOF
24545 /* end confdefs.h. */
24546 $ac_includes_default
24547 #include <${OSS_DIR}/include/soundcard.h>
24548 _ACEOF
24549 rm -f conftest.$ac_objext
24550 if { (ac_try="$ac_compile"
24551 case "(($ac_try" in
24552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24553 *) ac_try_echo=$ac_try;;
24554 esac
24555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24556 (eval "$ac_compile") 2>conftest.er1
24557 ac_status=$?
24558 grep -v '^ *+' conftest.er1 >conftest.err
24559 rm -f conftest.er1
24560 cat conftest.err >&5
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); } && {
24563 test -z "$ac_c_werror_flag" ||
24564 test ! -s conftest.err
24565 } && test -s conftest.$ac_objext; then
24566 ac_header_compiler=yes
24567 else
24568 echo "$as_me: failed program was:" >&5
24569 sed 's/^/| /' conftest.$ac_ext >&5
24571 ac_header_compiler=no
24574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24576 echo "${ECHO_T}$ac_header_compiler" >&6; }
24578 # Is the header present?
24579 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
24580 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
24581 cat >conftest.$ac_ext <<_ACEOF
24582 /* confdefs.h. */
24583 _ACEOF
24584 cat confdefs.h >>conftest.$ac_ext
24585 cat >>conftest.$ac_ext <<_ACEOF
24586 /* end confdefs.h. */
24587 #include <${OSS_DIR}/include/soundcard.h>
24588 _ACEOF
24589 if { (ac_try="$ac_cpp conftest.$ac_ext"
24590 case "(($ac_try" in
24591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24592 *) ac_try_echo=$ac_try;;
24593 esac
24594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24596 ac_status=$?
24597 grep -v '^ *+' conftest.er1 >conftest.err
24598 rm -f conftest.er1
24599 cat conftest.err >&5
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); } >/dev/null && {
24602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24603 test ! -s conftest.err
24604 }; then
24605 ac_header_preproc=yes
24606 else
24607 echo "$as_me: failed program was:" >&5
24608 sed 's/^/| /' conftest.$ac_ext >&5
24610 ac_header_preproc=no
24613 rm -f conftest.err conftest.$ac_ext
24614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24615 echo "${ECHO_T}$ac_header_preproc" >&6; }
24617 # So? What about this header?
24618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24619 yes:no: )
24620 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24621 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24622 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
24623 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
24624 ac_header_preproc=yes
24626 no:yes:* )
24627 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
24628 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
24629 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
24630 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
24631 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
24632 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
24633 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24634 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24635 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
24636 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
24637 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
24638 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
24639 ( cat <<\_ASBOX
24640 ## ------------------------------- ##
24641 ## Report this to www.asterisk.org ##
24642 ## ------------------------------- ##
24643 _ASBOX
24644 ) | sed "s/^/$as_me: WARNING: /" >&2
24646 esac
24647 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24648 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24650 echo $ECHO_N "(cached) $ECHO_C" >&6
24651 else
24652 eval "$as_ac_Header=\$ac_header_preproc"
24654 ac_res=`eval echo '${'$as_ac_Header'}'`
24655 { echo "$as_me:$LINENO: result: $ac_res" >&5
24656 echo "${ECHO_T}$ac_res" >&6; }
24659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24660 OSS_HEADER_FOUND=1
24661 else
24662 OSS_HEADER_FOUND=0
24667 CPPFLAGS="${saved_cppflags}"
24668 else
24669 if test "xsoundcard.h" != "x" ; then
24670 if test "${ac_cv_header_soundcard_h+set}" = set; then
24671 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24672 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24673 if test "${ac_cv_header_soundcard_h+set}" = set; then
24674 echo $ECHO_N "(cached) $ECHO_C" >&6
24676 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24677 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24678 else
24679 # Is the header compilable?
24680 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
24681 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
24682 cat >conftest.$ac_ext <<_ACEOF
24683 /* confdefs.h. */
24684 _ACEOF
24685 cat confdefs.h >>conftest.$ac_ext
24686 cat >>conftest.$ac_ext <<_ACEOF
24687 /* end confdefs.h. */
24688 $ac_includes_default
24689 #include <soundcard.h>
24690 _ACEOF
24691 rm -f conftest.$ac_objext
24692 if { (ac_try="$ac_compile"
24693 case "(($ac_try" in
24694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24696 esac
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698 (eval "$ac_compile") 2>conftest.er1
24699 ac_status=$?
24700 grep -v '^ *+' conftest.er1 >conftest.err
24701 rm -f conftest.er1
24702 cat conftest.err >&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); } && {
24705 test -z "$ac_c_werror_flag" ||
24706 test ! -s conftest.err
24707 } && test -s conftest.$ac_objext; then
24708 ac_header_compiler=yes
24709 else
24710 echo "$as_me: failed program was:" >&5
24711 sed 's/^/| /' conftest.$ac_ext >&5
24713 ac_header_compiler=no
24716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24718 echo "${ECHO_T}$ac_header_compiler" >&6; }
24720 # Is the header present?
24721 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
24722 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
24723 cat >conftest.$ac_ext <<_ACEOF
24724 /* confdefs.h. */
24725 _ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24729 #include <soundcard.h>
24730 _ACEOF
24731 if { (ac_try="$ac_cpp conftest.$ac_ext"
24732 case "(($ac_try" in
24733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24734 *) ac_try_echo=$ac_try;;
24735 esac
24736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24738 ac_status=$?
24739 grep -v '^ *+' conftest.er1 >conftest.err
24740 rm -f conftest.er1
24741 cat conftest.err >&5
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); } >/dev/null && {
24744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24745 test ! -s conftest.err
24746 }; then
24747 ac_header_preproc=yes
24748 else
24749 echo "$as_me: failed program was:" >&5
24750 sed 's/^/| /' conftest.$ac_ext >&5
24752 ac_header_preproc=no
24755 rm -f conftest.err conftest.$ac_ext
24756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24757 echo "${ECHO_T}$ac_header_preproc" >&6; }
24759 # So? What about this header?
24760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24761 yes:no: )
24762 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24763 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24764 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
24765 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
24766 ac_header_preproc=yes
24768 no:yes:* )
24769 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
24770 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
24771 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
24772 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
24773 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
24774 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
24775 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24776 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24777 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
24778 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
24779 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
24780 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
24781 ( cat <<\_ASBOX
24782 ## ------------------------------- ##
24783 ## Report this to www.asterisk.org ##
24784 ## ------------------------------- ##
24785 _ASBOX
24786 ) | sed "s/^/$as_me: WARNING: /" >&2
24788 esac
24789 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24790 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24791 if test "${ac_cv_header_soundcard_h+set}" = set; then
24792 echo $ECHO_N "(cached) $ECHO_C" >&6
24793 else
24794 ac_cv_header_soundcard_h=$ac_header_preproc
24796 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24797 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24800 if test $ac_cv_header_soundcard_h = yes; then
24801 OSS_HEADER_FOUND=1
24802 else
24803 OSS_HEADER_FOUND=0
24809 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
24810 if test -n "${OSS_MANDATORY}" ;
24811 then
24812 { echo "$as_me:$LINENO: ***" >&5
24813 echo "$as_me: ***" >&6;}
24814 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
24815 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
24816 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
24817 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
24818 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24819 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24820 exit 1
24822 OSS_LIB=""
24823 OSS_INCLUDE=""
24824 PBX_OSS=0
24825 else
24826 PBX_OSS=1
24828 cat >>confdefs.h <<_ACEOF
24829 #define HAVE_OSS 1
24830 _ACEOF
24833 elif test -n "${OSS_MANDATORY}";
24834 then
24835 { echo "$as_me:$LINENO: ***" >&5
24836 echo "$as_me: ***" >&6;}
24837 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
24838 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
24839 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24840 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24841 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24842 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24843 exit 1
24850 PG_CONFIG=No
24851 if test "${USE_PGSQL}" != "no"; then
24852 if test "x${PGSQL_DIR}" != "x"; then
24853 if test -n "$ac_tool_prefix"; then
24854 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24855 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
24856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24858 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24859 echo $ECHO_N "(cached) $ECHO_C" >&6
24860 else
24861 case $PG_CONFIG in
24862 [\\/]* | ?:[\\/]*)
24863 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
24866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24867 for as_dir in ${PGSQL_DIR}/bin
24869 IFS=$as_save_IFS
24870 test -z "$as_dir" && as_dir=.
24871 for ac_exec_ext in '' $ac_executable_extensions; do
24872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24873 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24875 break 2
24877 done
24878 done
24879 IFS=$as_save_IFS
24882 esac
24884 PG_CONFIG=$ac_cv_path_PG_CONFIG
24885 if test -n "$PG_CONFIG"; then
24886 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
24887 echo "${ECHO_T}$PG_CONFIG" >&6; }
24888 else
24889 { echo "$as_me:$LINENO: result: no" >&5
24890 echo "${ECHO_T}no" >&6; }
24895 if test -z "$ac_cv_path_PG_CONFIG"; then
24896 ac_pt_PG_CONFIG=$PG_CONFIG
24897 # Extract the first word of "pg_config", so it can be a program name with args.
24898 set dummy pg_config; ac_word=$2
24899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24901 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24902 echo $ECHO_N "(cached) $ECHO_C" >&6
24903 else
24904 case $ac_pt_PG_CONFIG in
24905 [\\/]* | ?:[\\/]*)
24906 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
24909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24910 for as_dir in ${PGSQL_DIR}/bin
24912 IFS=$as_save_IFS
24913 test -z "$as_dir" && as_dir=.
24914 for ac_exec_ext in '' $ac_executable_extensions; do
24915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24916 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24918 break 2
24920 done
24921 done
24922 IFS=$as_save_IFS
24925 esac
24927 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
24928 if test -n "$ac_pt_PG_CONFIG"; then
24929 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
24930 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
24931 else
24932 { echo "$as_me:$LINENO: result: no" >&5
24933 echo "${ECHO_T}no" >&6; }
24936 if test "x$ac_pt_PG_CONFIG" = x; then
24937 PG_CONFIG="No"
24938 else
24939 case $cross_compiling:$ac_tool_warned in
24940 yes:)
24941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24942 whose name does not start with the host triplet. If you think this
24943 configuration is useful to you, please write to autoconf@gnu.org." >&5
24944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24945 whose name does not start with the host triplet. If you think this
24946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24947 ac_tool_warned=yes ;;
24948 esac
24949 PG_CONFIG=$ac_pt_PG_CONFIG
24951 else
24952 PG_CONFIG="$ac_cv_path_PG_CONFIG"
24955 if test x"${PG_CONFIG}" = xNo; then
24956 { echo "$as_me:$LINENO: ***" >&5
24957 echo "$as_me: ***" >&6;}
24958 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
24959 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
24960 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
24961 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
24962 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24963 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24964 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
24965 echo "$as_me: *** including --without-postgres" >&6;}
24966 exit 1
24968 else
24969 if test -n "$ac_tool_prefix"; then
24970 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24971 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
24972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24974 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24975 echo $ECHO_N "(cached) $ECHO_C" >&6
24976 else
24977 case $PG_CONFIG in
24978 [\\/]* | ?:[\\/]*)
24979 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
24982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24983 for as_dir in $PATH
24985 IFS=$as_save_IFS
24986 test -z "$as_dir" && as_dir=.
24987 for ac_exec_ext in '' $ac_executable_extensions; do
24988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24989 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24991 break 2
24993 done
24994 done
24995 IFS=$as_save_IFS
24998 esac
25000 PG_CONFIG=$ac_cv_path_PG_CONFIG
25001 if test -n "$PG_CONFIG"; then
25002 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
25003 echo "${ECHO_T}$PG_CONFIG" >&6; }
25004 else
25005 { echo "$as_me:$LINENO: result: no" >&5
25006 echo "${ECHO_T}no" >&6; }
25011 if test -z "$ac_cv_path_PG_CONFIG"; then
25012 ac_pt_PG_CONFIG=$PG_CONFIG
25013 # Extract the first word of "pg_config", so it can be a program name with args.
25014 set dummy pg_config; ac_word=$2
25015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25017 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
25018 echo $ECHO_N "(cached) $ECHO_C" >&6
25019 else
25020 case $ac_pt_PG_CONFIG in
25021 [\\/]* | ?:[\\/]*)
25022 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
25025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25026 for as_dir in $PATH
25028 IFS=$as_save_IFS
25029 test -z "$as_dir" && as_dir=.
25030 for ac_exec_ext in '' $ac_executable_extensions; do
25031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25032 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25034 break 2
25036 done
25037 done
25038 IFS=$as_save_IFS
25041 esac
25043 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
25044 if test -n "$ac_pt_PG_CONFIG"; then
25045 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
25046 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
25047 else
25048 { echo "$as_me:$LINENO: result: no" >&5
25049 echo "${ECHO_T}no" >&6; }
25052 if test "x$ac_pt_PG_CONFIG" = x; then
25053 PG_CONFIG="No"
25054 else
25055 case $cross_compiling:$ac_tool_warned in
25056 yes:)
25057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25058 whose name does not start with the host triplet. If you think this
25059 configuration is useful to you, please write to autoconf@gnu.org." >&5
25060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25061 whose name does not start with the host triplet. If you think this
25062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25063 ac_tool_warned=yes ;;
25064 esac
25065 PG_CONFIG=$ac_pt_PG_CONFIG
25067 else
25068 PG_CONFIG="$ac_cv_path_PG_CONFIG"
25073 if test "${PG_CONFIG}" != No; then
25074 PGSQL_libdir=`${PG_CONFIG} --libdir`
25075 PGSQL_includedir=`${PG_CONFIG} --includedir`
25077 if test "x$?" != "x0" ; then
25078 if test -n "${PGSQL_MANDATORY}" ; then
25079 { echo "$as_me:$LINENO: ***" >&5
25080 echo "$as_me: ***" >&6;}
25081 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25082 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25083 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25084 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25085 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25086 echo "$as_me: *** including --without-postgres" >&6;}
25087 exit 1
25089 else
25090 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
25091 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
25092 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
25093 echo $ECHO_N "(cached) $ECHO_C" >&6
25094 else
25095 ac_check_lib_save_LIBS=$LIBS
25096 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
25097 cat >conftest.$ac_ext <<_ACEOF
25098 /* confdefs.h. */
25099 _ACEOF
25100 cat confdefs.h >>conftest.$ac_ext
25101 cat >>conftest.$ac_ext <<_ACEOF
25102 /* end confdefs.h. */
25104 /* Override any GCC internal prototype to avoid an error.
25105 Use char because int might match the return type of a GCC
25106 builtin and then its argument prototype would still apply. */
25107 #ifdef __cplusplus
25108 extern "C"
25109 #endif
25110 char PQescapeStringConn ();
25112 main ()
25114 return PQescapeStringConn ();
25116 return 0;
25118 _ACEOF
25119 rm -f conftest.$ac_objext conftest$ac_exeext
25120 if { (ac_try="$ac_link"
25121 case "(($ac_try" in
25122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25123 *) ac_try_echo=$ac_try;;
25124 esac
25125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25126 (eval "$ac_link") 2>conftest.er1
25127 ac_status=$?
25128 grep -v '^ *+' conftest.er1 >conftest.err
25129 rm -f conftest.er1
25130 cat conftest.err >&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } && {
25133 test -z "$ac_c_werror_flag" ||
25134 test ! -s conftest.err
25135 } && test -s conftest$ac_exeext &&
25136 $as_test_x conftest$ac_exeext; then
25137 ac_cv_lib_pq_PQescapeStringConn=yes
25138 else
25139 echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25142 ac_cv_lib_pq_PQescapeStringConn=no
25145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25146 conftest$ac_exeext conftest.$ac_ext
25147 LIBS=$ac_check_lib_save_LIBS
25149 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
25150 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
25151 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
25153 cat >>confdefs.h <<_ACEOF
25154 #define HAVE_PGSQL 1
25155 _ACEOF
25160 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
25161 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
25162 PGSQL_INCLUDE="-I${PGSQL_includedir}"
25163 PBX_PGSQL=1
25164 elif test -n "${PGSQL_MANDATORY}";
25165 then
25166 { echo "$as_me:$LINENO: ***" >&5
25167 echo "$as_me: ***" >&6;}
25168 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25169 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25170 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25171 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25172 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25173 echo "$as_me: *** including --without-postgres" >&6;}
25174 exit 1
25177 elif test -n "${PGSQL_MANDATORY}";
25178 then
25179 { echo "$as_me:$LINENO: ***" >&5
25180 echo "$as_me: ***" >&6;}
25181 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25182 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25183 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25184 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25185 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25186 echo "$as_me: *** including --without-postgres" >&6;}
25187 exit 1
25191 if test "${USE_POPT}" != "no"; then
25192 pbxlibdir=""
25193 if test "x${POPT_DIR}" != "x"; then
25194 if test -d ${POPT_DIR}/lib; then
25195 pbxlibdir="-L${POPT_DIR}/lib"
25196 else
25197 pbxlibdir="-L${POPT_DIR}"
25200 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
25201 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
25202 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
25203 echo $ECHO_N "(cached) $ECHO_C" >&6
25204 else
25205 ac_check_lib_save_LIBS=$LIBS
25206 LIBS="-lpopt ${pbxlibdir} $LIBS"
25207 cat >conftest.$ac_ext <<_ACEOF
25208 /* confdefs.h. */
25209 _ACEOF
25210 cat confdefs.h >>conftest.$ac_ext
25211 cat >>conftest.$ac_ext <<_ACEOF
25212 /* end confdefs.h. */
25214 /* Override any GCC internal prototype to avoid an error.
25215 Use char because int might match the return type of a GCC
25216 builtin and then its argument prototype would still apply. */
25217 #ifdef __cplusplus
25218 extern "C"
25219 #endif
25220 char poptStrerror ();
25222 main ()
25224 return poptStrerror ();
25226 return 0;
25228 _ACEOF
25229 rm -f conftest.$ac_objext conftest$ac_exeext
25230 if { (ac_try="$ac_link"
25231 case "(($ac_try" in
25232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25233 *) ac_try_echo=$ac_try;;
25234 esac
25235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25236 (eval "$ac_link") 2>conftest.er1
25237 ac_status=$?
25238 grep -v '^ *+' conftest.er1 >conftest.err
25239 rm -f conftest.er1
25240 cat conftest.err >&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } && {
25243 test -z "$ac_c_werror_flag" ||
25244 test ! -s conftest.err
25245 } && test -s conftest$ac_exeext &&
25246 $as_test_x conftest$ac_exeext; then
25247 ac_cv_lib_popt_poptStrerror=yes
25248 else
25249 echo "$as_me: failed program was:" >&5
25250 sed 's/^/| /' conftest.$ac_ext >&5
25252 ac_cv_lib_popt_poptStrerror=no
25255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25256 conftest$ac_exeext conftest.$ac_ext
25257 LIBS=$ac_check_lib_save_LIBS
25259 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
25260 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
25261 if test $ac_cv_lib_popt_poptStrerror = yes; then
25262 AST_POPT_FOUND=yes
25263 else
25264 AST_POPT_FOUND=no
25268 if test "${AST_POPT_FOUND}" = "yes"; then
25269 POPT_LIB="-lpopt "
25270 POPT_HEADER_FOUND="1"
25271 if test "x${POPT_DIR}" != "x"; then
25272 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
25273 POPT_INCLUDE="-I${POPT_DIR}/include"
25274 saved_cppflags="${CPPFLAGS}"
25275 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include"
25276 if test "xpopt.h" != "x" ; then
25277 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
25278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25279 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25280 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25282 echo $ECHO_N "(cached) $ECHO_C" >&6
25284 ac_res=`eval echo '${'$as_ac_Header'}'`
25285 { echo "$as_me:$LINENO: result: $ac_res" >&5
25286 echo "${ECHO_T}$ac_res" >&6; }
25287 else
25288 # Is the header compilable?
25289 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
25290 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
25291 cat >conftest.$ac_ext <<_ACEOF
25292 /* confdefs.h. */
25293 _ACEOF
25294 cat confdefs.h >>conftest.$ac_ext
25295 cat >>conftest.$ac_ext <<_ACEOF
25296 /* end confdefs.h. */
25297 $ac_includes_default
25298 #include <${POPT_DIR}/include/popt.h>
25299 _ACEOF
25300 rm -f conftest.$ac_objext
25301 if { (ac_try="$ac_compile"
25302 case "(($ac_try" in
25303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25304 *) ac_try_echo=$ac_try;;
25305 esac
25306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25307 (eval "$ac_compile") 2>conftest.er1
25308 ac_status=$?
25309 grep -v '^ *+' conftest.er1 >conftest.err
25310 rm -f conftest.er1
25311 cat conftest.err >&5
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); } && {
25314 test -z "$ac_c_werror_flag" ||
25315 test ! -s conftest.err
25316 } && test -s conftest.$ac_objext; then
25317 ac_header_compiler=yes
25318 else
25319 echo "$as_me: failed program was:" >&5
25320 sed 's/^/| /' conftest.$ac_ext >&5
25322 ac_header_compiler=no
25325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25327 echo "${ECHO_T}$ac_header_compiler" >&6; }
25329 # Is the header present?
25330 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
25331 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
25332 cat >conftest.$ac_ext <<_ACEOF
25333 /* confdefs.h. */
25334 _ACEOF
25335 cat confdefs.h >>conftest.$ac_ext
25336 cat >>conftest.$ac_ext <<_ACEOF
25337 /* end confdefs.h. */
25338 #include <${POPT_DIR}/include/popt.h>
25339 _ACEOF
25340 if { (ac_try="$ac_cpp conftest.$ac_ext"
25341 case "(($ac_try" in
25342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25343 *) ac_try_echo=$ac_try;;
25344 esac
25345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25347 ac_status=$?
25348 grep -v '^ *+' conftest.er1 >conftest.err
25349 rm -f conftest.er1
25350 cat conftest.err >&5
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); } >/dev/null && {
25353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25354 test ! -s conftest.err
25355 }; then
25356 ac_header_preproc=yes
25357 else
25358 echo "$as_me: failed program was:" >&5
25359 sed 's/^/| /' conftest.$ac_ext >&5
25361 ac_header_preproc=no
25364 rm -f conftest.err conftest.$ac_ext
25365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25366 echo "${ECHO_T}$ac_header_preproc" >&6; }
25368 # So? What about this header?
25369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25370 yes:no: )
25371 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25372 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25373 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
25374 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
25375 ac_header_preproc=yes
25377 no:yes:* )
25378 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
25379 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
25380 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
25381 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
25382 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
25383 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
25384 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
25385 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25386 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
25387 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
25388 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
25389 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
25390 ( cat <<\_ASBOX
25391 ## ------------------------------- ##
25392 ## Report this to www.asterisk.org ##
25393 ## ------------------------------- ##
25394 _ASBOX
25395 ) | sed "s/^/$as_me: WARNING: /" >&2
25397 esac
25398 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25399 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25402 else
25403 eval "$as_ac_Header=\$ac_header_preproc"
25405 ac_res=`eval echo '${'$as_ac_Header'}'`
25406 { echo "$as_me:$LINENO: result: $ac_res" >&5
25407 echo "${ECHO_T}$ac_res" >&6; }
25410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25411 POPT_HEADER_FOUND=1
25412 else
25413 POPT_HEADER_FOUND=0
25418 CPPFLAGS="${saved_cppflags}"
25419 else
25420 if test "xpopt.h" != "x" ; then
25421 if test "${ac_cv_header_popt_h+set}" = set; then
25422 { echo "$as_me:$LINENO: checking for popt.h" >&5
25423 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25424 if test "${ac_cv_header_popt_h+set}" = set; then
25425 echo $ECHO_N "(cached) $ECHO_C" >&6
25427 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25428 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25429 else
25430 # Is the header compilable?
25431 { echo "$as_me:$LINENO: checking popt.h usability" >&5
25432 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
25433 cat >conftest.$ac_ext <<_ACEOF
25434 /* confdefs.h. */
25435 _ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 $ac_includes_default
25440 #include <popt.h>
25441 _ACEOF
25442 rm -f conftest.$ac_objext
25443 if { (ac_try="$ac_compile"
25444 case "(($ac_try" in
25445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25446 *) ac_try_echo=$ac_try;;
25447 esac
25448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25449 (eval "$ac_compile") 2>conftest.er1
25450 ac_status=$?
25451 grep -v '^ *+' conftest.er1 >conftest.err
25452 rm -f conftest.er1
25453 cat conftest.err >&5
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } && {
25456 test -z "$ac_c_werror_flag" ||
25457 test ! -s conftest.err
25458 } && test -s conftest.$ac_objext; then
25459 ac_header_compiler=yes
25460 else
25461 echo "$as_me: failed program was:" >&5
25462 sed 's/^/| /' conftest.$ac_ext >&5
25464 ac_header_compiler=no
25467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25469 echo "${ECHO_T}$ac_header_compiler" >&6; }
25471 # Is the header present?
25472 { echo "$as_me:$LINENO: checking popt.h presence" >&5
25473 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
25474 cat >conftest.$ac_ext <<_ACEOF
25475 /* confdefs.h. */
25476 _ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h. */
25480 #include <popt.h>
25481 _ACEOF
25482 if { (ac_try="$ac_cpp conftest.$ac_ext"
25483 case "(($ac_try" in
25484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25485 *) ac_try_echo=$ac_try;;
25486 esac
25487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25489 ac_status=$?
25490 grep -v '^ *+' conftest.er1 >conftest.err
25491 rm -f conftest.er1
25492 cat conftest.err >&5
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } >/dev/null && {
25495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25496 test ! -s conftest.err
25497 }; then
25498 ac_header_preproc=yes
25499 else
25500 echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25503 ac_header_preproc=no
25506 rm -f conftest.err conftest.$ac_ext
25507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25508 echo "${ECHO_T}$ac_header_preproc" >&6; }
25510 # So? What about this header?
25511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25512 yes:no: )
25513 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25514 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25515 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
25516 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
25517 ac_header_preproc=yes
25519 no:yes:* )
25520 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
25521 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
25522 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
25523 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
25524 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
25525 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
25526 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
25527 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25528 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
25529 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
25530 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
25531 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
25532 ( cat <<\_ASBOX
25533 ## ------------------------------- ##
25534 ## Report this to www.asterisk.org ##
25535 ## ------------------------------- ##
25536 _ASBOX
25537 ) | sed "s/^/$as_me: WARNING: /" >&2
25539 esac
25540 { echo "$as_me:$LINENO: checking for popt.h" >&5
25541 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25542 if test "${ac_cv_header_popt_h+set}" = set; then
25543 echo $ECHO_N "(cached) $ECHO_C" >&6
25544 else
25545 ac_cv_header_popt_h=$ac_header_preproc
25547 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25548 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25551 if test $ac_cv_header_popt_h = yes; then
25552 POPT_HEADER_FOUND=1
25553 else
25554 POPT_HEADER_FOUND=0
25560 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
25561 if test -n "${POPT_MANDATORY}" ;
25562 then
25563 { echo "$as_me:$LINENO: ***" >&5
25564 echo "$as_me: ***" >&6;}
25565 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
25566 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
25567 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
25568 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
25569 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25570 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25571 exit 1
25573 POPT_LIB=""
25574 POPT_INCLUDE=""
25575 PBX_POPT=0
25576 else
25577 PBX_POPT=1
25579 cat >>confdefs.h <<_ACEOF
25580 #define HAVE_POPT 1
25581 _ACEOF
25584 elif test -n "${POPT_MANDATORY}";
25585 then
25586 { echo "$as_me:$LINENO: ***" >&5
25587 echo "$as_me: ***" >&6;}
25588 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
25589 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
25590 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25591 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25592 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25593 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25594 exit 1
25600 if test "${USE_PRI}" != "no"; then
25601 pbxlibdir=""
25602 if test "x${PRI_DIR}" != "x"; then
25603 if test -d ${PRI_DIR}/lib; then
25604 pbxlibdir="-L${PRI_DIR}/lib"
25605 else
25606 pbxlibdir="-L${PRI_DIR}"
25609 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
25610 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
25611 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
25613 else
25614 ac_check_lib_save_LIBS=$LIBS
25615 LIBS="-lpri ${pbxlibdir} $LIBS"
25616 cat >conftest.$ac_ext <<_ACEOF
25617 /* confdefs.h. */
25618 _ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h. */
25623 /* Override any GCC internal prototype to avoid an error.
25624 Use char because int might match the return type of a GCC
25625 builtin and then its argument prototype would still apply. */
25626 #ifdef __cplusplus
25627 extern "C"
25628 #endif
25629 char pri_keypad_facility ();
25631 main ()
25633 return pri_keypad_facility ();
25635 return 0;
25637 _ACEOF
25638 rm -f conftest.$ac_objext conftest$ac_exeext
25639 if { (ac_try="$ac_link"
25640 case "(($ac_try" in
25641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642 *) ac_try_echo=$ac_try;;
25643 esac
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645 (eval "$ac_link") 2>conftest.er1
25646 ac_status=$?
25647 grep -v '^ *+' conftest.er1 >conftest.err
25648 rm -f conftest.er1
25649 cat conftest.err >&5
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } && {
25652 test -z "$ac_c_werror_flag" ||
25653 test ! -s conftest.err
25654 } && test -s conftest$ac_exeext &&
25655 $as_test_x conftest$ac_exeext; then
25656 ac_cv_lib_pri_pri_keypad_facility=yes
25657 else
25658 echo "$as_me: failed program was:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25661 ac_cv_lib_pri_pri_keypad_facility=no
25664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25665 conftest$ac_exeext conftest.$ac_ext
25666 LIBS=$ac_check_lib_save_LIBS
25668 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
25669 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
25670 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
25671 AST_PRI_FOUND=yes
25672 else
25673 AST_PRI_FOUND=no
25677 if test "${AST_PRI_FOUND}" = "yes"; then
25678 PRI_LIB="-lpri "
25679 PRI_HEADER_FOUND="1"
25680 if test "x${PRI_DIR}" != "x"; then
25681 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
25682 PRI_INCLUDE="-I${PRI_DIR}/include"
25683 saved_cppflags="${CPPFLAGS}"
25684 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
25685 if test "xlibpri.h" != "x" ; then
25686 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
25687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25688 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25689 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25691 echo $ECHO_N "(cached) $ECHO_C" >&6
25693 ac_res=`eval echo '${'$as_ac_Header'}'`
25694 { echo "$as_me:$LINENO: result: $ac_res" >&5
25695 echo "${ECHO_T}$ac_res" >&6; }
25696 else
25697 # Is the header compilable?
25698 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
25699 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
25700 cat >conftest.$ac_ext <<_ACEOF
25701 /* confdefs.h. */
25702 _ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h. */
25706 $ac_includes_default
25707 #include <${PRI_DIR}/include/libpri.h>
25708 _ACEOF
25709 rm -f conftest.$ac_objext
25710 if { (ac_try="$ac_compile"
25711 case "(($ac_try" in
25712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25713 *) ac_try_echo=$ac_try;;
25714 esac
25715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25716 (eval "$ac_compile") 2>conftest.er1
25717 ac_status=$?
25718 grep -v '^ *+' conftest.er1 >conftest.err
25719 rm -f conftest.er1
25720 cat conftest.err >&5
25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); } && {
25723 test -z "$ac_c_werror_flag" ||
25724 test ! -s conftest.err
25725 } && test -s conftest.$ac_objext; then
25726 ac_header_compiler=yes
25727 else
25728 echo "$as_me: failed program was:" >&5
25729 sed 's/^/| /' conftest.$ac_ext >&5
25731 ac_header_compiler=no
25734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25736 echo "${ECHO_T}$ac_header_compiler" >&6; }
25738 # Is the header present?
25739 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
25740 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
25741 cat >conftest.$ac_ext <<_ACEOF
25742 /* confdefs.h. */
25743 _ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h. */
25747 #include <${PRI_DIR}/include/libpri.h>
25748 _ACEOF
25749 if { (ac_try="$ac_cpp conftest.$ac_ext"
25750 case "(($ac_try" in
25751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752 *) ac_try_echo=$ac_try;;
25753 esac
25754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25756 ac_status=$?
25757 grep -v '^ *+' conftest.er1 >conftest.err
25758 rm -f conftest.er1
25759 cat conftest.err >&5
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); } >/dev/null && {
25762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25763 test ! -s conftest.err
25764 }; then
25765 ac_header_preproc=yes
25766 else
25767 echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25770 ac_header_preproc=no
25773 rm -f conftest.err conftest.$ac_ext
25774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25775 echo "${ECHO_T}$ac_header_preproc" >&6; }
25777 # So? What about this header?
25778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25779 yes:no: )
25780 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25781 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25782 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
25783 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
25784 ac_header_preproc=yes
25786 no:yes:* )
25787 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
25788 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
25789 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
25790 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
25791 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
25792 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
25793 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25794 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25795 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
25796 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
25797 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
25798 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
25799 ( cat <<\_ASBOX
25800 ## ------------------------------- ##
25801 ## Report this to www.asterisk.org ##
25802 ## ------------------------------- ##
25803 _ASBOX
25804 ) | sed "s/^/$as_me: WARNING: /" >&2
25806 esac
25807 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25808 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25810 echo $ECHO_N "(cached) $ECHO_C" >&6
25811 else
25812 eval "$as_ac_Header=\$ac_header_preproc"
25814 ac_res=`eval echo '${'$as_ac_Header'}'`
25815 { echo "$as_me:$LINENO: result: $ac_res" >&5
25816 echo "${ECHO_T}$ac_res" >&6; }
25819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25820 PRI_HEADER_FOUND=1
25821 else
25822 PRI_HEADER_FOUND=0
25827 CPPFLAGS="${saved_cppflags}"
25828 else
25829 if test "xlibpri.h" != "x" ; then
25830 if test "${ac_cv_header_libpri_h+set}" = set; then
25831 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25832 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25833 if test "${ac_cv_header_libpri_h+set}" = set; then
25834 echo $ECHO_N "(cached) $ECHO_C" >&6
25836 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25837 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25838 else
25839 # Is the header compilable?
25840 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
25841 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
25842 cat >conftest.$ac_ext <<_ACEOF
25843 /* confdefs.h. */
25844 _ACEOF
25845 cat confdefs.h >>conftest.$ac_ext
25846 cat >>conftest.$ac_ext <<_ACEOF
25847 /* end confdefs.h. */
25848 $ac_includes_default
25849 #include <libpri.h>
25850 _ACEOF
25851 rm -f conftest.$ac_objext
25852 if { (ac_try="$ac_compile"
25853 case "(($ac_try" in
25854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25855 *) ac_try_echo=$ac_try;;
25856 esac
25857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25858 (eval "$ac_compile") 2>conftest.er1
25859 ac_status=$?
25860 grep -v '^ *+' conftest.er1 >conftest.err
25861 rm -f conftest.er1
25862 cat conftest.err >&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); } && {
25865 test -z "$ac_c_werror_flag" ||
25866 test ! -s conftest.err
25867 } && test -s conftest.$ac_objext; then
25868 ac_header_compiler=yes
25869 else
25870 echo "$as_me: failed program was:" >&5
25871 sed 's/^/| /' conftest.$ac_ext >&5
25873 ac_header_compiler=no
25876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25878 echo "${ECHO_T}$ac_header_compiler" >&6; }
25880 # Is the header present?
25881 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
25882 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
25883 cat >conftest.$ac_ext <<_ACEOF
25884 /* confdefs.h. */
25885 _ACEOF
25886 cat confdefs.h >>conftest.$ac_ext
25887 cat >>conftest.$ac_ext <<_ACEOF
25888 /* end confdefs.h. */
25889 #include <libpri.h>
25890 _ACEOF
25891 if { (ac_try="$ac_cpp conftest.$ac_ext"
25892 case "(($ac_try" in
25893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25894 *) ac_try_echo=$ac_try;;
25895 esac
25896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25898 ac_status=$?
25899 grep -v '^ *+' conftest.er1 >conftest.err
25900 rm -f conftest.er1
25901 cat conftest.err >&5
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); } >/dev/null && {
25904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25905 test ! -s conftest.err
25906 }; then
25907 ac_header_preproc=yes
25908 else
25909 echo "$as_me: failed program was:" >&5
25910 sed 's/^/| /' conftest.$ac_ext >&5
25912 ac_header_preproc=no
25915 rm -f conftest.err conftest.$ac_ext
25916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25917 echo "${ECHO_T}$ac_header_preproc" >&6; }
25919 # So? What about this header?
25920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25921 yes:no: )
25922 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25923 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25924 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
25925 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
25926 ac_header_preproc=yes
25928 no:yes:* )
25929 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
25930 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
25931 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
25932 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
25933 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
25934 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
25935 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25936 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25937 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
25938 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
25939 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
25940 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
25941 ( cat <<\_ASBOX
25942 ## ------------------------------- ##
25943 ## Report this to www.asterisk.org ##
25944 ## ------------------------------- ##
25945 _ASBOX
25946 ) | sed "s/^/$as_me: WARNING: /" >&2
25948 esac
25949 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25950 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25951 if test "${ac_cv_header_libpri_h+set}" = set; then
25952 echo $ECHO_N "(cached) $ECHO_C" >&6
25953 else
25954 ac_cv_header_libpri_h=$ac_header_preproc
25956 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25957 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25960 if test $ac_cv_header_libpri_h = yes; then
25961 PRI_HEADER_FOUND=1
25962 else
25963 PRI_HEADER_FOUND=0
25969 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
25970 if test -n "${PRI_MANDATORY}" ;
25971 then
25972 { echo "$as_me:$LINENO: ***" >&5
25973 echo "$as_me: ***" >&6;}
25974 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
25975 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
25976 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
25977 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
25978 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
25979 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
25980 exit 1
25982 PRI_LIB=""
25983 PRI_INCLUDE=""
25984 PBX_PRI=0
25985 else
25986 PBX_PRI=1
25988 cat >>confdefs.h <<_ACEOF
25989 #define HAVE_PRI 1
25990 _ACEOF
25993 elif test -n "${PRI_MANDATORY}";
25994 then
25995 { echo "$as_me:$LINENO: ***" >&5
25996 echo "$as_me: ***" >&6;}
25997 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
25998 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
25999 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26000 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26001 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
26002 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
26003 exit 1
26009 if test "${USE_PRI_VERSION}" != "no"; then
26010 pbxlibdir=""
26011 if test "x${PRI_VERSION_DIR}" != "x"; then
26012 if test -d ${PRI_VERSION_DIR}/lib; then
26013 pbxlibdir="-L${PRI_VERSION_DIR}/lib"
26014 else
26015 pbxlibdir="-L${PRI_VERSION_DIR}"
26018 { echo "$as_me:$LINENO: checking for pri_get_version in -lpri" >&5
26019 echo $ECHO_N "checking for pri_get_version in -lpri... $ECHO_C" >&6; }
26020 if test "${ac_cv_lib_pri_pri_get_version+set}" = set; then
26021 echo $ECHO_N "(cached) $ECHO_C" >&6
26022 else
26023 ac_check_lib_save_LIBS=$LIBS
26024 LIBS="-lpri ${pbxlibdir} $LIBS"
26025 cat >conftest.$ac_ext <<_ACEOF
26026 /* confdefs.h. */
26027 _ACEOF
26028 cat confdefs.h >>conftest.$ac_ext
26029 cat >>conftest.$ac_ext <<_ACEOF
26030 /* end confdefs.h. */
26032 /* Override any GCC internal prototype to avoid an error.
26033 Use char because int might match the return type of a GCC
26034 builtin and then its argument prototype would still apply. */
26035 #ifdef __cplusplus
26036 extern "C"
26037 #endif
26038 char pri_get_version ();
26040 main ()
26042 return pri_get_version ();
26044 return 0;
26046 _ACEOF
26047 rm -f conftest.$ac_objext conftest$ac_exeext
26048 if { (ac_try="$ac_link"
26049 case "(($ac_try" in
26050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26051 *) ac_try_echo=$ac_try;;
26052 esac
26053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26054 (eval "$ac_link") 2>conftest.er1
26055 ac_status=$?
26056 grep -v '^ *+' conftest.er1 >conftest.err
26057 rm -f conftest.er1
26058 cat conftest.err >&5
26059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060 (exit $ac_status); } && {
26061 test -z "$ac_c_werror_flag" ||
26062 test ! -s conftest.err
26063 } && test -s conftest$ac_exeext &&
26064 $as_test_x conftest$ac_exeext; then
26065 ac_cv_lib_pri_pri_get_version=yes
26066 else
26067 echo "$as_me: failed program was:" >&5
26068 sed 's/^/| /' conftest.$ac_ext >&5
26070 ac_cv_lib_pri_pri_get_version=no
26073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26074 conftest$ac_exeext conftest.$ac_ext
26075 LIBS=$ac_check_lib_save_LIBS
26077 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_get_version" >&5
26078 echo "${ECHO_T}$ac_cv_lib_pri_pri_get_version" >&6; }
26079 if test $ac_cv_lib_pri_pri_get_version = yes; then
26080 AST_PRI_VERSION_FOUND=yes
26081 else
26082 AST_PRI_VERSION_FOUND=no
26086 if test "${AST_PRI_VERSION_FOUND}" = "yes"; then
26087 PRI_VERSION_LIB="-lpri "
26088 PRI_VERSION_HEADER_FOUND="1"
26089 if test "x${PRI_VERSION_DIR}" != "x"; then
26090 PRI_VERSION_LIB="${pbxlibdir} ${PRI_VERSION_LIB}"
26091 PRI_VERSION_INCLUDE="-I${PRI_VERSION_DIR}/include"
26092 saved_cppflags="${CPPFLAGS}"
26093 CPPFLAGS="${CPPFLAGS} -I${PRI_VERSION_DIR}/include"
26094 if test "xlibpri.h" != "x" ; then
26095 as_ac_Header=`echo "ac_cv_header_${PRI_VERSION_DIR}/include/libpri.h" | $as_tr_sh`
26096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26097 { echo "$as_me:$LINENO: checking for ${PRI_VERSION_DIR}/include/libpri.h" >&5
26098 echo $ECHO_N "checking for ${PRI_VERSION_DIR}/include/libpri.h... $ECHO_C" >&6; }
26099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26100 echo $ECHO_N "(cached) $ECHO_C" >&6
26102 ac_res=`eval echo '${'$as_ac_Header'}'`
26103 { echo "$as_me:$LINENO: result: $ac_res" >&5
26104 echo "${ECHO_T}$ac_res" >&6; }
26105 else
26106 # Is the header compilable?
26107 { echo "$as_me:$LINENO: checking ${PRI_VERSION_DIR}/include/libpri.h usability" >&5
26108 echo $ECHO_N "checking ${PRI_VERSION_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
26109 cat >conftest.$ac_ext <<_ACEOF
26110 /* confdefs.h. */
26111 _ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h. */
26115 $ac_includes_default
26116 #include <${PRI_VERSION_DIR}/include/libpri.h>
26117 _ACEOF
26118 rm -f conftest.$ac_objext
26119 if { (ac_try="$ac_compile"
26120 case "(($ac_try" in
26121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122 *) ac_try_echo=$ac_try;;
26123 esac
26124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26125 (eval "$ac_compile") 2>conftest.er1
26126 ac_status=$?
26127 grep -v '^ *+' conftest.er1 >conftest.err
26128 rm -f conftest.er1
26129 cat conftest.err >&5
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); } && {
26132 test -z "$ac_c_werror_flag" ||
26133 test ! -s conftest.err
26134 } && test -s conftest.$ac_objext; then
26135 ac_header_compiler=yes
26136 else
26137 echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26140 ac_header_compiler=no
26143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26145 echo "${ECHO_T}$ac_header_compiler" >&6; }
26147 # Is the header present?
26148 { echo "$as_me:$LINENO: checking ${PRI_VERSION_DIR}/include/libpri.h presence" >&5
26149 echo $ECHO_N "checking ${PRI_VERSION_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
26150 cat >conftest.$ac_ext <<_ACEOF
26151 /* confdefs.h. */
26152 _ACEOF
26153 cat confdefs.h >>conftest.$ac_ext
26154 cat >>conftest.$ac_ext <<_ACEOF
26155 /* end confdefs.h. */
26156 #include <${PRI_VERSION_DIR}/include/libpri.h>
26157 _ACEOF
26158 if { (ac_try="$ac_cpp conftest.$ac_ext"
26159 case "(($ac_try" in
26160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26161 *) ac_try_echo=$ac_try;;
26162 esac
26163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26165 ac_status=$?
26166 grep -v '^ *+' conftest.er1 >conftest.err
26167 rm -f conftest.er1
26168 cat conftest.err >&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); } >/dev/null && {
26171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26172 test ! -s conftest.err
26173 }; then
26174 ac_header_preproc=yes
26175 else
26176 echo "$as_me: failed program was:" >&5
26177 sed 's/^/| /' conftest.$ac_ext >&5
26179 ac_header_preproc=no
26182 rm -f conftest.err conftest.$ac_ext
26183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26184 echo "${ECHO_T}$ac_header_preproc" >&6; }
26186 # So? What about this header?
26187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26188 yes:no: )
26189 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
26190 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26191 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
26192 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
26193 ac_header_preproc=yes
26195 no:yes:* )
26196 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: present but cannot be compiled" >&5
26197 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
26198 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
26199 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
26200 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: see the Autoconf documentation" >&5
26201 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
26202 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
26203 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
26204 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
26205 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
26206 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
26207 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
26208 ( cat <<\_ASBOX
26209 ## ------------------------------- ##
26210 ## Report this to www.asterisk.org ##
26211 ## ------------------------------- ##
26212 _ASBOX
26213 ) | sed "s/^/$as_me: WARNING: /" >&2
26215 esac
26216 { echo "$as_me:$LINENO: checking for ${PRI_VERSION_DIR}/include/libpri.h" >&5
26217 echo $ECHO_N "checking for ${PRI_VERSION_DIR}/include/libpri.h... $ECHO_C" >&6; }
26218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26219 echo $ECHO_N "(cached) $ECHO_C" >&6
26220 else
26221 eval "$as_ac_Header=\$ac_header_preproc"
26223 ac_res=`eval echo '${'$as_ac_Header'}'`
26224 { echo "$as_me:$LINENO: result: $ac_res" >&5
26225 echo "${ECHO_T}$ac_res" >&6; }
26228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26229 PRI_VERSION_HEADER_FOUND=1
26230 else
26231 PRI_VERSION_HEADER_FOUND=0
26236 CPPFLAGS="${saved_cppflags}"
26237 else
26238 if test "xlibpri.h" != "x" ; then
26239 if test "${ac_cv_header_libpri_h+set}" = set; then
26240 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26241 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26242 if test "${ac_cv_header_libpri_h+set}" = set; then
26243 echo $ECHO_N "(cached) $ECHO_C" >&6
26245 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26246 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26247 else
26248 # Is the header compilable?
26249 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
26250 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
26251 cat >conftest.$ac_ext <<_ACEOF
26252 /* confdefs.h. */
26253 _ACEOF
26254 cat confdefs.h >>conftest.$ac_ext
26255 cat >>conftest.$ac_ext <<_ACEOF
26256 /* end confdefs.h. */
26257 $ac_includes_default
26258 #include <libpri.h>
26259 _ACEOF
26260 rm -f conftest.$ac_objext
26261 if { (ac_try="$ac_compile"
26262 case "(($ac_try" in
26263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26264 *) ac_try_echo=$ac_try;;
26265 esac
26266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26267 (eval "$ac_compile") 2>conftest.er1
26268 ac_status=$?
26269 grep -v '^ *+' conftest.er1 >conftest.err
26270 rm -f conftest.er1
26271 cat conftest.err >&5
26272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273 (exit $ac_status); } && {
26274 test -z "$ac_c_werror_flag" ||
26275 test ! -s conftest.err
26276 } && test -s conftest.$ac_objext; then
26277 ac_header_compiler=yes
26278 else
26279 echo "$as_me: failed program was:" >&5
26280 sed 's/^/| /' conftest.$ac_ext >&5
26282 ac_header_compiler=no
26285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26287 echo "${ECHO_T}$ac_header_compiler" >&6; }
26289 # Is the header present?
26290 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
26291 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
26292 cat >conftest.$ac_ext <<_ACEOF
26293 /* confdefs.h. */
26294 _ACEOF
26295 cat confdefs.h >>conftest.$ac_ext
26296 cat >>conftest.$ac_ext <<_ACEOF
26297 /* end confdefs.h. */
26298 #include <libpri.h>
26299 _ACEOF
26300 if { (ac_try="$ac_cpp conftest.$ac_ext"
26301 case "(($ac_try" in
26302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303 *) ac_try_echo=$ac_try;;
26304 esac
26305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26307 ac_status=$?
26308 grep -v '^ *+' conftest.er1 >conftest.err
26309 rm -f conftest.er1
26310 cat conftest.err >&5
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } >/dev/null && {
26313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26314 test ! -s conftest.err
26315 }; then
26316 ac_header_preproc=yes
26317 else
26318 echo "$as_me: failed program was:" >&5
26319 sed 's/^/| /' conftest.$ac_ext >&5
26321 ac_header_preproc=no
26324 rm -f conftest.err conftest.$ac_ext
26325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26326 echo "${ECHO_T}$ac_header_preproc" >&6; }
26328 # So? What about this header?
26329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26330 yes:no: )
26331 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
26332 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26333 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
26334 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
26335 ac_header_preproc=yes
26337 no:yes:* )
26338 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
26339 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
26340 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
26341 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
26342 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
26343 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
26344 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
26345 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
26346 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
26347 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
26348 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
26349 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
26350 ( cat <<\_ASBOX
26351 ## ------------------------------- ##
26352 ## Report this to www.asterisk.org ##
26353 ## ------------------------------- ##
26354 _ASBOX
26355 ) | sed "s/^/$as_me: WARNING: /" >&2
26357 esac
26358 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26359 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26360 if test "${ac_cv_header_libpri_h+set}" = set; then
26361 echo $ECHO_N "(cached) $ECHO_C" >&6
26362 else
26363 ac_cv_header_libpri_h=$ac_header_preproc
26365 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26366 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26369 if test $ac_cv_header_libpri_h = yes; then
26370 PRI_VERSION_HEADER_FOUND=1
26371 else
26372 PRI_VERSION_HEADER_FOUND=0
26378 if test "x${PRI_VERSION_HEADER_FOUND}" = "x0" ; then
26379 if test -n "${PRI_VERSION_MANDATORY}" ;
26380 then
26381 { echo "$as_me:$LINENO: ***" >&5
26382 echo "$as_me: ***" >&6;}
26383 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
26384 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
26385 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&5
26386 echo "$as_me: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&6;}
26387 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
26388 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
26389 exit 1
26391 PRI_VERSION_LIB=""
26392 PRI_VERSION_INCLUDE=""
26393 PBX_PRI_VERSION=0
26394 else
26395 PBX_PRI_VERSION=1
26397 cat >>confdefs.h <<_ACEOF
26398 #define HAVE_PRI_VERSION 1
26399 _ACEOF
26402 elif test -n "${PRI_VERSION_MANDATORY}";
26403 then
26404 { echo "$as_me:$LINENO: ***" >&5
26405 echo "$as_me: ***" >&6;}
26406 { echo "$as_me:$LINENO: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&5
26407 echo "$as_me: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&6;}
26408 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26409 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26410 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
26411 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
26412 exit 1
26417 if test "${USE_PWLIB}" != "no"; then
26418 if test -n "${PWLIB_DIR}"; then
26419 PWLIBDIR="${PWLIB_DIR}"
26423 PWLIB_INCDIR=
26424 PWLIB_LIBDIR=
26425 ac_ext=cpp
26426 ac_cpp='$CXXCPP $CPPFLAGS'
26427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26431 if test "${PWLIBDIR:-unset}" != "unset" ; then
26432 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
26433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26434 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26435 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26437 echo $ECHO_N "(cached) $ECHO_C" >&6
26439 ac_res=`eval echo '${'$as_ac_Header'}'`
26440 { echo "$as_me:$LINENO: result: $ac_res" >&5
26441 echo "${ECHO_T}$ac_res" >&6; }
26442 else
26443 # Is the header compilable?
26444 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
26445 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
26446 cat >conftest.$ac_ext <<_ACEOF
26447 /* confdefs.h. */
26448 _ACEOF
26449 cat confdefs.h >>conftest.$ac_ext
26450 cat >>conftest.$ac_ext <<_ACEOF
26451 /* end confdefs.h. */
26452 $ac_includes_default
26453 #include <${PWLIBDIR}/version.h>
26454 _ACEOF
26455 rm -f conftest.$ac_objext
26456 if { (ac_try="$ac_compile"
26457 case "(($ac_try" in
26458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26459 *) ac_try_echo=$ac_try;;
26460 esac
26461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26462 (eval "$ac_compile") 2>conftest.er1
26463 ac_status=$?
26464 grep -v '^ *+' conftest.er1 >conftest.err
26465 rm -f conftest.er1
26466 cat conftest.err >&5
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); } && {
26469 test -z "$ac_cxx_werror_flag" ||
26470 test ! -s conftest.err
26471 } && test -s conftest.$ac_objext; then
26472 ac_header_compiler=yes
26473 else
26474 echo "$as_me: failed program was:" >&5
26475 sed 's/^/| /' conftest.$ac_ext >&5
26477 ac_header_compiler=no
26480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26482 echo "${ECHO_T}$ac_header_compiler" >&6; }
26484 # Is the header present?
26485 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
26486 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
26487 cat >conftest.$ac_ext <<_ACEOF
26488 /* confdefs.h. */
26489 _ACEOF
26490 cat confdefs.h >>conftest.$ac_ext
26491 cat >>conftest.$ac_ext <<_ACEOF
26492 /* end confdefs.h. */
26493 #include <${PWLIBDIR}/version.h>
26494 _ACEOF
26495 if { (ac_try="$ac_cpp conftest.$ac_ext"
26496 case "(($ac_try" in
26497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26498 *) ac_try_echo=$ac_try;;
26499 esac
26500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26502 ac_status=$?
26503 grep -v '^ *+' conftest.er1 >conftest.err
26504 rm -f conftest.er1
26505 cat conftest.err >&5
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); } >/dev/null && {
26508 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26509 test ! -s conftest.err
26510 }; then
26511 ac_header_preproc=yes
26512 else
26513 echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26516 ac_header_preproc=no
26519 rm -f conftest.err conftest.$ac_ext
26520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26521 echo "${ECHO_T}$ac_header_preproc" >&6; }
26523 # So? What about this header?
26524 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26525 yes:no: )
26526 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26527 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26528 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
26529 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
26530 ac_header_preproc=yes
26532 no:yes:* )
26533 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
26534 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
26535 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
26536 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
26537 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
26538 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
26539 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
26540 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26541 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
26542 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
26543 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
26544 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
26545 ( cat <<\_ASBOX
26546 ## ------------------------------- ##
26547 ## Report this to www.asterisk.org ##
26548 ## ------------------------------- ##
26549 _ASBOX
26550 ) | sed "s/^/$as_me: WARNING: /" >&2
26552 esac
26553 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26554 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26556 echo $ECHO_N "(cached) $ECHO_C" >&6
26557 else
26558 eval "$as_ac_Header=\$ac_header_preproc"
26560 ac_res=`eval echo '${'$as_ac_Header'}'`
26561 { echo "$as_me:$LINENO: result: $ac_res" >&5
26562 echo "${ECHO_T}$ac_res" >&6; }
26565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26566 HAS_PWLIB=1
26571 if test "${HAS_PWLIB:-unset}" = "unset" ; then
26572 if test "${OPENH323DIR:-unset}" != "unset"; then
26573 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
26574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26575 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26576 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26578 echo $ECHO_N "(cached) $ECHO_C" >&6
26580 ac_res=`eval echo '${'$as_ac_Header'}'`
26581 { echo "$as_me:$LINENO: result: $ac_res" >&5
26582 echo "${ECHO_T}$ac_res" >&6; }
26583 else
26584 # Is the header compilable?
26585 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
26586 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
26587 cat >conftest.$ac_ext <<_ACEOF
26588 /* confdefs.h. */
26589 _ACEOF
26590 cat confdefs.h >>conftest.$ac_ext
26591 cat >>conftest.$ac_ext <<_ACEOF
26592 /* end confdefs.h. */
26593 $ac_includes_default
26594 #include <${OPENH323DIR}/../pwlib/version.h>
26595 _ACEOF
26596 rm -f conftest.$ac_objext
26597 if { (ac_try="$ac_compile"
26598 case "(($ac_try" in
26599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26600 *) ac_try_echo=$ac_try;;
26601 esac
26602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26603 (eval "$ac_compile") 2>conftest.er1
26604 ac_status=$?
26605 grep -v '^ *+' conftest.er1 >conftest.err
26606 rm -f conftest.er1
26607 cat conftest.err >&5
26608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609 (exit $ac_status); } && {
26610 test -z "$ac_cxx_werror_flag" ||
26611 test ! -s conftest.err
26612 } && test -s conftest.$ac_objext; then
26613 ac_header_compiler=yes
26614 else
26615 echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26618 ac_header_compiler=no
26621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26623 echo "${ECHO_T}$ac_header_compiler" >&6; }
26625 # Is the header present?
26626 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
26627 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
26628 cat >conftest.$ac_ext <<_ACEOF
26629 /* confdefs.h. */
26630 _ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h. */
26634 #include <${OPENH323DIR}/../pwlib/version.h>
26635 _ACEOF
26636 if { (ac_try="$ac_cpp conftest.$ac_ext"
26637 case "(($ac_try" in
26638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26639 *) ac_try_echo=$ac_try;;
26640 esac
26641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26643 ac_status=$?
26644 grep -v '^ *+' conftest.er1 >conftest.err
26645 rm -f conftest.er1
26646 cat conftest.err >&5
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); } >/dev/null && {
26649 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26650 test ! -s conftest.err
26651 }; then
26652 ac_header_preproc=yes
26653 else
26654 echo "$as_me: failed program was:" >&5
26655 sed 's/^/| /' conftest.$ac_ext >&5
26657 ac_header_preproc=no
26660 rm -f conftest.err conftest.$ac_ext
26661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26662 echo "${ECHO_T}$ac_header_preproc" >&6; }
26664 # So? What about this header?
26665 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26666 yes:no: )
26667 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26668 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26669 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
26670 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
26671 ac_header_preproc=yes
26673 no:yes:* )
26674 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
26675 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
26676 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
26677 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
26678 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
26679 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
26680 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
26681 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26682 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
26683 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
26684 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
26685 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
26686 ( cat <<\_ASBOX
26687 ## ------------------------------- ##
26688 ## Report this to www.asterisk.org ##
26689 ## ------------------------------- ##
26690 _ASBOX
26691 ) | sed "s/^/$as_me: WARNING: /" >&2
26693 esac
26694 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26695 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26697 echo $ECHO_N "(cached) $ECHO_C" >&6
26698 else
26699 eval "$as_ac_Header=\$ac_header_preproc"
26701 ac_res=`eval echo '${'$as_ac_Header'}'`
26702 { echo "$as_me:$LINENO: result: $ac_res" >&5
26703 echo "${ECHO_T}$ac_res" >&6; }
26706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26707 HAS_PWLIB=1
26712 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26713 PWLIBDIR="${OPENH323DIR}/../pwlib"
26714 else
26715 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
26716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26717 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26718 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26720 echo $ECHO_N "(cached) $ECHO_C" >&6
26722 ac_res=`eval echo '${'$as_ac_Header'}'`
26723 { echo "$as_me:$LINENO: result: $ac_res" >&5
26724 echo "${ECHO_T}$ac_res" >&6; }
26725 else
26726 # Is the header compilable?
26727 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
26728 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
26729 cat >conftest.$ac_ext <<_ACEOF
26730 /* confdefs.h. */
26731 _ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h. */
26735 $ac_includes_default
26736 #include <${HOME}/pwlib/include/ptlib.h>
26737 _ACEOF
26738 rm -f conftest.$ac_objext
26739 if { (ac_try="$ac_compile"
26740 case "(($ac_try" in
26741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26742 *) ac_try_echo=$ac_try;;
26743 esac
26744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26745 (eval "$ac_compile") 2>conftest.er1
26746 ac_status=$?
26747 grep -v '^ *+' conftest.er1 >conftest.err
26748 rm -f conftest.er1
26749 cat conftest.err >&5
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); } && {
26752 test -z "$ac_cxx_werror_flag" ||
26753 test ! -s conftest.err
26754 } && test -s conftest.$ac_objext; then
26755 ac_header_compiler=yes
26756 else
26757 echo "$as_me: failed program was:" >&5
26758 sed 's/^/| /' conftest.$ac_ext >&5
26760 ac_header_compiler=no
26763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26765 echo "${ECHO_T}$ac_header_compiler" >&6; }
26767 # Is the header present?
26768 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
26769 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
26770 cat >conftest.$ac_ext <<_ACEOF
26771 /* confdefs.h. */
26772 _ACEOF
26773 cat confdefs.h >>conftest.$ac_ext
26774 cat >>conftest.$ac_ext <<_ACEOF
26775 /* end confdefs.h. */
26776 #include <${HOME}/pwlib/include/ptlib.h>
26777 _ACEOF
26778 if { (ac_try="$ac_cpp conftest.$ac_ext"
26779 case "(($ac_try" in
26780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26781 *) ac_try_echo=$ac_try;;
26782 esac
26783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26785 ac_status=$?
26786 grep -v '^ *+' conftest.er1 >conftest.err
26787 rm -f conftest.er1
26788 cat conftest.err >&5
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); } >/dev/null && {
26791 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26792 test ! -s conftest.err
26793 }; then
26794 ac_header_preproc=yes
26795 else
26796 echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26799 ac_header_preproc=no
26802 rm -f conftest.err conftest.$ac_ext
26803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26804 echo "${ECHO_T}$ac_header_preproc" >&6; }
26806 # So? What about this header?
26807 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26808 yes:no: )
26809 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26810 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26811 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
26812 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
26813 ac_header_preproc=yes
26815 no:yes:* )
26816 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
26817 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
26818 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
26819 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26820 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
26821 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
26822 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26823 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26824 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
26825 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26826 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
26827 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26828 ( cat <<\_ASBOX
26829 ## ------------------------------- ##
26830 ## Report this to www.asterisk.org ##
26831 ## ------------------------------- ##
26832 _ASBOX
26833 ) | sed "s/^/$as_me: WARNING: /" >&2
26835 esac
26836 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26837 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26839 echo $ECHO_N "(cached) $ECHO_C" >&6
26840 else
26841 eval "$as_ac_Header=\$ac_header_preproc"
26843 ac_res=`eval echo '${'$as_ac_Header'}'`
26844 { echo "$as_me:$LINENO: result: $ac_res" >&5
26845 echo "${ECHO_T}$ac_res" >&6; }
26848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26849 HAS_PWLIB=1
26853 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26854 PWLIBDIR="${HOME}/pwlib"
26855 else
26856 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26857 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26858 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26859 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26860 echo $ECHO_N "(cached) $ECHO_C" >&6
26862 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26863 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26864 else
26865 # Is the header compilable?
26866 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
26867 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
26868 cat >conftest.$ac_ext <<_ACEOF
26869 /* confdefs.h. */
26870 _ACEOF
26871 cat confdefs.h >>conftest.$ac_ext
26872 cat >>conftest.$ac_ext <<_ACEOF
26873 /* end confdefs.h. */
26874 $ac_includes_default
26875 #include </usr/local/include/ptlib.h>
26876 _ACEOF
26877 rm -f conftest.$ac_objext
26878 if { (ac_try="$ac_compile"
26879 case "(($ac_try" in
26880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26881 *) ac_try_echo=$ac_try;;
26882 esac
26883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26884 (eval "$ac_compile") 2>conftest.er1
26885 ac_status=$?
26886 grep -v '^ *+' conftest.er1 >conftest.err
26887 rm -f conftest.er1
26888 cat conftest.err >&5
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); } && {
26891 test -z "$ac_cxx_werror_flag" ||
26892 test ! -s conftest.err
26893 } && test -s conftest.$ac_objext; then
26894 ac_header_compiler=yes
26895 else
26896 echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26899 ac_header_compiler=no
26902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26904 echo "${ECHO_T}$ac_header_compiler" >&6; }
26906 # Is the header present?
26907 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
26908 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
26909 cat >conftest.$ac_ext <<_ACEOF
26910 /* confdefs.h. */
26911 _ACEOF
26912 cat confdefs.h >>conftest.$ac_ext
26913 cat >>conftest.$ac_ext <<_ACEOF
26914 /* end confdefs.h. */
26915 #include </usr/local/include/ptlib.h>
26916 _ACEOF
26917 if { (ac_try="$ac_cpp conftest.$ac_ext"
26918 case "(($ac_try" in
26919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26920 *) ac_try_echo=$ac_try;;
26921 esac
26922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26924 ac_status=$?
26925 grep -v '^ *+' conftest.er1 >conftest.err
26926 rm -f conftest.er1
26927 cat conftest.err >&5
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } >/dev/null && {
26930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26931 test ! -s conftest.err
26932 }; then
26933 ac_header_preproc=yes
26934 else
26935 echo "$as_me: failed program was:" >&5
26936 sed 's/^/| /' conftest.$ac_ext >&5
26938 ac_header_preproc=no
26941 rm -f conftest.err conftest.$ac_ext
26942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26943 echo "${ECHO_T}$ac_header_preproc" >&6; }
26945 # So? What about this header?
26946 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26947 yes:no: )
26948 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26949 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26950 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
26951 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
26952 ac_header_preproc=yes
26954 no:yes:* )
26955 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
26956 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
26957 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
26958 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26959 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
26960 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
26961 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26962 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26963 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
26964 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26965 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
26966 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26967 ( cat <<\_ASBOX
26968 ## ------------------------------- ##
26969 ## Report this to www.asterisk.org ##
26970 ## ------------------------------- ##
26971 _ASBOX
26972 ) | sed "s/^/$as_me: WARNING: /" >&2
26974 esac
26975 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26976 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26977 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26978 echo $ECHO_N "(cached) $ECHO_C" >&6
26979 else
26980 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
26982 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26983 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26986 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
26987 HAS_PWLIB=1
26991 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26992 # Extract the first word of "ptlib-config", so it can be a program name with args.
26993 set dummy ptlib-config; ac_word=$2
26994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26996 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26997 echo $ECHO_N "(cached) $ECHO_C" >&6
26998 else
26999 case $PTLIB_CONFIG in
27000 [\\/]* | ?:[\\/]*)
27001 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
27004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27005 for as_dir in /usr/local/bin
27007 IFS=$as_save_IFS
27008 test -z "$as_dir" && as_dir=.
27009 for ac_exec_ext in '' $ac_executable_extensions; do
27010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27011 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27013 break 2
27015 done
27016 done
27017 IFS=$as_save_IFS
27020 esac
27022 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
27023 if test -n "$PTLIB_CONFIG"; then
27024 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27025 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27026 else
27027 { echo "$as_me:$LINENO: result: no" >&5
27028 echo "${ECHO_T}no" >&6; }
27032 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
27033 # Extract the first word of "ptlib-config", so it can be a program name with args.
27034 set dummy ptlib-config; ac_word=$2
27035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27037 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
27038 echo $ECHO_N "(cached) $ECHO_C" >&6
27039 else
27040 case $PTLIB_CONFIG in
27041 [\\/]* | ?:[\\/]*)
27042 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
27045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27046 for as_dir in /usr/local/share/pwlib/make
27048 IFS=$as_save_IFS
27049 test -z "$as_dir" && as_dir=.
27050 for ac_exec_ext in '' $ac_executable_extensions; do
27051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27052 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27054 break 2
27056 done
27057 done
27058 IFS=$as_save_IFS
27061 esac
27063 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
27064 if test -n "$PTLIB_CONFIG"; then
27065 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27066 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27067 else
27068 { echo "$as_me:$LINENO: result: no" >&5
27069 echo "${ECHO_T}no" >&6; }
27074 PWLIB_INCDIR="/usr/local/include"
27075 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
27076 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27077 if test "x$LIB64" != "x"; then
27078 PWLIB_LIBDIR="/usr/local/lib64"
27079 else
27080 PWLIB_LIBDIR="/usr/local/lib"
27083 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
27084 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
27085 else
27086 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27087 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
27088 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
27089 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27090 echo $ECHO_N "(cached) $ECHO_C" >&6
27092 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
27093 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
27094 else
27095 # Is the header compilable?
27096 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
27097 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
27098 cat >conftest.$ac_ext <<_ACEOF
27099 /* confdefs.h. */
27100 _ACEOF
27101 cat confdefs.h >>conftest.$ac_ext
27102 cat >>conftest.$ac_ext <<_ACEOF
27103 /* end confdefs.h. */
27104 $ac_includes_default
27105 #include </usr/include/ptlib.h>
27106 _ACEOF
27107 rm -f conftest.$ac_objext
27108 if { (ac_try="$ac_compile"
27109 case "(($ac_try" in
27110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27111 *) ac_try_echo=$ac_try;;
27112 esac
27113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27114 (eval "$ac_compile") 2>conftest.er1
27115 ac_status=$?
27116 grep -v '^ *+' conftest.er1 >conftest.err
27117 rm -f conftest.er1
27118 cat conftest.err >&5
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); } && {
27121 test -z "$ac_cxx_werror_flag" ||
27122 test ! -s conftest.err
27123 } && test -s conftest.$ac_objext; then
27124 ac_header_compiler=yes
27125 else
27126 echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27129 ac_header_compiler=no
27132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27134 echo "${ECHO_T}$ac_header_compiler" >&6; }
27136 # Is the header present?
27137 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
27138 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
27139 cat >conftest.$ac_ext <<_ACEOF
27140 /* confdefs.h. */
27141 _ACEOF
27142 cat confdefs.h >>conftest.$ac_ext
27143 cat >>conftest.$ac_ext <<_ACEOF
27144 /* end confdefs.h. */
27145 #include </usr/include/ptlib.h>
27146 _ACEOF
27147 if { (ac_try="$ac_cpp conftest.$ac_ext"
27148 case "(($ac_try" in
27149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27150 *) ac_try_echo=$ac_try;;
27151 esac
27152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27154 ac_status=$?
27155 grep -v '^ *+' conftest.er1 >conftest.err
27156 rm -f conftest.er1
27157 cat conftest.err >&5
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); } >/dev/null && {
27160 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27161 test ! -s conftest.err
27162 }; then
27163 ac_header_preproc=yes
27164 else
27165 echo "$as_me: failed program was:" >&5
27166 sed 's/^/| /' conftest.$ac_ext >&5
27168 ac_header_preproc=no
27171 rm -f conftest.err conftest.$ac_ext
27172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27173 echo "${ECHO_T}$ac_header_preproc" >&6; }
27175 # So? What about this header?
27176 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27177 yes:no: )
27178 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27179 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27180 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
27181 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
27182 ac_header_preproc=yes
27184 no:yes:* )
27185 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
27186 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
27187 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
27188 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
27189 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
27190 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
27191 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
27192 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27193 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
27194 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
27195 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
27196 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
27197 ( cat <<\_ASBOX
27198 ## ------------------------------- ##
27199 ## Report this to www.asterisk.org ##
27200 ## ------------------------------- ##
27201 _ASBOX
27202 ) | sed "s/^/$as_me: WARNING: /" >&2
27204 esac
27205 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
27206 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
27207 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27208 echo $ECHO_N "(cached) $ECHO_C" >&6
27209 else
27210 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
27212 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
27213 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
27216 if test $ac_cv_header__usr_include_ptlib_h = yes; then
27217 HAS_PWLIB=1
27221 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27222 # Extract the first word of "ptlib-config", so it can be a program name with args.
27223 set dummy ptlib-config; ac_word=$2
27224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27226 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
27227 echo $ECHO_N "(cached) $ECHO_C" >&6
27228 else
27229 case $PTLIB_CONFIG in
27230 [\\/]* | ?:[\\/]*)
27231 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
27234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27235 for as_dir in /usr/share/pwlib/make
27237 IFS=$as_save_IFS
27238 test -z "$as_dir" && as_dir=.
27239 for ac_exec_ext in '' $ac_executable_extensions; do
27240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27241 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27243 break 2
27245 done
27246 done
27247 IFS=$as_save_IFS
27250 esac
27252 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
27253 if test -n "$PTLIB_CONFIG"; then
27254 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27255 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27256 else
27257 { echo "$as_me:$LINENO: result: no" >&5
27258 echo "${ECHO_T}no" >&6; }
27262 PWLIB_INCDIR="/usr/include"
27263 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
27264 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27265 if test "x$LIB64" != "x"; then
27266 PWLIB_LIBDIR="/usr/lib64"
27267 else
27268 PWLIB_LIBDIR="/usr/lib"
27271 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
27272 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
27279 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
27280 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
27281 # exit
27284 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27285 if test "${PWLIBDIR:-unset}" = "unset" ; then
27286 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
27287 PWLIBDIR=`$PTLIB_CONFIG --prefix`
27288 else
27289 echo "Cannot find ptlib-config - please install and try again"
27290 exit
27294 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
27295 PWLIBDIR="/usr/share/pwlib"
27296 PWLIB_INCDIR="/usr/include"
27297 if test "x$LIB64" != "x"; then
27298 PWLIB_LIBDIR="/usr/lib64"
27299 else
27300 PWLIB_LIBDIR="/usr/lib"
27303 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
27304 PWLIBDIR="/usr/local/share/pwlib"
27305 PWLIB_INCDIR="/usr/local/include"
27306 if test "x$LIB64" != "x"; then
27307 PWLIB_LIBDIR="/usr/local/lib64"
27308 else
27309 PWLIB_LIBDIR="/usr/local/lib"
27313 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
27314 PWLIB_INCDIR="${PWLIBDIR}/include"
27316 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27317 PWLIB_LIBDIR="${PWLIBDIR}/lib"
27324 ac_ext=c
27325 ac_cpp='$CPP $CPPFLAGS'
27326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27332 if test "${HAS_PWLIB:-unset}" != "unset"; then
27333 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
27334 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
27335 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
27336 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
27337 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
27338 let PWLIB_REQ=1*10000+9*100+2
27340 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
27341 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
27342 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
27343 { echo "$as_me:$LINENO: result: no" >&5
27344 echo "${ECHO_T}no" >&6; }
27345 unset HAS_PWLIB
27346 else
27347 { echo "$as_me:$LINENO: result: yes" >&5
27348 echo "${ECHO_T}yes" >&6; }
27353 if test "${HAS_PWLIB:-unset}" != "unset"; then
27355 PWLIB_OSTYPE=
27356 case "$host_os" in
27357 linux*) PWLIB_OSTYPE=linux ;
27359 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
27361 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
27362 ENDLDLIBS="-lossaudio" ;
27364 netbsd* ) PWLIB_OSTYPE=NetBSD ;
27365 ENDLDLIBS="-lossaudio" ;
27367 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
27369 darwin* ) PWLIB_OSTYPE=Darwin ;
27371 beos*) PWLIB_OSTYPE=beos ;
27372 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
27374 cygwin*) PWLIB_OSTYPE=cygwin ;
27376 mingw*) PWLIB_OSTYPE=mingw ;
27377 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
27378 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
27380 * ) PWLIB_OSTYPE="$host_os" ;
27381 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
27382 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
27384 esac
27386 PWLIB_MACHTYPE=
27387 case "$host_cpu" in
27388 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
27391 x86_64) PWLIB_MACHTYPE=x86_64 ;
27392 P_64BIT=1 ;
27393 LIB64=1 ;
27396 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
27397 P_64BIT=1 ;
27400 sparc ) PWLIB_MACHTYPE=sparc ;
27403 powerpc ) PWLIB_MACHTYPE=ppc ;
27406 ppc ) PWLIB_MACHTYPE=ppc ;
27409 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
27410 P_64BIT=1 ;
27411 LIB64=1 ;
27414 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
27415 P_64BIT=1 ;
27416 LIB64=1 ;
27419 ia64) PWLIB_MACHTYPE=ia64 ;
27420 P_64BIT=1 ;
27423 s390x) PWLIB_MACHTYPE=s390x ;
27424 P_64BIT=1 ;
27425 LIB64=1 ;
27428 s390) PWLIB_MACHTYPE=s390 ;
27431 * ) PWLIB_MACHTYPE="$host_cpu";
27432 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
27433 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
27434 esac
27436 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
27441 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
27444 if test "${HAS_PWLIB:-unset}" != "unset"; then
27445 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
27446 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
27448 saved_cppflags="${CPPFLAGS}"
27449 saved_libs="${LIBS}"
27450 if test "${PWLIB_LIB:-unset}" != "unset"; then
27451 LIBS="${LIBS} ${PWLIB_LIB} "
27452 else
27453 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
27455 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
27457 ac_ext=cpp
27458 ac_cpp='$CXXCPP $CPPFLAGS'
27459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27464 cat >conftest.$ac_ext <<_ACEOF
27465 /* confdefs.h. */
27466 _ACEOF
27467 cat confdefs.h >>conftest.$ac_ext
27468 cat >>conftest.$ac_ext <<_ACEOF
27469 /* end confdefs.h. */
27470 #include "ptlib.h"
27472 main ()
27474 BOOL q = PTime::IsDaylightSavings();
27476 return 0;
27478 _ACEOF
27479 rm -f conftest.$ac_objext conftest$ac_exeext
27480 if { (ac_try="$ac_link"
27481 case "(($ac_try" in
27482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27484 esac
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486 (eval "$ac_link") 2>conftest.er1
27487 ac_status=$?
27488 grep -v '^ *+' conftest.er1 >conftest.err
27489 rm -f conftest.er1
27490 cat conftest.err >&5
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492 (exit $ac_status); } && {
27493 test -z "$ac_cxx_werror_flag" ||
27494 test ! -s conftest.err
27495 } && test -s conftest$ac_exeext &&
27496 $as_test_x conftest$ac_exeext; then
27497 { echo "$as_me:$LINENO: result: yes" >&5
27498 echo "${ECHO_T}yes" >&6; }
27499 ac_cv_lib_PWLIB="yes"
27501 else
27502 echo "$as_me: failed program was:" >&5
27503 sed 's/^/| /' conftest.$ac_ext >&5
27505 { echo "$as_me:$LINENO: result: no" >&5
27506 echo "${ECHO_T}no" >&6; }
27507 ac_cv_lib_PWLIB="no"
27512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27513 conftest$ac_exeext conftest.$ac_ext
27515 ac_ext=c
27516 ac_cpp='$CPP $CPPFLAGS'
27517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27522 LIBS="${saved_libs}"
27523 CPPFLAGS="${saved_cppflags}"
27525 if test "${ac_cv_lib_PWLIB}" = "yes"; then
27526 if test "${PWLIB_LIB:-undef}" = "undef"; then
27527 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
27528 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
27529 else
27530 PWLIB_LIB="-l${PLATFORM_PWLIB}"
27533 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
27534 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
27536 PBX_PWLIB=1
27538 cat >>confdefs.h <<\_ACEOF
27539 #define HAVE_PWLIB 1
27540 _ACEOF
27548 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
27549 { echo "$as_me:$LINENO: ***" >&5
27550 echo "$as_me: ***" >&6;}
27551 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
27552 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
27553 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27554 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27555 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
27556 echo "$as_me: *** including --without-pwlib" >&6;}
27557 exit 1
27560 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
27561 if test -n "${OPENH323_DIR}"; then
27562 OPENH323DIR="${OPENH323_DIR}"
27565 OPENH323_INCDIR=
27566 OPENH323_LIBDIR=
27567 ac_ext=cpp
27568 ac_cpp='$CXXCPP $CPPFLAGS'
27569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27573 if test "${OPENH323DIR:-unset}" != "unset" ; then
27574 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
27575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27576 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27577 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27579 echo $ECHO_N "(cached) $ECHO_C" >&6
27581 ac_res=`eval echo '${'$as_ac_Header'}'`
27582 { echo "$as_me:$LINENO: result: $ac_res" >&5
27583 echo "${ECHO_T}$ac_res" >&6; }
27584 else
27585 # Is the header compilable?
27586 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
27587 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
27588 cat >conftest.$ac_ext <<_ACEOF
27589 /* confdefs.h. */
27590 _ACEOF
27591 cat confdefs.h >>conftest.$ac_ext
27592 cat >>conftest.$ac_ext <<_ACEOF
27593 /* end confdefs.h. */
27594 $ac_includes_default
27595 #include <${OPENH323DIR}/version.h>
27596 _ACEOF
27597 rm -f conftest.$ac_objext
27598 if { (ac_try="$ac_compile"
27599 case "(($ac_try" in
27600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27601 *) ac_try_echo=$ac_try;;
27602 esac
27603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27604 (eval "$ac_compile") 2>conftest.er1
27605 ac_status=$?
27606 grep -v '^ *+' conftest.er1 >conftest.err
27607 rm -f conftest.er1
27608 cat conftest.err >&5
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); } && {
27611 test -z "$ac_cxx_werror_flag" ||
27612 test ! -s conftest.err
27613 } && test -s conftest.$ac_objext; then
27614 ac_header_compiler=yes
27615 else
27616 echo "$as_me: failed program was:" >&5
27617 sed 's/^/| /' conftest.$ac_ext >&5
27619 ac_header_compiler=no
27622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27624 echo "${ECHO_T}$ac_header_compiler" >&6; }
27626 # Is the header present?
27627 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
27628 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
27629 cat >conftest.$ac_ext <<_ACEOF
27630 /* confdefs.h. */
27631 _ACEOF
27632 cat confdefs.h >>conftest.$ac_ext
27633 cat >>conftest.$ac_ext <<_ACEOF
27634 /* end confdefs.h. */
27635 #include <${OPENH323DIR}/version.h>
27636 _ACEOF
27637 if { (ac_try="$ac_cpp conftest.$ac_ext"
27638 case "(($ac_try" in
27639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640 *) ac_try_echo=$ac_try;;
27641 esac
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27644 ac_status=$?
27645 grep -v '^ *+' conftest.er1 >conftest.err
27646 rm -f conftest.er1
27647 cat conftest.err >&5
27648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); } >/dev/null && {
27650 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27651 test ! -s conftest.err
27652 }; then
27653 ac_header_preproc=yes
27654 else
27655 echo "$as_me: failed program was:" >&5
27656 sed 's/^/| /' conftest.$ac_ext >&5
27658 ac_header_preproc=no
27661 rm -f conftest.err conftest.$ac_ext
27662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27663 echo "${ECHO_T}$ac_header_preproc" >&6; }
27665 # So? What about this header?
27666 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27667 yes:no: )
27668 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27669 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27670 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
27671 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
27672 ac_header_preproc=yes
27674 no:yes:* )
27675 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
27676 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
27677 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
27678 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
27679 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
27680 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
27681 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
27682 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27683 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
27684 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
27685 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
27686 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
27687 ( cat <<\_ASBOX
27688 ## ------------------------------- ##
27689 ## Report this to www.asterisk.org ##
27690 ## ------------------------------- ##
27691 _ASBOX
27692 ) | sed "s/^/$as_me: WARNING: /" >&2
27694 esac
27695 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27696 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27698 echo $ECHO_N "(cached) $ECHO_C" >&6
27699 else
27700 eval "$as_ac_Header=\$ac_header_preproc"
27702 ac_res=`eval echo '${'$as_ac_Header'}'`
27703 { echo "$as_me:$LINENO: result: $ac_res" >&5
27704 echo "${ECHO_T}$ac_res" >&6; }
27707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27708 HAS_OPENH323=1
27713 if test "${HAS_OPENH323:-unset}" = "unset" ; then
27714 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
27715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27716 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27717 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27719 echo $ECHO_N "(cached) $ECHO_C" >&6
27721 ac_res=`eval echo '${'$as_ac_Header'}'`
27722 { echo "$as_me:$LINENO: result: $ac_res" >&5
27723 echo "${ECHO_T}$ac_res" >&6; }
27724 else
27725 # Is the header compilable?
27726 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
27727 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
27728 cat >conftest.$ac_ext <<_ACEOF
27729 /* confdefs.h. */
27730 _ACEOF
27731 cat confdefs.h >>conftest.$ac_ext
27732 cat >>conftest.$ac_ext <<_ACEOF
27733 /* end confdefs.h. */
27734 $ac_includes_default
27735 #include <${PWLIBDIR}/../openh323/version.h>
27736 _ACEOF
27737 rm -f conftest.$ac_objext
27738 if { (ac_try="$ac_compile"
27739 case "(($ac_try" in
27740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741 *) ac_try_echo=$ac_try;;
27742 esac
27743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744 (eval "$ac_compile") 2>conftest.er1
27745 ac_status=$?
27746 grep -v '^ *+' conftest.er1 >conftest.err
27747 rm -f conftest.er1
27748 cat conftest.err >&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); } && {
27751 test -z "$ac_cxx_werror_flag" ||
27752 test ! -s conftest.err
27753 } && test -s conftest.$ac_objext; then
27754 ac_header_compiler=yes
27755 else
27756 echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27759 ac_header_compiler=no
27762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27764 echo "${ECHO_T}$ac_header_compiler" >&6; }
27766 # Is the header present?
27767 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
27768 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
27769 cat >conftest.$ac_ext <<_ACEOF
27770 /* confdefs.h. */
27771 _ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27775 #include <${PWLIBDIR}/../openh323/version.h>
27776 _ACEOF
27777 if { (ac_try="$ac_cpp conftest.$ac_ext"
27778 case "(($ac_try" in
27779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27780 *) ac_try_echo=$ac_try;;
27781 esac
27782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27784 ac_status=$?
27785 grep -v '^ *+' conftest.er1 >conftest.err
27786 rm -f conftest.er1
27787 cat conftest.err >&5
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); } >/dev/null && {
27790 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27791 test ! -s conftest.err
27792 }; then
27793 ac_header_preproc=yes
27794 else
27795 echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27798 ac_header_preproc=no
27801 rm -f conftest.err conftest.$ac_ext
27802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27803 echo "${ECHO_T}$ac_header_preproc" >&6; }
27805 # So? What about this header?
27806 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27807 yes:no: )
27808 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27809 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27810 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
27811 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
27812 ac_header_preproc=yes
27814 no:yes:* )
27815 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
27816 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
27817 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
27818 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
27819 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
27820 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
27821 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
27822 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27823 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
27824 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
27825 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
27826 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
27827 ( cat <<\_ASBOX
27828 ## ------------------------------- ##
27829 ## Report this to www.asterisk.org ##
27830 ## ------------------------------- ##
27831 _ASBOX
27832 ) | sed "s/^/$as_me: WARNING: /" >&2
27834 esac
27835 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27836 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27838 echo $ECHO_N "(cached) $ECHO_C" >&6
27839 else
27840 eval "$as_ac_Header=\$ac_header_preproc"
27842 ac_res=`eval echo '${'$as_ac_Header'}'`
27843 { echo "$as_me:$LINENO: result: $ac_res" >&5
27844 echo "${ECHO_T}$ac_res" >&6; }
27847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27848 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
27852 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27853 OPENH323DIR="${PWLIBDIR}/../openh323"
27854 saved_cppflags="${CPPFLAGS}"
27855 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
27856 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
27857 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
27858 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
27859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27860 echo $ECHO_N "(cached) $ECHO_C" >&6
27861 else
27862 cat >conftest.$ac_ext <<_ACEOF
27863 /* confdefs.h. */
27864 _ACEOF
27865 cat confdefs.h >>conftest.$ac_ext
27866 cat >>conftest.$ac_ext <<_ACEOF
27867 /* end confdefs.h. */
27868 #include <ptlib.h>
27870 #include <${OPENH323DIR}/include/h323.h>
27871 _ACEOF
27872 rm -f conftest.$ac_objext
27873 if { (ac_try="$ac_compile"
27874 case "(($ac_try" in
27875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27876 *) ac_try_echo=$ac_try;;
27877 esac
27878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27879 (eval "$ac_compile") 2>conftest.er1
27880 ac_status=$?
27881 grep -v '^ *+' conftest.er1 >conftest.err
27882 rm -f conftest.er1
27883 cat conftest.err >&5
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); } && {
27886 test -z "$ac_cxx_werror_flag" ||
27887 test ! -s conftest.err
27888 } && test -s conftest.$ac_objext; then
27889 eval "$as_ac_Header=yes"
27890 else
27891 echo "$as_me: failed program was:" >&5
27892 sed 's/^/| /' conftest.$ac_ext >&5
27894 eval "$as_ac_Header=no"
27897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27899 ac_res=`eval echo '${'$as_ac_Header'}'`
27900 { echo "$as_me:$LINENO: result: $ac_res" >&5
27901 echo "${ECHO_T}$ac_res" >&6; }
27902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27904 else
27905 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
27909 CPPFLAGS="${saved_cppflags}"
27910 else
27911 saved_cppflags="${CPPFLAGS}"
27912 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
27913 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
27914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27915 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
27916 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
27917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27918 echo $ECHO_N "(cached) $ECHO_C" >&6
27920 ac_res=`eval echo '${'$as_ac_Header'}'`
27921 { echo "$as_me:$LINENO: result: $ac_res" >&5
27922 echo "${ECHO_T}$ac_res" >&6; }
27923 else
27924 # Is the header compilable?
27925 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
27926 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
27927 cat >conftest.$ac_ext <<_ACEOF
27928 /* confdefs.h. */
27929 _ACEOF
27930 cat confdefs.h >>conftest.$ac_ext
27931 cat >>conftest.$ac_ext <<_ACEOF
27932 /* end confdefs.h. */
27933 $ac_includes_default
27934 #include <${HOME}/openh323/include/h323.h>
27935 _ACEOF
27936 rm -f conftest.$ac_objext
27937 if { (ac_try="$ac_compile"
27938 case "(($ac_try" in
27939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27940 *) ac_try_echo=$ac_try;;
27941 esac
27942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27943 (eval "$ac_compile") 2>conftest.er1
27944 ac_status=$?
27945 grep -v '^ *+' conftest.er1 >conftest.err
27946 rm -f conftest.er1
27947 cat conftest.err >&5
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); } && {
27950 test -z "$ac_cxx_werror_flag" ||
27951 test ! -s conftest.err
27952 } && test -s conftest.$ac_objext; then
27953 ac_header_compiler=yes
27954 else
27955 echo "$as_me: failed program was:" >&5
27956 sed 's/^/| /' conftest.$ac_ext >&5
27958 ac_header_compiler=no
27961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27963 echo "${ECHO_T}$ac_header_compiler" >&6; }
27965 # Is the header present?
27966 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
27967 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
27968 cat >conftest.$ac_ext <<_ACEOF
27969 /* confdefs.h. */
27970 _ACEOF
27971 cat confdefs.h >>conftest.$ac_ext
27972 cat >>conftest.$ac_ext <<_ACEOF
27973 /* end confdefs.h. */
27974 #include <${HOME}/openh323/include/h323.h>
27975 _ACEOF
27976 if { (ac_try="$ac_cpp conftest.$ac_ext"
27977 case "(($ac_try" in
27978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27979 *) ac_try_echo=$ac_try;;
27980 esac
27981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27983 ac_status=$?
27984 grep -v '^ *+' conftest.er1 >conftest.err
27985 rm -f conftest.er1
27986 cat conftest.err >&5
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); } >/dev/null && {
27989 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27990 test ! -s conftest.err
27991 }; then
27992 ac_header_preproc=yes
27993 else
27994 echo "$as_me: failed program was:" >&5
27995 sed 's/^/| /' conftest.$ac_ext >&5
27997 ac_header_preproc=no
28000 rm -f conftest.err conftest.$ac_ext
28001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28002 echo "${ECHO_T}$ac_header_preproc" >&6; }
28004 # So? What about this header?
28005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28006 yes:no: )
28007 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28008 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28009 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
28010 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
28011 ac_header_preproc=yes
28013 no:yes:* )
28014 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
28015 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
28016 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
28017 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
28018 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
28019 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
28020 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
28021 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28022 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
28023 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
28024 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
28025 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
28026 ( cat <<\_ASBOX
28027 ## ------------------------------- ##
28028 ## Report this to www.asterisk.org ##
28029 ## ------------------------------- ##
28030 _ASBOX
28031 ) | sed "s/^/$as_me: WARNING: /" >&2
28033 esac
28034 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
28035 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
28036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28037 echo $ECHO_N "(cached) $ECHO_C" >&6
28038 else
28039 eval "$as_ac_Header=\$ac_header_preproc"
28041 ac_res=`eval echo '${'$as_ac_Header'}'`
28042 { echo "$as_me:$LINENO: result: $ac_res" >&5
28043 echo "${ECHO_T}$ac_res" >&6; }
28046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28047 HAS_OPENH323=1
28051 CPPFLAGS="${saved_cppflags}"
28052 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28053 OPENH323DIR="${HOME}/openh323"
28054 else
28055 saved_cppflags="${CPPFLAGS}"
28056 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
28057 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28058 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
28059 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
28060 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28061 echo $ECHO_N "(cached) $ECHO_C" >&6
28063 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
28064 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
28065 else
28066 # Is the header compilable?
28067 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
28068 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
28069 cat >conftest.$ac_ext <<_ACEOF
28070 /* confdefs.h. */
28071 _ACEOF
28072 cat confdefs.h >>conftest.$ac_ext
28073 cat >>conftest.$ac_ext <<_ACEOF
28074 /* end confdefs.h. */
28075 $ac_includes_default
28076 #include </usr/local/include/openh323/h323.h>
28077 _ACEOF
28078 rm -f conftest.$ac_objext
28079 if { (ac_try="$ac_compile"
28080 case "(($ac_try" in
28081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082 *) ac_try_echo=$ac_try;;
28083 esac
28084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085 (eval "$ac_compile") 2>conftest.er1
28086 ac_status=$?
28087 grep -v '^ *+' conftest.er1 >conftest.err
28088 rm -f conftest.er1
28089 cat conftest.err >&5
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); } && {
28092 test -z "$ac_cxx_werror_flag" ||
28093 test ! -s conftest.err
28094 } && test -s conftest.$ac_objext; then
28095 ac_header_compiler=yes
28096 else
28097 echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28100 ac_header_compiler=no
28103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28105 echo "${ECHO_T}$ac_header_compiler" >&6; }
28107 # Is the header present?
28108 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
28109 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
28110 cat >conftest.$ac_ext <<_ACEOF
28111 /* confdefs.h. */
28112 _ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h. */
28116 #include </usr/local/include/openh323/h323.h>
28117 _ACEOF
28118 if { (ac_try="$ac_cpp conftest.$ac_ext"
28119 case "(($ac_try" in
28120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28121 *) ac_try_echo=$ac_try;;
28122 esac
28123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28125 ac_status=$?
28126 grep -v '^ *+' conftest.er1 >conftest.err
28127 rm -f conftest.er1
28128 cat conftest.err >&5
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); } >/dev/null && {
28131 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
28132 test ! -s conftest.err
28133 }; then
28134 ac_header_preproc=yes
28135 else
28136 echo "$as_me: failed program was:" >&5
28137 sed 's/^/| /' conftest.$ac_ext >&5
28139 ac_header_preproc=no
28142 rm -f conftest.err conftest.$ac_ext
28143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28144 echo "${ECHO_T}$ac_header_preproc" >&6; }
28146 # So? What about this header?
28147 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28148 yes:no: )
28149 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28150 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28151 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
28152 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
28153 ac_header_preproc=yes
28155 no:yes:* )
28156 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
28157 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
28158 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
28159 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
28160 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
28161 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
28162 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
28163 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28164 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
28165 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
28166 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
28167 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
28168 ( cat <<\_ASBOX
28169 ## ------------------------------- ##
28170 ## Report this to www.asterisk.org ##
28171 ## ------------------------------- ##
28172 _ASBOX
28173 ) | sed "s/^/$as_me: WARNING: /" >&2
28175 esac
28176 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
28177 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
28178 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28179 echo $ECHO_N "(cached) $ECHO_C" >&6
28180 else
28181 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
28183 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
28184 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
28187 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
28188 HAS_OPENH323=1
28192 CPPFLAGS="${saved_cppflags}"
28193 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28194 OPENH323DIR="/usr/local/share/openh323"
28195 OPENH323_INCDIR="/usr/local/include/openh323"
28196 if test "x$LIB64" != "x"; then
28197 OPENH323_LIBDIR="/usr/local/lib64"
28198 else
28199 OPENH323_LIBDIR="/usr/local/lib"
28201 else
28202 saved_cppflags="${CPPFLAGS}"
28203 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
28204 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
28205 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
28206 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
28207 echo $ECHO_N "(cached) $ECHO_C" >&6
28208 else
28209 cat >conftest.$ac_ext <<_ACEOF
28210 /* confdefs.h. */
28211 _ACEOF
28212 cat confdefs.h >>conftest.$ac_ext
28213 cat >>conftest.$ac_ext <<_ACEOF
28214 /* end confdefs.h. */
28215 #include <ptlib.h>
28217 #include </usr/include/openh323/h323.h>
28218 _ACEOF
28219 rm -f conftest.$ac_objext
28220 if { (ac_try="$ac_compile"
28221 case "(($ac_try" in
28222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28223 *) ac_try_echo=$ac_try;;
28224 esac
28225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28226 (eval "$ac_compile") 2>conftest.er1
28227 ac_status=$?
28228 grep -v '^ *+' conftest.er1 >conftest.err
28229 rm -f conftest.er1
28230 cat conftest.err >&5
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); } && {
28233 test -z "$ac_cxx_werror_flag" ||
28234 test ! -s conftest.err
28235 } && test -s conftest.$ac_objext; then
28236 ac_cv_header__usr_include_openh323_h323_h=yes
28237 else
28238 echo "$as_me: failed program was:" >&5
28239 sed 's/^/| /' conftest.$ac_ext >&5
28241 ac_cv_header__usr_include_openh323_h323_h=no
28244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28246 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
28247 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
28248 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
28249 HAS_OPENH323=1
28253 CPPFLAGS="${saved_cppflags}"
28254 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28255 OPENH323DIR="/usr/share/openh323"
28256 OPENH323_INCDIR="/usr/include/openh323"
28257 if test "x$LIB64" != "x"; then
28258 OPENH323_LIBDIR="/usr/lib64"
28259 else
28260 OPENH323_LIBDIR="/usr/lib"
28268 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28269 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
28270 OPENH323_INCDIR="${OPENH323DIR}/include"
28272 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
28273 OPENH323_LIBDIR="${OPENH323DIR}/lib"
28276 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
28277 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
28278 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
28284 ac_ext=c
28285 ac_cpp='$CPP $CPPFLAGS'
28286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28292 if test "${HAS_OPENH323:-unset}" != "unset"; then
28293 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
28294 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
28295 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
28296 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
28297 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
28298 let OPENH323_REQ=1*10000+17*100+3
28300 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
28301 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
28302 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
28303 { echo "$as_me:$LINENO: result: no" >&5
28304 echo "${ECHO_T}no" >&6; }
28305 unset HAS_OPENH323
28306 else
28307 { echo "$as_me:$LINENO: result: yes" >&5
28308 echo "${ECHO_T}yes" >&6; }
28313 if test "${HAS_OPENH323:-unset}" != "unset"; then
28314 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
28315 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
28316 OPENH323_SUFFIX=
28317 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
28318 for pfx in $prefixes; do
28319 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
28320 libfile=
28321 if test -n "$files"; then
28322 for f in $files; do
28323 if test -f $f -a ! -L $f; then
28324 libfile=`basename $f`
28325 break;
28327 done
28329 if test -n "$libfile"; then
28330 OPENH323_PREFIX=$pfx
28331 break;
28333 done
28334 if test "${libfile:-unset}" != "unset"; then
28335 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
28337 case "${OPENH323_SUFFIX}" in
28339 OPENH323_BUILD="notrace";;
28341 OPENH323_BUILD="opt";;
28343 OPENH323_BUILD="debug";;
28345 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
28346 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
28347 if test "x$notrace" = "x"; then
28348 notrace="0"
28350 if test "$notrace" -ne 0; then
28351 OPENH323_BUILD="notrace"
28352 else
28353 OPENH323_BUILD="opt"
28355 OPENH323_LIB="-l${OPENH323_PREFIX}"
28356 else
28357 OPENH323_BUILD="notrace"
28360 esac
28361 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
28362 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
28368 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
28370 if test "${HAS_OPENH323:-unset}" != "unset"; then
28371 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
28372 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
28374 saved_cppflags="${CPPFLAGS}"
28375 saved_libs="${LIBS}"
28376 if test "${OPENH323_LIB:-unset}" != "unset"; then
28377 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
28378 else
28379 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
28381 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
28383 ac_ext=cpp
28384 ac_cpp='$CXXCPP $CPPFLAGS'
28385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28390 cat >conftest.$ac_ext <<_ACEOF
28391 /* confdefs.h. */
28392 _ACEOF
28393 cat confdefs.h >>conftest.$ac_ext
28394 cat >>conftest.$ac_ext <<_ACEOF
28395 /* end confdefs.h. */
28396 #include "ptlib.h"
28397 #include "h323.h"
28398 #include "h323ep.h"
28400 main ()
28402 H323EndPoint ep = H323EndPoint();
28404 return 0;
28406 _ACEOF
28407 rm -f conftest.$ac_objext conftest$ac_exeext
28408 if { (ac_try="$ac_link"
28409 case "(($ac_try" in
28410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28411 *) ac_try_echo=$ac_try;;
28412 esac
28413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28414 (eval "$ac_link") 2>conftest.er1
28415 ac_status=$?
28416 grep -v '^ *+' conftest.er1 >conftest.err
28417 rm -f conftest.er1
28418 cat conftest.err >&5
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); } && {
28421 test -z "$ac_cxx_werror_flag" ||
28422 test ! -s conftest.err
28423 } && test -s conftest$ac_exeext &&
28424 $as_test_x conftest$ac_exeext; then
28425 { echo "$as_me:$LINENO: result: yes" >&5
28426 echo "${ECHO_T}yes" >&6; }
28427 ac_cv_lib_OPENH323="yes"
28429 else
28430 echo "$as_me: failed program was:" >&5
28431 sed 's/^/| /' conftest.$ac_ext >&5
28433 { echo "$as_me:$LINENO: result: no" >&5
28434 echo "${ECHO_T}no" >&6; }
28435 ac_cv_lib_OPENH323="no"
28440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28441 conftest$ac_exeext conftest.$ac_ext
28443 ac_ext=c
28444 ac_cpp='$CPP $CPPFLAGS'
28445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28450 LIBS="${saved_libs}"
28451 CPPFLAGS="${saved_cppflags}"
28453 if test "${ac_cv_lib_OPENH323}" = "yes"; then
28454 if test "${OPENH323_LIB:-undef}" = "undef"; then
28455 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
28456 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
28457 else
28458 OPENH323_LIB="-l${PLATFORM_OPENH323}"
28461 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
28462 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
28464 PBX_OPENH323=1
28466 cat >>confdefs.h <<\_ACEOF
28467 #define HAVE_OPENH323 1
28468 _ACEOF
28474 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
28475 { echo "$as_me:$LINENO: ***" >&5
28476 echo "$as_me: ***" >&6;}
28477 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
28478 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
28479 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28480 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28481 { echo "$as_me:$LINENO: *** including --without-h323" >&5
28482 echo "$as_me: *** including --without-h323" >&6;}
28483 exit 1
28487 if test "${USE_RADIUS}" != "no"; then
28488 pbxlibdir=""
28489 if test "x${RADIUS_DIR}" != "x"; then
28490 if test -d ${RADIUS_DIR}/lib; then
28491 pbxlibdir="-L${RADIUS_DIR}/lib"
28492 else
28493 pbxlibdir="-L${RADIUS_DIR}"
28496 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
28497 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
28498 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
28499 echo $ECHO_N "(cached) $ECHO_C" >&6
28500 else
28501 ac_check_lib_save_LIBS=$LIBS
28502 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
28503 cat >conftest.$ac_ext <<_ACEOF
28504 /* confdefs.h. */
28505 _ACEOF
28506 cat confdefs.h >>conftest.$ac_ext
28507 cat >>conftest.$ac_ext <<_ACEOF
28508 /* end confdefs.h. */
28510 /* Override any GCC internal prototype to avoid an error.
28511 Use char because int might match the return type of a GCC
28512 builtin and then its argument prototype would still apply. */
28513 #ifdef __cplusplus
28514 extern "C"
28515 #endif
28516 char rc_read_config ();
28518 main ()
28520 return rc_read_config ();
28522 return 0;
28524 _ACEOF
28525 rm -f conftest.$ac_objext conftest$ac_exeext
28526 if { (ac_try="$ac_link"
28527 case "(($ac_try" in
28528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28529 *) ac_try_echo=$ac_try;;
28530 esac
28531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28532 (eval "$ac_link") 2>conftest.er1
28533 ac_status=$?
28534 grep -v '^ *+' conftest.er1 >conftest.err
28535 rm -f conftest.er1
28536 cat conftest.err >&5
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); } && {
28539 test -z "$ac_c_werror_flag" ||
28540 test ! -s conftest.err
28541 } && test -s conftest$ac_exeext &&
28542 $as_test_x conftest$ac_exeext; then
28543 ac_cv_lib_radiusclient_ng_rc_read_config=yes
28544 else
28545 echo "$as_me: failed program was:" >&5
28546 sed 's/^/| /' conftest.$ac_ext >&5
28548 ac_cv_lib_radiusclient_ng_rc_read_config=no
28551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28552 conftest$ac_exeext conftest.$ac_ext
28553 LIBS=$ac_check_lib_save_LIBS
28555 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
28556 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
28557 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
28558 AST_RADIUS_FOUND=yes
28559 else
28560 AST_RADIUS_FOUND=no
28564 if test "${AST_RADIUS_FOUND}" = "yes"; then
28565 RADIUS_LIB="-lradiusclient-ng "
28566 RADIUS_HEADER_FOUND="1"
28567 if test "x${RADIUS_DIR}" != "x"; then
28568 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
28569 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
28570 saved_cppflags="${CPPFLAGS}"
28571 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
28572 if test "xradiusclient-ng.h" != "x" ; then
28573 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
28574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28575 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28576 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28578 echo $ECHO_N "(cached) $ECHO_C" >&6
28580 ac_res=`eval echo '${'$as_ac_Header'}'`
28581 { echo "$as_me:$LINENO: result: $ac_res" >&5
28582 echo "${ECHO_T}$ac_res" >&6; }
28583 else
28584 # Is the header compilable?
28585 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
28586 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
28587 cat >conftest.$ac_ext <<_ACEOF
28588 /* confdefs.h. */
28589 _ACEOF
28590 cat confdefs.h >>conftest.$ac_ext
28591 cat >>conftest.$ac_ext <<_ACEOF
28592 /* end confdefs.h. */
28593 $ac_includes_default
28594 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28595 _ACEOF
28596 rm -f conftest.$ac_objext
28597 if { (ac_try="$ac_compile"
28598 case "(($ac_try" in
28599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28600 *) ac_try_echo=$ac_try;;
28601 esac
28602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28603 (eval "$ac_compile") 2>conftest.er1
28604 ac_status=$?
28605 grep -v '^ *+' conftest.er1 >conftest.err
28606 rm -f conftest.er1
28607 cat conftest.err >&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); } && {
28610 test -z "$ac_c_werror_flag" ||
28611 test ! -s conftest.err
28612 } && test -s conftest.$ac_objext; then
28613 ac_header_compiler=yes
28614 else
28615 echo "$as_me: failed program was:" >&5
28616 sed 's/^/| /' conftest.$ac_ext >&5
28618 ac_header_compiler=no
28621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28623 echo "${ECHO_T}$ac_header_compiler" >&6; }
28625 # Is the header present?
28626 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
28627 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
28628 cat >conftest.$ac_ext <<_ACEOF
28629 /* confdefs.h. */
28630 _ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h. */
28634 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28635 _ACEOF
28636 if { (ac_try="$ac_cpp conftest.$ac_ext"
28637 case "(($ac_try" in
28638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28639 *) ac_try_echo=$ac_try;;
28640 esac
28641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28643 ac_status=$?
28644 grep -v '^ *+' conftest.er1 >conftest.err
28645 rm -f conftest.er1
28646 cat conftest.err >&5
28647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648 (exit $ac_status); } >/dev/null && {
28649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28650 test ! -s conftest.err
28651 }; then
28652 ac_header_preproc=yes
28653 else
28654 echo "$as_me: failed program was:" >&5
28655 sed 's/^/| /' conftest.$ac_ext >&5
28657 ac_header_preproc=no
28660 rm -f conftest.err conftest.$ac_ext
28661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28662 echo "${ECHO_T}$ac_header_preproc" >&6; }
28664 # So? What about this header?
28665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28666 yes:no: )
28667 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28668 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28669 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
28670 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
28671 ac_header_preproc=yes
28673 no:yes:* )
28674 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
28675 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
28676 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
28677 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
28678 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
28679 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
28680 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
28681 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
28682 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
28683 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
28684 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
28685 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
28686 ( cat <<\_ASBOX
28687 ## ------------------------------- ##
28688 ## Report this to www.asterisk.org ##
28689 ## ------------------------------- ##
28690 _ASBOX
28691 ) | sed "s/^/$as_me: WARNING: /" >&2
28693 esac
28694 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28695 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28697 echo $ECHO_N "(cached) $ECHO_C" >&6
28698 else
28699 eval "$as_ac_Header=\$ac_header_preproc"
28701 ac_res=`eval echo '${'$as_ac_Header'}'`
28702 { echo "$as_me:$LINENO: result: $ac_res" >&5
28703 echo "${ECHO_T}$ac_res" >&6; }
28706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28707 RADIUS_HEADER_FOUND=1
28708 else
28709 RADIUS_HEADER_FOUND=0
28714 CPPFLAGS="${saved_cppflags}"
28715 else
28716 if test "xradiusclient-ng.h" != "x" ; then
28717 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28718 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
28719 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
28720 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28721 echo $ECHO_N "(cached) $ECHO_C" >&6
28723 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
28724 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28725 else
28726 # Is the header compilable?
28727 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
28728 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
28729 cat >conftest.$ac_ext <<_ACEOF
28730 /* confdefs.h. */
28731 _ACEOF
28732 cat confdefs.h >>conftest.$ac_ext
28733 cat >>conftest.$ac_ext <<_ACEOF
28734 /* end confdefs.h. */
28735 $ac_includes_default
28736 #include <radiusclient-ng.h>
28737 _ACEOF
28738 rm -f conftest.$ac_objext
28739 if { (ac_try="$ac_compile"
28740 case "(($ac_try" in
28741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742 *) ac_try_echo=$ac_try;;
28743 esac
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745 (eval "$ac_compile") 2>conftest.er1
28746 ac_status=$?
28747 grep -v '^ *+' conftest.er1 >conftest.err
28748 rm -f conftest.er1
28749 cat conftest.err >&5
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); } && {
28752 test -z "$ac_c_werror_flag" ||
28753 test ! -s conftest.err
28754 } && test -s conftest.$ac_objext; then
28755 ac_header_compiler=yes
28756 else
28757 echo "$as_me: failed program was:" >&5
28758 sed 's/^/| /' conftest.$ac_ext >&5
28760 ac_header_compiler=no
28763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28765 echo "${ECHO_T}$ac_header_compiler" >&6; }
28767 # Is the header present?
28768 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
28769 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
28770 cat >conftest.$ac_ext <<_ACEOF
28771 /* confdefs.h. */
28772 _ACEOF
28773 cat confdefs.h >>conftest.$ac_ext
28774 cat >>conftest.$ac_ext <<_ACEOF
28775 /* end confdefs.h. */
28776 #include <radiusclient-ng.h>
28777 _ACEOF
28778 if { (ac_try="$ac_cpp conftest.$ac_ext"
28779 case "(($ac_try" in
28780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781 *) ac_try_echo=$ac_try;;
28782 esac
28783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28785 ac_status=$?
28786 grep -v '^ *+' conftest.er1 >conftest.err
28787 rm -f conftest.er1
28788 cat conftest.err >&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } >/dev/null && {
28791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28792 test ! -s conftest.err
28793 }; then
28794 ac_header_preproc=yes
28795 else
28796 echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28799 ac_header_preproc=no
28802 rm -f conftest.err conftest.$ac_ext
28803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28804 echo "${ECHO_T}$ac_header_preproc" >&6; }
28806 # So? What about this header?
28807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28808 yes:no: )
28809 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28810 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28811 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
28812 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
28813 ac_header_preproc=yes
28815 no:yes:* )
28816 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
28817 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
28818 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
28819 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
28820 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
28821 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
28822 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
28823 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
28824 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
28825 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
28826 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
28827 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
28828 ( cat <<\_ASBOX
28829 ## ------------------------------- ##
28830 ## Report this to www.asterisk.org ##
28831 ## ------------------------------- ##
28832 _ASBOX
28833 ) | sed "s/^/$as_me: WARNING: /" >&2
28835 esac
28836 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
28837 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
28838 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28839 echo $ECHO_N "(cached) $ECHO_C" >&6
28840 else
28841 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
28843 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
28844 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28847 if test $ac_cv_header_radiusclient_ng_h = yes; then
28848 RADIUS_HEADER_FOUND=1
28849 else
28850 RADIUS_HEADER_FOUND=0
28856 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
28857 if test -n "${RADIUS_MANDATORY}" ;
28858 then
28859 { echo "$as_me:$LINENO: ***" >&5
28860 echo "$as_me: ***" >&6;}
28861 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
28862 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
28863 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
28864 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
28865 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
28866 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
28867 exit 1
28869 RADIUS_LIB=""
28870 RADIUS_INCLUDE=""
28871 PBX_RADIUS=0
28872 else
28873 PBX_RADIUS=1
28875 cat >>confdefs.h <<_ACEOF
28876 #define HAVE_RADIUS 1
28877 _ACEOF
28880 elif test -n "${RADIUS_MANDATORY}";
28881 then
28882 { echo "$as_me:$LINENO: ***" >&5
28883 echo "$as_me: ***" >&6;}
28884 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
28885 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
28886 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28887 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28888 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
28889 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
28890 exit 1
28896 if test "${USE_SPEEX}" != "no"; then
28897 pbxlibdir=""
28898 if test "x${SPEEX_DIR}" != "x"; then
28899 if test -d ${SPEEX_DIR}/lib; then
28900 pbxlibdir="-L${SPEEX_DIR}/lib"
28901 else
28902 pbxlibdir="-L${SPEEX_DIR}"
28905 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
28906 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
28907 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
28908 echo $ECHO_N "(cached) $ECHO_C" >&6
28909 else
28910 ac_check_lib_save_LIBS=$LIBS
28911 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
28912 cat >conftest.$ac_ext <<_ACEOF
28913 /* confdefs.h. */
28914 _ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h. */
28919 /* Override any GCC internal prototype to avoid an error.
28920 Use char because int might match the return type of a GCC
28921 builtin and then its argument prototype would still apply. */
28922 #ifdef __cplusplus
28923 extern "C"
28924 #endif
28925 char speex_encode ();
28927 main ()
28929 return speex_encode ();
28931 return 0;
28933 _ACEOF
28934 rm -f conftest.$ac_objext conftest$ac_exeext
28935 if { (ac_try="$ac_link"
28936 case "(($ac_try" in
28937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938 *) ac_try_echo=$ac_try;;
28939 esac
28940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941 (eval "$ac_link") 2>conftest.er1
28942 ac_status=$?
28943 grep -v '^ *+' conftest.er1 >conftest.err
28944 rm -f conftest.er1
28945 cat conftest.err >&5
28946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947 (exit $ac_status); } && {
28948 test -z "$ac_c_werror_flag" ||
28949 test ! -s conftest.err
28950 } && test -s conftest$ac_exeext &&
28951 $as_test_x conftest$ac_exeext; then
28952 ac_cv_lib_speex_speex_encode=yes
28953 else
28954 echo "$as_me: failed program was:" >&5
28955 sed 's/^/| /' conftest.$ac_ext >&5
28957 ac_cv_lib_speex_speex_encode=no
28960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28961 conftest$ac_exeext conftest.$ac_ext
28962 LIBS=$ac_check_lib_save_LIBS
28964 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
28965 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
28966 if test $ac_cv_lib_speex_speex_encode = yes; then
28967 AST_SPEEX_FOUND=yes
28968 else
28969 AST_SPEEX_FOUND=no
28973 if test "${AST_SPEEX_FOUND}" = "yes"; then
28974 SPEEX_LIB="-lspeex -lm"
28975 SPEEX_HEADER_FOUND="1"
28976 if test "x${SPEEX_DIR}" != "x"; then
28977 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
28978 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
28979 saved_cppflags="${CPPFLAGS}"
28980 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
28981 if test "xspeex/speex.h" != "x" ; then
28982 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
28983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28984 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
28985 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
28986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28987 echo $ECHO_N "(cached) $ECHO_C" >&6
28989 ac_res=`eval echo '${'$as_ac_Header'}'`
28990 { echo "$as_me:$LINENO: result: $ac_res" >&5
28991 echo "${ECHO_T}$ac_res" >&6; }
28992 else
28993 # Is the header compilable?
28994 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
28995 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
28996 cat >conftest.$ac_ext <<_ACEOF
28997 /* confdefs.h. */
28998 _ACEOF
28999 cat confdefs.h >>conftest.$ac_ext
29000 cat >>conftest.$ac_ext <<_ACEOF
29001 /* end confdefs.h. */
29002 $ac_includes_default
29003 #include <${SPEEX_DIR}/include/speex/speex.h>
29004 _ACEOF
29005 rm -f conftest.$ac_objext
29006 if { (ac_try="$ac_compile"
29007 case "(($ac_try" in
29008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29009 *) ac_try_echo=$ac_try;;
29010 esac
29011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29012 (eval "$ac_compile") 2>conftest.er1
29013 ac_status=$?
29014 grep -v '^ *+' conftest.er1 >conftest.err
29015 rm -f conftest.er1
29016 cat conftest.err >&5
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); } && {
29019 test -z "$ac_c_werror_flag" ||
29020 test ! -s conftest.err
29021 } && test -s conftest.$ac_objext; then
29022 ac_header_compiler=yes
29023 else
29024 echo "$as_me: failed program was:" >&5
29025 sed 's/^/| /' conftest.$ac_ext >&5
29027 ac_header_compiler=no
29030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29032 echo "${ECHO_T}$ac_header_compiler" >&6; }
29034 # Is the header present?
29035 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
29036 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29037 cat >conftest.$ac_ext <<_ACEOF
29038 /* confdefs.h. */
29039 _ACEOF
29040 cat confdefs.h >>conftest.$ac_ext
29041 cat >>conftest.$ac_ext <<_ACEOF
29042 /* end confdefs.h. */
29043 #include <${SPEEX_DIR}/include/speex/speex.h>
29044 _ACEOF
29045 if { (ac_try="$ac_cpp conftest.$ac_ext"
29046 case "(($ac_try" in
29047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048 *) ac_try_echo=$ac_try;;
29049 esac
29050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29052 ac_status=$?
29053 grep -v '^ *+' conftest.er1 >conftest.err
29054 rm -f conftest.er1
29055 cat conftest.err >&5
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); } >/dev/null && {
29058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29059 test ! -s conftest.err
29060 }; then
29061 ac_header_preproc=yes
29062 else
29063 echo "$as_me: failed program was:" >&5
29064 sed 's/^/| /' conftest.$ac_ext >&5
29066 ac_header_preproc=no
29069 rm -f conftest.err conftest.$ac_ext
29070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29071 echo "${ECHO_T}$ac_header_preproc" >&6; }
29073 # So? What about this header?
29074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29075 yes:no: )
29076 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29077 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29078 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29079 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29080 ac_header_preproc=yes
29082 no:yes:* )
29083 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29084 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29085 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29086 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29087 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29088 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29089 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29090 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29091 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29092 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29093 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29094 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29095 ( cat <<\_ASBOX
29096 ## ------------------------------- ##
29097 ## Report this to www.asterisk.org ##
29098 ## ------------------------------- ##
29099 _ASBOX
29100 ) | sed "s/^/$as_me: WARNING: /" >&2
29102 esac
29103 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
29104 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29106 echo $ECHO_N "(cached) $ECHO_C" >&6
29107 else
29108 eval "$as_ac_Header=\$ac_header_preproc"
29110 ac_res=`eval echo '${'$as_ac_Header'}'`
29111 { echo "$as_me:$LINENO: result: $ac_res" >&5
29112 echo "${ECHO_T}$ac_res" >&6; }
29115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29116 SPEEX_HEADER_FOUND=1
29117 else
29118 SPEEX_HEADER_FOUND=0
29123 CPPFLAGS="${saved_cppflags}"
29124 else
29125 if test "xspeex/speex.h" != "x" ; then
29126 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29127 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29128 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29129 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29130 echo $ECHO_N "(cached) $ECHO_C" >&6
29132 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29133 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29134 else
29135 # Is the header compilable?
29136 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29137 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29138 cat >conftest.$ac_ext <<_ACEOF
29139 /* confdefs.h. */
29140 _ACEOF
29141 cat confdefs.h >>conftest.$ac_ext
29142 cat >>conftest.$ac_ext <<_ACEOF
29143 /* end confdefs.h. */
29144 $ac_includes_default
29145 #include <speex/speex.h>
29146 _ACEOF
29147 rm -f conftest.$ac_objext
29148 if { (ac_try="$ac_compile"
29149 case "(($ac_try" in
29150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151 *) ac_try_echo=$ac_try;;
29152 esac
29153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154 (eval "$ac_compile") 2>conftest.er1
29155 ac_status=$?
29156 grep -v '^ *+' conftest.er1 >conftest.err
29157 rm -f conftest.er1
29158 cat conftest.err >&5
29159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160 (exit $ac_status); } && {
29161 test -z "$ac_c_werror_flag" ||
29162 test ! -s conftest.err
29163 } && test -s conftest.$ac_objext; then
29164 ac_header_compiler=yes
29165 else
29166 echo "$as_me: failed program was:" >&5
29167 sed 's/^/| /' conftest.$ac_ext >&5
29169 ac_header_compiler=no
29172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29174 echo "${ECHO_T}$ac_header_compiler" >&6; }
29176 # Is the header present?
29177 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
29178 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
29179 cat >conftest.$ac_ext <<_ACEOF
29180 /* confdefs.h. */
29181 _ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h. */
29185 #include <speex/speex.h>
29186 _ACEOF
29187 if { (ac_try="$ac_cpp conftest.$ac_ext"
29188 case "(($ac_try" in
29189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190 *) ac_try_echo=$ac_try;;
29191 esac
29192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29194 ac_status=$?
29195 grep -v '^ *+' conftest.er1 >conftest.err
29196 rm -f conftest.er1
29197 cat conftest.err >&5
29198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199 (exit $ac_status); } >/dev/null && {
29200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29201 test ! -s conftest.err
29202 }; then
29203 ac_header_preproc=yes
29204 else
29205 echo "$as_me: failed program was:" >&5
29206 sed 's/^/| /' conftest.$ac_ext >&5
29208 ac_header_preproc=no
29211 rm -f conftest.err conftest.$ac_ext
29212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29213 echo "${ECHO_T}$ac_header_preproc" >&6; }
29215 # So? What about this header?
29216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29217 yes:no: )
29218 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29219 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29220 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
29221 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
29222 ac_header_preproc=yes
29224 no:yes:* )
29225 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
29226 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
29228 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
29229 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
29230 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
29231 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29232 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29233 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
29234 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
29235 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
29236 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
29237 ( cat <<\_ASBOX
29238 ## ------------------------------- ##
29239 ## Report this to www.asterisk.org ##
29240 ## ------------------------------- ##
29241 _ASBOX
29242 ) | sed "s/^/$as_me: WARNING: /" >&2
29244 esac
29245 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29246 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29247 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29248 echo $ECHO_N "(cached) $ECHO_C" >&6
29249 else
29250 ac_cv_header_speex_speex_h=$ac_header_preproc
29252 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29253 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29256 if test $ac_cv_header_speex_speex_h = yes; then
29257 SPEEX_HEADER_FOUND=1
29258 else
29259 SPEEX_HEADER_FOUND=0
29265 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
29266 if test -n "${SPEEX_MANDATORY}" ;
29267 then
29268 { echo "$as_me:$LINENO: ***" >&5
29269 echo "$as_me: ***" >&6;}
29270 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
29271 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
29272 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
29273 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
29274 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
29275 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
29276 exit 1
29278 SPEEX_LIB=""
29279 SPEEX_INCLUDE=""
29280 PBX_SPEEX=0
29281 else
29282 PBX_SPEEX=1
29284 cat >>confdefs.h <<_ACEOF
29285 #define HAVE_SPEEX 1
29286 _ACEOF
29289 elif test -n "${SPEEX_MANDATORY}";
29290 then
29291 { echo "$as_me:$LINENO: ***" >&5
29292 echo "$as_me: ***" >&6;}
29293 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
29294 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
29295 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29296 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29297 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
29298 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
29299 exit 1
29304 # See if the main speex library contains the preprocess functions
29306 if test "${USE_SPEEX_PREPROCESS}" != "no"; then
29307 pbxlibdir=""
29308 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
29309 if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
29310 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
29311 else
29312 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
29315 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeex" >&5
29316 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeex... $ECHO_C" >&6; }
29317 if test "${ac_cv_lib_speex_speex_preprocess_ctl+set}" = set; then
29318 echo $ECHO_N "(cached) $ECHO_C" >&6
29319 else
29320 ac_check_lib_save_LIBS=$LIBS
29321 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
29322 cat >conftest.$ac_ext <<_ACEOF
29323 /* confdefs.h. */
29324 _ACEOF
29325 cat confdefs.h >>conftest.$ac_ext
29326 cat >>conftest.$ac_ext <<_ACEOF
29327 /* end confdefs.h. */
29329 /* Override any GCC internal prototype to avoid an error.
29330 Use char because int might match the return type of a GCC
29331 builtin and then its argument prototype would still apply. */
29332 #ifdef __cplusplus
29333 extern "C"
29334 #endif
29335 char speex_preprocess_ctl ();
29337 main ()
29339 return speex_preprocess_ctl ();
29341 return 0;
29343 _ACEOF
29344 rm -f conftest.$ac_objext conftest$ac_exeext
29345 if { (ac_try="$ac_link"
29346 case "(($ac_try" in
29347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29348 *) ac_try_echo=$ac_try;;
29349 esac
29350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351 (eval "$ac_link") 2>conftest.er1
29352 ac_status=$?
29353 grep -v '^ *+' conftest.er1 >conftest.err
29354 rm -f conftest.er1
29355 cat conftest.err >&5
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); } && {
29358 test -z "$ac_c_werror_flag" ||
29359 test ! -s conftest.err
29360 } && test -s conftest$ac_exeext &&
29361 $as_test_x conftest$ac_exeext; then
29362 ac_cv_lib_speex_speex_preprocess_ctl=yes
29363 else
29364 echo "$as_me: failed program was:" >&5
29365 sed 's/^/| /' conftest.$ac_ext >&5
29367 ac_cv_lib_speex_speex_preprocess_ctl=no
29370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29371 conftest$ac_exeext conftest.$ac_ext
29372 LIBS=$ac_check_lib_save_LIBS
29374 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_preprocess_ctl" >&5
29375 echo "${ECHO_T}$ac_cv_lib_speex_speex_preprocess_ctl" >&6; }
29376 if test $ac_cv_lib_speex_speex_preprocess_ctl = yes; then
29377 AST_SPEEX_PREPROCESS_FOUND=yes
29378 else
29379 AST_SPEEX_PREPROCESS_FOUND=no
29383 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
29384 SPEEX_PREPROCESS_LIB="-lspeex -lm"
29385 SPEEX_PREPROCESS_HEADER_FOUND="1"
29386 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
29387 SPEEX_PREPROCESS_LIB="${pbxlibdir} ${SPEEX_PREPROCESS_LIB}"
29388 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
29389 saved_cppflags="${CPPFLAGS}"
29390 CPPFLAGS="${CPPFLAGS} -I${SPEEX_PREPROCESS_DIR}/include"
29391 if test "xspeex/speex.h" != "x" ; then
29392 as_ac_Header=`echo "ac_cv_header_${SPEEX_PREPROCESS_DIR}/include/speex/speex.h" | $as_tr_sh`
29393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29394 { echo "$as_me:$LINENO: checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h" >&5
29395 echo $ECHO_N "checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29397 echo $ECHO_N "(cached) $ECHO_C" >&6
29399 ac_res=`eval echo '${'$as_ac_Header'}'`
29400 { echo "$as_me:$LINENO: result: $ac_res" >&5
29401 echo "${ECHO_T}$ac_res" >&6; }
29402 else
29403 # Is the header compilable?
29404 { echo "$as_me:$LINENO: checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h usability" >&5
29405 echo $ECHO_N "checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
29406 cat >conftest.$ac_ext <<_ACEOF
29407 /* confdefs.h. */
29408 _ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h. */
29412 $ac_includes_default
29413 #include <${SPEEX_PREPROCESS_DIR}/include/speex/speex.h>
29414 _ACEOF
29415 rm -f conftest.$ac_objext
29416 if { (ac_try="$ac_compile"
29417 case "(($ac_try" in
29418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29419 *) ac_try_echo=$ac_try;;
29420 esac
29421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29422 (eval "$ac_compile") 2>conftest.er1
29423 ac_status=$?
29424 grep -v '^ *+' conftest.er1 >conftest.err
29425 rm -f conftest.er1
29426 cat conftest.err >&5
29427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428 (exit $ac_status); } && {
29429 test -z "$ac_c_werror_flag" ||
29430 test ! -s conftest.err
29431 } && test -s conftest.$ac_objext; then
29432 ac_header_compiler=yes
29433 else
29434 echo "$as_me: failed program was:" >&5
29435 sed 's/^/| /' conftest.$ac_ext >&5
29437 ac_header_compiler=no
29440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29442 echo "${ECHO_T}$ac_header_compiler" >&6; }
29444 # Is the header present?
29445 { echo "$as_me:$LINENO: checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h presence" >&5
29446 echo $ECHO_N "checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29447 cat >conftest.$ac_ext <<_ACEOF
29448 /* confdefs.h. */
29449 _ACEOF
29450 cat confdefs.h >>conftest.$ac_ext
29451 cat >>conftest.$ac_ext <<_ACEOF
29452 /* end confdefs.h. */
29453 #include <${SPEEX_PREPROCESS_DIR}/include/speex/speex.h>
29454 _ACEOF
29455 if { (ac_try="$ac_cpp conftest.$ac_ext"
29456 case "(($ac_try" in
29457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29458 *) ac_try_echo=$ac_try;;
29459 esac
29460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29462 ac_status=$?
29463 grep -v '^ *+' conftest.er1 >conftest.err
29464 rm -f conftest.er1
29465 cat conftest.err >&5
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); } >/dev/null && {
29468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29469 test ! -s conftest.err
29470 }; then
29471 ac_header_preproc=yes
29472 else
29473 echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.$ac_ext >&5
29476 ac_header_preproc=no
29479 rm -f conftest.err conftest.$ac_ext
29480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29481 echo "${ECHO_T}$ac_header_preproc" >&6; }
29483 # So? What about this header?
29484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29485 yes:no: )
29486 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29487 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29488 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29489 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29490 ac_header_preproc=yes
29492 no:yes:* )
29493 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29494 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29495 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29496 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29497 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29498 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29499 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29500 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29501 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29502 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29503 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29504 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29505 ( cat <<\_ASBOX
29506 ## ------------------------------- ##
29507 ## Report this to www.asterisk.org ##
29508 ## ------------------------------- ##
29509 _ASBOX
29510 ) | sed "s/^/$as_me: WARNING: /" >&2
29512 esac
29513 { echo "$as_me:$LINENO: checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h" >&5
29514 echo $ECHO_N "checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29516 echo $ECHO_N "(cached) $ECHO_C" >&6
29517 else
29518 eval "$as_ac_Header=\$ac_header_preproc"
29520 ac_res=`eval echo '${'$as_ac_Header'}'`
29521 { echo "$as_me:$LINENO: result: $ac_res" >&5
29522 echo "${ECHO_T}$ac_res" >&6; }
29525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29526 SPEEX_PREPROCESS_HEADER_FOUND=1
29527 else
29528 SPEEX_PREPROCESS_HEADER_FOUND=0
29533 CPPFLAGS="${saved_cppflags}"
29534 else
29535 if test "xspeex/speex.h" != "x" ; then
29536 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29537 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29538 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29539 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29540 echo $ECHO_N "(cached) $ECHO_C" >&6
29542 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29543 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29544 else
29545 # Is the header compilable?
29546 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29547 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29548 cat >conftest.$ac_ext <<_ACEOF
29549 /* confdefs.h. */
29550 _ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h. */
29554 $ac_includes_default
29555 #include <speex/speex.h>
29556 _ACEOF
29557 rm -f conftest.$ac_objext
29558 if { (ac_try="$ac_compile"
29559 case "(($ac_try" in
29560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29561 *) ac_try_echo=$ac_try;;
29562 esac
29563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29564 (eval "$ac_compile") 2>conftest.er1
29565 ac_status=$?
29566 grep -v '^ *+' conftest.er1 >conftest.err
29567 rm -f conftest.er1
29568 cat conftest.err >&5
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); } && {
29571 test -z "$ac_c_werror_flag" ||
29572 test ! -s conftest.err
29573 } && test -s conftest.$ac_objext; then
29574 ac_header_compiler=yes
29575 else
29576 echo "$as_me: failed program was:" >&5
29577 sed 's/^/| /' conftest.$ac_ext >&5
29579 ac_header_compiler=no
29582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29584 echo "${ECHO_T}$ac_header_compiler" >&6; }
29586 # Is the header present?
29587 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
29588 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
29589 cat >conftest.$ac_ext <<_ACEOF
29590 /* confdefs.h. */
29591 _ACEOF
29592 cat confdefs.h >>conftest.$ac_ext
29593 cat >>conftest.$ac_ext <<_ACEOF
29594 /* end confdefs.h. */
29595 #include <speex/speex.h>
29596 _ACEOF
29597 if { (ac_try="$ac_cpp conftest.$ac_ext"
29598 case "(($ac_try" in
29599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29600 *) ac_try_echo=$ac_try;;
29601 esac
29602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29604 ac_status=$?
29605 grep -v '^ *+' conftest.er1 >conftest.err
29606 rm -f conftest.er1
29607 cat conftest.err >&5
29608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609 (exit $ac_status); } >/dev/null && {
29610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29611 test ! -s conftest.err
29612 }; then
29613 ac_header_preproc=yes
29614 else
29615 echo "$as_me: failed program was:" >&5
29616 sed 's/^/| /' conftest.$ac_ext >&5
29618 ac_header_preproc=no
29621 rm -f conftest.err conftest.$ac_ext
29622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29623 echo "${ECHO_T}$ac_header_preproc" >&6; }
29625 # So? What about this header?
29626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29627 yes:no: )
29628 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29629 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29630 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
29631 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
29632 ac_header_preproc=yes
29634 no:yes:* )
29635 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
29636 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
29637 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
29638 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
29639 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
29640 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
29641 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29642 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29643 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
29644 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
29645 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
29646 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
29647 ( cat <<\_ASBOX
29648 ## ------------------------------- ##
29649 ## Report this to www.asterisk.org ##
29650 ## ------------------------------- ##
29651 _ASBOX
29652 ) | sed "s/^/$as_me: WARNING: /" >&2
29654 esac
29655 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29656 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29657 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29658 echo $ECHO_N "(cached) $ECHO_C" >&6
29659 else
29660 ac_cv_header_speex_speex_h=$ac_header_preproc
29662 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29663 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29666 if test $ac_cv_header_speex_speex_h = yes; then
29667 SPEEX_PREPROCESS_HEADER_FOUND=1
29668 else
29669 SPEEX_PREPROCESS_HEADER_FOUND=0
29675 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
29676 if test -n "${SPEEX_PREPROCESS_MANDATORY}" ;
29677 then
29678 { echo "$as_me:$LINENO: ***" >&5
29679 echo "$as_me: ***" >&6;}
29680 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
29681 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
29682 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&5
29683 echo "$as_me: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&6;}
29684 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
29685 echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
29686 exit 1
29688 SPEEX_PREPROCESS_LIB=""
29689 SPEEX_PREPROCESS_INCLUDE=""
29690 PBX_SPEEX_PREPROCESS=0
29691 else
29692 PBX_SPEEX_PREPROCESS=1
29694 cat >>confdefs.h <<_ACEOF
29695 #define HAVE_SPEEX_PREPROCESS 1
29696 _ACEOF
29699 elif test -n "${SPEEX_PREPROCESS_MANDATORY}";
29700 then
29701 { echo "$as_me:$LINENO: ***" >&5
29702 echo "$as_me: ***" >&6;}
29703 { echo "$as_me:$LINENO: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&5
29704 echo "$as_me: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&6;}
29705 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29706 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29707 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
29708 echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
29709 exit 1
29713 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
29714 PBX_SPEEX_PREPROCESS=1
29718 if test "${USE_SPEEXDSP}" != "no"; then
29719 pbxlibdir=""
29720 if test "x${SPEEXDSP_DIR}" != "x"; then
29721 if test -d ${SPEEXDSP_DIR}/lib; then
29722 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
29723 else
29724 pbxlibdir="-L${SPEEXDSP_DIR}"
29727 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeexdsp" >&5
29728 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeexdsp... $ECHO_C" >&6; }
29729 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
29730 echo $ECHO_N "(cached) $ECHO_C" >&6
29731 else
29732 ac_check_lib_save_LIBS=$LIBS
29733 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
29734 cat >conftest.$ac_ext <<_ACEOF
29735 /* confdefs.h. */
29736 _ACEOF
29737 cat confdefs.h >>conftest.$ac_ext
29738 cat >>conftest.$ac_ext <<_ACEOF
29739 /* end confdefs.h. */
29741 /* Override any GCC internal prototype to avoid an error.
29742 Use char because int might match the return type of a GCC
29743 builtin and then its argument prototype would still apply. */
29744 #ifdef __cplusplus
29745 extern "C"
29746 #endif
29747 char speex_preprocess_ctl ();
29749 main ()
29751 return speex_preprocess_ctl ();
29753 return 0;
29755 _ACEOF
29756 rm -f conftest.$ac_objext conftest$ac_exeext
29757 if { (ac_try="$ac_link"
29758 case "(($ac_try" in
29759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29760 *) ac_try_echo=$ac_try;;
29761 esac
29762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29763 (eval "$ac_link") 2>conftest.er1
29764 ac_status=$?
29765 grep -v '^ *+' conftest.er1 >conftest.err
29766 rm -f conftest.er1
29767 cat conftest.err >&5
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); } && {
29770 test -z "$ac_c_werror_flag" ||
29771 test ! -s conftest.err
29772 } && test -s conftest$ac_exeext &&
29773 $as_test_x conftest$ac_exeext; then
29774 ac_cv_lib_speexdsp_speex_preprocess_ctl=yes
29775 else
29776 echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.$ac_ext >&5
29779 ac_cv_lib_speexdsp_speex_preprocess_ctl=no
29782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29783 conftest$ac_exeext conftest.$ac_ext
29784 LIBS=$ac_check_lib_save_LIBS
29786 { echo "$as_me:$LINENO: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
29787 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
29788 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
29789 AST_SPEEXDSP_FOUND=yes
29790 else
29791 AST_SPEEXDSP_FOUND=no
29795 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
29796 SPEEXDSP_LIB="-lspeexdsp -lm"
29797 SPEEXDSP_HEADER_FOUND="1"
29798 if test "x${SPEEXDSP_DIR}" != "x"; then
29799 SPEEXDSP_LIB="${pbxlibdir} ${SPEEXDSP_LIB}"
29800 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
29801 saved_cppflags="${CPPFLAGS}"
29802 CPPFLAGS="${CPPFLAGS} -I${SPEEXDSP_DIR}/include"
29803 if test "xspeex/speex.h" != "x" ; then
29804 as_ac_Header=`echo "ac_cv_header_${SPEEXDSP_DIR}/include/speex/speex.h" | $as_tr_sh`
29805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29806 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
29807 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29809 echo $ECHO_N "(cached) $ECHO_C" >&6
29811 ac_res=`eval echo '${'$as_ac_Header'}'`
29812 { echo "$as_me:$LINENO: result: $ac_res" >&5
29813 echo "${ECHO_T}$ac_res" >&6; }
29814 else
29815 # Is the header compilable?
29816 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h usability" >&5
29817 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
29818 cat >conftest.$ac_ext <<_ACEOF
29819 /* confdefs.h. */
29820 _ACEOF
29821 cat confdefs.h >>conftest.$ac_ext
29822 cat >>conftest.$ac_ext <<_ACEOF
29823 /* end confdefs.h. */
29824 $ac_includes_default
29825 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
29826 _ACEOF
29827 rm -f conftest.$ac_objext
29828 if { (ac_try="$ac_compile"
29829 case "(($ac_try" in
29830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831 *) ac_try_echo=$ac_try;;
29832 esac
29833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29834 (eval "$ac_compile") 2>conftest.er1
29835 ac_status=$?
29836 grep -v '^ *+' conftest.er1 >conftest.err
29837 rm -f conftest.er1
29838 cat conftest.err >&5
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); } && {
29841 test -z "$ac_c_werror_flag" ||
29842 test ! -s conftest.err
29843 } && test -s conftest.$ac_objext; then
29844 ac_header_compiler=yes
29845 else
29846 echo "$as_me: failed program was:" >&5
29847 sed 's/^/| /' conftest.$ac_ext >&5
29849 ac_header_compiler=no
29852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29854 echo "${ECHO_T}$ac_header_compiler" >&6; }
29856 # Is the header present?
29857 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h presence" >&5
29858 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29859 cat >conftest.$ac_ext <<_ACEOF
29860 /* confdefs.h. */
29861 _ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h. */
29865 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
29866 _ACEOF
29867 if { (ac_try="$ac_cpp conftest.$ac_ext"
29868 case "(($ac_try" in
29869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29870 *) ac_try_echo=$ac_try;;
29871 esac
29872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29874 ac_status=$?
29875 grep -v '^ *+' conftest.er1 >conftest.err
29876 rm -f conftest.er1
29877 cat conftest.err >&5
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); } >/dev/null && {
29880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29881 test ! -s conftest.err
29882 }; then
29883 ac_header_preproc=yes
29884 else
29885 echo "$as_me: failed program was:" >&5
29886 sed 's/^/| /' conftest.$ac_ext >&5
29888 ac_header_preproc=no
29891 rm -f conftest.err conftest.$ac_ext
29892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29893 echo "${ECHO_T}$ac_header_preproc" >&6; }
29895 # So? What about this header?
29896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29897 yes:no: )
29898 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29899 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29900 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29901 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29902 ac_header_preproc=yes
29904 no:yes:* )
29905 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29906 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29907 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29908 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29909 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29910 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29911 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29912 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29913 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29914 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29915 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29916 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29917 ( cat <<\_ASBOX
29918 ## ------------------------------- ##
29919 ## Report this to www.asterisk.org ##
29920 ## ------------------------------- ##
29921 _ASBOX
29922 ) | sed "s/^/$as_me: WARNING: /" >&2
29924 esac
29925 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
29926 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29928 echo $ECHO_N "(cached) $ECHO_C" >&6
29929 else
29930 eval "$as_ac_Header=\$ac_header_preproc"
29932 ac_res=`eval echo '${'$as_ac_Header'}'`
29933 { echo "$as_me:$LINENO: result: $ac_res" >&5
29934 echo "${ECHO_T}$ac_res" >&6; }
29937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29938 SPEEXDSP_HEADER_FOUND=1
29939 else
29940 SPEEXDSP_HEADER_FOUND=0
29945 CPPFLAGS="${saved_cppflags}"
29946 else
29947 if test "xspeex/speex.h" != "x" ; then
29948 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29949 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29950 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29951 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29952 echo $ECHO_N "(cached) $ECHO_C" >&6
29954 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29955 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29956 else
29957 # Is the header compilable?
29958 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29959 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29960 cat >conftest.$ac_ext <<_ACEOF
29961 /* confdefs.h. */
29962 _ACEOF
29963 cat confdefs.h >>conftest.$ac_ext
29964 cat >>conftest.$ac_ext <<_ACEOF
29965 /* end confdefs.h. */
29966 $ac_includes_default
29967 #include <speex/speex.h>
29968 _ACEOF
29969 rm -f conftest.$ac_objext
29970 if { (ac_try="$ac_compile"
29971 case "(($ac_try" in
29972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29973 *) ac_try_echo=$ac_try;;
29974 esac
29975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29976 (eval "$ac_compile") 2>conftest.er1
29977 ac_status=$?
29978 grep -v '^ *+' conftest.er1 >conftest.err
29979 rm -f conftest.er1
29980 cat conftest.err >&5
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); } && {
29983 test -z "$ac_c_werror_flag" ||
29984 test ! -s conftest.err
29985 } && test -s conftest.$ac_objext; then
29986 ac_header_compiler=yes
29987 else
29988 echo "$as_me: failed program was:" >&5
29989 sed 's/^/| /' conftest.$ac_ext >&5
29991 ac_header_compiler=no
29994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29996 echo "${ECHO_T}$ac_header_compiler" >&6; }
29998 # Is the header present?
29999 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
30000 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
30001 cat >conftest.$ac_ext <<_ACEOF
30002 /* confdefs.h. */
30003 _ACEOF
30004 cat confdefs.h >>conftest.$ac_ext
30005 cat >>conftest.$ac_ext <<_ACEOF
30006 /* end confdefs.h. */
30007 #include <speex/speex.h>
30008 _ACEOF
30009 if { (ac_try="$ac_cpp conftest.$ac_ext"
30010 case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30013 esac
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30016 ac_status=$?
30017 grep -v '^ *+' conftest.er1 >conftest.err
30018 rm -f conftest.er1
30019 cat conftest.err >&5
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); } >/dev/null && {
30022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30023 test ! -s conftest.err
30024 }; then
30025 ac_header_preproc=yes
30026 else
30027 echo "$as_me: failed program was:" >&5
30028 sed 's/^/| /' conftest.$ac_ext >&5
30030 ac_header_preproc=no
30033 rm -f conftest.err conftest.$ac_ext
30034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30035 echo "${ECHO_T}$ac_header_preproc" >&6; }
30037 # So? What about this header?
30038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30039 yes:no: )
30040 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
30041 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30042 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
30043 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
30044 ac_header_preproc=yes
30046 no:yes:* )
30047 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
30048 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
30049 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
30050 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
30051 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
30052 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
30053 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
30054 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
30055 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
30056 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
30057 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
30058 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
30059 ( cat <<\_ASBOX
30060 ## ------------------------------- ##
30061 ## Report this to www.asterisk.org ##
30062 ## ------------------------------- ##
30063 _ASBOX
30064 ) | sed "s/^/$as_me: WARNING: /" >&2
30066 esac
30067 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
30068 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
30069 if test "${ac_cv_header_speex_speex_h+set}" = set; then
30070 echo $ECHO_N "(cached) $ECHO_C" >&6
30071 else
30072 ac_cv_header_speex_speex_h=$ac_header_preproc
30074 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
30075 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
30078 if test $ac_cv_header_speex_speex_h = yes; then
30079 SPEEXDSP_HEADER_FOUND=1
30080 else
30081 SPEEXDSP_HEADER_FOUND=0
30087 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
30088 if test -n "${SPEEXDSP_MANDATORY}" ;
30089 then
30090 { echo "$as_me:$LINENO: ***" >&5
30091 echo "$as_me: ***" >&6;}
30092 { echo "$as_me:$LINENO: *** It appears that you do not have the speexdsp development package installed." >&5
30093 echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;}
30094 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5
30095 echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;}
30096 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
30097 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
30098 exit 1
30100 SPEEXDSP_LIB=""
30101 SPEEXDSP_INCLUDE=""
30102 PBX_SPEEXDSP=0
30103 else
30104 PBX_SPEEXDSP=1
30106 cat >>confdefs.h <<_ACEOF
30107 #define HAVE_SPEEXDSP 1
30108 _ACEOF
30111 elif test -n "${SPEEXDSP_MANDATORY}";
30112 then
30113 { echo "$as_me:$LINENO: ***" >&5
30114 echo "$as_me: ***" >&6;}
30115 { echo "$as_me:$LINENO: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5
30116 echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;}
30117 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30118 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30119 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
30120 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
30121 exit 1
30125 if test "${PBX_SPEEXDSP}" = 1; then
30126 PBX_SPEEX_PREPROCESS=1
30132 if test "${USE_SQLITE}" != "no"; then
30133 pbxlibdir=""
30134 if test "x${SQLITE_DIR}" != "x"; then
30135 if test -d ${SQLITE_DIR}/lib; then
30136 pbxlibdir="-L${SQLITE_DIR}/lib"
30137 else
30138 pbxlibdir="-L${SQLITE_DIR}"
30141 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
30142 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
30143 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
30144 echo $ECHO_N "(cached) $ECHO_C" >&6
30145 else
30146 ac_check_lib_save_LIBS=$LIBS
30147 LIBS="-lsqlite ${pbxlibdir} $LIBS"
30148 cat >conftest.$ac_ext <<_ACEOF
30149 /* confdefs.h. */
30150 _ACEOF
30151 cat confdefs.h >>conftest.$ac_ext
30152 cat >>conftest.$ac_ext <<_ACEOF
30153 /* end confdefs.h. */
30155 /* Override any GCC internal prototype to avoid an error.
30156 Use char because int might match the return type of a GCC
30157 builtin and then its argument prototype would still apply. */
30158 #ifdef __cplusplus
30159 extern "C"
30160 #endif
30161 char sqlite_exec ();
30163 main ()
30165 return sqlite_exec ();
30167 return 0;
30169 _ACEOF
30170 rm -f conftest.$ac_objext conftest$ac_exeext
30171 if { (ac_try="$ac_link"
30172 case "(($ac_try" in
30173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174 *) ac_try_echo=$ac_try;;
30175 esac
30176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177 (eval "$ac_link") 2>conftest.er1
30178 ac_status=$?
30179 grep -v '^ *+' conftest.er1 >conftest.err
30180 rm -f conftest.er1
30181 cat conftest.err >&5
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); } && {
30184 test -z "$ac_c_werror_flag" ||
30185 test ! -s conftest.err
30186 } && test -s conftest$ac_exeext &&
30187 $as_test_x conftest$ac_exeext; then
30188 ac_cv_lib_sqlite_sqlite_exec=yes
30189 else
30190 echo "$as_me: failed program was:" >&5
30191 sed 's/^/| /' conftest.$ac_ext >&5
30193 ac_cv_lib_sqlite_sqlite_exec=no
30196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30197 conftest$ac_exeext conftest.$ac_ext
30198 LIBS=$ac_check_lib_save_LIBS
30200 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
30201 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
30202 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
30203 AST_SQLITE_FOUND=yes
30204 else
30205 AST_SQLITE_FOUND=no
30209 if test "${AST_SQLITE_FOUND}" = "yes"; then
30210 SQLITE_LIB="-lsqlite "
30211 SQLITE_HEADER_FOUND="1"
30212 if test "x${SQLITE_DIR}" != "x"; then
30213 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
30214 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
30215 saved_cppflags="${CPPFLAGS}"
30216 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
30217 if test "xsqlite.h" != "x" ; then
30218 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
30219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30220 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
30221 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
30222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30223 echo $ECHO_N "(cached) $ECHO_C" >&6
30225 ac_res=`eval echo '${'$as_ac_Header'}'`
30226 { echo "$as_me:$LINENO: result: $ac_res" >&5
30227 echo "${ECHO_T}$ac_res" >&6; }
30228 else
30229 # Is the header compilable?
30230 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
30231 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
30232 cat >conftest.$ac_ext <<_ACEOF
30233 /* confdefs.h. */
30234 _ACEOF
30235 cat confdefs.h >>conftest.$ac_ext
30236 cat >>conftest.$ac_ext <<_ACEOF
30237 /* end confdefs.h. */
30238 $ac_includes_default
30239 #include <${SQLITE_DIR}/include/sqlite.h>
30240 _ACEOF
30241 rm -f conftest.$ac_objext
30242 if { (ac_try="$ac_compile"
30243 case "(($ac_try" in
30244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30245 *) ac_try_echo=$ac_try;;
30246 esac
30247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30248 (eval "$ac_compile") 2>conftest.er1
30249 ac_status=$?
30250 grep -v '^ *+' conftest.er1 >conftest.err
30251 rm -f conftest.er1
30252 cat conftest.err >&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); } && {
30255 test -z "$ac_c_werror_flag" ||
30256 test ! -s conftest.err
30257 } && test -s conftest.$ac_objext; then
30258 ac_header_compiler=yes
30259 else
30260 echo "$as_me: failed program was:" >&5
30261 sed 's/^/| /' conftest.$ac_ext >&5
30263 ac_header_compiler=no
30266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30268 echo "${ECHO_T}$ac_header_compiler" >&6; }
30270 # Is the header present?
30271 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
30272 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
30273 cat >conftest.$ac_ext <<_ACEOF
30274 /* confdefs.h. */
30275 _ACEOF
30276 cat confdefs.h >>conftest.$ac_ext
30277 cat >>conftest.$ac_ext <<_ACEOF
30278 /* end confdefs.h. */
30279 #include <${SQLITE_DIR}/include/sqlite.h>
30280 _ACEOF
30281 if { (ac_try="$ac_cpp conftest.$ac_ext"
30282 case "(($ac_try" in
30283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30284 *) ac_try_echo=$ac_try;;
30285 esac
30286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30288 ac_status=$?
30289 grep -v '^ *+' conftest.er1 >conftest.err
30290 rm -f conftest.er1
30291 cat conftest.err >&5
30292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); } >/dev/null && {
30294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30295 test ! -s conftest.err
30296 }; then
30297 ac_header_preproc=yes
30298 else
30299 echo "$as_me: failed program was:" >&5
30300 sed 's/^/| /' conftest.$ac_ext >&5
30302 ac_header_preproc=no
30305 rm -f conftest.err conftest.$ac_ext
30306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30307 echo "${ECHO_T}$ac_header_preproc" >&6; }
30309 # So? What about this header?
30310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30311 yes:no: )
30312 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
30313 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30314 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
30315 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
30316 ac_header_preproc=yes
30318 no:yes:* )
30319 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
30320 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
30321 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
30322 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
30323 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
30324 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
30325 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
30326 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
30327 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
30328 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
30329 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
30330 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
30331 ( cat <<\_ASBOX
30332 ## ------------------------------- ##
30333 ## Report this to www.asterisk.org ##
30334 ## ------------------------------- ##
30335 _ASBOX
30336 ) | sed "s/^/$as_me: WARNING: /" >&2
30338 esac
30339 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
30340 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
30341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30342 echo $ECHO_N "(cached) $ECHO_C" >&6
30343 else
30344 eval "$as_ac_Header=\$ac_header_preproc"
30346 ac_res=`eval echo '${'$as_ac_Header'}'`
30347 { echo "$as_me:$LINENO: result: $ac_res" >&5
30348 echo "${ECHO_T}$ac_res" >&6; }
30351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30352 SQLITE_HEADER_FOUND=1
30353 else
30354 SQLITE_HEADER_FOUND=0
30359 CPPFLAGS="${saved_cppflags}"
30360 else
30361 if test "xsqlite.h" != "x" ; then
30362 if test "${ac_cv_header_sqlite_h+set}" = set; then
30363 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
30364 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
30365 if test "${ac_cv_header_sqlite_h+set}" = set; then
30366 echo $ECHO_N "(cached) $ECHO_C" >&6
30368 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
30369 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
30370 else
30371 # Is the header compilable?
30372 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
30373 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
30374 cat >conftest.$ac_ext <<_ACEOF
30375 /* confdefs.h. */
30376 _ACEOF
30377 cat confdefs.h >>conftest.$ac_ext
30378 cat >>conftest.$ac_ext <<_ACEOF
30379 /* end confdefs.h. */
30380 $ac_includes_default
30381 #include <sqlite.h>
30382 _ACEOF
30383 rm -f conftest.$ac_objext
30384 if { (ac_try="$ac_compile"
30385 case "(($ac_try" in
30386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30387 *) ac_try_echo=$ac_try;;
30388 esac
30389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30390 (eval "$ac_compile") 2>conftest.er1
30391 ac_status=$?
30392 grep -v '^ *+' conftest.er1 >conftest.err
30393 rm -f conftest.er1
30394 cat conftest.err >&5
30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396 (exit $ac_status); } && {
30397 test -z "$ac_c_werror_flag" ||
30398 test ! -s conftest.err
30399 } && test -s conftest.$ac_objext; then
30400 ac_header_compiler=yes
30401 else
30402 echo "$as_me: failed program was:" >&5
30403 sed 's/^/| /' conftest.$ac_ext >&5
30405 ac_header_compiler=no
30408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30410 echo "${ECHO_T}$ac_header_compiler" >&6; }
30412 # Is the header present?
30413 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
30414 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
30415 cat >conftest.$ac_ext <<_ACEOF
30416 /* confdefs.h. */
30417 _ACEOF
30418 cat confdefs.h >>conftest.$ac_ext
30419 cat >>conftest.$ac_ext <<_ACEOF
30420 /* end confdefs.h. */
30421 #include <sqlite.h>
30422 _ACEOF
30423 if { (ac_try="$ac_cpp conftest.$ac_ext"
30424 case "(($ac_try" in
30425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30426 *) ac_try_echo=$ac_try;;
30427 esac
30428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30430 ac_status=$?
30431 grep -v '^ *+' conftest.er1 >conftest.err
30432 rm -f conftest.er1
30433 cat conftest.err >&5
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); } >/dev/null && {
30436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30437 test ! -s conftest.err
30438 }; then
30439 ac_header_preproc=yes
30440 else
30441 echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30444 ac_header_preproc=no
30447 rm -f conftest.err conftest.$ac_ext
30448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30449 echo "${ECHO_T}$ac_header_preproc" >&6; }
30451 # So? What about this header?
30452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30453 yes:no: )
30454 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
30455 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30456 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
30457 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
30458 ac_header_preproc=yes
30460 no:yes:* )
30461 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
30462 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
30463 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
30464 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
30465 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
30466 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
30467 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
30468 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
30469 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
30470 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
30471 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
30472 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
30473 ( cat <<\_ASBOX
30474 ## ------------------------------- ##
30475 ## Report this to www.asterisk.org ##
30476 ## ------------------------------- ##
30477 _ASBOX
30478 ) | sed "s/^/$as_me: WARNING: /" >&2
30480 esac
30481 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
30482 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
30483 if test "${ac_cv_header_sqlite_h+set}" = set; then
30484 echo $ECHO_N "(cached) $ECHO_C" >&6
30485 else
30486 ac_cv_header_sqlite_h=$ac_header_preproc
30488 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
30489 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
30492 if test $ac_cv_header_sqlite_h = yes; then
30493 SQLITE_HEADER_FOUND=1
30494 else
30495 SQLITE_HEADER_FOUND=0
30501 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
30502 if test -n "${SQLITE_MANDATORY}" ;
30503 then
30504 { echo "$as_me:$LINENO: ***" >&5
30505 echo "$as_me: ***" >&6;}
30506 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
30507 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
30508 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
30509 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
30510 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
30511 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
30512 exit 1
30514 SQLITE_LIB=""
30515 SQLITE_INCLUDE=""
30516 PBX_SQLITE=0
30517 else
30518 PBX_SQLITE=1
30520 cat >>confdefs.h <<_ACEOF
30521 #define HAVE_SQLITE 1
30522 _ACEOF
30525 elif test -n "${SQLITE_MANDATORY}";
30526 then
30527 { echo "$as_me:$LINENO: ***" >&5
30528 echo "$as_me: ***" >&6;}
30529 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
30530 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
30531 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30532 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30533 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
30534 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
30535 exit 1
30541 if test "${USE_OPENSSL}" != "no"; then
30542 pbxlibdir=""
30543 if test "x${OPENSSL_DIR}" != "x"; then
30544 if test -d ${OPENSSL_DIR}/lib; then
30545 pbxlibdir="-L${OPENSSL_DIR}/lib"
30546 else
30547 pbxlibdir="-L${OPENSSL_DIR}"
30550 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
30551 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
30552 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
30553 echo $ECHO_N "(cached) $ECHO_C" >&6
30554 else
30555 ac_check_lib_save_LIBS=$LIBS
30556 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
30557 cat >conftest.$ac_ext <<_ACEOF
30558 /* confdefs.h. */
30559 _ACEOF
30560 cat confdefs.h >>conftest.$ac_ext
30561 cat >>conftest.$ac_ext <<_ACEOF
30562 /* end confdefs.h. */
30564 /* Override any GCC internal prototype to avoid an error.
30565 Use char because int might match the return type of a GCC
30566 builtin and then its argument prototype would still apply. */
30567 #ifdef __cplusplus
30568 extern "C"
30569 #endif
30570 char ssl2_connect ();
30572 main ()
30574 return ssl2_connect ();
30576 return 0;
30578 _ACEOF
30579 rm -f conftest.$ac_objext conftest$ac_exeext
30580 if { (ac_try="$ac_link"
30581 case "(($ac_try" in
30582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30583 *) ac_try_echo=$ac_try;;
30584 esac
30585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30586 (eval "$ac_link") 2>conftest.er1
30587 ac_status=$?
30588 grep -v '^ *+' conftest.er1 >conftest.err
30589 rm -f conftest.er1
30590 cat conftest.err >&5
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); } && {
30593 test -z "$ac_c_werror_flag" ||
30594 test ! -s conftest.err
30595 } && test -s conftest$ac_exeext &&
30596 $as_test_x conftest$ac_exeext; then
30597 ac_cv_lib_ssl_ssl2_connect=yes
30598 else
30599 echo "$as_me: failed program was:" >&5
30600 sed 's/^/| /' conftest.$ac_ext >&5
30602 ac_cv_lib_ssl_ssl2_connect=no
30605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30606 conftest$ac_exeext conftest.$ac_ext
30607 LIBS=$ac_check_lib_save_LIBS
30609 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
30610 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
30611 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
30612 AST_OPENSSL_FOUND=yes
30613 else
30614 AST_OPENSSL_FOUND=no
30618 if test "${AST_OPENSSL_FOUND}" = "yes"; then
30619 OPENSSL_LIB="-lssl -lcrypto"
30620 OPENSSL_HEADER_FOUND="1"
30621 if test "x${OPENSSL_DIR}" != "x"; then
30622 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
30623 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
30624 saved_cppflags="${CPPFLAGS}"
30625 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
30626 if test "xopenssl/ssl.h" != "x" ; then
30627 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
30628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30629 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
30630 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
30631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30632 echo $ECHO_N "(cached) $ECHO_C" >&6
30634 ac_res=`eval echo '${'$as_ac_Header'}'`
30635 { echo "$as_me:$LINENO: result: $ac_res" >&5
30636 echo "${ECHO_T}$ac_res" >&6; }
30637 else
30638 # Is the header compilable?
30639 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
30640 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
30641 cat >conftest.$ac_ext <<_ACEOF
30642 /* confdefs.h. */
30643 _ACEOF
30644 cat confdefs.h >>conftest.$ac_ext
30645 cat >>conftest.$ac_ext <<_ACEOF
30646 /* end confdefs.h. */
30647 $ac_includes_default
30648 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
30649 _ACEOF
30650 rm -f conftest.$ac_objext
30651 if { (ac_try="$ac_compile"
30652 case "(($ac_try" in
30653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30654 *) ac_try_echo=$ac_try;;
30655 esac
30656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30657 (eval "$ac_compile") 2>conftest.er1
30658 ac_status=$?
30659 grep -v '^ *+' conftest.er1 >conftest.err
30660 rm -f conftest.er1
30661 cat conftest.err >&5
30662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663 (exit $ac_status); } && {
30664 test -z "$ac_c_werror_flag" ||
30665 test ! -s conftest.err
30666 } && test -s conftest.$ac_objext; then
30667 ac_header_compiler=yes
30668 else
30669 echo "$as_me: failed program was:" >&5
30670 sed 's/^/| /' conftest.$ac_ext >&5
30672 ac_header_compiler=no
30675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30677 echo "${ECHO_T}$ac_header_compiler" >&6; }
30679 # Is the header present?
30680 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
30681 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
30682 cat >conftest.$ac_ext <<_ACEOF
30683 /* confdefs.h. */
30684 _ACEOF
30685 cat confdefs.h >>conftest.$ac_ext
30686 cat >>conftest.$ac_ext <<_ACEOF
30687 /* end confdefs.h. */
30688 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
30689 _ACEOF
30690 if { (ac_try="$ac_cpp conftest.$ac_ext"
30691 case "(($ac_try" in
30692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30693 *) ac_try_echo=$ac_try;;
30694 esac
30695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30697 ac_status=$?
30698 grep -v '^ *+' conftest.er1 >conftest.err
30699 rm -f conftest.er1
30700 cat conftest.err >&5
30701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30702 (exit $ac_status); } >/dev/null && {
30703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30704 test ! -s conftest.err
30705 }; then
30706 ac_header_preproc=yes
30707 else
30708 echo "$as_me: failed program was:" >&5
30709 sed 's/^/| /' conftest.$ac_ext >&5
30711 ac_header_preproc=no
30714 rm -f conftest.err conftest.$ac_ext
30715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30716 echo "${ECHO_T}$ac_header_preproc" >&6; }
30718 # So? What about this header?
30719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30720 yes:no: )
30721 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30722 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30723 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
30724 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
30725 ac_header_preproc=yes
30727 no:yes:* )
30728 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
30729 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
30730 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
30731 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
30732 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
30733 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
30734 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
30735 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30736 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
30737 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
30738 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
30739 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
30740 ( cat <<\_ASBOX
30741 ## ------------------------------- ##
30742 ## Report this to www.asterisk.org ##
30743 ## ------------------------------- ##
30744 _ASBOX
30745 ) | sed "s/^/$as_me: WARNING: /" >&2
30747 esac
30748 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
30749 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
30750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30751 echo $ECHO_N "(cached) $ECHO_C" >&6
30752 else
30753 eval "$as_ac_Header=\$ac_header_preproc"
30755 ac_res=`eval echo '${'$as_ac_Header'}'`
30756 { echo "$as_me:$LINENO: result: $ac_res" >&5
30757 echo "${ECHO_T}$ac_res" >&6; }
30760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30761 OPENSSL_HEADER_FOUND=1
30762 else
30763 OPENSSL_HEADER_FOUND=0
30768 CPPFLAGS="${saved_cppflags}"
30769 else
30770 if test "xopenssl/ssl.h" != "x" ; then
30771 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30772 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
30773 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
30774 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30775 echo $ECHO_N "(cached) $ECHO_C" >&6
30777 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
30778 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
30779 else
30780 # Is the header compilable?
30781 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
30782 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
30783 cat >conftest.$ac_ext <<_ACEOF
30784 /* confdefs.h. */
30785 _ACEOF
30786 cat confdefs.h >>conftest.$ac_ext
30787 cat >>conftest.$ac_ext <<_ACEOF
30788 /* end confdefs.h. */
30789 $ac_includes_default
30790 #include <openssl/ssl.h>
30791 _ACEOF
30792 rm -f conftest.$ac_objext
30793 if { (ac_try="$ac_compile"
30794 case "(($ac_try" in
30795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30796 *) ac_try_echo=$ac_try;;
30797 esac
30798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30799 (eval "$ac_compile") 2>conftest.er1
30800 ac_status=$?
30801 grep -v '^ *+' conftest.er1 >conftest.err
30802 rm -f conftest.er1
30803 cat conftest.err >&5
30804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805 (exit $ac_status); } && {
30806 test -z "$ac_c_werror_flag" ||
30807 test ! -s conftest.err
30808 } && test -s conftest.$ac_objext; then
30809 ac_header_compiler=yes
30810 else
30811 echo "$as_me: failed program was:" >&5
30812 sed 's/^/| /' conftest.$ac_ext >&5
30814 ac_header_compiler=no
30817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30819 echo "${ECHO_T}$ac_header_compiler" >&6; }
30821 # Is the header present?
30822 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
30823 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
30824 cat >conftest.$ac_ext <<_ACEOF
30825 /* confdefs.h. */
30826 _ACEOF
30827 cat confdefs.h >>conftest.$ac_ext
30828 cat >>conftest.$ac_ext <<_ACEOF
30829 /* end confdefs.h. */
30830 #include <openssl/ssl.h>
30831 _ACEOF
30832 if { (ac_try="$ac_cpp conftest.$ac_ext"
30833 case "(($ac_try" in
30834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30835 *) ac_try_echo=$ac_try;;
30836 esac
30837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30839 ac_status=$?
30840 grep -v '^ *+' conftest.er1 >conftest.err
30841 rm -f conftest.er1
30842 cat conftest.err >&5
30843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); } >/dev/null && {
30845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30846 test ! -s conftest.err
30847 }; then
30848 ac_header_preproc=yes
30849 else
30850 echo "$as_me: failed program was:" >&5
30851 sed 's/^/| /' conftest.$ac_ext >&5
30853 ac_header_preproc=no
30856 rm -f conftest.err conftest.$ac_ext
30857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30858 echo "${ECHO_T}$ac_header_preproc" >&6; }
30860 # So? What about this header?
30861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30862 yes:no: )
30863 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30864 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30865 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
30866 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
30867 ac_header_preproc=yes
30869 no:yes:* )
30870 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
30871 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
30872 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
30873 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
30874 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
30875 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
30876 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
30877 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30878 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
30879 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
30880 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
30881 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
30882 ( cat <<\_ASBOX
30883 ## ------------------------------- ##
30884 ## Report this to www.asterisk.org ##
30885 ## ------------------------------- ##
30886 _ASBOX
30887 ) | sed "s/^/$as_me: WARNING: /" >&2
30889 esac
30890 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
30891 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
30892 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30893 echo $ECHO_N "(cached) $ECHO_C" >&6
30894 else
30895 ac_cv_header_openssl_ssl_h=$ac_header_preproc
30897 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
30898 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
30901 if test $ac_cv_header_openssl_ssl_h = yes; then
30902 OPENSSL_HEADER_FOUND=1
30903 else
30904 OPENSSL_HEADER_FOUND=0
30910 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
30911 if test -n "${OPENSSL_MANDATORY}" ;
30912 then
30913 { echo "$as_me:$LINENO: ***" >&5
30914 echo "$as_me: ***" >&6;}
30915 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
30916 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
30917 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
30918 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
30919 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
30920 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
30921 exit 1
30923 OPENSSL_LIB=""
30924 OPENSSL_INCLUDE=""
30925 PBX_OPENSSL=0
30926 else
30927 PBX_OPENSSL=1
30929 cat >>confdefs.h <<_ACEOF
30930 #define HAVE_OPENSSL 1
30931 _ACEOF
30934 elif test -n "${OPENSSL_MANDATORY}";
30935 then
30936 { echo "$as_me:$LINENO: ***" >&5
30937 echo "$as_me: ***" >&6;}
30938 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
30939 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
30940 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30941 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30942 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
30943 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
30944 exit 1
30948 if test "$PBX_OPENSSL" = "1";
30949 then
30951 if test "${USE_OSPTK}" != "no"; then
30952 pbxlibdir=""
30953 if test "x${OSPTK_DIR}" != "x"; then
30954 if test -d ${OSPTK_DIR}/lib; then
30955 pbxlibdir="-L${OSPTK_DIR}/lib"
30956 else
30957 pbxlibdir="-L${OSPTK_DIR}"
30960 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
30961 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
30962 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
30963 echo $ECHO_N "(cached) $ECHO_C" >&6
30964 else
30965 ac_check_lib_save_LIBS=$LIBS
30966 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
30967 cat >conftest.$ac_ext <<_ACEOF
30968 /* confdefs.h. */
30969 _ACEOF
30970 cat confdefs.h >>conftest.$ac_ext
30971 cat >>conftest.$ac_ext <<_ACEOF
30972 /* end confdefs.h. */
30974 /* Override any GCC internal prototype to avoid an error.
30975 Use char because int might match the return type of a GCC
30976 builtin and then its argument prototype would still apply. */
30977 #ifdef __cplusplus
30978 extern "C"
30979 #endif
30980 char OSPPCryptoDecrypt ();
30982 main ()
30984 return OSPPCryptoDecrypt ();
30986 return 0;
30988 _ACEOF
30989 rm -f conftest.$ac_objext conftest$ac_exeext
30990 if { (ac_try="$ac_link"
30991 case "(($ac_try" in
30992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30993 *) ac_try_echo=$ac_try;;
30994 esac
30995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30996 (eval "$ac_link") 2>conftest.er1
30997 ac_status=$?
30998 grep -v '^ *+' conftest.er1 >conftest.err
30999 rm -f conftest.er1
31000 cat conftest.err >&5
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); } && {
31003 test -z "$ac_c_werror_flag" ||
31004 test ! -s conftest.err
31005 } && test -s conftest$ac_exeext &&
31006 $as_test_x conftest$ac_exeext; then
31007 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
31008 else
31009 echo "$as_me: failed program was:" >&5
31010 sed 's/^/| /' conftest.$ac_ext >&5
31012 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
31015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31016 conftest$ac_exeext conftest.$ac_ext
31017 LIBS=$ac_check_lib_save_LIBS
31019 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
31020 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
31021 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
31022 AST_OSPTK_FOUND=yes
31023 else
31024 AST_OSPTK_FOUND=no
31028 if test "${AST_OSPTK_FOUND}" = "yes"; then
31029 OSPTK_LIB="-losptk -lcrypto -lssl"
31030 OSPTK_HEADER_FOUND="1"
31031 if test "x${OSPTK_DIR}" != "x"; then
31032 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
31033 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
31034 saved_cppflags="${CPPFLAGS}"
31035 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
31036 if test "xosp/osp.h" != "x" ; then
31037 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
31038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31039 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
31040 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
31041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31042 echo $ECHO_N "(cached) $ECHO_C" >&6
31044 ac_res=`eval echo '${'$as_ac_Header'}'`
31045 { echo "$as_me:$LINENO: result: $ac_res" >&5
31046 echo "${ECHO_T}$ac_res" >&6; }
31047 else
31048 # Is the header compilable?
31049 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
31050 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
31051 cat >conftest.$ac_ext <<_ACEOF
31052 /* confdefs.h. */
31053 _ACEOF
31054 cat confdefs.h >>conftest.$ac_ext
31055 cat >>conftest.$ac_ext <<_ACEOF
31056 /* end confdefs.h. */
31057 $ac_includes_default
31058 #include <${OSPTK_DIR}/include/osp/osp.h>
31059 _ACEOF
31060 rm -f conftest.$ac_objext
31061 if { (ac_try="$ac_compile"
31062 case "(($ac_try" in
31063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31064 *) ac_try_echo=$ac_try;;
31065 esac
31066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31067 (eval "$ac_compile") 2>conftest.er1
31068 ac_status=$?
31069 grep -v '^ *+' conftest.er1 >conftest.err
31070 rm -f conftest.er1
31071 cat conftest.err >&5
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); } && {
31074 test -z "$ac_c_werror_flag" ||
31075 test ! -s conftest.err
31076 } && test -s conftest.$ac_objext; then
31077 ac_header_compiler=yes
31078 else
31079 echo "$as_me: failed program was:" >&5
31080 sed 's/^/| /' conftest.$ac_ext >&5
31082 ac_header_compiler=no
31085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31087 echo "${ECHO_T}$ac_header_compiler" >&6; }
31089 # Is the header present?
31090 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
31091 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
31092 cat >conftest.$ac_ext <<_ACEOF
31093 /* confdefs.h. */
31094 _ACEOF
31095 cat confdefs.h >>conftest.$ac_ext
31096 cat >>conftest.$ac_ext <<_ACEOF
31097 /* end confdefs.h. */
31098 #include <${OSPTK_DIR}/include/osp/osp.h>
31099 _ACEOF
31100 if { (ac_try="$ac_cpp conftest.$ac_ext"
31101 case "(($ac_try" in
31102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31103 *) ac_try_echo=$ac_try;;
31104 esac
31105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31107 ac_status=$?
31108 grep -v '^ *+' conftest.er1 >conftest.err
31109 rm -f conftest.er1
31110 cat conftest.err >&5
31111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); } >/dev/null && {
31113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31114 test ! -s conftest.err
31115 }; then
31116 ac_header_preproc=yes
31117 else
31118 echo "$as_me: failed program was:" >&5
31119 sed 's/^/| /' conftest.$ac_ext >&5
31121 ac_header_preproc=no
31124 rm -f conftest.err conftest.$ac_ext
31125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31126 echo "${ECHO_T}$ac_header_preproc" >&6; }
31128 # So? What about this header?
31129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31130 yes:no: )
31131 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
31132 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31133 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
31134 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
31135 ac_header_preproc=yes
31137 no:yes:* )
31138 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
31139 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
31140 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
31141 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
31142 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
31143 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
31144 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
31145 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
31146 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
31147 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
31148 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
31149 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
31150 ( cat <<\_ASBOX
31151 ## ------------------------------- ##
31152 ## Report this to www.asterisk.org ##
31153 ## ------------------------------- ##
31154 _ASBOX
31155 ) | sed "s/^/$as_me: WARNING: /" >&2
31157 esac
31158 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
31159 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
31160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31161 echo $ECHO_N "(cached) $ECHO_C" >&6
31162 else
31163 eval "$as_ac_Header=\$ac_header_preproc"
31165 ac_res=`eval echo '${'$as_ac_Header'}'`
31166 { echo "$as_me:$LINENO: result: $ac_res" >&5
31167 echo "${ECHO_T}$ac_res" >&6; }
31170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31171 OSPTK_HEADER_FOUND=1
31172 else
31173 OSPTK_HEADER_FOUND=0
31178 CPPFLAGS="${saved_cppflags}"
31179 else
31180 if test "xosp/osp.h" != "x" ; then
31181 if test "${ac_cv_header_osp_osp_h+set}" = set; then
31182 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
31183 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
31184 if test "${ac_cv_header_osp_osp_h+set}" = set; then
31185 echo $ECHO_N "(cached) $ECHO_C" >&6
31187 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
31188 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
31189 else
31190 # Is the header compilable?
31191 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
31192 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
31193 cat >conftest.$ac_ext <<_ACEOF
31194 /* confdefs.h. */
31195 _ACEOF
31196 cat confdefs.h >>conftest.$ac_ext
31197 cat >>conftest.$ac_ext <<_ACEOF
31198 /* end confdefs.h. */
31199 $ac_includes_default
31200 #include <osp/osp.h>
31201 _ACEOF
31202 rm -f conftest.$ac_objext
31203 if { (ac_try="$ac_compile"
31204 case "(($ac_try" in
31205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31206 *) ac_try_echo=$ac_try;;
31207 esac
31208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31209 (eval "$ac_compile") 2>conftest.er1
31210 ac_status=$?
31211 grep -v '^ *+' conftest.er1 >conftest.err
31212 rm -f conftest.er1
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_objext; then
31219 ac_header_compiler=yes
31220 else
31221 echo "$as_me: failed program was:" >&5
31222 sed 's/^/| /' conftest.$ac_ext >&5
31224 ac_header_compiler=no
31227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31229 echo "${ECHO_T}$ac_header_compiler" >&6; }
31231 # Is the header present?
31232 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
31233 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
31234 cat >conftest.$ac_ext <<_ACEOF
31235 /* confdefs.h. */
31236 _ACEOF
31237 cat confdefs.h >>conftest.$ac_ext
31238 cat >>conftest.$ac_ext <<_ACEOF
31239 /* end confdefs.h. */
31240 #include <osp/osp.h>
31241 _ACEOF
31242 if { (ac_try="$ac_cpp conftest.$ac_ext"
31243 case "(($ac_try" in
31244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31245 *) ac_try_echo=$ac_try;;
31246 esac
31247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31249 ac_status=$?
31250 grep -v '^ *+' conftest.er1 >conftest.err
31251 rm -f conftest.er1
31252 cat conftest.err >&5
31253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254 (exit $ac_status); } >/dev/null && {
31255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31256 test ! -s conftest.err
31257 }; then
31258 ac_header_preproc=yes
31259 else
31260 echo "$as_me: failed program was:" >&5
31261 sed 's/^/| /' conftest.$ac_ext >&5
31263 ac_header_preproc=no
31266 rm -f conftest.err conftest.$ac_ext
31267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31268 echo "${ECHO_T}$ac_header_preproc" >&6; }
31270 # So? What about this header?
31271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31272 yes:no: )
31273 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
31274 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31275 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
31276 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
31277 ac_header_preproc=yes
31279 no:yes:* )
31280 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
31281 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
31282 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
31283 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
31284 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
31285 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
31286 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
31287 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
31288 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
31289 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
31290 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
31291 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
31292 ( cat <<\_ASBOX
31293 ## ------------------------------- ##
31294 ## Report this to www.asterisk.org ##
31295 ## ------------------------------- ##
31296 _ASBOX
31297 ) | sed "s/^/$as_me: WARNING: /" >&2
31299 esac
31300 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
31301 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
31302 if test "${ac_cv_header_osp_osp_h+set}" = set; then
31303 echo $ECHO_N "(cached) $ECHO_C" >&6
31304 else
31305 ac_cv_header_osp_osp_h=$ac_header_preproc
31307 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
31308 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
31311 if test $ac_cv_header_osp_osp_h = yes; then
31312 OSPTK_HEADER_FOUND=1
31313 else
31314 OSPTK_HEADER_FOUND=0
31320 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
31321 if test -n "${OSPTK_MANDATORY}" ;
31322 then
31323 { echo "$as_me:$LINENO: ***" >&5
31324 echo "$as_me: ***" >&6;}
31325 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
31326 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
31327 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
31328 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
31329 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
31330 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
31331 exit 1
31333 OSPTK_LIB=""
31334 OSPTK_INCLUDE=""
31335 PBX_OSPTK=0
31336 else
31337 PBX_OSPTK=1
31339 cat >>confdefs.h <<_ACEOF
31340 #define HAVE_OSPTK 1
31341 _ACEOF
31344 elif test -n "${OSPTK_MANDATORY}";
31345 then
31346 { echo "$as_me:$LINENO: ***" >&5
31347 echo "$as_me: ***" >&6;}
31348 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
31349 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
31350 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31351 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31352 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
31353 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
31354 exit 1
31361 if test "${USE_FREETDS}" != "no"; then
31362 pbxlibdir=""
31363 if test "x${FREETDS_DIR}" != "x"; then
31364 if test -d ${FREETDS_DIR}/lib; then
31365 pbxlibdir="-L${FREETDS_DIR}/lib"
31366 else
31367 pbxlibdir="-L${FREETDS_DIR}"
31370 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
31371 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
31372 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
31373 echo $ECHO_N "(cached) $ECHO_C" >&6
31374 else
31375 ac_check_lib_save_LIBS=$LIBS
31376 LIBS="-ltds ${pbxlibdir} $LIBS"
31377 cat >conftest.$ac_ext <<_ACEOF
31378 /* confdefs.h. */
31379 _ACEOF
31380 cat confdefs.h >>conftest.$ac_ext
31381 cat >>conftest.$ac_ext <<_ACEOF
31382 /* end confdefs.h. */
31384 /* Override any GCC internal prototype to avoid an error.
31385 Use char because int might match the return type of a GCC
31386 builtin and then its argument prototype would still apply. */
31387 #ifdef __cplusplus
31388 extern "C"
31389 #endif
31390 char tds_version ();
31392 main ()
31394 return tds_version ();
31396 return 0;
31398 _ACEOF
31399 rm -f conftest.$ac_objext conftest$ac_exeext
31400 if { (ac_try="$ac_link"
31401 case "(($ac_try" in
31402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31403 *) ac_try_echo=$ac_try;;
31404 esac
31405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31406 (eval "$ac_link") 2>conftest.er1
31407 ac_status=$?
31408 grep -v '^ *+' conftest.er1 >conftest.err
31409 rm -f conftest.er1
31410 cat conftest.err >&5
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); } && {
31413 test -z "$ac_c_werror_flag" ||
31414 test ! -s conftest.err
31415 } && test -s conftest$ac_exeext &&
31416 $as_test_x conftest$ac_exeext; then
31417 ac_cv_lib_tds_tds_version=yes
31418 else
31419 echo "$as_me: failed program was:" >&5
31420 sed 's/^/| /' conftest.$ac_ext >&5
31422 ac_cv_lib_tds_tds_version=no
31425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31426 conftest$ac_exeext conftest.$ac_ext
31427 LIBS=$ac_check_lib_save_LIBS
31429 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
31430 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
31431 if test $ac_cv_lib_tds_tds_version = yes; then
31432 AST_FREETDS_FOUND=yes
31433 else
31434 AST_FREETDS_FOUND=no
31438 if test "${AST_FREETDS_FOUND}" = "yes"; then
31439 FREETDS_LIB="-ltds "
31440 FREETDS_HEADER_FOUND="1"
31441 if test "x${FREETDS_DIR}" != "x"; then
31442 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
31443 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
31444 saved_cppflags="${CPPFLAGS}"
31445 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
31446 if test "xtds.h" != "x" ; then
31447 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
31448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31449 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
31450 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
31451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31452 echo $ECHO_N "(cached) $ECHO_C" >&6
31454 ac_res=`eval echo '${'$as_ac_Header'}'`
31455 { echo "$as_me:$LINENO: result: $ac_res" >&5
31456 echo "${ECHO_T}$ac_res" >&6; }
31457 else
31458 # Is the header compilable?
31459 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
31460 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
31461 cat >conftest.$ac_ext <<_ACEOF
31462 /* confdefs.h. */
31463 _ACEOF
31464 cat confdefs.h >>conftest.$ac_ext
31465 cat >>conftest.$ac_ext <<_ACEOF
31466 /* end confdefs.h. */
31467 $ac_includes_default
31468 #include <${FREETDS_DIR}/include/tds.h>
31469 _ACEOF
31470 rm -f conftest.$ac_objext
31471 if { (ac_try="$ac_compile"
31472 case "(($ac_try" in
31473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31474 *) ac_try_echo=$ac_try;;
31475 esac
31476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31477 (eval "$ac_compile") 2>conftest.er1
31478 ac_status=$?
31479 grep -v '^ *+' conftest.er1 >conftest.err
31480 rm -f conftest.er1
31481 cat conftest.err >&5
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483 (exit $ac_status); } && {
31484 test -z "$ac_c_werror_flag" ||
31485 test ! -s conftest.err
31486 } && test -s conftest.$ac_objext; then
31487 ac_header_compiler=yes
31488 else
31489 echo "$as_me: failed program was:" >&5
31490 sed 's/^/| /' conftest.$ac_ext >&5
31492 ac_header_compiler=no
31495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31497 echo "${ECHO_T}$ac_header_compiler" >&6; }
31499 # Is the header present?
31500 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
31501 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
31502 cat >conftest.$ac_ext <<_ACEOF
31503 /* confdefs.h. */
31504 _ACEOF
31505 cat confdefs.h >>conftest.$ac_ext
31506 cat >>conftest.$ac_ext <<_ACEOF
31507 /* end confdefs.h. */
31508 #include <${FREETDS_DIR}/include/tds.h>
31509 _ACEOF
31510 if { (ac_try="$ac_cpp conftest.$ac_ext"
31511 case "(($ac_try" in
31512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31513 *) ac_try_echo=$ac_try;;
31514 esac
31515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31517 ac_status=$?
31518 grep -v '^ *+' conftest.er1 >conftest.err
31519 rm -f conftest.er1
31520 cat conftest.err >&5
31521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31522 (exit $ac_status); } >/dev/null && {
31523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31524 test ! -s conftest.err
31525 }; then
31526 ac_header_preproc=yes
31527 else
31528 echo "$as_me: failed program was:" >&5
31529 sed 's/^/| /' conftest.$ac_ext >&5
31531 ac_header_preproc=no
31534 rm -f conftest.err conftest.$ac_ext
31535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31536 echo "${ECHO_T}$ac_header_preproc" >&6; }
31538 # So? What about this header?
31539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31540 yes:no: )
31541 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
31542 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31543 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
31544 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
31545 ac_header_preproc=yes
31547 no:yes:* )
31548 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
31549 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
31550 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
31551 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
31552 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
31553 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
31554 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
31555 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
31556 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
31557 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
31558 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
31559 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
31560 ( cat <<\_ASBOX
31561 ## ------------------------------- ##
31562 ## Report this to www.asterisk.org ##
31563 ## ------------------------------- ##
31564 _ASBOX
31565 ) | sed "s/^/$as_me: WARNING: /" >&2
31567 esac
31568 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
31569 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
31570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31571 echo $ECHO_N "(cached) $ECHO_C" >&6
31572 else
31573 eval "$as_ac_Header=\$ac_header_preproc"
31575 ac_res=`eval echo '${'$as_ac_Header'}'`
31576 { echo "$as_me:$LINENO: result: $ac_res" >&5
31577 echo "${ECHO_T}$ac_res" >&6; }
31580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31581 FREETDS_HEADER_FOUND=1
31582 else
31583 FREETDS_HEADER_FOUND=0
31588 CPPFLAGS="${saved_cppflags}"
31589 else
31590 if test "xtds.h" != "x" ; then
31591 if test "${ac_cv_header_tds_h+set}" = set; then
31592 { echo "$as_me:$LINENO: checking for tds.h" >&5
31593 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
31594 if test "${ac_cv_header_tds_h+set}" = set; then
31595 echo $ECHO_N "(cached) $ECHO_C" >&6
31597 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
31598 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
31599 else
31600 # Is the header compilable?
31601 { echo "$as_me:$LINENO: checking tds.h usability" >&5
31602 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
31603 cat >conftest.$ac_ext <<_ACEOF
31604 /* confdefs.h. */
31605 _ACEOF
31606 cat confdefs.h >>conftest.$ac_ext
31607 cat >>conftest.$ac_ext <<_ACEOF
31608 /* end confdefs.h. */
31609 $ac_includes_default
31610 #include <tds.h>
31611 _ACEOF
31612 rm -f conftest.$ac_objext
31613 if { (ac_try="$ac_compile"
31614 case "(($ac_try" in
31615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31616 *) ac_try_echo=$ac_try;;
31617 esac
31618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31619 (eval "$ac_compile") 2>conftest.er1
31620 ac_status=$?
31621 grep -v '^ *+' conftest.er1 >conftest.err
31622 rm -f conftest.er1
31623 cat conftest.err >&5
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); } && {
31626 test -z "$ac_c_werror_flag" ||
31627 test ! -s conftest.err
31628 } && test -s conftest.$ac_objext; then
31629 ac_header_compiler=yes
31630 else
31631 echo "$as_me: failed program was:" >&5
31632 sed 's/^/| /' conftest.$ac_ext >&5
31634 ac_header_compiler=no
31637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31639 echo "${ECHO_T}$ac_header_compiler" >&6; }
31641 # Is the header present?
31642 { echo "$as_me:$LINENO: checking tds.h presence" >&5
31643 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
31644 cat >conftest.$ac_ext <<_ACEOF
31645 /* confdefs.h. */
31646 _ACEOF
31647 cat confdefs.h >>conftest.$ac_ext
31648 cat >>conftest.$ac_ext <<_ACEOF
31649 /* end confdefs.h. */
31650 #include <tds.h>
31651 _ACEOF
31652 if { (ac_try="$ac_cpp conftest.$ac_ext"
31653 case "(($ac_try" in
31654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31655 *) ac_try_echo=$ac_try;;
31656 esac
31657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31659 ac_status=$?
31660 grep -v '^ *+' conftest.er1 >conftest.err
31661 rm -f conftest.er1
31662 cat conftest.err >&5
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); } >/dev/null && {
31665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31666 test ! -s conftest.err
31667 }; then
31668 ac_header_preproc=yes
31669 else
31670 echo "$as_me: failed program was:" >&5
31671 sed 's/^/| /' conftest.$ac_ext >&5
31673 ac_header_preproc=no
31676 rm -f conftest.err conftest.$ac_ext
31677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31678 echo "${ECHO_T}$ac_header_preproc" >&6; }
31680 # So? What about this header?
31681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31682 yes:no: )
31683 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
31684 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31685 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
31686 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
31687 ac_header_preproc=yes
31689 no:yes:* )
31690 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
31691 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
31692 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
31693 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
31694 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
31695 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
31696 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
31697 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
31698 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
31699 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
31700 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
31701 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
31702 ( cat <<\_ASBOX
31703 ## ------------------------------- ##
31704 ## Report this to www.asterisk.org ##
31705 ## ------------------------------- ##
31706 _ASBOX
31707 ) | sed "s/^/$as_me: WARNING: /" >&2
31709 esac
31710 { echo "$as_me:$LINENO: checking for tds.h" >&5
31711 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
31712 if test "${ac_cv_header_tds_h+set}" = set; then
31713 echo $ECHO_N "(cached) $ECHO_C" >&6
31714 else
31715 ac_cv_header_tds_h=$ac_header_preproc
31717 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
31718 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
31721 if test $ac_cv_header_tds_h = yes; then
31722 FREETDS_HEADER_FOUND=1
31723 else
31724 FREETDS_HEADER_FOUND=0
31730 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
31731 if test -n "${FREETDS_MANDATORY}" ;
31732 then
31733 { echo "$as_me:$LINENO: ***" >&5
31734 echo "$as_me: ***" >&6;}
31735 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
31736 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
31737 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
31738 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
31739 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
31740 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
31741 exit 1
31743 FREETDS_LIB=""
31744 FREETDS_INCLUDE=""
31745 PBX_FREETDS=0
31746 else
31747 PBX_FREETDS=1
31749 cat >>confdefs.h <<_ACEOF
31750 #define HAVE_FREETDS 1
31751 _ACEOF
31754 elif test -n "${FREETDS_MANDATORY}";
31755 then
31756 { echo "$as_me:$LINENO: ***" >&5
31757 echo "$as_me: ***" >&6;}
31758 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
31759 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
31760 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31761 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31762 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
31763 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
31764 exit 1
31768 if test "${PBX_FREETDS}" != "0";
31769 then
31770 if test "${FREETDS_DIR}x" = "x";
31771 then
31772 for tds_dir in /usr /usr/local;
31774 if test -f "${tds_dir}/include/tdsver.h";
31775 then
31776 FREETDS_DIR="${tds_dir}"
31778 done
31780 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
31781 *0.64*)
31782 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
31784 *0.63*)
31785 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
31787 *0.62*)
31788 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
31791 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
31793 esac
31797 if test "${USE_TERMCAP}" != "no"; then
31798 pbxlibdir=""
31799 if test "x${TERMCAP_DIR}" != "x"; then
31800 if test -d ${TERMCAP_DIR}/lib; then
31801 pbxlibdir="-L${TERMCAP_DIR}/lib"
31802 else
31803 pbxlibdir="-L${TERMCAP_DIR}"
31806 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
31807 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
31808 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
31809 echo $ECHO_N "(cached) $ECHO_C" >&6
31810 else
31811 ac_check_lib_save_LIBS=$LIBS
31812 LIBS="-ltermcap ${pbxlibdir} $LIBS"
31813 cat >conftest.$ac_ext <<_ACEOF
31814 /* confdefs.h. */
31815 _ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h. */
31820 /* Override any GCC internal prototype to avoid an error.
31821 Use char because int might match the return type of a GCC
31822 builtin and then its argument prototype would still apply. */
31823 #ifdef __cplusplus
31824 extern "C"
31825 #endif
31826 char tgetent ();
31828 main ()
31830 return tgetent ();
31832 return 0;
31834 _ACEOF
31835 rm -f conftest.$ac_objext conftest$ac_exeext
31836 if { (ac_try="$ac_link"
31837 case "(($ac_try" in
31838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31839 *) ac_try_echo=$ac_try;;
31840 esac
31841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31842 (eval "$ac_link") 2>conftest.er1
31843 ac_status=$?
31844 grep -v '^ *+' conftest.er1 >conftest.err
31845 rm -f conftest.er1
31846 cat conftest.err >&5
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); } && {
31849 test -z "$ac_c_werror_flag" ||
31850 test ! -s conftest.err
31851 } && test -s conftest$ac_exeext &&
31852 $as_test_x conftest$ac_exeext; then
31853 ac_cv_lib_termcap_tgetent=yes
31854 else
31855 echo "$as_me: failed program was:" >&5
31856 sed 's/^/| /' conftest.$ac_ext >&5
31858 ac_cv_lib_termcap_tgetent=no
31861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31862 conftest$ac_exeext conftest.$ac_ext
31863 LIBS=$ac_check_lib_save_LIBS
31865 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
31866 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
31867 if test $ac_cv_lib_termcap_tgetent = yes; then
31868 AST_TERMCAP_FOUND=yes
31869 else
31870 AST_TERMCAP_FOUND=no
31874 if test "${AST_TERMCAP_FOUND}" = "yes"; then
31875 TERMCAP_LIB="-ltermcap "
31876 TERMCAP_HEADER_FOUND="1"
31877 if test "x${TERMCAP_DIR}" != "x"; then
31878 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
31879 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
31880 saved_cppflags="${CPPFLAGS}"
31881 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
31882 if test "x" != "x" ; then
31883 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
31884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31885 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
31886 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
31887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31888 echo $ECHO_N "(cached) $ECHO_C" >&6
31890 ac_res=`eval echo '${'$as_ac_Header'}'`
31891 { echo "$as_me:$LINENO: result: $ac_res" >&5
31892 echo "${ECHO_T}$ac_res" >&6; }
31893 else
31894 # Is the header compilable?
31895 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
31896 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
31897 cat >conftest.$ac_ext <<_ACEOF
31898 /* confdefs.h. */
31899 _ACEOF
31900 cat confdefs.h >>conftest.$ac_ext
31901 cat >>conftest.$ac_ext <<_ACEOF
31902 /* end confdefs.h. */
31903 $ac_includes_default
31904 #include <${TERMCAP_DIR}/include/>
31905 _ACEOF
31906 rm -f conftest.$ac_objext
31907 if { (ac_try="$ac_compile"
31908 case "(($ac_try" in
31909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31910 *) ac_try_echo=$ac_try;;
31911 esac
31912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31913 (eval "$ac_compile") 2>conftest.er1
31914 ac_status=$?
31915 grep -v '^ *+' conftest.er1 >conftest.err
31916 rm -f conftest.er1
31917 cat conftest.err >&5
31918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); } && {
31920 test -z "$ac_c_werror_flag" ||
31921 test ! -s conftest.err
31922 } && test -s conftest.$ac_objext; then
31923 ac_header_compiler=yes
31924 else
31925 echo "$as_me: failed program was:" >&5
31926 sed 's/^/| /' conftest.$ac_ext >&5
31928 ac_header_compiler=no
31931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31933 echo "${ECHO_T}$ac_header_compiler" >&6; }
31935 # Is the header present?
31936 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
31937 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
31938 cat >conftest.$ac_ext <<_ACEOF
31939 /* confdefs.h. */
31940 _ACEOF
31941 cat confdefs.h >>conftest.$ac_ext
31942 cat >>conftest.$ac_ext <<_ACEOF
31943 /* end confdefs.h. */
31944 #include <${TERMCAP_DIR}/include/>
31945 _ACEOF
31946 if { (ac_try="$ac_cpp conftest.$ac_ext"
31947 case "(($ac_try" in
31948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31949 *) ac_try_echo=$ac_try;;
31950 esac
31951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31953 ac_status=$?
31954 grep -v '^ *+' conftest.er1 >conftest.err
31955 rm -f conftest.er1
31956 cat conftest.err >&5
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); } >/dev/null && {
31959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31960 test ! -s conftest.err
31961 }; then
31962 ac_header_preproc=yes
31963 else
31964 echo "$as_me: failed program was:" >&5
31965 sed 's/^/| /' conftest.$ac_ext >&5
31967 ac_header_preproc=no
31970 rm -f conftest.err conftest.$ac_ext
31971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31972 echo "${ECHO_T}$ac_header_preproc" >&6; }
31974 # So? What about this header?
31975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31976 yes:no: )
31977 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
31978 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
31979 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
31980 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
31981 ac_header_preproc=yes
31983 no:yes:* )
31984 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
31985 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
31986 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
31987 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
31988 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
31989 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
31990 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
31991 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
31992 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
31993 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
31994 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
31995 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
31996 ( cat <<\_ASBOX
31997 ## ------------------------------- ##
31998 ## Report this to www.asterisk.org ##
31999 ## ------------------------------- ##
32000 _ASBOX
32001 ) | sed "s/^/$as_me: WARNING: /" >&2
32003 esac
32004 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
32005 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
32006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32007 echo $ECHO_N "(cached) $ECHO_C" >&6
32008 else
32009 eval "$as_ac_Header=\$ac_header_preproc"
32011 ac_res=`eval echo '${'$as_ac_Header'}'`
32012 { echo "$as_me:$LINENO: result: $ac_res" >&5
32013 echo "${ECHO_T}$ac_res" >&6; }
32016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32017 TERMCAP_HEADER_FOUND=1
32018 else
32019 TERMCAP_HEADER_FOUND=0
32024 CPPFLAGS="${saved_cppflags}"
32025 else
32026 if test "x" != "x" ; then
32027 if test "${ac_cv_header_+set}" = set; then
32028 { echo "$as_me:$LINENO: checking for " >&5
32029 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32030 if test "${ac_cv_header_+set}" = set; then
32031 echo $ECHO_N "(cached) $ECHO_C" >&6
32033 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32034 echo "${ECHO_T}$ac_cv_header_" >&6; }
32035 else
32036 # Is the header compilable?
32037 { echo "$as_me:$LINENO: checking usability" >&5
32038 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
32039 cat >conftest.$ac_ext <<_ACEOF
32040 /* confdefs.h. */
32041 _ACEOF
32042 cat confdefs.h >>conftest.$ac_ext
32043 cat >>conftest.$ac_ext <<_ACEOF
32044 /* end confdefs.h. */
32045 $ac_includes_default
32046 #include <>
32047 _ACEOF
32048 rm -f conftest.$ac_objext
32049 if { (ac_try="$ac_compile"
32050 case "(($ac_try" in
32051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32052 *) ac_try_echo=$ac_try;;
32053 esac
32054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32055 (eval "$ac_compile") 2>conftest.er1
32056 ac_status=$?
32057 grep -v '^ *+' conftest.er1 >conftest.err
32058 rm -f conftest.er1
32059 cat conftest.err >&5
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); } && {
32062 test -z "$ac_c_werror_flag" ||
32063 test ! -s conftest.err
32064 } && test -s conftest.$ac_objext; then
32065 ac_header_compiler=yes
32066 else
32067 echo "$as_me: failed program was:" >&5
32068 sed 's/^/| /' conftest.$ac_ext >&5
32070 ac_header_compiler=no
32073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32075 echo "${ECHO_T}$ac_header_compiler" >&6; }
32077 # Is the header present?
32078 { echo "$as_me:$LINENO: checking presence" >&5
32079 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
32080 cat >conftest.$ac_ext <<_ACEOF
32081 /* confdefs.h. */
32082 _ACEOF
32083 cat confdefs.h >>conftest.$ac_ext
32084 cat >>conftest.$ac_ext <<_ACEOF
32085 /* end confdefs.h. */
32086 #include <>
32087 _ACEOF
32088 if { (ac_try="$ac_cpp conftest.$ac_ext"
32089 case "(($ac_try" in
32090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091 *) ac_try_echo=$ac_try;;
32092 esac
32093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32095 ac_status=$?
32096 grep -v '^ *+' conftest.er1 >conftest.err
32097 rm -f conftest.er1
32098 cat conftest.err >&5
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); } >/dev/null && {
32101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32102 test ! -s conftest.err
32103 }; then
32104 ac_header_preproc=yes
32105 else
32106 echo "$as_me: failed program was:" >&5
32107 sed 's/^/| /' conftest.$ac_ext >&5
32109 ac_header_preproc=no
32112 rm -f conftest.err conftest.$ac_ext
32113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32114 echo "${ECHO_T}$ac_header_preproc" >&6; }
32116 # So? What about this header?
32117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32118 yes:no: )
32119 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
32120 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
32121 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
32122 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
32123 ac_header_preproc=yes
32125 no:yes:* )
32126 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
32127 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
32128 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
32129 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
32130 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
32131 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
32132 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
32133 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
32134 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
32135 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
32136 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
32137 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
32138 ( cat <<\_ASBOX
32139 ## ------------------------------- ##
32140 ## Report this to www.asterisk.org ##
32141 ## ------------------------------- ##
32142 _ASBOX
32143 ) | sed "s/^/$as_me: WARNING: /" >&2
32145 esac
32146 { echo "$as_me:$LINENO: checking for " >&5
32147 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32148 if test "${ac_cv_header_+set}" = set; then
32149 echo $ECHO_N "(cached) $ECHO_C" >&6
32150 else
32151 ac_cv_header_=$ac_header_preproc
32153 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32154 echo "${ECHO_T}$ac_cv_header_" >&6; }
32157 if test $ac_cv_header_ = yes; then
32158 TERMCAP_HEADER_FOUND=1
32159 else
32160 TERMCAP_HEADER_FOUND=0
32166 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
32167 if test -n "${TERMCAP_MANDATORY}" ;
32168 then
32169 { echo "$as_me:$LINENO: ***" >&5
32170 echo "$as_me: ***" >&6;}
32171 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
32172 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
32173 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
32174 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
32175 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
32176 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
32177 exit 1
32179 TERMCAP_LIB=""
32180 TERMCAP_INCLUDE=""
32181 PBX_TERMCAP=0
32182 else
32183 PBX_TERMCAP=1
32185 cat >>confdefs.h <<_ACEOF
32186 #define HAVE_TERMCAP 1
32187 _ACEOF
32190 elif test -n "${TERMCAP_MANDATORY}";
32191 then
32192 { echo "$as_me:$LINENO: ***" >&5
32193 echo "$as_me: ***" >&6;}
32194 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
32195 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
32196 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32197 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32198 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
32199 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
32200 exit 1
32206 if test "${USE_TINFO}" != "no"; then
32207 pbxlibdir=""
32208 if test "x${TINFO_DIR}" != "x"; then
32209 if test -d ${TINFO_DIR}/lib; then
32210 pbxlibdir="-L${TINFO_DIR}/lib"
32211 else
32212 pbxlibdir="-L${TINFO_DIR}"
32215 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
32216 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
32217 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
32218 echo $ECHO_N "(cached) $ECHO_C" >&6
32219 else
32220 ac_check_lib_save_LIBS=$LIBS
32221 LIBS="-ltinfo ${pbxlibdir} $LIBS"
32222 cat >conftest.$ac_ext <<_ACEOF
32223 /* confdefs.h. */
32224 _ACEOF
32225 cat confdefs.h >>conftest.$ac_ext
32226 cat >>conftest.$ac_ext <<_ACEOF
32227 /* end confdefs.h. */
32229 /* Override any GCC internal prototype to avoid an error.
32230 Use char because int might match the return type of a GCC
32231 builtin and then its argument prototype would still apply. */
32232 #ifdef __cplusplus
32233 extern "C"
32234 #endif
32235 char tgetent ();
32237 main ()
32239 return tgetent ();
32241 return 0;
32243 _ACEOF
32244 rm -f conftest.$ac_objext conftest$ac_exeext
32245 if { (ac_try="$ac_link"
32246 case "(($ac_try" in
32247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32248 *) ac_try_echo=$ac_try;;
32249 esac
32250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251 (eval "$ac_link") 2>conftest.er1
32252 ac_status=$?
32253 grep -v '^ *+' conftest.er1 >conftest.err
32254 rm -f conftest.er1
32255 cat conftest.err >&5
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); } && {
32258 test -z "$ac_c_werror_flag" ||
32259 test ! -s conftest.err
32260 } && test -s conftest$ac_exeext &&
32261 $as_test_x conftest$ac_exeext; then
32262 ac_cv_lib_tinfo_tgetent=yes
32263 else
32264 echo "$as_me: failed program was:" >&5
32265 sed 's/^/| /' conftest.$ac_ext >&5
32267 ac_cv_lib_tinfo_tgetent=no
32270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32271 conftest$ac_exeext conftest.$ac_ext
32272 LIBS=$ac_check_lib_save_LIBS
32274 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
32275 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
32276 if test $ac_cv_lib_tinfo_tgetent = yes; then
32277 AST_TINFO_FOUND=yes
32278 else
32279 AST_TINFO_FOUND=no
32283 if test "${AST_TINFO_FOUND}" = "yes"; then
32284 TINFO_LIB="-ltinfo "
32285 TINFO_HEADER_FOUND="1"
32286 if test "x${TINFO_DIR}" != "x"; then
32287 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
32288 TINFO_INCLUDE="-I${TINFO_DIR}/include"
32289 saved_cppflags="${CPPFLAGS}"
32290 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
32291 if test "x" != "x" ; then
32292 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
32293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32294 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
32295 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
32296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32297 echo $ECHO_N "(cached) $ECHO_C" >&6
32299 ac_res=`eval echo '${'$as_ac_Header'}'`
32300 { echo "$as_me:$LINENO: result: $ac_res" >&5
32301 echo "${ECHO_T}$ac_res" >&6; }
32302 else
32303 # Is the header compilable?
32304 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
32305 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
32306 cat >conftest.$ac_ext <<_ACEOF
32307 /* confdefs.h. */
32308 _ACEOF
32309 cat confdefs.h >>conftest.$ac_ext
32310 cat >>conftest.$ac_ext <<_ACEOF
32311 /* end confdefs.h. */
32312 $ac_includes_default
32313 #include <${TINFO_DIR}/include/>
32314 _ACEOF
32315 rm -f conftest.$ac_objext
32316 if { (ac_try="$ac_compile"
32317 case "(($ac_try" in
32318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32319 *) ac_try_echo=$ac_try;;
32320 esac
32321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32322 (eval "$ac_compile") 2>conftest.er1
32323 ac_status=$?
32324 grep -v '^ *+' conftest.er1 >conftest.err
32325 rm -f conftest.er1
32326 cat conftest.err >&5
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); } && {
32329 test -z "$ac_c_werror_flag" ||
32330 test ! -s conftest.err
32331 } && test -s conftest.$ac_objext; then
32332 ac_header_compiler=yes
32333 else
32334 echo "$as_me: failed program was:" >&5
32335 sed 's/^/| /' conftest.$ac_ext >&5
32337 ac_header_compiler=no
32340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32342 echo "${ECHO_T}$ac_header_compiler" >&6; }
32344 # Is the header present?
32345 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
32346 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
32347 cat >conftest.$ac_ext <<_ACEOF
32348 /* confdefs.h. */
32349 _ACEOF
32350 cat confdefs.h >>conftest.$ac_ext
32351 cat >>conftest.$ac_ext <<_ACEOF
32352 /* end confdefs.h. */
32353 #include <${TINFO_DIR}/include/>
32354 _ACEOF
32355 if { (ac_try="$ac_cpp conftest.$ac_ext"
32356 case "(($ac_try" in
32357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32358 *) ac_try_echo=$ac_try;;
32359 esac
32360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32362 ac_status=$?
32363 grep -v '^ *+' conftest.er1 >conftest.err
32364 rm -f conftest.er1
32365 cat conftest.err >&5
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); } >/dev/null && {
32368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32369 test ! -s conftest.err
32370 }; then
32371 ac_header_preproc=yes
32372 else
32373 echo "$as_me: failed program was:" >&5
32374 sed 's/^/| /' conftest.$ac_ext >&5
32376 ac_header_preproc=no
32379 rm -f conftest.err conftest.$ac_ext
32380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32381 echo "${ECHO_T}$ac_header_preproc" >&6; }
32383 # So? What about this header?
32384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32385 yes:no: )
32386 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
32387 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
32388 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
32389 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
32390 ac_header_preproc=yes
32392 no:yes:* )
32393 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
32394 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
32395 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
32396 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
32397 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
32398 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
32399 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
32400 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
32401 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
32402 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
32403 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
32404 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
32405 ( cat <<\_ASBOX
32406 ## ------------------------------- ##
32407 ## Report this to www.asterisk.org ##
32408 ## ------------------------------- ##
32409 _ASBOX
32410 ) | sed "s/^/$as_me: WARNING: /" >&2
32412 esac
32413 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
32414 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
32415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32416 echo $ECHO_N "(cached) $ECHO_C" >&6
32417 else
32418 eval "$as_ac_Header=\$ac_header_preproc"
32420 ac_res=`eval echo '${'$as_ac_Header'}'`
32421 { echo "$as_me:$LINENO: result: $ac_res" >&5
32422 echo "${ECHO_T}$ac_res" >&6; }
32425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32426 TINFO_HEADER_FOUND=1
32427 else
32428 TINFO_HEADER_FOUND=0
32433 CPPFLAGS="${saved_cppflags}"
32434 else
32435 if test "x" != "x" ; then
32436 if test "${ac_cv_header_+set}" = set; then
32437 { echo "$as_me:$LINENO: checking for " >&5
32438 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32439 if test "${ac_cv_header_+set}" = set; then
32440 echo $ECHO_N "(cached) $ECHO_C" >&6
32442 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32443 echo "${ECHO_T}$ac_cv_header_" >&6; }
32444 else
32445 # Is the header compilable?
32446 { echo "$as_me:$LINENO: checking usability" >&5
32447 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
32448 cat >conftest.$ac_ext <<_ACEOF
32449 /* confdefs.h. */
32450 _ACEOF
32451 cat confdefs.h >>conftest.$ac_ext
32452 cat >>conftest.$ac_ext <<_ACEOF
32453 /* end confdefs.h. */
32454 $ac_includes_default
32455 #include <>
32456 _ACEOF
32457 rm -f conftest.$ac_objext
32458 if { (ac_try="$ac_compile"
32459 case "(($ac_try" in
32460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32461 *) ac_try_echo=$ac_try;;
32462 esac
32463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32464 (eval "$ac_compile") 2>conftest.er1
32465 ac_status=$?
32466 grep -v '^ *+' conftest.er1 >conftest.err
32467 rm -f conftest.er1
32468 cat conftest.err >&5
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); } && {
32471 test -z "$ac_c_werror_flag" ||
32472 test ! -s conftest.err
32473 } && test -s conftest.$ac_objext; then
32474 ac_header_compiler=yes
32475 else
32476 echo "$as_me: failed program was:" >&5
32477 sed 's/^/| /' conftest.$ac_ext >&5
32479 ac_header_compiler=no
32482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32484 echo "${ECHO_T}$ac_header_compiler" >&6; }
32486 # Is the header present?
32487 { echo "$as_me:$LINENO: checking presence" >&5
32488 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
32489 cat >conftest.$ac_ext <<_ACEOF
32490 /* confdefs.h. */
32491 _ACEOF
32492 cat confdefs.h >>conftest.$ac_ext
32493 cat >>conftest.$ac_ext <<_ACEOF
32494 /* end confdefs.h. */
32495 #include <>
32496 _ACEOF
32497 if { (ac_try="$ac_cpp conftest.$ac_ext"
32498 case "(($ac_try" in
32499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32500 *) ac_try_echo=$ac_try;;
32501 esac
32502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32504 ac_status=$?
32505 grep -v '^ *+' conftest.er1 >conftest.err
32506 rm -f conftest.er1
32507 cat conftest.err >&5
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); } >/dev/null && {
32510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32511 test ! -s conftest.err
32512 }; then
32513 ac_header_preproc=yes
32514 else
32515 echo "$as_me: failed program was:" >&5
32516 sed 's/^/| /' conftest.$ac_ext >&5
32518 ac_header_preproc=no
32521 rm -f conftest.err conftest.$ac_ext
32522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32523 echo "${ECHO_T}$ac_header_preproc" >&6; }
32525 # So? What about this header?
32526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32527 yes:no: )
32528 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
32529 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
32530 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
32531 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
32532 ac_header_preproc=yes
32534 no:yes:* )
32535 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
32536 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
32537 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
32538 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
32539 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
32540 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
32541 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
32542 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
32543 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
32544 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
32545 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
32546 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
32547 ( cat <<\_ASBOX
32548 ## ------------------------------- ##
32549 ## Report this to www.asterisk.org ##
32550 ## ------------------------------- ##
32551 _ASBOX
32552 ) | sed "s/^/$as_me: WARNING: /" >&2
32554 esac
32555 { echo "$as_me:$LINENO: checking for " >&5
32556 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32557 if test "${ac_cv_header_+set}" = set; then
32558 echo $ECHO_N "(cached) $ECHO_C" >&6
32559 else
32560 ac_cv_header_=$ac_header_preproc
32562 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32563 echo "${ECHO_T}$ac_cv_header_" >&6; }
32566 if test $ac_cv_header_ = yes; then
32567 TINFO_HEADER_FOUND=1
32568 else
32569 TINFO_HEADER_FOUND=0
32575 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
32576 if test -n "${TINFO_MANDATORY}" ;
32577 then
32578 { echo "$as_me:$LINENO: ***" >&5
32579 echo "$as_me: ***" >&6;}
32580 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
32581 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
32582 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
32583 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
32584 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
32585 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
32586 exit 1
32588 TINFO_LIB=""
32589 TINFO_INCLUDE=""
32590 PBX_TINFO=0
32591 else
32592 PBX_TINFO=1
32594 cat >>confdefs.h <<_ACEOF
32595 #define HAVE_TINFO 1
32596 _ACEOF
32599 elif test -n "${TINFO_MANDATORY}";
32600 then
32601 { echo "$as_me:$LINENO: ***" >&5
32602 echo "$as_me: ***" >&6;}
32603 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
32604 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
32605 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32606 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32607 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
32608 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
32609 exit 1
32614 if test "${host_os}" != "linux-gnu" ; then
32615 tonezone_extra="-lm"
32619 if test "${USE_TONEZONE}" != "no"; then
32620 pbxlibdir=""
32621 if test "x${TONEZONE_DIR}" != "x"; then
32622 if test -d ${TONEZONE_DIR}/lib; then
32623 pbxlibdir="-L${TONEZONE_DIR}/lib"
32624 else
32625 pbxlibdir="-L${TONEZONE_DIR}"
32628 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
32629 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
32630 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
32631 echo $ECHO_N "(cached) $ECHO_C" >&6
32632 else
32633 ac_check_lib_save_LIBS=$LIBS
32634 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
32635 cat >conftest.$ac_ext <<_ACEOF
32636 /* confdefs.h. */
32637 _ACEOF
32638 cat confdefs.h >>conftest.$ac_ext
32639 cat >>conftest.$ac_ext <<_ACEOF
32640 /* end confdefs.h. */
32642 /* Override any GCC internal prototype to avoid an error.
32643 Use char because int might match the return type of a GCC
32644 builtin and then its argument prototype would still apply. */
32645 #ifdef __cplusplus
32646 extern "C"
32647 #endif
32648 char tone_zone_find ();
32650 main ()
32652 return tone_zone_find ();
32654 return 0;
32656 _ACEOF
32657 rm -f conftest.$ac_objext conftest$ac_exeext
32658 if { (ac_try="$ac_link"
32659 case "(($ac_try" in
32660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32661 *) ac_try_echo=$ac_try;;
32662 esac
32663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32664 (eval "$ac_link") 2>conftest.er1
32665 ac_status=$?
32666 grep -v '^ *+' conftest.er1 >conftest.err
32667 rm -f conftest.er1
32668 cat conftest.err >&5
32669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32670 (exit $ac_status); } && {
32671 test -z "$ac_c_werror_flag" ||
32672 test ! -s conftest.err
32673 } && test -s conftest$ac_exeext &&
32674 $as_test_x conftest$ac_exeext; then
32675 ac_cv_lib_tonezone_tone_zone_find=yes
32676 else
32677 echo "$as_me: failed program was:" >&5
32678 sed 's/^/| /' conftest.$ac_ext >&5
32680 ac_cv_lib_tonezone_tone_zone_find=no
32683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32684 conftest$ac_exeext conftest.$ac_ext
32685 LIBS=$ac_check_lib_save_LIBS
32687 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
32688 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
32689 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
32690 AST_TONEZONE_FOUND=yes
32691 else
32692 AST_TONEZONE_FOUND=no
32696 if test "${AST_TONEZONE_FOUND}" = "yes"; then
32697 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
32698 TONEZONE_HEADER_FOUND="1"
32699 if test "x${TONEZONE_DIR}" != "x"; then
32700 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
32701 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
32702 saved_cppflags="${CPPFLAGS}"
32703 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
32704 if test "xzaptel/tonezone.h" != "x" ; then
32705 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
32706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32707 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
32708 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
32709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32710 echo $ECHO_N "(cached) $ECHO_C" >&6
32712 ac_res=`eval echo '${'$as_ac_Header'}'`
32713 { echo "$as_me:$LINENO: result: $ac_res" >&5
32714 echo "${ECHO_T}$ac_res" >&6; }
32715 else
32716 # Is the header compilable?
32717 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
32718 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
32719 cat >conftest.$ac_ext <<_ACEOF
32720 /* confdefs.h. */
32721 _ACEOF
32722 cat confdefs.h >>conftest.$ac_ext
32723 cat >>conftest.$ac_ext <<_ACEOF
32724 /* end confdefs.h. */
32725 $ac_includes_default
32726 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
32727 _ACEOF
32728 rm -f conftest.$ac_objext
32729 if { (ac_try="$ac_compile"
32730 case "(($ac_try" in
32731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32732 *) ac_try_echo=$ac_try;;
32733 esac
32734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32735 (eval "$ac_compile") 2>conftest.er1
32736 ac_status=$?
32737 grep -v '^ *+' conftest.er1 >conftest.err
32738 rm -f conftest.er1
32739 cat conftest.err >&5
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); } && {
32742 test -z "$ac_c_werror_flag" ||
32743 test ! -s conftest.err
32744 } && test -s conftest.$ac_objext; then
32745 ac_header_compiler=yes
32746 else
32747 echo "$as_me: failed program was:" >&5
32748 sed 's/^/| /' conftest.$ac_ext >&5
32750 ac_header_compiler=no
32753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32755 echo "${ECHO_T}$ac_header_compiler" >&6; }
32757 # Is the header present?
32758 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
32759 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
32760 cat >conftest.$ac_ext <<_ACEOF
32761 /* confdefs.h. */
32762 _ACEOF
32763 cat confdefs.h >>conftest.$ac_ext
32764 cat >>conftest.$ac_ext <<_ACEOF
32765 /* end confdefs.h. */
32766 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
32767 _ACEOF
32768 if { (ac_try="$ac_cpp conftest.$ac_ext"
32769 case "(($ac_try" in
32770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32771 *) ac_try_echo=$ac_try;;
32772 esac
32773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32775 ac_status=$?
32776 grep -v '^ *+' conftest.er1 >conftest.err
32777 rm -f conftest.er1
32778 cat conftest.err >&5
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); } >/dev/null && {
32781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32782 test ! -s conftest.err
32783 }; then
32784 ac_header_preproc=yes
32785 else
32786 echo "$as_me: failed program was:" >&5
32787 sed 's/^/| /' conftest.$ac_ext >&5
32789 ac_header_preproc=no
32792 rm -f conftest.err conftest.$ac_ext
32793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32794 echo "${ECHO_T}$ac_header_preproc" >&6; }
32796 # So? What about this header?
32797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32798 yes:no: )
32799 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
32800 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32801 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
32802 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
32803 ac_header_preproc=yes
32805 no:yes:* )
32806 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
32807 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
32808 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
32809 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
32810 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
32811 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
32812 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
32813 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
32814 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
32815 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
32816 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
32817 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
32818 ( cat <<\_ASBOX
32819 ## ------------------------------- ##
32820 ## Report this to www.asterisk.org ##
32821 ## ------------------------------- ##
32822 _ASBOX
32823 ) | sed "s/^/$as_me: WARNING: /" >&2
32825 esac
32826 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
32827 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
32828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32829 echo $ECHO_N "(cached) $ECHO_C" >&6
32830 else
32831 eval "$as_ac_Header=\$ac_header_preproc"
32833 ac_res=`eval echo '${'$as_ac_Header'}'`
32834 { echo "$as_me:$LINENO: result: $ac_res" >&5
32835 echo "${ECHO_T}$ac_res" >&6; }
32838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32839 TONEZONE_HEADER_FOUND=1
32840 else
32841 TONEZONE_HEADER_FOUND=0
32846 CPPFLAGS="${saved_cppflags}"
32847 else
32848 if test "xzaptel/tonezone.h" != "x" ; then
32849 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32850 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
32851 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
32852 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32853 echo $ECHO_N "(cached) $ECHO_C" >&6
32855 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
32856 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
32857 else
32858 # Is the header compilable?
32859 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
32860 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
32861 cat >conftest.$ac_ext <<_ACEOF
32862 /* confdefs.h. */
32863 _ACEOF
32864 cat confdefs.h >>conftest.$ac_ext
32865 cat >>conftest.$ac_ext <<_ACEOF
32866 /* end confdefs.h. */
32867 $ac_includes_default
32868 #include <zaptel/tonezone.h>
32869 _ACEOF
32870 rm -f conftest.$ac_objext
32871 if { (ac_try="$ac_compile"
32872 case "(($ac_try" in
32873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874 *) ac_try_echo=$ac_try;;
32875 esac
32876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877 (eval "$ac_compile") 2>conftest.er1
32878 ac_status=$?
32879 grep -v '^ *+' conftest.er1 >conftest.err
32880 rm -f conftest.er1
32881 cat conftest.err >&5
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); } && {
32884 test -z "$ac_c_werror_flag" ||
32885 test ! -s conftest.err
32886 } && test -s conftest.$ac_objext; then
32887 ac_header_compiler=yes
32888 else
32889 echo "$as_me: failed program was:" >&5
32890 sed 's/^/| /' conftest.$ac_ext >&5
32892 ac_header_compiler=no
32895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32897 echo "${ECHO_T}$ac_header_compiler" >&6; }
32899 # Is the header present?
32900 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
32901 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
32902 cat >conftest.$ac_ext <<_ACEOF
32903 /* confdefs.h. */
32904 _ACEOF
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h. */
32908 #include <zaptel/tonezone.h>
32909 _ACEOF
32910 if { (ac_try="$ac_cpp conftest.$ac_ext"
32911 case "(($ac_try" in
32912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32913 *) ac_try_echo=$ac_try;;
32914 esac
32915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32917 ac_status=$?
32918 grep -v '^ *+' conftest.er1 >conftest.err
32919 rm -f conftest.er1
32920 cat conftest.err >&5
32921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); } >/dev/null && {
32923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32924 test ! -s conftest.err
32925 }; then
32926 ac_header_preproc=yes
32927 else
32928 echo "$as_me: failed program was:" >&5
32929 sed 's/^/| /' conftest.$ac_ext >&5
32931 ac_header_preproc=no
32934 rm -f conftest.err conftest.$ac_ext
32935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32936 echo "${ECHO_T}$ac_header_preproc" >&6; }
32938 # So? What about this header?
32939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32940 yes:no: )
32941 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
32942 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32943 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
32944 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
32945 ac_header_preproc=yes
32947 no:yes:* )
32948 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
32949 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
32950 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
32951 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
32952 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
32953 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
32954 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
32955 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
32956 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
32957 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
32958 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
32959 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
32960 ( cat <<\_ASBOX
32961 ## ------------------------------- ##
32962 ## Report this to www.asterisk.org ##
32963 ## ------------------------------- ##
32964 _ASBOX
32965 ) | sed "s/^/$as_me: WARNING: /" >&2
32967 esac
32968 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
32969 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
32970 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32971 echo $ECHO_N "(cached) $ECHO_C" >&6
32972 else
32973 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
32975 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
32976 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
32979 if test $ac_cv_header_zaptel_tonezone_h = yes; then
32980 TONEZONE_HEADER_FOUND=1
32981 else
32982 TONEZONE_HEADER_FOUND=0
32988 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
32989 if test -n "${TONEZONE_MANDATORY}" ;
32990 then
32991 { echo "$as_me:$LINENO: ***" >&5
32992 echo "$as_me: ***" >&6;}
32993 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
32994 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
32995 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
32996 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
32997 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
32998 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
32999 exit 1
33001 TONEZONE_LIB=""
33002 TONEZONE_INCLUDE=""
33003 PBX_TONEZONE=0
33004 else
33005 PBX_TONEZONE=1
33007 cat >>confdefs.h <<_ACEOF
33008 #define HAVE_TONEZONE 1
33009 _ACEOF
33012 elif test -n "${TONEZONE_MANDATORY}";
33013 then
33014 { echo "$as_me:$LINENO: ***" >&5
33015 echo "$as_me: ***" >&6;}
33016 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
33017 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
33018 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33019 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33020 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
33021 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
33022 exit 1
33028 if test "${USE_USB}" != "no"; then
33029 pbxlibdir=""
33030 if test "x${USB_DIR}" != "x"; then
33031 if test -d ${USB_DIR}/lib; then
33032 pbxlibdir="-L${USB_DIR}/lib"
33033 else
33034 pbxlibdir="-L${USB_DIR}"
33037 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
33038 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
33039 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
33040 echo $ECHO_N "(cached) $ECHO_C" >&6
33041 else
33042 ac_check_lib_save_LIBS=$LIBS
33043 LIBS="-lusb ${pbxlibdir} $LIBS"
33044 cat >conftest.$ac_ext <<_ACEOF
33045 /* confdefs.h. */
33046 _ACEOF
33047 cat confdefs.h >>conftest.$ac_ext
33048 cat >>conftest.$ac_ext <<_ACEOF
33049 /* end confdefs.h. */
33051 /* Override any GCC internal prototype to avoid an error.
33052 Use char because int might match the return type of a GCC
33053 builtin and then its argument prototype would still apply. */
33054 #ifdef __cplusplus
33055 extern "C"
33056 #endif
33057 char usb_init ();
33059 main ()
33061 return usb_init ();
33063 return 0;
33065 _ACEOF
33066 rm -f conftest.$ac_objext conftest$ac_exeext
33067 if { (ac_try="$ac_link"
33068 case "(($ac_try" in
33069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33070 *) ac_try_echo=$ac_try;;
33071 esac
33072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33073 (eval "$ac_link") 2>conftest.er1
33074 ac_status=$?
33075 grep -v '^ *+' conftest.er1 >conftest.err
33076 rm -f conftest.er1
33077 cat conftest.err >&5
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); } && {
33080 test -z "$ac_c_werror_flag" ||
33081 test ! -s conftest.err
33082 } && test -s conftest$ac_exeext &&
33083 $as_test_x conftest$ac_exeext; then
33084 ac_cv_lib_usb_usb_init=yes
33085 else
33086 echo "$as_me: failed program was:" >&5
33087 sed 's/^/| /' conftest.$ac_ext >&5
33089 ac_cv_lib_usb_usb_init=no
33092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33093 conftest$ac_exeext conftest.$ac_ext
33094 LIBS=$ac_check_lib_save_LIBS
33096 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
33097 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
33098 if test $ac_cv_lib_usb_usb_init = yes; then
33099 AST_USB_FOUND=yes
33100 else
33101 AST_USB_FOUND=no
33105 if test "${AST_USB_FOUND}" = "yes"; then
33106 USB_LIB="-lusb "
33107 USB_HEADER_FOUND="1"
33108 if test "x${USB_DIR}" != "x"; then
33109 USB_LIB="${pbxlibdir} ${USB_LIB}"
33110 USB_INCLUDE="-I${USB_DIR}/include"
33111 saved_cppflags="${CPPFLAGS}"
33112 CPPFLAGS="${CPPFLAGS} -I${USB_DIR}/include"
33113 if test "xusb.h" != "x" ; then
33114 as_ac_Header=`echo "ac_cv_header_${USB_DIR}/include/usb.h" | $as_tr_sh`
33115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33116 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
33117 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
33118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33119 echo $ECHO_N "(cached) $ECHO_C" >&6
33121 ac_res=`eval echo '${'$as_ac_Header'}'`
33122 { echo "$as_me:$LINENO: result: $ac_res" >&5
33123 echo "${ECHO_T}$ac_res" >&6; }
33124 else
33125 # Is the header compilable?
33126 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h usability" >&5
33127 echo $ECHO_N "checking ${USB_DIR}/include/usb.h usability... $ECHO_C" >&6; }
33128 cat >conftest.$ac_ext <<_ACEOF
33129 /* confdefs.h. */
33130 _ACEOF
33131 cat confdefs.h >>conftest.$ac_ext
33132 cat >>conftest.$ac_ext <<_ACEOF
33133 /* end confdefs.h. */
33134 $ac_includes_default
33135 #include <${USB_DIR}/include/usb.h>
33136 _ACEOF
33137 rm -f conftest.$ac_objext
33138 if { (ac_try="$ac_compile"
33139 case "(($ac_try" in
33140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33141 *) ac_try_echo=$ac_try;;
33142 esac
33143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33144 (eval "$ac_compile") 2>conftest.er1
33145 ac_status=$?
33146 grep -v '^ *+' conftest.er1 >conftest.err
33147 rm -f conftest.er1
33148 cat conftest.err >&5
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); } && {
33151 test -z "$ac_c_werror_flag" ||
33152 test ! -s conftest.err
33153 } && test -s conftest.$ac_objext; then
33154 ac_header_compiler=yes
33155 else
33156 echo "$as_me: failed program was:" >&5
33157 sed 's/^/| /' conftest.$ac_ext >&5
33159 ac_header_compiler=no
33162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33164 echo "${ECHO_T}$ac_header_compiler" >&6; }
33166 # Is the header present?
33167 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h presence" >&5
33168 echo $ECHO_N "checking ${USB_DIR}/include/usb.h presence... $ECHO_C" >&6; }
33169 cat >conftest.$ac_ext <<_ACEOF
33170 /* confdefs.h. */
33171 _ACEOF
33172 cat confdefs.h >>conftest.$ac_ext
33173 cat >>conftest.$ac_ext <<_ACEOF
33174 /* end confdefs.h. */
33175 #include <${USB_DIR}/include/usb.h>
33176 _ACEOF
33177 if { (ac_try="$ac_cpp conftest.$ac_ext"
33178 case "(($ac_try" in
33179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180 *) ac_try_echo=$ac_try;;
33181 esac
33182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33184 ac_status=$?
33185 grep -v '^ *+' conftest.er1 >conftest.err
33186 rm -f conftest.er1
33187 cat conftest.err >&5
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189 (exit $ac_status); } >/dev/null && {
33190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33191 test ! -s conftest.err
33192 }; then
33193 ac_header_preproc=yes
33194 else
33195 echo "$as_me: failed program was:" >&5
33196 sed 's/^/| /' conftest.$ac_ext >&5
33198 ac_header_preproc=no
33201 rm -f conftest.err conftest.$ac_ext
33202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33203 echo "${ECHO_T}$ac_header_preproc" >&6; }
33205 # So? What about this header?
33206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33207 yes:no: )
33208 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
33209 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33210 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&5
33211 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&2;}
33212 ac_header_preproc=yes
33214 no:yes:* )
33215 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&5
33216 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&2;}
33217 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&5
33218 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&2;}
33219 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&5
33220 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&2;}
33221 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&5
33222 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
33223 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&5
33224 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&2;}
33225 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&5
33226 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&2;}
33227 ( cat <<\_ASBOX
33228 ## ------------------------------- ##
33229 ## Report this to www.asterisk.org ##
33230 ## ------------------------------- ##
33231 _ASBOX
33232 ) | sed "s/^/$as_me: WARNING: /" >&2
33234 esac
33235 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
33236 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
33237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33238 echo $ECHO_N "(cached) $ECHO_C" >&6
33239 else
33240 eval "$as_ac_Header=\$ac_header_preproc"
33242 ac_res=`eval echo '${'$as_ac_Header'}'`
33243 { echo "$as_me:$LINENO: result: $ac_res" >&5
33244 echo "${ECHO_T}$ac_res" >&6; }
33247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33248 USB_HEADER_FOUND=1
33249 else
33250 USB_HEADER_FOUND=0
33255 CPPFLAGS="${saved_cppflags}"
33256 else
33257 if test "xusb.h" != "x" ; then
33258 if test "${ac_cv_header_usb_h+set}" = set; then
33259 { echo "$as_me:$LINENO: checking for usb.h" >&5
33260 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
33261 if test "${ac_cv_header_usb_h+set}" = set; then
33262 echo $ECHO_N "(cached) $ECHO_C" >&6
33264 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
33265 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
33266 else
33267 # Is the header compilable?
33268 { echo "$as_me:$LINENO: checking usb.h usability" >&5
33269 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
33270 cat >conftest.$ac_ext <<_ACEOF
33271 /* confdefs.h. */
33272 _ACEOF
33273 cat confdefs.h >>conftest.$ac_ext
33274 cat >>conftest.$ac_ext <<_ACEOF
33275 /* end confdefs.h. */
33276 $ac_includes_default
33277 #include <usb.h>
33278 _ACEOF
33279 rm -f conftest.$ac_objext
33280 if { (ac_try="$ac_compile"
33281 case "(($ac_try" in
33282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33283 *) ac_try_echo=$ac_try;;
33284 esac
33285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33286 (eval "$ac_compile") 2>conftest.er1
33287 ac_status=$?
33288 grep -v '^ *+' conftest.er1 >conftest.err
33289 rm -f conftest.er1
33290 cat conftest.err >&5
33291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292 (exit $ac_status); } && {
33293 test -z "$ac_c_werror_flag" ||
33294 test ! -s conftest.err
33295 } && test -s conftest.$ac_objext; then
33296 ac_header_compiler=yes
33297 else
33298 echo "$as_me: failed program was:" >&5
33299 sed 's/^/| /' conftest.$ac_ext >&5
33301 ac_header_compiler=no
33304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33306 echo "${ECHO_T}$ac_header_compiler" >&6; }
33308 # Is the header present?
33309 { echo "$as_me:$LINENO: checking usb.h presence" >&5
33310 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
33311 cat >conftest.$ac_ext <<_ACEOF
33312 /* confdefs.h. */
33313 _ACEOF
33314 cat confdefs.h >>conftest.$ac_ext
33315 cat >>conftest.$ac_ext <<_ACEOF
33316 /* end confdefs.h. */
33317 #include <usb.h>
33318 _ACEOF
33319 if { (ac_try="$ac_cpp conftest.$ac_ext"
33320 case "(($ac_try" in
33321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33322 *) ac_try_echo=$ac_try;;
33323 esac
33324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33326 ac_status=$?
33327 grep -v '^ *+' conftest.er1 >conftest.err
33328 rm -f conftest.er1
33329 cat conftest.err >&5
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); } >/dev/null && {
33332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33333 test ! -s conftest.err
33334 }; then
33335 ac_header_preproc=yes
33336 else
33337 echo "$as_me: failed program was:" >&5
33338 sed 's/^/| /' conftest.$ac_ext >&5
33340 ac_header_preproc=no
33343 rm -f conftest.err conftest.$ac_ext
33344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33345 echo "${ECHO_T}$ac_header_preproc" >&6; }
33347 # So? What about this header?
33348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33349 yes:no: )
33350 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
33351 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33352 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
33353 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
33354 ac_header_preproc=yes
33356 no:yes:* )
33357 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
33358 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
33359 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
33360 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
33361 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
33362 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
33363 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
33364 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
33365 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
33366 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
33367 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
33368 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
33369 ( cat <<\_ASBOX
33370 ## ------------------------------- ##
33371 ## Report this to www.asterisk.org ##
33372 ## ------------------------------- ##
33373 _ASBOX
33374 ) | sed "s/^/$as_me: WARNING: /" >&2
33376 esac
33377 { echo "$as_me:$LINENO: checking for usb.h" >&5
33378 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
33379 if test "${ac_cv_header_usb_h+set}" = set; then
33380 echo $ECHO_N "(cached) $ECHO_C" >&6
33381 else
33382 ac_cv_header_usb_h=$ac_header_preproc
33384 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
33385 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
33388 if test $ac_cv_header_usb_h = yes; then
33389 USB_HEADER_FOUND=1
33390 else
33391 USB_HEADER_FOUND=0
33397 if test "x${USB_HEADER_FOUND}" = "x0" ; then
33398 if test -n "${USB_MANDATORY}" ;
33399 then
33400 { echo "$as_me:$LINENO: ***" >&5
33401 echo "$as_me: ***" >&6;}
33402 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
33403 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
33404 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
33405 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
33406 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
33407 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
33408 exit 1
33410 USB_LIB=""
33411 USB_INCLUDE=""
33412 PBX_USB=0
33413 else
33414 PBX_USB=1
33416 cat >>confdefs.h <<_ACEOF
33417 #define HAVE_USB 1
33418 _ACEOF
33421 elif test -n "${USB_MANDATORY}";
33422 then
33423 { echo "$as_me:$LINENO: ***" >&5
33424 echo "$as_me: ***" >&6;}
33425 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
33426 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
33427 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33428 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33429 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
33430 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
33431 exit 1
33437 if test "${USE_VORBIS}" != "no"; then
33438 pbxlibdir=""
33439 if test "x${VORBIS_DIR}" != "x"; then
33440 if test -d ${VORBIS_DIR}/lib; then
33441 pbxlibdir="-L${VORBIS_DIR}/lib"
33442 else
33443 pbxlibdir="-L${VORBIS_DIR}"
33446 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
33447 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
33448 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
33449 echo $ECHO_N "(cached) $ECHO_C" >&6
33450 else
33451 ac_check_lib_save_LIBS=$LIBS
33452 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
33453 cat >conftest.$ac_ext <<_ACEOF
33454 /* confdefs.h. */
33455 _ACEOF
33456 cat confdefs.h >>conftest.$ac_ext
33457 cat >>conftest.$ac_ext <<_ACEOF
33458 /* end confdefs.h. */
33460 /* Override any GCC internal prototype to avoid an error.
33461 Use char because int might match the return type of a GCC
33462 builtin and then its argument prototype would still apply. */
33463 #ifdef __cplusplus
33464 extern "C"
33465 #endif
33466 char vorbis_info_init ();
33468 main ()
33470 return vorbis_info_init ();
33472 return 0;
33474 _ACEOF
33475 rm -f conftest.$ac_objext conftest$ac_exeext
33476 if { (ac_try="$ac_link"
33477 case "(($ac_try" in
33478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33479 *) ac_try_echo=$ac_try;;
33480 esac
33481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33482 (eval "$ac_link") 2>conftest.er1
33483 ac_status=$?
33484 grep -v '^ *+' conftest.er1 >conftest.err
33485 rm -f conftest.er1
33486 cat conftest.err >&5
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488 (exit $ac_status); } && {
33489 test -z "$ac_c_werror_flag" ||
33490 test ! -s conftest.err
33491 } && test -s conftest$ac_exeext &&
33492 $as_test_x conftest$ac_exeext; then
33493 ac_cv_lib_vorbis_vorbis_info_init=yes
33494 else
33495 echo "$as_me: failed program was:" >&5
33496 sed 's/^/| /' conftest.$ac_ext >&5
33498 ac_cv_lib_vorbis_vorbis_info_init=no
33501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33502 conftest$ac_exeext conftest.$ac_ext
33503 LIBS=$ac_check_lib_save_LIBS
33505 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
33506 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
33507 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
33508 AST_VORBIS_FOUND=yes
33509 else
33510 AST_VORBIS_FOUND=no
33514 if test "${AST_VORBIS_FOUND}" = "yes"; then
33515 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
33516 VORBIS_HEADER_FOUND="1"
33517 if test "x${VORBIS_DIR}" != "x"; then
33518 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
33519 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
33520 saved_cppflags="${CPPFLAGS}"
33521 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
33522 if test "xvorbis/codec.h" != "x" ; then
33523 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
33524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33525 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
33526 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
33527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33528 echo $ECHO_N "(cached) $ECHO_C" >&6
33530 ac_res=`eval echo '${'$as_ac_Header'}'`
33531 { echo "$as_me:$LINENO: result: $ac_res" >&5
33532 echo "${ECHO_T}$ac_res" >&6; }
33533 else
33534 # Is the header compilable?
33535 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
33536 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
33537 cat >conftest.$ac_ext <<_ACEOF
33538 /* confdefs.h. */
33539 _ACEOF
33540 cat confdefs.h >>conftest.$ac_ext
33541 cat >>conftest.$ac_ext <<_ACEOF
33542 /* end confdefs.h. */
33543 $ac_includes_default
33544 #include <${VORBIS_DIR}/include/vorbis/codec.h>
33545 _ACEOF
33546 rm -f conftest.$ac_objext
33547 if { (ac_try="$ac_compile"
33548 case "(($ac_try" in
33549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33550 *) ac_try_echo=$ac_try;;
33551 esac
33552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33553 (eval "$ac_compile") 2>conftest.er1
33554 ac_status=$?
33555 grep -v '^ *+' conftest.er1 >conftest.err
33556 rm -f conftest.er1
33557 cat conftest.err >&5
33558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33559 (exit $ac_status); } && {
33560 test -z "$ac_c_werror_flag" ||
33561 test ! -s conftest.err
33562 } && test -s conftest.$ac_objext; then
33563 ac_header_compiler=yes
33564 else
33565 echo "$as_me: failed program was:" >&5
33566 sed 's/^/| /' conftest.$ac_ext >&5
33568 ac_header_compiler=no
33571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33573 echo "${ECHO_T}$ac_header_compiler" >&6; }
33575 # Is the header present?
33576 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
33577 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
33578 cat >conftest.$ac_ext <<_ACEOF
33579 /* confdefs.h. */
33580 _ACEOF
33581 cat confdefs.h >>conftest.$ac_ext
33582 cat >>conftest.$ac_ext <<_ACEOF
33583 /* end confdefs.h. */
33584 #include <${VORBIS_DIR}/include/vorbis/codec.h>
33585 _ACEOF
33586 if { (ac_try="$ac_cpp conftest.$ac_ext"
33587 case "(($ac_try" in
33588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33589 *) ac_try_echo=$ac_try;;
33590 esac
33591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33593 ac_status=$?
33594 grep -v '^ *+' conftest.er1 >conftest.err
33595 rm -f conftest.er1
33596 cat conftest.err >&5
33597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598 (exit $ac_status); } >/dev/null && {
33599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33600 test ! -s conftest.err
33601 }; then
33602 ac_header_preproc=yes
33603 else
33604 echo "$as_me: failed program was:" >&5
33605 sed 's/^/| /' conftest.$ac_ext >&5
33607 ac_header_preproc=no
33610 rm -f conftest.err conftest.$ac_ext
33611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33612 echo "${ECHO_T}$ac_header_preproc" >&6; }
33614 # So? What about this header?
33615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33616 yes:no: )
33617 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
33618 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33619 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
33620 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
33621 ac_header_preproc=yes
33623 no:yes:* )
33624 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
33625 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
33626 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
33627 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
33628 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
33629 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
33630 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
33631 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
33632 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
33633 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
33634 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
33635 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
33636 ( cat <<\_ASBOX
33637 ## ------------------------------- ##
33638 ## Report this to www.asterisk.org ##
33639 ## ------------------------------- ##
33640 _ASBOX
33641 ) | sed "s/^/$as_me: WARNING: /" >&2
33643 esac
33644 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
33645 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
33646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33647 echo $ECHO_N "(cached) $ECHO_C" >&6
33648 else
33649 eval "$as_ac_Header=\$ac_header_preproc"
33651 ac_res=`eval echo '${'$as_ac_Header'}'`
33652 { echo "$as_me:$LINENO: result: $ac_res" >&5
33653 echo "${ECHO_T}$ac_res" >&6; }
33656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33657 VORBIS_HEADER_FOUND=1
33658 else
33659 VORBIS_HEADER_FOUND=0
33664 CPPFLAGS="${saved_cppflags}"
33665 else
33666 if test "xvorbis/codec.h" != "x" ; then
33667 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33668 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
33669 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
33670 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33671 echo $ECHO_N "(cached) $ECHO_C" >&6
33673 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
33674 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
33675 else
33676 # Is the header compilable?
33677 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
33678 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
33679 cat >conftest.$ac_ext <<_ACEOF
33680 /* confdefs.h. */
33681 _ACEOF
33682 cat confdefs.h >>conftest.$ac_ext
33683 cat >>conftest.$ac_ext <<_ACEOF
33684 /* end confdefs.h. */
33685 $ac_includes_default
33686 #include <vorbis/codec.h>
33687 _ACEOF
33688 rm -f conftest.$ac_objext
33689 if { (ac_try="$ac_compile"
33690 case "(($ac_try" in
33691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33692 *) ac_try_echo=$ac_try;;
33693 esac
33694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33695 (eval "$ac_compile") 2>conftest.er1
33696 ac_status=$?
33697 grep -v '^ *+' conftest.er1 >conftest.err
33698 rm -f conftest.er1
33699 cat conftest.err >&5
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); } && {
33702 test -z "$ac_c_werror_flag" ||
33703 test ! -s conftest.err
33704 } && test -s conftest.$ac_objext; then
33705 ac_header_compiler=yes
33706 else
33707 echo "$as_me: failed program was:" >&5
33708 sed 's/^/| /' conftest.$ac_ext >&5
33710 ac_header_compiler=no
33713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33715 echo "${ECHO_T}$ac_header_compiler" >&6; }
33717 # Is the header present?
33718 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
33719 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
33720 cat >conftest.$ac_ext <<_ACEOF
33721 /* confdefs.h. */
33722 _ACEOF
33723 cat confdefs.h >>conftest.$ac_ext
33724 cat >>conftest.$ac_ext <<_ACEOF
33725 /* end confdefs.h. */
33726 #include <vorbis/codec.h>
33727 _ACEOF
33728 if { (ac_try="$ac_cpp conftest.$ac_ext"
33729 case "(($ac_try" in
33730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33731 *) ac_try_echo=$ac_try;;
33732 esac
33733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33735 ac_status=$?
33736 grep -v '^ *+' conftest.er1 >conftest.err
33737 rm -f conftest.er1
33738 cat conftest.err >&5
33739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33740 (exit $ac_status); } >/dev/null && {
33741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33742 test ! -s conftest.err
33743 }; then
33744 ac_header_preproc=yes
33745 else
33746 echo "$as_me: failed program was:" >&5
33747 sed 's/^/| /' conftest.$ac_ext >&5
33749 ac_header_preproc=no
33752 rm -f conftest.err conftest.$ac_ext
33753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33754 echo "${ECHO_T}$ac_header_preproc" >&6; }
33756 # So? What about this header?
33757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33758 yes:no: )
33759 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
33760 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33761 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
33762 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
33763 ac_header_preproc=yes
33765 no:yes:* )
33766 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
33767 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
33768 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
33769 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
33770 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
33771 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
33772 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
33773 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
33774 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
33775 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
33776 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
33777 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
33778 ( cat <<\_ASBOX
33779 ## ------------------------------- ##
33780 ## Report this to www.asterisk.org ##
33781 ## ------------------------------- ##
33782 _ASBOX
33783 ) | sed "s/^/$as_me: WARNING: /" >&2
33785 esac
33786 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
33787 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
33788 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33789 echo $ECHO_N "(cached) $ECHO_C" >&6
33790 else
33791 ac_cv_header_vorbis_codec_h=$ac_header_preproc
33793 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
33794 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
33797 if test $ac_cv_header_vorbis_codec_h = yes; then
33798 VORBIS_HEADER_FOUND=1
33799 else
33800 VORBIS_HEADER_FOUND=0
33806 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
33807 if test -n "${VORBIS_MANDATORY}" ;
33808 then
33809 { echo "$as_me:$LINENO: ***" >&5
33810 echo "$as_me: ***" >&6;}
33811 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
33812 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
33813 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
33814 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
33815 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
33816 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
33817 exit 1
33819 VORBIS_LIB=""
33820 VORBIS_INCLUDE=""
33821 PBX_VORBIS=0
33822 else
33823 PBX_VORBIS=1
33825 cat >>confdefs.h <<_ACEOF
33826 #define HAVE_VORBIS 1
33827 _ACEOF
33830 elif test -n "${VORBIS_MANDATORY}";
33831 then
33832 { echo "$as_me:$LINENO: ***" >&5
33833 echo "$as_me: ***" >&6;}
33834 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
33835 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
33836 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33837 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33838 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
33839 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
33840 exit 1
33845 ac_ext=cpp
33846 ac_cpp='$CXXCPP $CPPFLAGS'
33847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33852 if test "${USE_VPB}" != "no"; then
33853 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
33854 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
33855 saved_libs="${LIBS}"
33856 saved_cppflags="${CPPFLAGS}"
33857 if test "x${VPB_DIR}" != "x"; then
33858 if test -d ${VPB_DIR}/lib; then
33859 vpblibdir=${VPB_DIR}/lib
33860 else
33861 vpblibdir=${VPB_DIR}
33863 LIBS="${LIBS} -L${vpblibdir}"
33864 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
33866 LIBS="${LIBS} -lvpb -lpthread"
33867 cat >conftest.$ac_ext <<_ACEOF
33869 /* confdefs.h. */
33870 _ACEOF
33871 cat confdefs.h >>conftest.$ac_ext
33872 cat >>conftest.$ac_ext <<_ACEOF
33873 /* end confdefs.h. */
33874 #include <vpbapi.h>
33876 main ()
33878 int q = vpb_open(0,0);
33880 return 0;
33883 _ACEOF
33884 rm -f conftest.$ac_objext conftest$ac_exeext
33885 if { (ac_try="$ac_link"
33886 case "(($ac_try" in
33887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33888 *) ac_try_echo=$ac_try;;
33889 esac
33890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33891 (eval "$ac_link") 2>conftest.er1
33892 ac_status=$?
33893 grep -v '^ *+' conftest.er1 >conftest.err
33894 rm -f conftest.er1
33895 cat conftest.err >&5
33896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897 (exit $ac_status); } && {
33898 test -z "$ac_cxx_werror_flag" ||
33899 test ! -s conftest.err
33900 } && test -s conftest$ac_exeext &&
33901 $as_test_x conftest$ac_exeext; then
33902 { echo "$as_me:$LINENO: result: yes" >&5
33903 echo "${ECHO_T}yes" >&6; }
33904 ac_cv_lib_vpb_vpb_open="yes"
33906 else
33907 echo "$as_me: failed program was:" >&5
33908 sed 's/^/| /' conftest.$ac_ext >&5
33910 { echo "$as_me:$LINENO: result: no" >&5
33911 echo "${ECHO_T}no" >&6; }
33912 ac_cv_lib_vpb_vpb_open="no"
33917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33918 conftest$ac_exeext conftest.$ac_ext
33919 LIBS="${saved_libs}"
33920 CPPFLAGS="${saved_cppflags}"
33921 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
33922 VPB_LIB="-lvpb"
33923 if test "${VPB_DIR}" != ""; then
33924 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
33925 VPB_INCLUDE="-I${VPB_DIR}/include"
33927 PBX_VPB=1
33929 cat >>confdefs.h <<\_ACEOF
33930 #define HAVE_VPB 1
33931 _ACEOF
33933 elif test -n "${VPB_MANDATORY}"; then
33934 { echo "$as_me:$LINENO: ***" >&5
33935 echo "$as_me: ***" >&6;}
33936 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
33937 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
33938 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33939 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33940 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
33941 echo "$as_me: *** including --without-vpb." >&6;}
33942 exit 1
33946 ac_ext=c
33947 ac_cpp='$CPP $CPPFLAGS'
33948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33954 if test "${USE_ZLIB}" != "no"; then
33955 pbxlibdir=""
33956 if test "x${ZLIB_DIR}" != "x"; then
33957 if test -d ${ZLIB_DIR}/lib; then
33958 pbxlibdir="-L${ZLIB_DIR}/lib"
33959 else
33960 pbxlibdir="-L${ZLIB_DIR}"
33963 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
33964 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
33965 if test "${ac_cv_lib_z_compress+set}" = set; then
33966 echo $ECHO_N "(cached) $ECHO_C" >&6
33967 else
33968 ac_check_lib_save_LIBS=$LIBS
33969 LIBS="-lz ${pbxlibdir} $LIBS"
33970 cat >conftest.$ac_ext <<_ACEOF
33971 /* confdefs.h. */
33972 _ACEOF
33973 cat confdefs.h >>conftest.$ac_ext
33974 cat >>conftest.$ac_ext <<_ACEOF
33975 /* end confdefs.h. */
33977 /* Override any GCC internal prototype to avoid an error.
33978 Use char because int might match the return type of a GCC
33979 builtin and then its argument prototype would still apply. */
33980 #ifdef __cplusplus
33981 extern "C"
33982 #endif
33983 char compress ();
33985 main ()
33987 return compress ();
33989 return 0;
33991 _ACEOF
33992 rm -f conftest.$ac_objext conftest$ac_exeext
33993 if { (ac_try="$ac_link"
33994 case "(($ac_try" in
33995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33996 *) ac_try_echo=$ac_try;;
33997 esac
33998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33999 (eval "$ac_link") 2>conftest.er1
34000 ac_status=$?
34001 grep -v '^ *+' conftest.er1 >conftest.err
34002 rm -f conftest.er1
34003 cat conftest.err >&5
34004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005 (exit $ac_status); } && {
34006 test -z "$ac_c_werror_flag" ||
34007 test ! -s conftest.err
34008 } && test -s conftest$ac_exeext &&
34009 $as_test_x conftest$ac_exeext; then
34010 ac_cv_lib_z_compress=yes
34011 else
34012 echo "$as_me: failed program was:" >&5
34013 sed 's/^/| /' conftest.$ac_ext >&5
34015 ac_cv_lib_z_compress=no
34018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34019 conftest$ac_exeext conftest.$ac_ext
34020 LIBS=$ac_check_lib_save_LIBS
34022 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
34023 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
34024 if test $ac_cv_lib_z_compress = yes; then
34025 AST_ZLIB_FOUND=yes
34026 else
34027 AST_ZLIB_FOUND=no
34031 if test "${AST_ZLIB_FOUND}" = "yes"; then
34032 ZLIB_LIB="-lz "
34033 ZLIB_HEADER_FOUND="1"
34034 if test "x${ZLIB_DIR}" != "x"; then
34035 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
34036 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
34037 saved_cppflags="${CPPFLAGS}"
34038 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
34039 if test "xzlib.h" != "x" ; then
34040 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
34041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34042 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
34043 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
34044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34045 echo $ECHO_N "(cached) $ECHO_C" >&6
34047 ac_res=`eval echo '${'$as_ac_Header'}'`
34048 { echo "$as_me:$LINENO: result: $ac_res" >&5
34049 echo "${ECHO_T}$ac_res" >&6; }
34050 else
34051 # Is the header compilable?
34052 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
34053 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
34054 cat >conftest.$ac_ext <<_ACEOF
34055 /* confdefs.h. */
34056 _ACEOF
34057 cat confdefs.h >>conftest.$ac_ext
34058 cat >>conftest.$ac_ext <<_ACEOF
34059 /* end confdefs.h. */
34060 $ac_includes_default
34061 #include <${ZLIB_DIR}/include/zlib.h>
34062 _ACEOF
34063 rm -f conftest.$ac_objext
34064 if { (ac_try="$ac_compile"
34065 case "(($ac_try" in
34066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34067 *) ac_try_echo=$ac_try;;
34068 esac
34069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34070 (eval "$ac_compile") 2>conftest.er1
34071 ac_status=$?
34072 grep -v '^ *+' conftest.er1 >conftest.err
34073 rm -f conftest.er1
34074 cat conftest.err >&5
34075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076 (exit $ac_status); } && {
34077 test -z "$ac_c_werror_flag" ||
34078 test ! -s conftest.err
34079 } && test -s conftest.$ac_objext; then
34080 ac_header_compiler=yes
34081 else
34082 echo "$as_me: failed program was:" >&5
34083 sed 's/^/| /' conftest.$ac_ext >&5
34085 ac_header_compiler=no
34088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34090 echo "${ECHO_T}$ac_header_compiler" >&6; }
34092 # Is the header present?
34093 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
34094 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
34095 cat >conftest.$ac_ext <<_ACEOF
34096 /* confdefs.h. */
34097 _ACEOF
34098 cat confdefs.h >>conftest.$ac_ext
34099 cat >>conftest.$ac_ext <<_ACEOF
34100 /* end confdefs.h. */
34101 #include <${ZLIB_DIR}/include/zlib.h>
34102 _ACEOF
34103 if { (ac_try="$ac_cpp conftest.$ac_ext"
34104 case "(($ac_try" in
34105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34106 *) ac_try_echo=$ac_try;;
34107 esac
34108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34110 ac_status=$?
34111 grep -v '^ *+' conftest.er1 >conftest.err
34112 rm -f conftest.er1
34113 cat conftest.err >&5
34114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34115 (exit $ac_status); } >/dev/null && {
34116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34117 test ! -s conftest.err
34118 }; then
34119 ac_header_preproc=yes
34120 else
34121 echo "$as_me: failed program was:" >&5
34122 sed 's/^/| /' conftest.$ac_ext >&5
34124 ac_header_preproc=no
34127 rm -f conftest.err conftest.$ac_ext
34128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34129 echo "${ECHO_T}$ac_header_preproc" >&6; }
34131 # So? What about this header?
34132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34133 yes:no: )
34134 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34135 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34136 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
34137 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
34138 ac_header_preproc=yes
34140 no:yes:* )
34141 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
34142 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
34143 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
34144 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
34145 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
34146 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
34147 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
34148 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34149 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
34150 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
34151 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
34152 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
34153 ( cat <<\_ASBOX
34154 ## ------------------------------- ##
34155 ## Report this to www.asterisk.org ##
34156 ## ------------------------------- ##
34157 _ASBOX
34158 ) | sed "s/^/$as_me: WARNING: /" >&2
34160 esac
34161 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
34162 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
34163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34164 echo $ECHO_N "(cached) $ECHO_C" >&6
34165 else
34166 eval "$as_ac_Header=\$ac_header_preproc"
34168 ac_res=`eval echo '${'$as_ac_Header'}'`
34169 { echo "$as_me:$LINENO: result: $ac_res" >&5
34170 echo "${ECHO_T}$ac_res" >&6; }
34173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34174 ZLIB_HEADER_FOUND=1
34175 else
34176 ZLIB_HEADER_FOUND=0
34181 CPPFLAGS="${saved_cppflags}"
34182 else
34183 if test "xzlib.h" != "x" ; then
34184 if test "${ac_cv_header_zlib_h+set}" = set; then
34185 { echo "$as_me:$LINENO: checking for zlib.h" >&5
34186 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
34187 if test "${ac_cv_header_zlib_h+set}" = set; then
34188 echo $ECHO_N "(cached) $ECHO_C" >&6
34190 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
34191 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
34192 else
34193 # Is the header compilable?
34194 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
34195 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
34196 cat >conftest.$ac_ext <<_ACEOF
34197 /* confdefs.h. */
34198 _ACEOF
34199 cat confdefs.h >>conftest.$ac_ext
34200 cat >>conftest.$ac_ext <<_ACEOF
34201 /* end confdefs.h. */
34202 $ac_includes_default
34203 #include <zlib.h>
34204 _ACEOF
34205 rm -f conftest.$ac_objext
34206 if { (ac_try="$ac_compile"
34207 case "(($ac_try" in
34208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34209 *) ac_try_echo=$ac_try;;
34210 esac
34211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34212 (eval "$ac_compile") 2>conftest.er1
34213 ac_status=$?
34214 grep -v '^ *+' conftest.er1 >conftest.err
34215 rm -f conftest.er1
34216 cat conftest.err >&5
34217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218 (exit $ac_status); } && {
34219 test -z "$ac_c_werror_flag" ||
34220 test ! -s conftest.err
34221 } && test -s conftest.$ac_objext; then
34222 ac_header_compiler=yes
34223 else
34224 echo "$as_me: failed program was:" >&5
34225 sed 's/^/| /' conftest.$ac_ext >&5
34227 ac_header_compiler=no
34230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34232 echo "${ECHO_T}$ac_header_compiler" >&6; }
34234 # Is the header present?
34235 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
34236 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
34237 cat >conftest.$ac_ext <<_ACEOF
34238 /* confdefs.h. */
34239 _ACEOF
34240 cat confdefs.h >>conftest.$ac_ext
34241 cat >>conftest.$ac_ext <<_ACEOF
34242 /* end confdefs.h. */
34243 #include <zlib.h>
34244 _ACEOF
34245 if { (ac_try="$ac_cpp conftest.$ac_ext"
34246 case "(($ac_try" in
34247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34248 *) ac_try_echo=$ac_try;;
34249 esac
34250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34252 ac_status=$?
34253 grep -v '^ *+' conftest.er1 >conftest.err
34254 rm -f conftest.er1
34255 cat conftest.err >&5
34256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257 (exit $ac_status); } >/dev/null && {
34258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34259 test ! -s conftest.err
34260 }; then
34261 ac_header_preproc=yes
34262 else
34263 echo "$as_me: failed program was:" >&5
34264 sed 's/^/| /' conftest.$ac_ext >&5
34266 ac_header_preproc=no
34269 rm -f conftest.err conftest.$ac_ext
34270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34271 echo "${ECHO_T}$ac_header_preproc" >&6; }
34273 # So? What about this header?
34274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34275 yes:no: )
34276 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34277 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34278 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
34279 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
34280 ac_header_preproc=yes
34282 no:yes:* )
34283 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
34284 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
34285 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
34286 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
34287 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
34288 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
34289 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
34290 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34291 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
34292 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
34293 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
34294 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
34295 ( cat <<\_ASBOX
34296 ## ------------------------------- ##
34297 ## Report this to www.asterisk.org ##
34298 ## ------------------------------- ##
34299 _ASBOX
34300 ) | sed "s/^/$as_me: WARNING: /" >&2
34302 esac
34303 { echo "$as_me:$LINENO: checking for zlib.h" >&5
34304 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
34305 if test "${ac_cv_header_zlib_h+set}" = set; then
34306 echo $ECHO_N "(cached) $ECHO_C" >&6
34307 else
34308 ac_cv_header_zlib_h=$ac_header_preproc
34310 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
34311 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
34314 if test $ac_cv_header_zlib_h = yes; then
34315 ZLIB_HEADER_FOUND=1
34316 else
34317 ZLIB_HEADER_FOUND=0
34323 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
34324 if test -n "${ZLIB_MANDATORY}" ;
34325 then
34326 { echo "$as_me:$LINENO: ***" >&5
34327 echo "$as_me: ***" >&6;}
34328 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
34329 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
34330 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
34331 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
34332 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
34333 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
34334 exit 1
34336 ZLIB_LIB=""
34337 ZLIB_INCLUDE=""
34338 PBX_ZLIB=0
34339 else
34340 PBX_ZLIB=1
34342 cat >>confdefs.h <<_ACEOF
34343 #define HAVE_ZLIB 1
34344 _ACEOF
34347 elif test -n "${ZLIB_MANDATORY}";
34348 then
34349 { echo "$as_me:$LINENO: ***" >&5
34350 echo "$as_me: ***" >&6;}
34351 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
34352 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
34353 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34354 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34355 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
34356 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
34357 exit 1
34362 if test "${USE_ZAPTEL}" != "no"; then
34363 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
34364 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
34365 saved_cppflags="${CPPFLAGS}"
34366 if test "x${ZAPTEL_DIR}" != "x"; then
34367 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34369 cat >conftest.$ac_ext <<_ACEOF
34371 /* confdefs.h. */
34372 _ACEOF
34373 cat confdefs.h >>conftest.$ac_ext
34374 cat >>conftest.$ac_ext <<_ACEOF
34375 /* end confdefs.h. */
34376 #include <zaptel/zaptel.h>
34378 main ()
34380 int foo = ZT_DIAL_OP_CANCEL;
34382 return 0;
34385 _ACEOF
34386 rm -f conftest.$ac_objext
34387 if { (ac_try="$ac_compile"
34388 case "(($ac_try" in
34389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34390 *) ac_try_echo=$ac_try;;
34391 esac
34392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34393 (eval "$ac_compile") 2>conftest.er1
34394 ac_status=$?
34395 grep -v '^ *+' conftest.er1 >conftest.err
34396 rm -f conftest.er1
34397 cat conftest.err >&5
34398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399 (exit $ac_status); } && {
34400 test -z "$ac_c_werror_flag" ||
34401 test ! -s conftest.err
34402 } && test -s conftest.$ac_objext; then
34403 { echo "$as_me:$LINENO: result: yes" >&5
34404 echo "${ECHO_T}yes" >&6; }
34405 ac_cv_zaptel_h="yes"
34407 else
34408 echo "$as_me: failed program was:" >&5
34409 sed 's/^/| /' conftest.$ac_ext >&5
34411 { echo "$as_me:$LINENO: result: no" >&5
34412 echo "${ECHO_T}no" >&6; }
34413 ac_cv_zaptel_h="no"
34418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34419 CPPFLAGS="${saved_cppflags}"
34420 if test "${ac_cv_zaptel_h}" = "yes"; then
34421 if test "${ZAPTEL_DIR}" != ""; then
34422 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
34424 PBX_ZAPTEL=1
34426 cat >>confdefs.h <<\_ACEOF
34427 #define HAVE_ZAPTEL 1
34428 _ACEOF
34430 elif test -n "${ZAPTEL_MANDATORY}";
34431 then
34432 { echo "$as_me:$LINENO: ***" >&5
34433 echo "$as_me: ***" >&6;}
34434 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
34435 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
34436 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34437 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34438 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
34439 echo "$as_me: *** including --without-zaptel." >&6;}
34440 exit 1
34444 if test "${PBX_ZAPTEL}" = 1; then
34445 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
34446 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
34447 saved_cppflags="${CPPFLAGS}"
34448 if test "x${ZAPTEL_DIR}" != "x"; then
34449 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34451 cat >conftest.$ac_ext <<_ACEOF
34453 /* confdefs.h. */
34454 _ACEOF
34455 cat confdefs.h >>conftest.$ac_ext
34456 cat >>conftest.$ac_ext <<_ACEOF
34457 /* end confdefs.h. */
34458 #include <zaptel/zaptel.h>
34460 main ()
34462 int foo = ZT_EVENT_REMOVED;
34464 return 0;
34467 _ACEOF
34468 rm -f conftest.$ac_objext
34469 if { (ac_try="$ac_compile"
34470 case "(($ac_try" in
34471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34472 *) ac_try_echo=$ac_try;;
34473 esac
34474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34475 (eval "$ac_compile") 2>conftest.er1
34476 ac_status=$?
34477 grep -v '^ *+' conftest.er1 >conftest.err
34478 rm -f conftest.er1
34479 cat conftest.err >&5
34480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481 (exit $ac_status); } && {
34482 test -z "$ac_c_werror_flag" ||
34483 test ! -s conftest.err
34484 } && test -s conftest.$ac_objext; then
34485 { echo "$as_me:$LINENO: result: yes" >&5
34486 echo "${ECHO_T}yes" >&6; }
34487 ac_cv_zaptel_vldtmf="yes"
34489 else
34490 echo "$as_me: failed program was:" >&5
34491 sed 's/^/| /' conftest.$ac_ext >&5
34493 { echo "$as_me:$LINENO: result: no" >&5
34494 echo "${ECHO_T}no" >&6; }
34495 ac_cv_zaptel_vldtmf="no"
34500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34501 CPPFLAGS="${saved_cppflags}"
34502 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
34503 PBX_ZAPTEL_VLDTMF=1
34505 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
34506 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
34507 saved_cppflags="${CPPFLAGS}"
34508 if test "x${ZAPTEL_DIR}" != "x"; then
34509 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34511 cat >conftest.$ac_ext <<_ACEOF
34513 /* confdefs.h. */
34514 _ACEOF
34515 cat confdefs.h >>conftest.$ac_ext
34516 cat >>conftest.$ac_ext <<_ACEOF
34517 /* end confdefs.h. */
34518 #include <zaptel/zaptel.h>
34520 main ()
34522 int foo = ZT_TCOP_ALLOCATE;
34524 return 0;
34527 _ACEOF
34528 rm -f conftest.$ac_objext
34529 if { (ac_try="$ac_compile"
34530 case "(($ac_try" in
34531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34532 *) ac_try_echo=$ac_try;;
34533 esac
34534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34535 (eval "$ac_compile") 2>conftest.er1
34536 ac_status=$?
34537 grep -v '^ *+' conftest.er1 >conftest.err
34538 rm -f conftest.er1
34539 cat conftest.err >&5
34540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34541 (exit $ac_status); } && {
34542 test -z "$ac_c_werror_flag" ||
34543 test ! -s conftest.err
34544 } && test -s conftest.$ac_objext; then
34545 { echo "$as_me:$LINENO: result: yes" >&5
34546 echo "${ECHO_T}yes" >&6; }
34547 ac_cv_zaptel_transcode="yes"
34549 else
34550 echo "$as_me: failed program was:" >&5
34551 sed 's/^/| /' conftest.$ac_ext >&5
34553 { echo "$as_me:$LINENO: result: no" >&5
34554 echo "${ECHO_T}no" >&6; }
34555 ac_cv_zaptel_transcode="no"
34560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34561 CPPFLAGS="${saved_cppflags}"
34562 if test "${ac_cv_zaptel_transcode}" = "yes"; then
34563 PBX_ZAPTEL_TRANSCODE=1
34569 EDITLINE_LIB=""
34570 if test "x$TERMCAP_LIB" != "x" ; then
34571 EDITLINE_LIB="$TERMCAP_LIB"
34572 elif test "x$TINFO_LIB" != "x" ; then
34573 EDITLINE_LIB="$TINFO_LIB"
34574 elif test "x$CURSES_LIB" != "x" ; then
34575 EDITLINE_LIB="$CURSES_LIB"
34576 elif test "x$NCURSES_LIB" != "x" ; then
34577 EDITLINE_LIB="$NCURSES_LIB"
34578 else
34579 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
34580 echo "$as_me: error: *** termcap support not found" >&2;}
34581 { (exit 1); exit 1; }; }
34585 if test "${ac_cv_header_h323_h+set}" = set; then
34586 { echo "$as_me:$LINENO: checking for h323.h" >&5
34587 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
34588 if test "${ac_cv_header_h323_h+set}" = set; then
34589 echo $ECHO_N "(cached) $ECHO_C" >&6
34591 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
34592 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
34593 else
34594 # Is the header compilable?
34595 { echo "$as_me:$LINENO: checking h323.h usability" >&5
34596 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
34597 cat >conftest.$ac_ext <<_ACEOF
34598 /* confdefs.h. */
34599 _ACEOF
34600 cat confdefs.h >>conftest.$ac_ext
34601 cat >>conftest.$ac_ext <<_ACEOF
34602 /* end confdefs.h. */
34603 $ac_includes_default
34604 #include <h323.h>
34605 _ACEOF
34606 rm -f conftest.$ac_objext
34607 if { (ac_try="$ac_compile"
34608 case "(($ac_try" in
34609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34610 *) ac_try_echo=$ac_try;;
34611 esac
34612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34613 (eval "$ac_compile") 2>conftest.er1
34614 ac_status=$?
34615 grep -v '^ *+' conftest.er1 >conftest.err
34616 rm -f conftest.er1
34617 cat conftest.err >&5
34618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619 (exit $ac_status); } && {
34620 test -z "$ac_c_werror_flag" ||
34621 test ! -s conftest.err
34622 } && test -s conftest.$ac_objext; then
34623 ac_header_compiler=yes
34624 else
34625 echo "$as_me: failed program was:" >&5
34626 sed 's/^/| /' conftest.$ac_ext >&5
34628 ac_header_compiler=no
34631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34633 echo "${ECHO_T}$ac_header_compiler" >&6; }
34635 # Is the header present?
34636 { echo "$as_me:$LINENO: checking h323.h presence" >&5
34637 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
34638 cat >conftest.$ac_ext <<_ACEOF
34639 /* confdefs.h. */
34640 _ACEOF
34641 cat confdefs.h >>conftest.$ac_ext
34642 cat >>conftest.$ac_ext <<_ACEOF
34643 /* end confdefs.h. */
34644 #include <h323.h>
34645 _ACEOF
34646 if { (ac_try="$ac_cpp conftest.$ac_ext"
34647 case "(($ac_try" in
34648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34649 *) ac_try_echo=$ac_try;;
34650 esac
34651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34653 ac_status=$?
34654 grep -v '^ *+' conftest.er1 >conftest.err
34655 rm -f conftest.er1
34656 cat conftest.err >&5
34657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658 (exit $ac_status); } >/dev/null && {
34659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34660 test ! -s conftest.err
34661 }; then
34662 ac_header_preproc=yes
34663 else
34664 echo "$as_me: failed program was:" >&5
34665 sed 's/^/| /' conftest.$ac_ext >&5
34667 ac_header_preproc=no
34670 rm -f conftest.err conftest.$ac_ext
34671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34672 echo "${ECHO_T}$ac_header_preproc" >&6; }
34674 # So? What about this header?
34675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34676 yes:no: )
34677 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
34678 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34679 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
34680 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
34681 ac_header_preproc=yes
34683 no:yes:* )
34684 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
34685 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
34686 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
34687 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
34688 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
34689 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
34690 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
34691 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
34692 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
34693 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
34694 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
34695 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
34696 ( cat <<\_ASBOX
34697 ## ------------------------------- ##
34698 ## Report this to www.asterisk.org ##
34699 ## ------------------------------- ##
34700 _ASBOX
34701 ) | sed "s/^/$as_me: WARNING: /" >&2
34703 esac
34704 { echo "$as_me:$LINENO: checking for h323.h" >&5
34705 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
34706 if test "${ac_cv_header_h323_h+set}" = set; then
34707 echo $ECHO_N "(cached) $ECHO_C" >&6
34708 else
34709 ac_cv_header_h323_h=$ac_header_preproc
34711 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
34712 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
34715 if test $ac_cv_header_h323_h = yes; then
34716 PBX_H323=1
34717 else
34718 PBX_H323=0
34724 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34725 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
34726 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
34727 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34728 echo $ECHO_N "(cached) $ECHO_C" >&6
34730 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
34731 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
34732 else
34733 # Is the header compilable?
34734 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
34735 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
34736 cat >conftest.$ac_ext <<_ACEOF
34737 /* confdefs.h. */
34738 _ACEOF
34739 cat confdefs.h >>conftest.$ac_ext
34740 cat >>conftest.$ac_ext <<_ACEOF
34741 /* end confdefs.h. */
34742 $ac_includes_default
34743 #include <linux/compiler.h>
34744 _ACEOF
34745 rm -f conftest.$ac_objext
34746 if { (ac_try="$ac_compile"
34747 case "(($ac_try" in
34748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34749 *) ac_try_echo=$ac_try;;
34750 esac
34751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34752 (eval "$ac_compile") 2>conftest.er1
34753 ac_status=$?
34754 grep -v '^ *+' conftest.er1 >conftest.err
34755 rm -f conftest.er1
34756 cat conftest.err >&5
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); } && {
34759 test -z "$ac_c_werror_flag" ||
34760 test ! -s conftest.err
34761 } && test -s conftest.$ac_objext; then
34762 ac_header_compiler=yes
34763 else
34764 echo "$as_me: failed program was:" >&5
34765 sed 's/^/| /' conftest.$ac_ext >&5
34767 ac_header_compiler=no
34770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34772 echo "${ECHO_T}$ac_header_compiler" >&6; }
34774 # Is the header present?
34775 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
34776 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
34777 cat >conftest.$ac_ext <<_ACEOF
34778 /* confdefs.h. */
34779 _ACEOF
34780 cat confdefs.h >>conftest.$ac_ext
34781 cat >>conftest.$ac_ext <<_ACEOF
34782 /* end confdefs.h. */
34783 #include <linux/compiler.h>
34784 _ACEOF
34785 if { (ac_try="$ac_cpp conftest.$ac_ext"
34786 case "(($ac_try" in
34787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34788 *) ac_try_echo=$ac_try;;
34789 esac
34790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34792 ac_status=$?
34793 grep -v '^ *+' conftest.er1 >conftest.err
34794 rm -f conftest.er1
34795 cat conftest.err >&5
34796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797 (exit $ac_status); } >/dev/null && {
34798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34799 test ! -s conftest.err
34800 }; then
34801 ac_header_preproc=yes
34802 else
34803 echo "$as_me: failed program was:" >&5
34804 sed 's/^/| /' conftest.$ac_ext >&5
34806 ac_header_preproc=no
34809 rm -f conftest.err conftest.$ac_ext
34810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34811 echo "${ECHO_T}$ac_header_preproc" >&6; }
34813 # So? What about this header?
34814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34815 yes:no: )
34816 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
34817 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34818 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
34819 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
34820 ac_header_preproc=yes
34822 no:yes:* )
34823 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
34824 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
34825 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
34826 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
34827 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
34828 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
34829 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
34830 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
34831 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
34832 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
34833 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
34834 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
34835 ( cat <<\_ASBOX
34836 ## ------------------------------- ##
34837 ## Report this to www.asterisk.org ##
34838 ## ------------------------------- ##
34839 _ASBOX
34840 ) | sed "s/^/$as_me: WARNING: /" >&2
34842 esac
34843 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
34844 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
34845 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34846 echo $ECHO_N "(cached) $ECHO_C" >&6
34847 else
34848 ac_cv_header_linux_compiler_h=$ac_header_preproc
34850 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
34851 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
34854 if test $ac_cv_header_linux_compiler_h = yes; then
34856 cat >>confdefs.h <<_ACEOF
34857 #define HAVE_LINUX_COMPILER_H 1
34858 _ACEOF
34864 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
34865 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
34866 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
34867 echo $ECHO_N "(cached) $ECHO_C" >&6
34868 else
34869 cat >conftest.$ac_ext <<_ACEOF
34870 /* confdefs.h. */
34871 _ACEOF
34872 cat confdefs.h >>conftest.$ac_ext
34873 cat >>conftest.$ac_ext <<_ACEOF
34874 /* end confdefs.h. */
34876 #include <linux/version.h>
34877 #ifdef HAVE_LINUX_COMPILER_H
34878 #include <linux/compiler.h>
34879 #endif
34882 #include <linux/ixjuser.h>
34883 _ACEOF
34884 rm -f conftest.$ac_objext
34885 if { (ac_try="$ac_compile"
34886 case "(($ac_try" in
34887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34888 *) ac_try_echo=$ac_try;;
34889 esac
34890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34891 (eval "$ac_compile") 2>conftest.er1
34892 ac_status=$?
34893 grep -v '^ *+' conftest.er1 >conftest.err
34894 rm -f conftest.er1
34895 cat conftest.err >&5
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); } && {
34898 test -z "$ac_c_werror_flag" ||
34899 test ! -s conftest.err
34900 } && test -s conftest.$ac_objext; then
34901 ac_cv_header_linux_ixjuser_h=yes
34902 else
34903 echo "$as_me: failed program was:" >&5
34904 sed 's/^/| /' conftest.$ac_ext >&5
34906 ac_cv_header_linux_ixjuser_h=no
34909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34911 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
34912 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
34913 if test $ac_cv_header_linux_ixjuser_h = yes; then
34914 PBX_IXJUSER=1
34915 else
34916 PBX_IXJUSER=0
34922 if test "${cross_compiling}" = "no";
34923 then
34924 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
34925 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
34926 if test "${ac_cv_file__sbin_launchd+set}" = set; then
34927 echo $ECHO_N "(cached) $ECHO_C" >&6
34928 else
34929 test "$cross_compiling" = yes &&
34930 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34931 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34932 { (exit 1); exit 1; }; }
34933 if test -r "/sbin/launchd"; then
34934 ac_cv_file__sbin_launchd=yes
34935 else
34936 ac_cv_file__sbin_launchd=no
34939 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
34940 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
34941 if test $ac_cv_file__sbin_launchd = yes; then
34943 cat >>confdefs.h <<\_ACEOF
34944 #define HAVE_SBIN_LAUNCHD 1
34945 _ACEOF
34951 PBX_GTK=0
34952 if test -n "$ac_tool_prefix"; then
34953 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
34954 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
34955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34957 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
34958 echo $ECHO_N "(cached) $ECHO_C" >&6
34959 else
34960 if test -n "$GTKCONFIG"; then
34961 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
34962 else
34963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34964 for as_dir in $PATH
34966 IFS=$as_save_IFS
34967 test -z "$as_dir" && as_dir=.
34968 for ac_exec_ext in '' $ac_executable_extensions; do
34969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34970 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
34971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34972 break 2
34974 done
34975 done
34976 IFS=$as_save_IFS
34980 GTKCONFIG=$ac_cv_prog_GTKCONFIG
34981 if test -n "$GTKCONFIG"; then
34982 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
34983 echo "${ECHO_T}$GTKCONFIG" >&6; }
34984 else
34985 { echo "$as_me:$LINENO: result: no" >&5
34986 echo "${ECHO_T}no" >&6; }
34991 if test -z "$ac_cv_prog_GTKCONFIG"; then
34992 ac_ct_GTKCONFIG=$GTKCONFIG
34993 # Extract the first word of "gtk-config", so it can be a program name with args.
34994 set dummy gtk-config; ac_word=$2
34995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34997 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
34998 echo $ECHO_N "(cached) $ECHO_C" >&6
34999 else
35000 if test -n "$ac_ct_GTKCONFIG"; then
35001 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
35002 else
35003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35004 for as_dir in $PATH
35006 IFS=$as_save_IFS
35007 test -z "$as_dir" && as_dir=.
35008 for ac_exec_ext in '' $ac_executable_extensions; do
35009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35010 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
35011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35012 break 2
35014 done
35015 done
35016 IFS=$as_save_IFS
35020 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
35021 if test -n "$ac_ct_GTKCONFIG"; then
35022 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
35023 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
35024 else
35025 { echo "$as_me:$LINENO: result: no" >&5
35026 echo "${ECHO_T}no" >&6; }
35029 if test "x$ac_ct_GTKCONFIG" = x; then
35030 GTKCONFIG="No"
35031 else
35032 case $cross_compiling:$ac_tool_warned in
35033 yes:)
35034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35035 whose name does not start with the host triplet. If you think this
35036 configuration is useful to you, please write to autoconf@gnu.org." >&5
35037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35038 whose name does not start with the host triplet. If you think this
35039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35040 ac_tool_warned=yes ;;
35041 esac
35042 GTKCONFIG=$ac_ct_GTKCONFIG
35044 else
35045 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
35048 if test ! "x${GTKCONFIG}" = xNo; then
35049 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
35050 GTK_LIB=$(${GTKCONFIG} --libs gthread)
35051 PBX_GTK=1
35053 cat >>confdefs.h <<\_ACEOF
35054 #define HAVE_GTK 1
35055 _ACEOF
35062 PBX_GTK2=0
35063 if test -n "$ac_tool_prefix"; then
35064 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35065 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35068 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
35069 echo $ECHO_N "(cached) $ECHO_C" >&6
35070 else
35071 if test -n "$PKGCONFIG"; then
35072 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
35073 else
35074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35075 for as_dir in $PATH
35077 IFS=$as_save_IFS
35078 test -z "$as_dir" && as_dir=.
35079 for ac_exec_ext in '' $ac_executable_extensions; do
35080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35081 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
35082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35083 break 2
35085 done
35086 done
35087 IFS=$as_save_IFS
35091 PKGCONFIG=$ac_cv_prog_PKGCONFIG
35092 if test -n "$PKGCONFIG"; then
35093 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
35094 echo "${ECHO_T}$PKGCONFIG" >&6; }
35095 else
35096 { echo "$as_me:$LINENO: result: no" >&5
35097 echo "${ECHO_T}no" >&6; }
35102 if test -z "$ac_cv_prog_PKGCONFIG"; then
35103 ac_ct_PKGCONFIG=$PKGCONFIG
35104 # Extract the first word of "pkg-config", so it can be a program name with args.
35105 set dummy pkg-config; ac_word=$2
35106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35108 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
35109 echo $ECHO_N "(cached) $ECHO_C" >&6
35110 else
35111 if test -n "$ac_ct_PKGCONFIG"; then
35112 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
35113 else
35114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35115 for as_dir in $PATH
35117 IFS=$as_save_IFS
35118 test -z "$as_dir" && as_dir=.
35119 for ac_exec_ext in '' $ac_executable_extensions; do
35120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35121 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
35122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35123 break 2
35125 done
35126 done
35127 IFS=$as_save_IFS
35131 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
35132 if test -n "$ac_ct_PKGCONFIG"; then
35133 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
35134 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
35135 else
35136 { echo "$as_me:$LINENO: result: no" >&5
35137 echo "${ECHO_T}no" >&6; }
35140 if test "x$ac_ct_PKGCONFIG" = x; then
35141 PKGCONFIG="No"
35142 else
35143 case $cross_compiling:$ac_tool_warned in
35144 yes:)
35145 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35146 whose name does not start with the host triplet. If you think this
35147 configuration is useful to you, please write to autoconf@gnu.org." >&5
35148 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35149 whose name does not start with the host triplet. If you think this
35150 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35151 ac_tool_warned=yes ;;
35152 esac
35153 PKGCONFIG=$ac_ct_PKGCONFIG
35155 else
35156 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
35159 if test ! "x${PKGCONFIG}" = xNo; then
35160 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
35161 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
35162 PBX_GTK2=1
35164 cat >>confdefs.h <<\_ACEOF
35165 #define HAVE_GTK2 1
35166 _ACEOF
35173 if test "${USE_CURL}" != "no"; then
35174 if test -n "$ac_tool_prefix"; then
35175 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
35176 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
35177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35179 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
35180 echo $ECHO_N "(cached) $ECHO_C" >&6
35181 else
35182 case $CURL_CONFIG in
35183 [\\/]* | ?:[\\/]*)
35184 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
35187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35188 for as_dir in $PATH
35190 IFS=$as_save_IFS
35191 test -z "$as_dir" && as_dir=.
35192 for ac_exec_ext in '' $ac_executable_extensions; do
35193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35194 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35196 break 2
35198 done
35199 done
35200 IFS=$as_save_IFS
35203 esac
35205 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
35206 if test -n "$CURL_CONFIG"; then
35207 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
35208 echo "${ECHO_T}$CURL_CONFIG" >&6; }
35209 else
35210 { echo "$as_me:$LINENO: result: no" >&5
35211 echo "${ECHO_T}no" >&6; }
35216 if test -z "$ac_cv_path_CURL_CONFIG"; then
35217 ac_pt_CURL_CONFIG=$CURL_CONFIG
35218 # Extract the first word of "curl-config", so it can be a program name with args.
35219 set dummy curl-config; ac_word=$2
35220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35222 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
35223 echo $ECHO_N "(cached) $ECHO_C" >&6
35224 else
35225 case $ac_pt_CURL_CONFIG in
35226 [\\/]* | ?:[\\/]*)
35227 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
35230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35231 for as_dir in $PATH
35233 IFS=$as_save_IFS
35234 test -z "$as_dir" && as_dir=.
35235 for ac_exec_ext in '' $ac_executable_extensions; do
35236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35237 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35239 break 2
35241 done
35242 done
35243 IFS=$as_save_IFS
35246 esac
35248 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
35249 if test -n "$ac_pt_CURL_CONFIG"; then
35250 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
35251 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
35252 else
35253 { echo "$as_me:$LINENO: result: no" >&5
35254 echo "${ECHO_T}no" >&6; }
35257 if test "x$ac_pt_CURL_CONFIG" = x; then
35258 CURL_CONFIG="No"
35259 else
35260 case $cross_compiling:$ac_tool_warned in
35261 yes:)
35262 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35263 whose name does not start with the host triplet. If you think this
35264 configuration is useful to you, please write to autoconf@gnu.org." >&5
35265 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35266 whose name does not start with the host triplet. If you think this
35267 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35268 ac_tool_warned=yes ;;
35269 esac
35270 CURL_CONFIG=$ac_pt_CURL_CONFIG
35272 else
35273 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
35276 if test ! x"${CURL_CONFIG}" = xNo; then
35277 # check for version
35278 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
35279 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
35280 CURL_LIB=$(${CURL_CONFIG} --libs)
35282 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
35283 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
35284 saved_cppflags="${CPPFLAGS}"
35285 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
35286 cat >conftest.$ac_ext <<_ACEOF
35287 /* confdefs.h. */
35288 _ACEOF
35289 cat confdefs.h >>conftest.$ac_ext
35290 cat >>conftest.$ac_ext <<_ACEOF
35291 /* end confdefs.h. */
35292 #include <curl/curl.h>
35294 main ()
35296 curl_version();
35298 return 0;
35301 _ACEOF
35302 rm -f conftest.$ac_objext
35303 if { (ac_try="$ac_compile"
35304 case "(($ac_try" in
35305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35306 *) ac_try_echo=$ac_try;;
35307 esac
35308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35309 (eval "$ac_compile") 2>conftest.er1
35310 ac_status=$?
35311 grep -v '^ *+' conftest.er1 >conftest.err
35312 rm -f conftest.er1
35313 cat conftest.err >&5
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); } && {
35316 test -z "$ac_c_werror_flag" ||
35317 test ! -s conftest.err
35318 } && test -s conftest.$ac_objext; then
35320 { echo "$as_me:$LINENO: result: yes" >&5
35321 echo "${ECHO_T}yes" >&6; }
35322 ac_cv_curl_h="yes"
35324 else
35325 echo "$as_me: failed program was:" >&5
35326 sed 's/^/| /' conftest.$ac_ext >&5
35329 { echo "$as_me:$LINENO: result: no" >&5
35330 echo "${ECHO_T}no" >&6; }
35331 ac_cv_curl_h="no"
35336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35337 CPPFLAGS="${saved_cppflags}"
35338 if test "${ac_cv_curl_h}" = "yes"; then
35339 PBX_CURL=1
35341 cat >>confdefs.h <<\_ACEOF
35342 #define HAVE_CURL 1
35343 _ACEOF
35350 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
35352 cat >confcache <<\_ACEOF
35353 # This file is a shell script that caches the results of configure
35354 # tests run on this system so they can be shared between configure
35355 # scripts and configure runs, see configure's option --config-cache.
35356 # It is not useful on other systems. If it contains results you don't
35357 # want to keep, you may remove or edit it.
35359 # config.status only pays attention to the cache file if you give it
35360 # the --recheck option to rerun configure.
35362 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35363 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35364 # following values.
35366 _ACEOF
35368 # The following way of writing the cache mishandles newlines in values,
35369 # but we know of no workaround that is simple, portable, and efficient.
35370 # So, we kill variables containing newlines.
35371 # Ultrix sh set writes to stderr and can't be redirected directly,
35372 # and sets the high bit in the cache file unless we assign to the vars.
35374 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35375 eval ac_val=\$$ac_var
35376 case $ac_val in #(
35377 *${as_nl}*)
35378 case $ac_var in #(
35379 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35380 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35381 esac
35382 case $ac_var in #(
35383 _ | IFS | as_nl) ;; #(
35384 *) $as_unset $ac_var ;;
35385 esac ;;
35386 esac
35387 done
35389 (set) 2>&1 |
35390 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35391 *${as_nl}ac_space=\ *)
35392 # `set' does not quote correctly, so add quotes (double-quote
35393 # substitution turns \\\\ into \\, and sed turns \\ into \).
35394 sed -n \
35395 "s/'/'\\\\''/g;
35396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35397 ;; #(
35399 # `set' quotes correctly as required by POSIX, so do not add quotes.
35400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35402 esac |
35403 sort
35405 sed '
35406 /^ac_cv_env_/b end
35407 t clear
35408 :clear
35409 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35410 t end
35411 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35412 :end' >>confcache
35413 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35414 if test -w "$cache_file"; then
35415 test "x$cache_file" != "x/dev/null" &&
35416 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35417 echo "$as_me: updating cache $cache_file" >&6;}
35418 cat confcache >$cache_file
35419 else
35420 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35421 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35424 rm -f confcache
35426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35427 # Let make expand exec_prefix.
35428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35430 DEFS=-DHAVE_CONFIG_H
35432 ac_libobjs=
35433 ac_ltlibobjs=
35434 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35435 # 1. Remove the extension, and $U if already installed.
35436 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35437 ac_i=`echo "$ac_i" | sed "$ac_script"`
35438 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35439 # will be set to the directory where LIBOBJS objects are built.
35440 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35441 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35442 done
35443 LIBOBJS=$ac_libobjs
35445 LTLIBOBJS=$ac_ltlibobjs
35449 : ${CONFIG_STATUS=./config.status}
35450 ac_clean_files_save=$ac_clean_files
35451 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35452 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35453 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35454 cat >$CONFIG_STATUS <<_ACEOF
35455 #! $SHELL
35456 # Generated by $as_me.
35457 # Run this file to recreate the current configuration.
35458 # Compiler output produced by configure, useful for debugging
35459 # configure, is in config.log if it exists.
35461 debug=false
35462 ac_cs_recheck=false
35463 ac_cs_silent=false
35464 SHELL=\${CONFIG_SHELL-$SHELL}
35465 _ACEOF
35467 cat >>$CONFIG_STATUS <<\_ACEOF
35468 ## --------------------- ##
35469 ## M4sh Initialization. ##
35470 ## --------------------- ##
35472 # Be more Bourne compatible
35473 DUALCASE=1; export DUALCASE # for MKS sh
35474 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35475 emulate sh
35476 NULLCMD=:
35477 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35478 # is contrary to our usage. Disable this feature.
35479 alias -g '${1+"$@"}'='"$@"'
35480 setopt NO_GLOB_SUBST
35481 else
35482 case `(set -o) 2>/dev/null` in
35483 *posix*) set -o posix ;;
35484 esac
35491 # PATH needs CR
35492 # Avoid depending upon Character Ranges.
35493 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35494 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35495 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35496 as_cr_digits='0123456789'
35497 as_cr_alnum=$as_cr_Letters$as_cr_digits
35499 # The user is always right.
35500 if test "${PATH_SEPARATOR+set}" != set; then
35501 echo "#! /bin/sh" >conf$$.sh
35502 echo "exit 0" >>conf$$.sh
35503 chmod +x conf$$.sh
35504 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35505 PATH_SEPARATOR=';'
35506 else
35507 PATH_SEPARATOR=:
35509 rm -f conf$$.sh
35512 # Support unset when possible.
35513 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35514 as_unset=unset
35515 else
35516 as_unset=false
35520 # IFS
35521 # We need space, tab and new line, in precisely that order. Quoting is
35522 # there to prevent editors from complaining about space-tab.
35523 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35524 # splitting by setting IFS to empty value.)
35525 as_nl='
35527 IFS=" "" $as_nl"
35529 # Find who we are. Look in the path if we contain no directory separator.
35530 case $0 in
35531 *[\\/]* ) as_myself=$0 ;;
35532 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35533 for as_dir in $PATH
35535 IFS=$as_save_IFS
35536 test -z "$as_dir" && as_dir=.
35537 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35538 done
35539 IFS=$as_save_IFS
35542 esac
35543 # We did not find ourselves, most probably we were run as `sh COMMAND'
35544 # in which case we are not to be found in the path.
35545 if test "x$as_myself" = x; then
35546 as_myself=$0
35548 if test ! -f "$as_myself"; then
35549 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35550 { (exit 1); exit 1; }
35553 # Work around bugs in pre-3.0 UWIN ksh.
35554 for as_var in ENV MAIL MAILPATH
35555 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35556 done
35557 PS1='$ '
35558 PS2='> '
35559 PS4='+ '
35561 # NLS nuisances.
35562 for as_var in \
35563 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35564 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35565 LC_TELEPHONE LC_TIME
35567 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35568 eval $as_var=C; export $as_var
35569 else
35570 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35572 done
35574 # Required to use basename.
35575 if expr a : '\(a\)' >/dev/null 2>&1 &&
35576 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35577 as_expr=expr
35578 else
35579 as_expr=false
35582 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35583 as_basename=basename
35584 else
35585 as_basename=false
35589 # Name of the executable.
35590 as_me=`$as_basename -- "$0" ||
35591 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35592 X"$0" : 'X\(//\)$' \| \
35593 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35594 echo X/"$0" |
35595 sed '/^.*\/\([^/][^/]*\)\/*$/{
35596 s//\1/
35599 /^X\/\(\/\/\)$/{
35600 s//\1/
35603 /^X\/\(\/\).*/{
35604 s//\1/
35607 s/.*/./; q'`
35609 # CDPATH.
35610 $as_unset CDPATH
35614 as_lineno_1=$LINENO
35615 as_lineno_2=$LINENO
35616 test "x$as_lineno_1" != "x$as_lineno_2" &&
35617 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35619 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35620 # uniformly replaced by the line number. The first 'sed' inserts a
35621 # line-number line after each line using $LINENO; the second 'sed'
35622 # does the real work. The second script uses 'N' to pair each
35623 # line-number line with the line containing $LINENO, and appends
35624 # trailing '-' during substitution so that $LINENO is not a special
35625 # case at line end.
35626 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35627 # scripts with optimization help from Paolo Bonzini. Blame Lee
35628 # E. McMahon (1931-1989) for sed's syntax. :-)
35629 sed -n '
35631 /[$]LINENO/=
35632 ' <$as_myself |
35633 sed '
35634 s/[$]LINENO.*/&-/
35635 t lineno
35637 :lineno
35639 :loop
35640 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35641 t loop
35642 s/-\n.*//
35643 ' >$as_me.lineno &&
35644 chmod +x "$as_me.lineno" ||
35645 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35646 { (exit 1); exit 1; }; }
35648 # Don't try to exec as it changes $[0], causing all sort of problems
35649 # (the dirname of $[0] is not the place where we might find the
35650 # original and so on. Autoconf is especially sensitive to this).
35651 . "./$as_me.lineno"
35652 # Exit status is that of the last command.
35653 exit
35657 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35658 as_dirname=dirname
35659 else
35660 as_dirname=false
35663 ECHO_C= ECHO_N= ECHO_T=
35664 case `echo -n x` in
35665 -n*)
35666 case `echo 'x\c'` in
35667 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35668 *) ECHO_C='\c';;
35669 esac;;
35671 ECHO_N='-n';;
35672 esac
35674 if expr a : '\(a\)' >/dev/null 2>&1 &&
35675 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35676 as_expr=expr
35677 else
35678 as_expr=false
35681 rm -f conf$$ conf$$.exe conf$$.file
35682 if test -d conf$$.dir; then
35683 rm -f conf$$.dir/conf$$.file
35684 else
35685 rm -f conf$$.dir
35686 mkdir conf$$.dir
35688 echo >conf$$.file
35689 if ln -s conf$$.file conf$$ 2>/dev/null; then
35690 as_ln_s='ln -s'
35691 # ... but there are two gotchas:
35692 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35693 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35694 # In both cases, we have to default to `cp -p'.
35695 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35696 as_ln_s='cp -p'
35697 elif ln conf$$.file conf$$ 2>/dev/null; then
35698 as_ln_s=ln
35699 else
35700 as_ln_s='cp -p'
35702 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35703 rmdir conf$$.dir 2>/dev/null
35705 if mkdir -p . 2>/dev/null; then
35706 as_mkdir_p=:
35707 else
35708 test -d ./-p && rmdir ./-p
35709 as_mkdir_p=false
35712 if test -x / >/dev/null 2>&1; then
35713 as_test_x='test -x'
35714 else
35715 if ls -dL / >/dev/null 2>&1; then
35716 as_ls_L_option=L
35717 else
35718 as_ls_L_option=
35720 as_test_x='
35721 eval sh -c '\''
35722 if test -d "$1"; then
35723 test -d "$1/.";
35724 else
35725 case $1 in
35726 -*)set "./$1";;
35727 esac;
35728 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35729 ???[sx]*):;;*)false;;esac;fi
35730 '\'' sh
35733 as_executable_p=$as_test_x
35735 # Sed expression to map a string onto a valid CPP name.
35736 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35738 # Sed expression to map a string onto a valid variable name.
35739 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35742 exec 6>&1
35744 # Save the log message, to keep $[0] and so on meaningful, and to
35745 # report actual input values of CONFIG_FILES etc. instead of their
35746 # values after options handling.
35747 ac_log="
35748 This file was extended by asterisk $as_me 1.4, which was
35749 generated by GNU Autoconf 2.61. Invocation command line was
35751 CONFIG_FILES = $CONFIG_FILES
35752 CONFIG_HEADERS = $CONFIG_HEADERS
35753 CONFIG_LINKS = $CONFIG_LINKS
35754 CONFIG_COMMANDS = $CONFIG_COMMANDS
35755 $ $0 $@
35757 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35760 _ACEOF
35762 cat >>$CONFIG_STATUS <<_ACEOF
35763 # Files that config.status was made for.
35764 config_files="$ac_config_files"
35765 config_headers="$ac_config_headers"
35767 _ACEOF
35769 cat >>$CONFIG_STATUS <<\_ACEOF
35770 ac_cs_usage="\
35771 \`$as_me' instantiates files from templates according to the
35772 current configuration.
35774 Usage: $0 [OPTIONS] [FILE]...
35776 -h, --help print this help, then exit
35777 -V, --version print version number and configuration settings, then exit
35778 -q, --quiet do not print progress messages
35779 -d, --debug don't remove temporary files
35780 --recheck update $as_me by reconfiguring in the same conditions
35781 --file=FILE[:TEMPLATE]
35782 instantiate the configuration file FILE
35783 --header=FILE[:TEMPLATE]
35784 instantiate the configuration header FILE
35786 Configuration files:
35787 $config_files
35789 Configuration headers:
35790 $config_headers
35792 Report bugs to <bug-autoconf@gnu.org>."
35794 _ACEOF
35795 cat >>$CONFIG_STATUS <<_ACEOF
35796 ac_cs_version="\\
35797 asterisk config.status 1.4
35798 configured by $0, generated by GNU Autoconf 2.61,
35799 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35801 Copyright (C) 2006 Free Software Foundation, Inc.
35802 This config.status script is free software; the Free Software Foundation
35803 gives unlimited permission to copy, distribute and modify it."
35805 ac_pwd='$ac_pwd'
35806 srcdir='$srcdir'
35807 INSTALL='$INSTALL'
35808 _ACEOF
35810 cat >>$CONFIG_STATUS <<\_ACEOF
35811 # If no file are specified by the user, then we need to provide default
35812 # value. By we need to know if files were specified by the user.
35813 ac_need_defaults=:
35814 while test $# != 0
35816 case $1 in
35817 --*=*)
35818 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35819 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35820 ac_shift=:
35823 ac_option=$1
35824 ac_optarg=$2
35825 ac_shift=shift
35827 esac
35829 case $ac_option in
35830 # Handling of the options.
35831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35832 ac_cs_recheck=: ;;
35833 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35834 echo "$ac_cs_version"; exit ;;
35835 --debug | --debu | --deb | --de | --d | -d )
35836 debug=: ;;
35837 --file | --fil | --fi | --f )
35838 $ac_shift
35839 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35840 ac_need_defaults=false;;
35841 --header | --heade | --head | --hea )
35842 $ac_shift
35843 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35844 ac_need_defaults=false;;
35845 --he | --h)
35846 # Conflict between --help and --header
35847 { echo "$as_me: error: ambiguous option: $1
35848 Try \`$0 --help' for more information." >&2
35849 { (exit 1); exit 1; }; };;
35850 --help | --hel | -h )
35851 echo "$ac_cs_usage"; exit ;;
35852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35853 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35854 ac_cs_silent=: ;;
35856 # This is an error.
35857 -*) { echo "$as_me: error: unrecognized option: $1
35858 Try \`$0 --help' for more information." >&2
35859 { (exit 1); exit 1; }; } ;;
35861 *) ac_config_targets="$ac_config_targets $1"
35862 ac_need_defaults=false ;;
35864 esac
35865 shift
35866 done
35868 ac_configure_extra_args=
35870 if $ac_cs_silent; then
35871 exec 6>/dev/null
35872 ac_configure_extra_args="$ac_configure_extra_args --silent"
35875 _ACEOF
35876 cat >>$CONFIG_STATUS <<_ACEOF
35877 if \$ac_cs_recheck; then
35878 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35879 CONFIG_SHELL=$SHELL
35880 export CONFIG_SHELL
35881 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35884 _ACEOF
35885 cat >>$CONFIG_STATUS <<\_ACEOF
35886 exec 5>>config.log
35888 echo
35889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35890 ## Running $as_me. ##
35891 _ASBOX
35892 echo "$ac_log"
35893 } >&5
35895 _ACEOF
35896 cat >>$CONFIG_STATUS <<_ACEOF
35897 _ACEOF
35899 cat >>$CONFIG_STATUS <<\_ACEOF
35901 # Handling of arguments.
35902 for ac_config_target in $ac_config_targets
35904 case $ac_config_target in
35905 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
35906 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
35907 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
35908 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
35910 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35911 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35912 { (exit 1); exit 1; }; };;
35913 esac
35914 done
35917 # If the user did not use the arguments to specify the items to instantiate,
35918 # then the envvar interface is used. Set only those that are not.
35919 # We use the long form for the default assignment because of an extremely
35920 # bizarre bug on SunOS 4.1.3.
35921 if $ac_need_defaults; then
35922 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35923 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35926 # Have a temporary directory for convenience. Make it in the build tree
35927 # simply because there is no reason against having it here, and in addition,
35928 # creating and moving files from /tmp can sometimes cause problems.
35929 # Hook for its removal unless debugging.
35930 # Note that there is a small window in which the directory will not be cleaned:
35931 # after its creation but before its name has been assigned to `$tmp'.
35932 $debug ||
35934 tmp=
35935 trap 'exit_status=$?
35936 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35938 trap '{ (exit 1); exit 1; }' 1 2 13 15
35940 # Create a (secure) tmp directory for tmp files.
35943 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35944 test -n "$tmp" && test -d "$tmp"
35945 } ||
35947 tmp=./conf$$-$RANDOM
35948 (umask 077 && mkdir "$tmp")
35949 } ||
35951 echo "$me: cannot create a temporary directory in ." >&2
35952 { (exit 1); exit 1; }
35956 # Set up the sed scripts for CONFIG_FILES section.
35959 # No need to generate the scripts if there are no CONFIG_FILES.
35960 # This happens for instance when ./config.status config.h
35961 if test -n "$CONFIG_FILES"; then
35963 _ACEOF
35967 ac_delim='%!_!# '
35968 for ac_last_try in false false false false false :; do
35969 cat >conf$$subs.sed <<_ACEOF
35970 SHELL!$SHELL$ac_delim
35971 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35972 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35973 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35974 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35975 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35976 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35977 exec_prefix!$exec_prefix$ac_delim
35978 prefix!$prefix$ac_delim
35979 program_transform_name!$program_transform_name$ac_delim
35980 bindir!$bindir$ac_delim
35981 sbindir!$sbindir$ac_delim
35982 libexecdir!$libexecdir$ac_delim
35983 datarootdir!$datarootdir$ac_delim
35984 datadir!$datadir$ac_delim
35985 sysconfdir!$sysconfdir$ac_delim
35986 sharedstatedir!$sharedstatedir$ac_delim
35987 localstatedir!$localstatedir$ac_delim
35988 includedir!$includedir$ac_delim
35989 oldincludedir!$oldincludedir$ac_delim
35990 docdir!$docdir$ac_delim
35991 infodir!$infodir$ac_delim
35992 htmldir!$htmldir$ac_delim
35993 dvidir!$dvidir$ac_delim
35994 pdfdir!$pdfdir$ac_delim
35995 psdir!$psdir$ac_delim
35996 libdir!$libdir$ac_delim
35997 localedir!$localedir$ac_delim
35998 mandir!$mandir$ac_delim
35999 DEFS!$DEFS$ac_delim
36000 ECHO_C!$ECHO_C$ac_delim
36001 ECHO_N!$ECHO_N$ac_delim
36002 ECHO_T!$ECHO_T$ac_delim
36003 LIBS!$LIBS$ac_delim
36004 build_alias!$build_alias$ac_delim
36005 host_alias!$host_alias$ac_delim
36006 target_alias!$target_alias$ac_delim
36007 build!$build$ac_delim
36008 build_cpu!$build_cpu$ac_delim
36009 build_vendor!$build_vendor$ac_delim
36010 build_os!$build_os$ac_delim
36011 host!$host$ac_delim
36012 host_cpu!$host_cpu$ac_delim
36013 host_vendor!$host_vendor$ac_delim
36014 host_os!$host_os$ac_delim
36015 CC!$CC$ac_delim
36016 CFLAGS!$CFLAGS$ac_delim
36017 LDFLAGS!$LDFLAGS$ac_delim
36018 CPPFLAGS!$CPPFLAGS$ac_delim
36019 ac_ct_CC!$ac_ct_CC$ac_delim
36020 EXEEXT!$EXEEXT$ac_delim
36021 OBJEXT!$OBJEXT$ac_delim
36022 CPP!$CPP$ac_delim
36023 GREP!$GREP$ac_delim
36024 EGREP!$EGREP$ac_delim
36025 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
36026 BUILD_CPU!$BUILD_CPU$ac_delim
36027 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
36028 BUILD_OS!$BUILD_OS$ac_delim
36029 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
36030 HOST_CPU!$HOST_CPU$ac_delim
36031 HOST_VENDOR!$HOST_VENDOR$ac_delim
36032 HOST_OS!$HOST_OS$ac_delim
36033 OSARCH!$OSARCH$ac_delim
36034 UNAME!$UNAME$ac_delim
36035 PBX_OSREV!$PBX_OSREV$ac_delim
36036 CXX!$CXX$ac_delim
36037 LD!$LD$ac_delim
36038 RANLIB!$RANLIB$ac_delim
36039 CXXFLAGS!$CXXFLAGS$ac_delim
36040 ac_ct_CXX!$ac_ct_CXX$ac_delim
36041 CXXCPP!$CXXCPP$ac_delim
36042 SED!$SED$ac_delim
36043 AWK!$AWK$ac_delim
36044 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36045 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36046 INSTALL_DATA!$INSTALL_DATA$ac_delim
36047 LN_S!$LN_S$ac_delim
36048 GNU_MAKE!$GNU_MAKE$ac_delim
36049 STRIP!$STRIP$ac_delim
36050 AR!$AR$ac_delim
36051 GNU_LD!$GNU_LD$ac_delim
36052 FIND!$FIND$ac_delim
36053 COMPRESS!$COMPRESS$ac_delim
36054 BASENAME!$BASENAME$ac_delim
36055 ID!$ID$ac_delim
36056 DIRNAME!$DIRNAME$ac_delim
36057 LN!$LN$ac_delim
36058 DOT!$DOT$ac_delim
36059 WGET!$WGET$ac_delim
36060 FETCH!$FETCH$ac_delim
36061 DOWNLOAD!$DOWNLOAD$ac_delim
36062 SOXMIX!$SOXMIX$ac_delim
36063 acx_pthread_config!$acx_pthread_config$ac_delim
36064 PTHREAD_CC!$PTHREAD_CC$ac_delim
36065 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
36066 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
36067 _ACEOF
36069 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36070 break
36071 elif $ac_last_try; then
36072 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36073 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36074 { (exit 1); exit 1; }; }
36075 else
36076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36078 done
36080 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36081 if test -n "$ac_eof"; then
36082 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36083 ac_eof=`expr $ac_eof + 1`
36086 cat >>$CONFIG_STATUS <<_ACEOF
36087 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36089 _ACEOF
36090 sed '
36091 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36092 s/^/s,@/; s/!/@,|#_!!_#|/
36095 s/'"$ac_delim"'$/,g/; t
36096 s/$/\\/; p
36097 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36098 ' >>$CONFIG_STATUS <conf$$subs.sed
36099 rm -f conf$$subs.sed
36100 cat >>$CONFIG_STATUS <<_ACEOF
36101 CEOF$ac_eof
36102 _ACEOF
36105 ac_delim='%!_!# '
36106 for ac_last_try in false false false false false :; do
36107 cat >conf$$subs.sed <<_ACEOF
36108 AST_DEVMODE!$AST_DEVMODE$ac_delim
36109 ALSA_LIB!$ALSA_LIB$ac_delim
36110 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
36111 ALSA_DIR!$ALSA_DIR$ac_delim
36112 PBX_ALSA!$PBX_ALSA$ac_delim
36113 CURL_LIB!$CURL_LIB$ac_delim
36114 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
36115 CURL_DIR!$CURL_DIR$ac_delim
36116 PBX_CURL!$PBX_CURL$ac_delim
36117 CAP_LIB!$CAP_LIB$ac_delim
36118 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
36119 CAP_DIR!$CAP_DIR$ac_delim
36120 PBX_CAP!$PBX_CAP$ac_delim
36121 CURSES_LIB!$CURSES_LIB$ac_delim
36122 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
36123 CURSES_DIR!$CURSES_DIR$ac_delim
36124 PBX_CURSES!$PBX_CURSES$ac_delim
36125 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
36126 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
36127 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
36128 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
36129 GSM_LIB!$GSM_LIB$ac_delim
36130 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
36131 GSM_DIR!$GSM_DIR$ac_delim
36132 PBX_GSM!$PBX_GSM$ac_delim
36133 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
36134 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
36135 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
36136 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
36137 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
36138 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
36139 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
36140 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
36141 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
36142 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
36143 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
36144 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
36145 KDE_LIB!$KDE_LIB$ac_delim
36146 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
36147 KDE_DIR!$KDE_DIR$ac_delim
36148 PBX_KDE!$PBX_KDE$ac_delim
36149 LTDL_LIB!$LTDL_LIB$ac_delim
36150 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
36151 LTDL_DIR!$LTDL_DIR$ac_delim
36152 PBX_LTDL!$PBX_LTDL$ac_delim
36153 MISDN_LIB!$MISDN_LIB$ac_delim
36154 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
36155 MISDN_DIR!$MISDN_DIR$ac_delim
36156 PBX_MISDN!$PBX_MISDN$ac_delim
36157 NBS_LIB!$NBS_LIB$ac_delim
36158 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
36159 NBS_DIR!$NBS_DIR$ac_delim
36160 PBX_NBS!$PBX_NBS$ac_delim
36161 NCURSES_LIB!$NCURSES_LIB$ac_delim
36162 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
36163 NCURSES_DIR!$NCURSES_DIR$ac_delim
36164 PBX_NCURSES!$PBX_NCURSES$ac_delim
36165 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
36166 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
36167 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
36168 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
36169 NEWT_LIB!$NEWT_LIB$ac_delim
36170 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
36171 NEWT_DIR!$NEWT_DIR$ac_delim
36172 PBX_NEWT!$PBX_NEWT$ac_delim
36173 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
36174 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
36175 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
36176 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
36177 OGG_LIB!$OGG_LIB$ac_delim
36178 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
36179 OGG_DIR!$OGG_DIR$ac_delim
36180 PBX_OGG!$PBX_OGG$ac_delim
36181 OSPTK_LIB!$OSPTK_LIB$ac_delim
36182 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
36183 OSPTK_DIR!$OSPTK_DIR$ac_delim
36184 PBX_OSPTK!$PBX_OSPTK$ac_delim
36185 OSS_LIB!$OSS_LIB$ac_delim
36186 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
36187 OSS_DIR!$OSS_DIR$ac_delim
36188 PBX_OSS!$PBX_OSS$ac_delim
36189 POPT_LIB!$POPT_LIB$ac_delim
36190 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
36191 POPT_DIR!$POPT_DIR$ac_delim
36192 PBX_POPT!$PBX_POPT$ac_delim
36193 PGSQL_LIB!$PGSQL_LIB$ac_delim
36194 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
36195 PGSQL_DIR!$PGSQL_DIR$ac_delim
36196 PBX_PGSQL!$PBX_PGSQL$ac_delim
36197 PRI_LIB!$PRI_LIB$ac_delim
36198 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
36199 PRI_DIR!$PRI_DIR$ac_delim
36200 PBX_PRI!$PBX_PRI$ac_delim
36201 PWLIB_LIB!$PWLIB_LIB$ac_delim
36202 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
36203 PWLIB_DIR!$PWLIB_DIR$ac_delim
36204 PBX_PWLIB!$PBX_PWLIB$ac_delim
36205 _ACEOF
36207 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36208 break
36209 elif $ac_last_try; then
36210 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36211 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36212 { (exit 1); exit 1; }; }
36213 else
36214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36216 done
36218 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36219 if test -n "$ac_eof"; then
36220 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36221 ac_eof=`expr $ac_eof + 1`
36224 cat >>$CONFIG_STATUS <<_ACEOF
36225 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36227 _ACEOF
36228 sed '
36229 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36230 s/^/s,@/; s/!/@,|#_!!_#|/
36233 s/'"$ac_delim"'$/,g/; t
36234 s/$/\\/; p
36235 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36236 ' >>$CONFIG_STATUS <conf$$subs.sed
36237 rm -f conf$$subs.sed
36238 cat >>$CONFIG_STATUS <<_ACEOF
36239 CEOF$ac_eof
36240 _ACEOF
36243 ac_delim='%!_!# '
36244 for ac_last_try in false false false false false :; do
36245 cat >conf$$subs.sed <<_ACEOF
36246 OPENH323_LIB!$OPENH323_LIB$ac_delim
36247 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
36248 OPENH323_DIR!$OPENH323_DIR$ac_delim
36249 PBX_OPENH323!$PBX_OPENH323$ac_delim
36250 RADIUS_LIB!$RADIUS_LIB$ac_delim
36251 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
36252 RADIUS_DIR!$RADIUS_DIR$ac_delim
36253 PBX_RADIUS!$PBX_RADIUS$ac_delim
36254 SPEEX_LIB!$SPEEX_LIB$ac_delim
36255 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
36256 SPEEX_DIR!$SPEEX_DIR$ac_delim
36257 PBX_SPEEX!$PBX_SPEEX$ac_delim
36258 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
36259 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
36260 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
36261 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
36262 SQLITE_LIB!$SQLITE_LIB$ac_delim
36263 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
36264 SQLITE_DIR!$SQLITE_DIR$ac_delim
36265 PBX_SQLITE!$PBX_SQLITE$ac_delim
36266 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
36267 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
36268 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
36269 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
36270 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
36271 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
36272 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
36273 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
36274 FREETDS_LIB!$FREETDS_LIB$ac_delim
36275 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
36276 FREETDS_DIR!$FREETDS_DIR$ac_delim
36277 PBX_FREETDS!$PBX_FREETDS$ac_delim
36278 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
36279 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
36280 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
36281 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
36282 TINFO_LIB!$TINFO_LIB$ac_delim
36283 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
36284 TINFO_DIR!$TINFO_DIR$ac_delim
36285 PBX_TINFO!$PBX_TINFO$ac_delim
36286 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
36287 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
36288 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
36289 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
36290 USB_LIB!$USB_LIB$ac_delim
36291 USB_INCLUDE!$USB_INCLUDE$ac_delim
36292 USB_DIR!$USB_DIR$ac_delim
36293 PBX_USB!$PBX_USB$ac_delim
36294 VORBIS_LIB!$VORBIS_LIB$ac_delim
36295 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
36296 VORBIS_DIR!$VORBIS_DIR$ac_delim
36297 PBX_VORBIS!$PBX_VORBIS$ac_delim
36298 VPB_LIB!$VPB_LIB$ac_delim
36299 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
36300 VPB_DIR!$VPB_DIR$ac_delim
36301 PBX_VPB!$PBX_VPB$ac_delim
36302 ZLIB_LIB!$ZLIB_LIB$ac_delim
36303 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
36304 ZLIB_DIR!$ZLIB_DIR$ac_delim
36305 PBX_ZLIB!$PBX_ZLIB$ac_delim
36306 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
36307 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
36308 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
36309 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
36310 ALLOCA!$ALLOCA$ac_delim
36311 LIBOBJS!$LIBOBJS$ac_delim
36312 POW_LIB!$POW_LIB$ac_delim
36313 GC_CFLAGS!$GC_CFLAGS$ac_delim
36314 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
36315 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
36316 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
36317 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
36318 KDEINIT!$KDEINIT$ac_delim
36319 KDEDIR!$KDEDIR$ac_delim
36320 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
36321 PG_CONFIG!$PG_CONFIG$ac_delim
36322 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
36323 PWLIBDIR!$PWLIBDIR$ac_delim
36324 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
36325 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
36326 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
36327 OPENH323DIR!$OPENH323DIR$ac_delim
36328 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
36329 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
36330 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
36331 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
36332 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
36333 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
36334 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
36335 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
36336 PBX_H323!$PBX_H323$ac_delim
36337 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
36338 GTKCONFIG!$GTKCONFIG$ac_delim
36339 PBX_GTK!$PBX_GTK$ac_delim
36340 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
36341 GTK_LIB!$GTK_LIB$ac_delim
36342 PKGCONFIG!$PKGCONFIG$ac_delim
36343 _ACEOF
36345 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36346 break
36347 elif $ac_last_try; then
36348 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36349 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36350 { (exit 1); exit 1; }; }
36351 else
36352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36354 done
36356 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36357 if test -n "$ac_eof"; then
36358 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36359 ac_eof=`expr $ac_eof + 1`
36362 cat >>$CONFIG_STATUS <<_ACEOF
36363 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
36364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36365 _ACEOF
36366 sed '
36367 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36368 s/^/s,@/; s/!/@,|#_!!_#|/
36371 s/'"$ac_delim"'$/,g/; t
36372 s/$/\\/; p
36373 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36374 ' >>$CONFIG_STATUS <conf$$subs.sed
36375 rm -f conf$$subs.sed
36376 cat >>$CONFIG_STATUS <<_ACEOF
36377 CEOF$ac_eof
36378 _ACEOF
36381 ac_delim='%!_!# '
36382 for ac_last_try in false false false false false :; do
36383 cat >conf$$subs.sed <<_ACEOF
36384 PBX_GTK2!$PBX_GTK2$ac_delim
36385 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
36386 GTK2_LIB!$GTK2_LIB$ac_delim
36387 CURL_CONFIG!$CURL_CONFIG$ac_delim
36388 LTLIBOBJS!$LTLIBOBJS$ac_delim
36389 _ACEOF
36391 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
36392 break
36393 elif $ac_last_try; then
36394 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36395 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36396 { (exit 1); exit 1; }; }
36397 else
36398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36400 done
36402 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36403 if test -n "$ac_eof"; then
36404 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36405 ac_eof=`expr $ac_eof + 1`
36408 cat >>$CONFIG_STATUS <<_ACEOF
36409 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
36410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36411 _ACEOF
36412 sed '
36413 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36414 s/^/s,@/; s/!/@,|#_!!_#|/
36417 s/'"$ac_delim"'$/,g/; t
36418 s/$/\\/; p
36419 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36420 ' >>$CONFIG_STATUS <conf$$subs.sed
36421 rm -f conf$$subs.sed
36422 cat >>$CONFIG_STATUS <<_ACEOF
36423 :end
36424 s/|#_!!_#|//g
36425 CEOF$ac_eof
36426 _ACEOF
36429 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36430 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36431 # trailing colons and then remove the whole line if VPATH becomes empty
36432 # (actually we leave an empty line to preserve line numbers).
36433 if test "x$srcdir" = x.; then
36434 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36435 s/:*\$(srcdir):*/:/
36436 s/:*\${srcdir}:*/:/
36437 s/:*@srcdir@:*/:/
36438 s/^\([^=]*=[ ]*\):*/\1/
36439 s/:*$//
36440 s/^[^=]*=[ ]*$//
36444 cat >>$CONFIG_STATUS <<\_ACEOF
36445 fi # test -n "$CONFIG_FILES"
36448 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
36450 case $ac_tag in
36451 :[FHLC]) ac_mode=$ac_tag; continue;;
36452 esac
36453 case $ac_mode$ac_tag in
36454 :[FHL]*:*);;
36455 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36456 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36457 { (exit 1); exit 1; }; };;
36458 :[FH]-) ac_tag=-:-;;
36459 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36460 esac
36461 ac_save_IFS=$IFS
36462 IFS=:
36463 set x $ac_tag
36464 IFS=$ac_save_IFS
36465 shift
36466 ac_file=$1
36467 shift
36469 case $ac_mode in
36470 :L) ac_source=$1;;
36471 :[FH])
36472 ac_file_inputs=
36473 for ac_f
36475 case $ac_f in
36476 -) ac_f="$tmp/stdin";;
36477 *) # Look for the file first in the build tree, then in the source tree
36478 # (if the path is not absolute). The absolute path cannot be DOS-style,
36479 # because $ac_f cannot contain `:'.
36480 test -f "$ac_f" ||
36481 case $ac_f in
36482 [\\/$]*) false;;
36483 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36484 esac ||
36485 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36486 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36487 { (exit 1); exit 1; }; };;
36488 esac
36489 ac_file_inputs="$ac_file_inputs $ac_f"
36490 done
36492 # Let's still pretend it is `configure' which instantiates (i.e., don't
36493 # use $as_me), people would be surprised to read:
36494 # /* config.h. Generated by config.status. */
36495 configure_input="Generated from "`IFS=:
36496 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36497 if test x"$ac_file" != x-; then
36498 configure_input="$ac_file. $configure_input"
36499 { echo "$as_me:$LINENO: creating $ac_file" >&5
36500 echo "$as_me: creating $ac_file" >&6;}
36503 case $ac_tag in
36504 *:-:* | *:-) cat >"$tmp/stdin";;
36505 esac
36507 esac
36509 ac_dir=`$as_dirname -- "$ac_file" ||
36510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36511 X"$ac_file" : 'X\(//\)[^/]' \| \
36512 X"$ac_file" : 'X\(//\)$' \| \
36513 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36514 echo X"$ac_file" |
36515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36516 s//\1/
36519 /^X\(\/\/\)[^/].*/{
36520 s//\1/
36523 /^X\(\/\/\)$/{
36524 s//\1/
36527 /^X\(\/\).*/{
36528 s//\1/
36531 s/.*/./; q'`
36532 { as_dir="$ac_dir"
36533 case $as_dir in #(
36534 -*) as_dir=./$as_dir;;
36535 esac
36536 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36537 as_dirs=
36538 while :; do
36539 case $as_dir in #(
36540 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36541 *) as_qdir=$as_dir;;
36542 esac
36543 as_dirs="'$as_qdir' $as_dirs"
36544 as_dir=`$as_dirname -- "$as_dir" ||
36545 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36546 X"$as_dir" : 'X\(//\)[^/]' \| \
36547 X"$as_dir" : 'X\(//\)$' \| \
36548 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36549 echo X"$as_dir" |
36550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36551 s//\1/
36554 /^X\(\/\/\)[^/].*/{
36555 s//\1/
36558 /^X\(\/\/\)$/{
36559 s//\1/
36562 /^X\(\/\).*/{
36563 s//\1/
36566 s/.*/./; q'`
36567 test -d "$as_dir" && break
36568 done
36569 test -z "$as_dirs" || eval "mkdir $as_dirs"
36570 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36571 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36572 { (exit 1); exit 1; }; }; }
36573 ac_builddir=.
36575 case "$ac_dir" in
36576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36578 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36579 # A ".." for each directory in $ac_dir_suffix.
36580 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36581 case $ac_top_builddir_sub in
36582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36584 esac ;;
36585 esac
36586 ac_abs_top_builddir=$ac_pwd
36587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36588 # for backward compatibility:
36589 ac_top_builddir=$ac_top_build_prefix
36591 case $srcdir in
36592 .) # We are building in place.
36593 ac_srcdir=.
36594 ac_top_srcdir=$ac_top_builddir_sub
36595 ac_abs_top_srcdir=$ac_pwd ;;
36596 [\\/]* | ?:[\\/]* ) # Absolute name.
36597 ac_srcdir=$srcdir$ac_dir_suffix;
36598 ac_top_srcdir=$srcdir
36599 ac_abs_top_srcdir=$srcdir ;;
36600 *) # Relative name.
36601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36602 ac_top_srcdir=$ac_top_build_prefix$srcdir
36603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36604 esac
36605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36608 case $ac_mode in
36611 # CONFIG_FILE
36614 case $INSTALL in
36615 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36616 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36617 esac
36618 _ACEOF
36620 cat >>$CONFIG_STATUS <<\_ACEOF
36621 # If the template does not know about datarootdir, expand it.
36622 # FIXME: This hack should be removed a few years after 2.60.
36623 ac_datarootdir_hack=; ac_datarootdir_seen=
36625 case `sed -n '/datarootdir/ {
36629 /@datadir@/p
36630 /@docdir@/p
36631 /@infodir@/p
36632 /@localedir@/p
36633 /@mandir@/p
36634 ' $ac_file_inputs` in
36635 *datarootdir*) ac_datarootdir_seen=yes;;
36636 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36637 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36638 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36639 _ACEOF
36640 cat >>$CONFIG_STATUS <<_ACEOF
36641 ac_datarootdir_hack='
36642 s&@datadir@&$datadir&g
36643 s&@docdir@&$docdir&g
36644 s&@infodir@&$infodir&g
36645 s&@localedir@&$localedir&g
36646 s&@mandir@&$mandir&g
36647 s&\\\${datarootdir}&$datarootdir&g' ;;
36648 esac
36649 _ACEOF
36651 # Neutralize VPATH when `$srcdir' = `.'.
36652 # Shell code in configure.ac might set extrasub.
36653 # FIXME: do we really want to maintain this feature?
36654 cat >>$CONFIG_STATUS <<_ACEOF
36655 sed "$ac_vpsub
36656 $extrasub
36657 _ACEOF
36658 cat >>$CONFIG_STATUS <<\_ACEOF
36660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36661 s&@configure_input@&$configure_input&;t t
36662 s&@top_builddir@&$ac_top_builddir_sub&;t t
36663 s&@srcdir@&$ac_srcdir&;t t
36664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36665 s&@top_srcdir@&$ac_top_srcdir&;t t
36666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36667 s&@builddir@&$ac_builddir&;t t
36668 s&@abs_builddir@&$ac_abs_builddir&;t t
36669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36670 s&@INSTALL@&$ac_INSTALL&;t t
36671 $ac_datarootdir_hack
36672 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out
36674 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36675 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36676 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36677 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36678 which seems to be undefined. Please make sure it is defined." >&5
36679 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36680 which seems to be undefined. Please make sure it is defined." >&2;}
36682 rm -f "$tmp/stdin"
36683 case $ac_file in
36684 -) cat "$tmp/out"; rm -f "$tmp/out";;
36685 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36686 esac
36690 # CONFIG_HEADER
36692 _ACEOF
36694 # Transform confdefs.h into a sed script `conftest.defines', that
36695 # substitutes the proper values into config.h.in to produce config.h.
36696 rm -f conftest.defines conftest.tail
36697 # First, append a space to every undef/define line, to ease matching.
36698 echo 's/$/ /' >conftest.defines
36699 # Then, protect against being on the right side of a sed subst, or in
36700 # an unquoted here document, in config.status. If some macros were
36701 # called several times there might be several #defines for the same
36702 # symbol, which is useless. But do not sort them, since the last
36703 # AC_DEFINE must be honored.
36704 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36705 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36706 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36707 # PARAMS is the parameter list in the macro definition--in most cases, it's
36708 # just an empty string.
36709 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36710 ac_dB='\\)[ (].*,\\1define\\2'
36711 ac_dC=' '
36712 ac_dD=' ,'
36714 uniq confdefs.h |
36715 sed -n '
36716 t rset
36717 :rset
36718 s/^[ ]*#[ ]*define[ ][ ]*//
36719 t ok
36722 s/[\\&,]/\\&/g
36723 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36724 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36725 ' >>conftest.defines
36727 # Remove the space that was appended to ease matching.
36728 # Then replace #undef with comments. This is necessary, for
36729 # example, in the case of _POSIX_SOURCE, which is predefined and required
36730 # on some systems where configure will not decide to define it.
36731 # (The regexp can be short, since the line contains either #define or #undef.)
36732 echo 's/ $//
36733 s,^[ #]*u.*,/* & */,' >>conftest.defines
36735 # Break up conftest.defines:
36736 ac_max_sed_lines=50
36738 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36739 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36740 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36741 # et cetera.
36742 ac_in='$ac_file_inputs'
36743 ac_out='"$tmp/out1"'
36744 ac_nxt='"$tmp/out2"'
36746 while :
36748 # Write a here document:
36749 cat >>$CONFIG_STATUS <<_ACEOF
36750 # First, check the format of the line:
36751 cat >"\$tmp/defines.sed" <<\\CEOF
36752 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36753 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36755 :def
36756 _ACEOF
36757 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36758 echo 'CEOF
36759 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36760 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36761 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36762 grep . conftest.tail >/dev/null || break
36763 rm -f conftest.defines
36764 mv conftest.tail conftest.defines
36765 done
36766 rm -f conftest.defines conftest.tail
36768 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36769 cat >>$CONFIG_STATUS <<\_ACEOF
36770 if test x"$ac_file" != x-; then
36771 echo "/* $configure_input */" >"$tmp/config.h"
36772 cat "$ac_result" >>"$tmp/config.h"
36773 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36774 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36775 echo "$as_me: $ac_file is unchanged" >&6;}
36776 else
36777 rm -f $ac_file
36778 mv "$tmp/config.h" $ac_file
36780 else
36781 echo "/* $configure_input */"
36782 cat "$ac_result"
36784 rm -f "$tmp/out12"
36788 esac
36790 done # for ac_tag
36793 { (exit 0); exit 0; }
36794 _ACEOF
36795 chmod +x $CONFIG_STATUS
36796 ac_clean_files=$ac_clean_files_save
36799 # configure is writing to config.log, and then calls config.status.
36800 # config.status does its own redirection, appending to config.log.
36801 # Unfortunately, on DOS this fails, as config.log is still kept open
36802 # by configure, so config.status won't be able to write to it; its
36803 # output is simply discarded. So we exec the FD to /dev/null,
36804 # effectively closing config.log, so it can be properly (re)opened and
36805 # appended to by config.status. When coming back to configure, we
36806 # need to make the FD available again.
36807 if test "$no_create" != yes; then
36808 ac_cs_success=:
36809 ac_config_status_args=
36810 test "$silent" = yes &&
36811 ac_config_status_args="$ac_config_status_args --quiet"
36812 exec 5>/dev/null
36813 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36814 exec 5>>config.log
36815 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36816 # would make configure fail if this is the last instruction.
36817 $ac_cs_success || { (exit 1); exit 1; }
36821 if test "x${silent}" != "xyes" ; then
36822 echo
36823 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
36824 echo " .\$7\$7.. .7\$\$7:. "
36825 echo " .\$\$:. ,\$7.7 "
36826 echo " .\$7. 7\$\$\$\$ .\$\$77 "
36827 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
36828 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
36829 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
36830 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
36831 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
36832 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
36833 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
36834 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
36835 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
36836 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
36837 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
36838 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
36839 echo " \$\$\$\$\$ \$\$\$ "
36840 echo " \$\$\$\$7. \$\$ (TM) "
36841 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
36842 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
36843 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
36844 echo
36847 { echo "$as_me:$LINENO: Package configured for: " >&5
36848 echo "$as_me: Package configured for: " >&6;}
36849 { echo "$as_me:$LINENO: OS type : $host_os" >&5
36850 echo "$as_me: OS type : $host_os" >&6;}
36851 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
36852 echo "$as_me: Host CPU : $host_cpu" >&6;}
36853 if test "${cross_compiling}" = "yes"; then
36854 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
36855 echo "$as_me: Cross Compilation = YES" >&6;}