use the proper type for storing group number bits so that if someone specifies 'group...
[asterisk-bristuff.git] / configure
blobbfe7e43a4e06d4cb1605524d3dd9c2332e2b7a2c
1 #! /bin/sh
2 # From configure.ac Revision: 67026 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # "Asterisk"
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME=
577 PACKAGE_TARNAME=
578 PACKAGE_VERSION=
579 PACKAGE_STRING=
580 PACKAGE_BUGREPORT=
582 ac_unique_file="asterisk"
583 ac_unique_file="main/asterisk.c"
584 # Factoring default headers for most tests.
585 ac_includes_default="\
586 #include <stdio.h>
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
589 #endif
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
592 #endif
593 #ifdef STDC_HEADERS
594 # include <stdlib.h>
595 # include <stddef.h>
596 #else
597 # ifdef HAVE_STDLIB_H
598 # include <stdlib.h>
599 # endif
600 #endif
601 #ifdef HAVE_STRING_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 # include <memory.h>
604 # endif
605 # include <string.h>
606 #endif
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
609 #endif
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
612 #endif
613 #ifdef HAVE_STDINT_H
614 # include <stdint.h>
615 #endif
616 #ifdef HAVE_UNISTD_H
617 # include <unistd.h>
618 #endif"
620 ac_header_list=
621 ac_func_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 acx_pthread_config
715 PTHREAD_CC
716 PTHREAD_LIBS
717 PTHREAD_CFLAGS
718 AST_DEVMODE
719 ALSA_LIB
720 ALSA_INCLUDE
721 ALSA_DIR
722 PBX_ALSA
723 CURL_LIB
724 CURL_INCLUDE
725 CURL_DIR
726 PBX_CURL
727 CURSES_LIB
728 CURSES_INCLUDE
729 CURSES_DIR
730 PBX_CURSES
731 GNUTLS_LIB
732 GNUTLS_INCLUDE
733 GNUTLS_DIR
734 PBX_GNUTLS
735 GSM_LIB
736 GSM_INCLUDE
737 GSM_DIR
738 PBX_GSM
739 IKSEMEL_LIB
740 IKSEMEL_INCLUDE
741 IKSEMEL_DIR
742 PBX_IKSEMEL
743 IMAP_TK_LIB
744 IMAP_TK_INCLUDE
745 IMAP_TK_DIR
746 PBX_IMAP_TK
747 ISDNNET_LIB
748 ISDNNET_INCLUDE
749 ISDNNET_DIR
750 PBX_ISDNNET
751 KDE_LIB
752 KDE_INCLUDE
753 KDE_DIR
754 PBX_KDE
755 LTDL_LIB
756 LTDL_INCLUDE
757 LTDL_DIR
758 PBX_LTDL
759 MISDN_LIB
760 MISDN_INCLUDE
761 MISDN_DIR
762 PBX_MISDN
763 NBS_LIB
764 NBS_INCLUDE
765 NBS_DIR
766 PBX_NBS
767 NCURSES_LIB
768 NCURSES_INCLUDE
769 NCURSES_DIR
770 PBX_NCURSES
771 NETSNMP_LIB
772 NETSNMP_INCLUDE
773 NETSNMP_DIR
774 PBX_NETSNMP
775 NEWT_LIB
776 NEWT_INCLUDE
777 NEWT_DIR
778 PBX_NEWT
779 UNIXODBC_LIB
780 UNIXODBC_INCLUDE
781 UNIXODBC_DIR
782 PBX_UNIXODBC
783 OGG_LIB
784 OGG_INCLUDE
785 OGG_DIR
786 PBX_OGG
787 OSPTK_LIB
788 OSPTK_INCLUDE
789 OSPTK_DIR
790 PBX_OSPTK
791 OSS_LIB
792 OSS_INCLUDE
793 OSS_DIR
794 PBX_OSS
795 POPT_LIB
796 POPT_INCLUDE
797 POPT_DIR
798 PBX_POPT
799 PGSQL_LIB
800 PGSQL_INCLUDE
801 PGSQL_DIR
802 PBX_PGSQL
803 PRI_LIB
804 PRI_INCLUDE
805 PRI_DIR
806 PBX_PRI
807 PWLIB_LIB
808 PWLIB_INCLUDE
809 PWLIB_DIR
810 PBX_PWLIB
811 OPENH323_LIB
812 OPENH323_INCLUDE
813 OPENH323_DIR
814 PBX_OPENH323
815 QT_LIB
816 QT_INCLUDE
817 QT_DIR
818 PBX_QT
819 RADIUS_LIB
820 RADIUS_INCLUDE
821 RADIUS_DIR
822 PBX_RADIUS
823 SPEEX_LIB
824 SPEEX_INCLUDE
825 SPEEX_DIR
826 PBX_SPEEX
827 SQLITE_LIB
828 SQLITE_INCLUDE
829 SQLITE_DIR
830 PBX_SQLITE
831 SUPPSERV_LIB
832 SUPPSERV_INCLUDE
833 SUPPSERV_DIR
834 PBX_SUPPSERV
835 OPENSSL_LIB
836 OPENSSL_INCLUDE
837 OPENSSL_DIR
838 PBX_OPENSSL
839 FREETDS_LIB
840 FREETDS_INCLUDE
841 FREETDS_DIR
842 PBX_FREETDS
843 TERMCAP_LIB
844 TERMCAP_INCLUDE
845 TERMCAP_DIR
846 PBX_TERMCAP
847 TINFO_LIB
848 TINFO_INCLUDE
849 TINFO_DIR
850 PBX_TINFO
851 TONEZONE_LIB
852 TONEZONE_INCLUDE
853 TONEZONE_DIR
854 PBX_TONEZONE
855 VORBIS_LIB
856 VORBIS_INCLUDE
857 VORBIS_DIR
858 PBX_VORBIS
859 VPB_LIB
860 VPB_INCLUDE
861 VPB_DIR
862 PBX_VPB
863 ZLIB_LIB
864 ZLIB_INCLUDE
865 ZLIB_DIR
866 PBX_ZLIB
867 ZAPTEL_LIB
868 ZAPTEL_INCLUDE
869 ZAPTEL_DIR
870 PBX_ZAPTEL
871 ALLOCA
872 LIBOBJS
873 POW_LIB
874 GC_CFLAGS
875 GC_LDFLAGS
876 GSM_INTERNAL
877 KDEINIT
878 KDEDIR
879 NETSNMP_CONFIG
880 PG_CONFIG
881 PTLIB_CONFIG
882 PWLIBDIR
883 PWLIB_INCDIR
884 PWLIB_LIBDIR
885 PWLIB_PLATFORM
886 OPENH323DIR
887 OPENH323_INCDIR
888 OPENH323_LIBDIR
889 OPENH323_SUFFIX
890 OPENH323_BUILD
891 QTMOC
892 PBX_ZAPTEL_VLDTMF
893 PBX_ZAPTEL_TRANSCODE
894 EDITLINE_LIB
895 PBX_H323
896 PBX_IXJUSER
897 GTKCONFIG
898 PBX_GTK
899 GTK_INCLUDE
900 GTK_LIB
901 PKGCONFIG
902 PBX_GTK2
903 GTK2_INCLUDE
904 GTK2_LIB
905 CURL_CONFIG
906 LTLIBOBJS'
907 ac_subst_files=''
908 ac_precious_vars='build_alias
909 host_alias
910 target_alias
912 CFLAGS
913 LDFLAGS
914 LIBS
915 CPPFLAGS
918 CXXFLAGS
920 CXXCPP'
923 # Initialize some variables set by options.
924 ac_init_help=
925 ac_init_version=false
926 # The variables have the same names as the options, with
927 # dashes changed to underlines.
928 cache_file=/dev/null
929 exec_prefix=NONE
930 no_create=
931 no_recursion=
932 prefix=NONE
933 program_prefix=NONE
934 program_suffix=NONE
935 program_transform_name=s,x,x,
936 silent=
937 site=
938 srcdir=
939 verbose=
940 x_includes=NONE
941 x_libraries=NONE
943 # Installation directory options.
944 # These are left unexpanded so users can "make install exec_prefix=/foo"
945 # and all the variables that are supposed to be based on exec_prefix
946 # by default will actually change.
947 # Use braces instead of parens because sh, perl, etc. also accept them.
948 # (The list follows the same order as the GNU Coding Standards.)
949 bindir='${exec_prefix}/bin'
950 sbindir='${exec_prefix}/sbin'
951 libexecdir='${exec_prefix}/libexec'
952 datarootdir='${prefix}/share'
953 datadir='${datarootdir}'
954 sysconfdir='${prefix}/etc'
955 sharedstatedir='${prefix}/com'
956 localstatedir='${prefix}/var'
957 includedir='${prefix}/include'
958 oldincludedir='/usr/include'
959 docdir='${datarootdir}/doc/${PACKAGE}'
960 infodir='${datarootdir}/info'
961 htmldir='${docdir}'
962 dvidir='${docdir}'
963 pdfdir='${docdir}'
964 psdir='${docdir}'
965 libdir='${exec_prefix}/lib'
966 localedir='${datarootdir}/locale'
967 mandir='${datarootdir}/man'
969 ac_prev=
970 ac_dashdash=
971 for ac_option
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
975 eval $ac_prev=\$ac_option
976 ac_prev=
977 continue
980 case $ac_option in
981 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 *) ac_optarg=yes ;;
983 esac
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
989 ac_dashdash=yes ;;
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 ac_prev=bindir ;;
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994 bindir=$ac_optarg ;;
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1011 -datadir | --datadir | --datadi | --datad)
1012 ac_prev=datadir ;;
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1023 -disable-* | --disable-*)
1024 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1028 { (exit 1); exit 1; }; }
1029 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1030 eval enable_$ac_feature=no ;;
1032 -docdir | --docdir | --docdi | --doc | --do)
1033 ac_prev=docdir ;;
1034 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1035 docdir=$ac_optarg ;;
1037 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1038 ac_prev=dvidir ;;
1039 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1040 dvidir=$ac_optarg ;;
1042 -enable-* | --enable-*)
1043 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1049 eval enable_$ac_feature=\$ac_optarg ;;
1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053 | --exec | --exe | --ex)
1054 ac_prev=exec_prefix ;;
1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057 | --exec=* | --exe=* | --ex=*)
1058 exec_prefix=$ac_optarg ;;
1060 -gas | --gas | --ga | --g)
1061 # Obsolete; use --with-gas.
1062 with_gas=yes ;;
1064 -help | --help | --hel | --he | -h)
1065 ac_init_help=long ;;
1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067 ac_init_help=recursive ;;
1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069 ac_init_help=short ;;
1071 -host | --host | --hos | --ho)
1072 ac_prev=host_alias ;;
1073 -host=* | --host=* | --hos=* | --ho=*)
1074 host_alias=$ac_optarg ;;
1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077 ac_prev=htmldir ;;
1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079 | --ht=*)
1080 htmldir=$ac_optarg ;;
1082 -includedir | --includedir | --includedi | --included | --include \
1083 | --includ | --inclu | --incl | --inc)
1084 ac_prev=includedir ;;
1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086 | --includ=* | --inclu=* | --incl=* | --inc=*)
1087 includedir=$ac_optarg ;;
1089 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 ac_prev=infodir ;;
1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092 infodir=$ac_optarg ;;
1094 -libdir | --libdir | --libdi | --libd)
1095 ac_prev=libdir ;;
1096 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097 libdir=$ac_optarg ;;
1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100 | --libexe | --libex | --libe)
1101 ac_prev=libexecdir ;;
1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103 | --libexe=* | --libex=* | --libe=*)
1104 libexecdir=$ac_optarg ;;
1106 -localedir | --localedir | --localedi | --localed | --locale)
1107 ac_prev=localedir ;;
1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109 localedir=$ac_optarg ;;
1111 -localstatedir | --localstatedir | --localstatedi | --localstated \
1112 | --localstate | --localstat | --localsta | --localst | --locals)
1113 ac_prev=localstatedir ;;
1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1116 localstatedir=$ac_optarg ;;
1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 ac_prev=mandir ;;
1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121 mandir=$ac_optarg ;;
1123 -nfp | --nfp | --nf)
1124 # Obsolete; use --without-fp.
1125 with_fp=no ;;
1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128 | --no-cr | --no-c | -n)
1129 no_create=yes ;;
1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133 no_recursion=yes ;;
1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137 | --oldin | --oldi | --old | --ol | --o)
1138 ac_prev=oldincludedir ;;
1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142 oldincludedir=$ac_optarg ;;
1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 ac_prev=prefix ;;
1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147 prefix=$ac_optarg ;;
1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150 | --program-pre | --program-pr | --program-p)
1151 ac_prev=program_prefix ;;
1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154 program_prefix=$ac_optarg ;;
1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157 | --program-suf | --program-su | --program-s)
1158 ac_prev=program_suffix ;;
1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161 program_suffix=$ac_optarg ;;
1163 -program-transform-name | --program-transform-name \
1164 | --program-transform-nam | --program-transform-na \
1165 | --program-transform-n | --program-transform- \
1166 | --program-transform | --program-transfor \
1167 | --program-transfo | --program-transf \
1168 | --program-trans | --program-tran \
1169 | --progr-tra | --program-tr | --program-t)
1170 ac_prev=program_transform_name ;;
1171 -program-transform-name=* | --program-transform-name=* \
1172 | --program-transform-nam=* | --program-transform-na=* \
1173 | --program-transform-n=* | --program-transform-=* \
1174 | --program-transform=* | --program-transfor=* \
1175 | --program-transfo=* | --program-transf=* \
1176 | --program-trans=* | --program-tran=* \
1177 | --progr-tra=* | --program-tr=* | --program-t=*)
1178 program_transform_name=$ac_optarg ;;
1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181 ac_prev=pdfdir ;;
1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183 pdfdir=$ac_optarg ;;
1185 -psdir | --psdir | --psdi | --psd | --ps)
1186 ac_prev=psdir ;;
1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188 psdir=$ac_optarg ;;
1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1192 silent=yes ;;
1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195 ac_prev=sbindir ;;
1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197 | --sbi=* | --sb=*)
1198 sbindir=$ac_optarg ;;
1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202 | --sharedst | --shareds | --shared | --share | --shar \
1203 | --sha | --sh)
1204 ac_prev=sharedstatedir ;;
1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208 | --sha=* | --sh=*)
1209 sharedstatedir=$ac_optarg ;;
1211 -site | --site | --sit)
1212 ac_prev=site ;;
1213 -site=* | --site=* | --sit=*)
1214 site=$ac_optarg ;;
1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 ac_prev=srcdir ;;
1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219 srcdir=$ac_optarg ;;
1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222 | --syscon | --sysco | --sysc | --sys | --sy)
1223 ac_prev=sysconfdir ;;
1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226 sysconfdir=$ac_optarg ;;
1228 -target | --target | --targe | --targ | --tar | --ta | --t)
1229 ac_prev=target_alias ;;
1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231 target_alias=$ac_optarg ;;
1233 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234 verbose=yes ;;
1236 -version | --version | --versio | --versi | --vers | -V)
1237 ac_init_version=: ;;
1239 -with-* | --with-*)
1240 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 { echo "$as_me: error: invalid package name: $ac_package" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1246 eval with_$ac_package=\$ac_optarg ;;
1248 -without-* | --without-*)
1249 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 { echo "$as_me: error: invalid package name: $ac_package" >&2
1253 { (exit 1); exit 1; }; }
1254 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1255 eval with_$ac_package=no ;;
1257 --x)
1258 # Obsolete; use --with-x.
1259 with_x=yes ;;
1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 | --x-incl | --x-inc | --x-in | --x-i)
1263 ac_prev=x_includes ;;
1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266 x_includes=$ac_optarg ;;
1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 ac_prev=x_libraries ;;
1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273 x_libraries=$ac_optarg ;;
1275 -*) { echo "$as_me: error: unrecognized option: $ac_option
1276 Try \`$0 --help' for more information." >&2
1277 { (exit 1); exit 1; }; }
1280 *=*)
1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1284 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1285 { (exit 1); exit 1; }; }
1286 eval $ac_envvar=\$ac_optarg
1287 export $ac_envvar ;;
1290 # FIXME: should be removed in autoconf 3.0.
1291 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1297 esac
1298 done
1300 if test -n "$ac_prev"; then
1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302 { echo "$as_me: error: missing argument to $ac_option" >&2
1303 { (exit 1); exit 1; }; }
1306 # Be sure to have absolute directory names.
1307 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
1312 eval ac_val=\$$ac_var
1313 case $ac_val in
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316 esac
1317 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1318 { (exit 1); exit 1; }; }
1319 done
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1333 If a cross compiler is detected then cross compile mode will be used." >&2
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342 test "$silent" = yes && exec 6>/dev/null
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 { echo "$as_me: error: Working directory cannot be determined" >&2
1349 { (exit 1); exit 1; }; }
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351 { echo "$as_me: error: pwd does not report name of working directory" >&2
1352 { (exit 1); exit 1; }; }
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357 ac_srcdir_defaulted=yes
1358 # Try the directory containing this script, then the parent directory.
1359 ac_confdir=`$as_dirname -- "$0" ||
1360 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361 X"$0" : 'X\(//\)[^/]' \| \
1362 X"$0" : 'X\(//\)$' \| \
1363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1364 echo X"$0" |
1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366 s//\1/
1369 /^X\(\/\/\)[^/].*/{
1370 s//\1/
1373 /^X\(\/\/\)$/{
1374 s//\1/
1377 /^X\(\/\).*/{
1378 s//\1/
1381 s/.*/./; q'`
1382 srcdir=$ac_confdir
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 srcdir=..
1386 else
1387 ac_srcdir_defaulted=no
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1392 { (exit 1); exit 1; }; }
1394 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 ac_abs_confdir=`(
1396 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1397 { (exit 1); exit 1; }; }
1398 pwd)`
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 srcdir=.
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1406 case $srcdir in
1407 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 esac
1409 for ac_var in $ac_precious_vars; do
1410 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_${ac_var}_value=\$${ac_var}
1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 done
1417 # Report the --help message.
1419 if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1422 cat <<_ACEOF
1423 \`configure' configures this package to adapt to many kinds of systems.
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE. See below for descriptions of some of the useful variables.
1430 Defaults for the options are specified in brackets.
1432 Configuration:
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
1437 -q, --quiet, --silent do not print \`checking...' messages
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for \`--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443 Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
1445 [$ac_default_prefix]
1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 [PREFIX]
1449 By default, \`make install' will install all the files in
1450 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1451 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452 for instance \`--prefix=\$HOME'.
1454 For better control, use the options below.
1456 Fine tuning of the installation directories:
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --libdir=DIR object code libraries [EPREFIX/lib]
1464 --includedir=DIR C header files [PREFIX/include]
1465 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1468 --infodir=DIR info documentation [DATAROOTDIR/info]
1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1470 --mandir=DIR man documentation [DATAROOTDIR/man]
1471 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1472 --htmldir=DIR html documentation [DOCDIR]
1473 --dvidir=DIR dvi documentation [DOCDIR]
1474 --pdfdir=DIR pdf documentation [DOCDIR]
1475 --psdir=DIR ps documentation [DOCDIR]
1476 _ACEOF
1478 cat <<\_ACEOF
1480 System types:
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 _ACEOF
1486 if test -n "$ac_init_help"; then
1488 cat <<\_ACEOF
1490 Optional Features:
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-dev-mode Turn on developer mode
1494 --disable-largefile omit support for large files
1496 Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1501 --with-curl=PATH use cURL files in PATH
1502 --with-curses=PATH use curses files in PATH
1503 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1504 PATH
1505 --with-gsm=PATH use GSM files in PATH , or 'internal'
1506 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1507 --with-imap=PATH use UW IMAP Toolkit files in PATH
1508 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1509 --with-kde=PATH use KDE files in PATH
1510 --with-ltdl=PATH use libtool files in PATH
1511 --with-misdn=PATH use mISDN User Library files in PATH
1512 --with-nbs=PATH use Network Broadcast Sound files in PATH
1513 --with-ncurses=PATH use ncurses files in PATH
1514 --with-netsnmp=PATH use Net-SNMP files in PATH
1515 --with-newt=PATH use newt files in PATH
1516 --with-odbc=PATH use unixODBC files in PATH
1517 --with-ogg=PATH use OGG files in PATH
1518 --with-osptk=PATH use OSP Toolkit files in PATH
1519 --with-oss=PATH use Open Sound System files in PATH
1520 --with-popt=PATH use popt files in PATH
1521 --with-postgres=PATH use PostgreSQL files in PATH
1522 --with-pri=PATH use ISDN PRI files in PATH
1523 --with-pwlib=PATH use PWlib files in PATH
1524 --with-h323=PATH use OpenH323 files in PATH
1525 --with-qt=PATH use Qt files in PATH
1526 --with-radius=PATH use Radius Client files in PATH
1527 --with-speex=PATH use Speex files in PATH
1528 --with-sqlite=PATH use SQLite files in PATH
1529 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1530 --with-ssl=PATH use OpenSSL files in PATH
1531 --with-tds=PATH use FreeTDS files in PATH
1532 --with-termcap=PATH use Termcap files in PATH
1533 --with-tinfo=PATH use Term Info files in PATH
1534 --with-tonezone=PATH use tonezone files in PATH
1535 --with-vorbis=PATH use Vorbis files in PATH
1536 --with-vpb=PATH use Voicetronix API files in PATH
1537 --with-z=PATH use zlib files in PATH
1538 --with-zaptel=PATH use Zaptel files in PATH
1540 Some influential environment variables:
1541 CC C compiler command
1542 CFLAGS C compiler flags
1543 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1544 nonstandard directory <lib dir>
1545 LIBS libraries to pass to the linker, e.g. -l<library>
1546 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1547 you have headers in a nonstandard directory <include dir>
1548 CPP C preprocessor
1549 CXX C++ compiler command
1550 CXXFLAGS C++ compiler flags
1551 CXXCPP C++ preprocessor
1553 Use these variables to override the choices made by `configure' or to help
1554 it to find libraries and programs with nonstandard names/locations.
1556 _ACEOF
1557 ac_status=$?
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" || continue
1564 ac_builddir=.
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575 esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1582 case $srcdir in
1583 .) # We are building in place.
1584 ac_srcdir=.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1591 *) # Relative name.
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for guested configure.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1604 echo &&
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1606 else
1607 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 fi || ac_status=$?
1609 cd "$ac_pwd" || { ac_status=$?; break; }
1610 done
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1615 cat <<\_ACEOF
1616 configure
1617 generated by GNU Autoconf 2.61
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1624 "Asterisk"
1625 _ACEOF
1626 exit
1628 cat >config.log <<_ACEOF
1629 This file contains any messages produced by compilers while
1630 running configure, to aid debugging if configure makes a mistake.
1632 It was created by $as_me, which was
1633 generated by GNU Autoconf 2.61. Invocation command line was
1635 $ $0 $@
1637 _ACEOF
1638 exec 5>>config.log
1640 cat <<_ASUNAME
1641 ## --------- ##
1642 ## Platform. ##
1643 ## --------- ##
1645 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1646 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1647 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1648 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1649 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1651 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1652 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1654 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1655 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1656 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1657 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1658 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1659 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1660 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1662 _ASUNAME
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1667 IFS=$as_save_IFS
1668 test -z "$as_dir" && as_dir=.
1669 echo "PATH: $as_dir"
1670 done
1671 IFS=$as_save_IFS
1673 } >&5
1675 cat >&5 <<_ACEOF
1678 ## ----------- ##
1679 ## Core tests. ##
1680 ## ----------- ##
1682 _ACEOF
1685 # Keep a trace of the command line.
1686 # Strip out --no-create and --no-recursion so they do not pile up.
1687 # Strip out --silent because we don't want to record it for future runs.
1688 # Also quote any args containing shell meta-characters.
1689 # Make two passes to allow for proper duplicate-argument suppression.
1690 ac_configure_args=
1691 ac_configure_args0=
1692 ac_configure_args1=
1693 ac_must_keep_next=false
1694 for ac_pass in 1 2
1696 for ac_arg
1698 case $ac_arg in
1699 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1701 | -silent | --silent | --silen | --sile | --sil)
1702 continue ;;
1703 *\'*)
1704 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1705 esac
1706 case $ac_pass in
1707 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1709 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1710 if test $ac_must_keep_next = true; then
1711 ac_must_keep_next=false # Got value, back to normal.
1712 else
1713 case $ac_arg in
1714 *=* | --config-cache | -C | -disable-* | --disable-* \
1715 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1716 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1717 | -with-* | --with-* | -without-* | --without-* | --x)
1718 case "$ac_configure_args0 " in
1719 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1720 esac
1722 -* ) ac_must_keep_next=true ;;
1723 esac
1725 ac_configure_args="$ac_configure_args '$ac_arg'"
1727 esac
1728 done
1729 done
1730 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1731 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1733 # When interrupted or exit'd, cleanup temporary files, and complete
1734 # config.log. We remove comments because anyway the quotes in there
1735 # would cause problems or look ugly.
1736 # WARNING: Use '\'' to represent an apostrophe within the trap.
1737 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1738 trap 'exit_status=$?
1739 # Save into config.log some information that might help in debugging.
1741 echo
1743 cat <<\_ASBOX
1744 ## ---------------- ##
1745 ## Cache variables. ##
1746 ## ---------------- ##
1747 _ASBOX
1748 echo
1749 # The following way of writing the cache mishandles newlines in values,
1751 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1752 eval ac_val=\$$ac_var
1753 case $ac_val in #(
1754 *${as_nl}*)
1755 case $ac_var in #(
1756 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1757 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1758 esac
1759 case $ac_var in #(
1760 _ | IFS | as_nl) ;; #(
1761 *) $as_unset $ac_var ;;
1762 esac ;;
1763 esac
1764 done
1765 (set) 2>&1 |
1766 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1767 *${as_nl}ac_space=\ *)
1768 sed -n \
1769 "s/'\''/'\''\\\\'\'''\''/g;
1770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1771 ;; #(
1773 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1775 esac |
1776 sort
1778 echo
1780 cat <<\_ASBOX
1781 ## ----------------- ##
1782 ## Output variables. ##
1783 ## ----------------- ##
1784 _ASBOX
1785 echo
1786 for ac_var in $ac_subst_vars
1788 eval ac_val=\$$ac_var
1789 case $ac_val in
1790 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791 esac
1792 echo "$ac_var='\''$ac_val'\''"
1793 done | sort
1794 echo
1796 if test -n "$ac_subst_files"; then
1797 cat <<\_ASBOX
1798 ## ------------------- ##
1799 ## File substitutions. ##
1800 ## ------------------- ##
1801 _ASBOX
1802 echo
1803 for ac_var in $ac_subst_files
1805 eval ac_val=\$$ac_var
1806 case $ac_val in
1807 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808 esac
1809 echo "$ac_var='\''$ac_val'\''"
1810 done | sort
1811 echo
1814 if test -s confdefs.h; then
1815 cat <<\_ASBOX
1816 ## ----------- ##
1817 ## confdefs.h. ##
1818 ## ----------- ##
1819 _ASBOX
1820 echo
1821 cat confdefs.h
1822 echo
1824 test "$ac_signal" != 0 &&
1825 echo "$as_me: caught signal $ac_signal"
1826 echo "$as_me: exit $exit_status"
1827 } >&5
1828 rm -f core *.core core.conftest.* &&
1829 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1830 exit $exit_status
1832 for ac_signal in 1 2 13 15; do
1833 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1834 done
1835 ac_signal=0
1837 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1838 rm -f -r conftest* confdefs.h
1840 # Predefined preprocessor variables.
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_NAME "$PACKAGE_NAME"
1844 _ACEOF
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1849 _ACEOF
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1854 _ACEOF
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_STRING "$PACKAGE_STRING"
1859 _ACEOF
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1864 _ACEOF
1867 # Let the site file select an alternate cache file if it wants to.
1868 # Prefer explicitly selected file to automatically selected ones.
1869 if test -n "$CONFIG_SITE"; then
1870 set x "$CONFIG_SITE"
1871 elif test "x$prefix" != xNONE; then
1872 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1873 else
1874 set x "$ac_default_prefix/share/config.site" \
1875 "$ac_default_prefix/etc/config.site"
1877 shift
1878 for ac_site_file
1880 if test -r "$ac_site_file"; then
1881 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1882 echo "$as_me: loading site script $ac_site_file" >&6;}
1883 sed 's/^/| /' "$ac_site_file" >&5
1884 . "$ac_site_file"
1886 done
1888 if test -r "$cache_file"; then
1889 # Some versions of bash will fail to source /dev/null (special
1890 # files actually), so we avoid doing that.
1891 if test -f "$cache_file"; then
1892 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1893 echo "$as_me: loading cache $cache_file" >&6;}
1894 case $cache_file in
1895 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1896 *) . "./$cache_file";;
1897 esac
1899 else
1900 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1901 echo "$as_me: creating cache $cache_file" >&6;}
1902 >$cache_file
1905 ac_header_list="$ac_header_list sys/time.h"
1906 ac_header_list="$ac_header_list unistd.h"
1907 ac_func_list="$ac_func_list alarm"
1908 ac_header_list="$ac_header_list utime.h"
1909 # Check that the precious variables saved in the cache have kept the same
1910 # value.
1911 ac_cache_corrupted=false
1912 for ac_var in $ac_precious_vars; do
1913 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1914 eval ac_new_set=\$ac_env_${ac_var}_set
1915 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1916 eval ac_new_val=\$ac_env_${ac_var}_value
1917 case $ac_old_set,$ac_new_set in
1918 set,)
1919 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1920 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1921 ac_cache_corrupted=: ;;
1922 ,set)
1923 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1924 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1925 ac_cache_corrupted=: ;;
1926 ,);;
1928 if test "x$ac_old_val" != "x$ac_new_val"; then
1929 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1930 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1931 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1932 echo "$as_me: former value: $ac_old_val" >&2;}
1933 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1934 echo "$as_me: current value: $ac_new_val" >&2;}
1935 ac_cache_corrupted=:
1936 fi;;
1937 esac
1938 # Pass precious variables to config.status.
1939 if test "$ac_new_set" = set; then
1940 case $ac_new_val in
1941 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1942 *) ac_arg=$ac_var=$ac_new_val ;;
1943 esac
1944 case " $ac_configure_args " in
1945 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1946 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1947 esac
1949 done
1950 if $ac_cache_corrupted; then
1951 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1952 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1953 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1954 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1955 { (exit 1); exit 1; }; }
1974 ac_ext=c
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1982 # cross-compile macros
1983 ac_aux_dir=
1984 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1985 if test -f "$ac_dir/install-sh"; then
1986 ac_aux_dir=$ac_dir
1987 ac_install_sh="$ac_aux_dir/install-sh -c"
1988 break
1989 elif test -f "$ac_dir/install.sh"; then
1990 ac_aux_dir=$ac_dir
1991 ac_install_sh="$ac_aux_dir/install.sh -c"
1992 break
1993 elif test -f "$ac_dir/shtool"; then
1994 ac_aux_dir=$ac_dir
1995 ac_install_sh="$ac_aux_dir/shtool install -c"
1996 break
1998 done
1999 if test -z "$ac_aux_dir"; then
2000 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2001 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2002 { (exit 1); exit 1; }; }
2005 # These three variables are undocumented and unsupported,
2006 # and are intended to be withdrawn in a future Autoconf release.
2007 # They can cause serious problems if a builder's source tree is in a directory
2008 # whose full name contains unusual characters.
2009 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2010 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2011 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2014 # Make sure we can run config.sub.
2015 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2016 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2017 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2018 { (exit 1); exit 1; }; }
2020 { echo "$as_me:$LINENO: checking build system type" >&5
2021 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2022 if test "${ac_cv_build+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025 ac_build_alias=$build_alias
2026 test "x$ac_build_alias" = x &&
2027 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2028 test "x$ac_build_alias" = x &&
2029 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2030 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2031 { (exit 1); exit 1; }; }
2032 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2033 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2034 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2035 { (exit 1); exit 1; }; }
2038 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2039 echo "${ECHO_T}$ac_cv_build" >&6; }
2040 case $ac_cv_build in
2041 *-*-*) ;;
2042 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2043 echo "$as_me: error: invalid value of canonical build" >&2;}
2044 { (exit 1); exit 1; }; };;
2045 esac
2046 build=$ac_cv_build
2047 ac_save_IFS=$IFS; IFS='-'
2048 set x $ac_cv_build
2049 shift
2050 build_cpu=$1
2051 build_vendor=$2
2052 shift; shift
2053 # Remember, the first character of IFS is used to create $*,
2054 # except with old shells:
2055 build_os=$*
2056 IFS=$ac_save_IFS
2057 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2060 { echo "$as_me:$LINENO: checking host system type" >&5
2061 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2062 if test "${ac_cv_host+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065 if test "x$host_alias" = x; then
2066 ac_cv_host=$ac_cv_build
2067 else
2068 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2069 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2070 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2071 { (exit 1); exit 1; }; }
2075 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2076 echo "${ECHO_T}$ac_cv_host" >&6; }
2077 case $ac_cv_host in
2078 *-*-*) ;;
2079 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2080 echo "$as_me: error: invalid value of canonical host" >&2;}
2081 { (exit 1); exit 1; }; };;
2082 esac
2083 host=$ac_cv_host
2084 ac_save_IFS=$IFS; IFS='-'
2085 set x $ac_cv_host
2086 shift
2087 host_cpu=$1
2088 host_vendor=$2
2089 shift; shift
2090 # Remember, the first character of IFS is used to create $*,
2091 # except with old shells:
2092 host_os=$*
2093 IFS=$ac_save_IFS
2094 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2098 # check existence of the package
2101 # specify output header file
2102 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2109 cat >>confdefs.h <<\_ACEOF
2110 #define _GNU_SOURCE 1
2111 _ACEOF
2114 ac_ext=c
2115 ac_cpp='$CPP $CPPFLAGS'
2116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2119 if test -n "$ac_tool_prefix"; then
2120 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2121 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2124 if test "${ac_cv_prog_CC+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127 if test -n "$CC"; then
2128 ac_cv_prog_CC="$CC" # Let the user override the test.
2129 else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2137 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 break 2
2141 done
2142 done
2143 IFS=$as_save_IFS
2147 CC=$ac_cv_prog_CC
2148 if test -n "$CC"; then
2149 { echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6; }
2151 else
2152 { echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6; }
2158 if test -z "$ac_cv_prog_CC"; then
2159 ac_ct_CC=$CC
2160 # Extract the first word of "gcc", so it can be a program name with args.
2161 set dummy gcc; ac_word=$2
2162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167 if test -n "$ac_ct_CC"; then
2168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2169 else
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2177 ac_cv_prog_ac_ct_CC="gcc"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 break 2
2181 done
2182 done
2183 IFS=$as_save_IFS
2187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2188 if test -n "$ac_ct_CC"; then
2189 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2190 echo "${ECHO_T}$ac_ct_CC" >&6; }
2191 else
2192 { echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6; }
2196 if test "x$ac_ct_CC" = x; then
2197 CC=""
2198 else
2199 case $cross_compiling:$ac_tool_warned in
2200 yes:)
2201 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2202 whose name does not start with the host triplet. If you think this
2203 configuration is useful to you, please write to autoconf@gnu.org." >&5
2204 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2205 whose name does not start with the host triplet. If you think this
2206 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2207 ac_tool_warned=yes ;;
2208 esac
2209 CC=$ac_ct_CC
2211 else
2212 CC="$ac_cv_prog_CC"
2215 if test -z "$CC"; then
2216 if test -n "$ac_tool_prefix"; then
2217 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2218 set dummy ${ac_tool_prefix}cc; ac_word=$2
2219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2221 if test "${ac_cv_prog_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224 if test -n "$CC"; then
2225 ac_cv_prog_CC="$CC" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2234 ac_cv_prog_CC="${ac_tool_prefix}cc"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 break 2
2238 done
2239 done
2240 IFS=$as_save_IFS
2244 CC=$ac_cv_prog_CC
2245 if test -n "$CC"; then
2246 { echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6; }
2248 else
2249 { echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6; }
2256 if test -z "$CC"; then
2257 # Extract the first word of "cc", so it can be a program name with args.
2258 set dummy cc; ac_word=$2
2259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2261 if test "${ac_cv_prog_CC+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 if test -n "$CC"; then
2265 ac_cv_prog_CC="$CC" # Let the user override the test.
2266 else
2267 ac_prog_rejected=no
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2275 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2276 ac_prog_rejected=yes
2277 continue
2279 ac_cv_prog_CC="cc"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2283 done
2284 done
2285 IFS=$as_save_IFS
2287 if test $ac_prog_rejected = yes; then
2288 # We found a bogon in the path, so make sure we never use it.
2289 set dummy $ac_cv_prog_CC
2290 shift
2291 if test $# != 0; then
2292 # We chose a different compiler from the bogus one.
2293 # However, it has the same basename, so the bogon will be chosen
2294 # first if we set CC to just the basename; use the full file name.
2295 shift
2296 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2301 CC=$ac_cv_prog_CC
2302 if test -n "$CC"; then
2303 { echo "$as_me:$LINENO: result: $CC" >&5
2304 echo "${ECHO_T}$CC" >&6; }
2305 else
2306 { echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6; }
2312 if test -z "$CC"; then
2313 if test -n "$ac_tool_prefix"; then
2314 for ac_prog in cl.exe
2316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323 if test -n "$CC"; then
2324 ac_cv_prog_CC="$CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 break 2
2337 done
2338 done
2339 IFS=$as_save_IFS
2343 CC=$ac_cv_prog_CC
2344 if test -n "$CC"; then
2345 { echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6; }
2347 else
2348 { echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6; }
2353 test -n "$CC" && break
2354 done
2356 if test -z "$CC"; then
2357 ac_ct_CC=$CC
2358 for ac_prog in cl.exe
2360 # Extract the first word of "$ac_prog", so it can be a program name with args.
2361 set dummy $ac_prog; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 if test -n "$ac_ct_CC"; then
2368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_ac_ct_CC="$ac_prog"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 break 2
2381 done
2382 done
2383 IFS=$as_save_IFS
2387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388 if test -n "$ac_ct_CC"; then
2389 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390 echo "${ECHO_T}$ac_ct_CC" >&6; }
2391 else
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2397 test -n "$ac_ct_CC" && break
2398 done
2400 if test "x$ac_ct_CC" = x; then
2401 CC=""
2402 else
2403 case $cross_compiling:$ac_tool_warned in
2404 yes:)
2405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2406 whose name does not start with the host triplet. If you think this
2407 configuration is useful to you, please write to autoconf@gnu.org." >&5
2408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2409 whose name does not start with the host triplet. If you think this
2410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2411 ac_tool_warned=yes ;;
2412 esac
2413 CC=$ac_ct_CC
2420 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2421 See \`config.log' for more details." >&5
2422 echo "$as_me: error: no acceptable C compiler found in \$PATH
2423 See \`config.log' for more details." >&2;}
2424 { (exit 1); exit 1; }; }
2426 # Provide some information about the compiler.
2427 echo "$as_me:$LINENO: checking for C compiler version" >&5
2428 ac_compiler=`set X $ac_compile; echo $2`
2429 { (ac_try="$ac_compiler --version >&5"
2430 case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_compiler --version >&5") 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }
2439 { (ac_try="$ac_compiler -v >&5"
2440 case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compiler -v >&5") 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }
2449 { (ac_try="$ac_compiler -V >&5"
2450 case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2453 esac
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compiler -V >&5") 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }
2460 cat >conftest.$ac_ext <<_ACEOF
2461 /* confdefs.h. */
2462 _ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h. */
2468 main ()
2472 return 0;
2474 _ACEOF
2475 ac_clean_files_save=$ac_clean_files
2476 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2477 # Try to create an executable without -o first, disregard a.out.
2478 # It will help us diagnose broken compilers, and finding out an intuition
2479 # of exeext.
2480 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2481 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2482 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2484 # List of possible output files, starting from the most likely.
2485 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2486 # only as a last resort. b.out is created by i960 compilers.
2487 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2489 # The IRIX 6 linker writes into existing files which may not be
2490 # executable, retaining their permissions. Remove them first so a
2491 # subsequent execution test works.
2492 ac_rmfiles=
2493 for ac_file in $ac_files
2495 case $ac_file in
2496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2497 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2498 esac
2499 done
2500 rm -f $ac_rmfiles
2502 if { (ac_try="$ac_link_default"
2503 case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2506 esac
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_link_default") 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; then
2512 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2513 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2514 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2515 # so that the user can short-circuit this test for compilers unknown to
2516 # Autoconf.
2517 for ac_file in $ac_files ''
2519 test -f "$ac_file" || continue
2520 case $ac_file in
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2523 [ab].out )
2524 # We found the default executable, but exeext='' is most
2525 # certainly right.
2526 break;;
2527 *.* )
2528 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2529 then :; else
2530 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2532 # We set ac_cv_exeext here because the later test for it is not
2533 # safe: cross compilers may not add the suffix if given an `-o'
2534 # argument, so we may need to know it at that point already.
2535 # Even if this section looks crufty: it has the advantage of
2536 # actually working.
2537 break;;
2539 break;;
2540 esac
2541 done
2542 test "$ac_cv_exeext" = no && ac_cv_exeext=
2544 else
2545 ac_file=''
2548 { echo "$as_me:$LINENO: result: $ac_file" >&5
2549 echo "${ECHO_T}$ac_file" >&6; }
2550 if test -z "$ac_file"; then
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2554 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: C compiler cannot create executables
2557 See \`config.log' for more details." >&2;}
2558 { (exit 77); exit 77; }; }
2561 ac_exeext=$ac_cv_exeext
2563 # Check that the compiler produces executables we can run. If not, either
2564 # the compiler is broken, or we cross compile.
2565 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2566 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2567 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2568 # If not cross compiling, check that we can run a simple program.
2569 if test "$cross_compiling" != yes; then
2570 if { ac_try='./$ac_file'
2571 { (case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2574 esac
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_try") 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2580 cross_compiling=no
2581 else
2582 if test "$cross_compiling" = maybe; then
2583 cross_compiling=yes
2584 else
2585 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2586 If you meant to cross compile, use \`--host'.
2587 See \`config.log' for more details." >&5
2588 echo "$as_me: error: cannot run C compiled programs.
2589 If you meant to cross compile, use \`--host'.
2590 See \`config.log' for more details." >&2;}
2591 { (exit 1); exit 1; }; }
2595 { echo "$as_me:$LINENO: result: yes" >&5
2596 echo "${ECHO_T}yes" >&6; }
2598 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2599 ac_clean_files=$ac_clean_files_save
2600 # Check that the compiler produces executables we can run. If not, either
2601 # the compiler is broken, or we cross compile.
2602 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2603 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2604 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2605 echo "${ECHO_T}$cross_compiling" >&6; }
2607 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2608 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2609 if { (ac_try="$ac_link"
2610 case "(($ac_try" in
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2613 esac
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_link") 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; then
2619 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2620 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2621 # work properly (i.e., refer to `conftest.exe'), while it won't with
2622 # `rm'.
2623 for ac_file in conftest.exe conftest conftest.*; do
2624 test -f "$ac_file" || continue
2625 case $ac_file in
2626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2627 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2628 break;;
2629 * ) break;;
2630 esac
2631 done
2632 else
2633 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2634 See \`config.log' for more details." >&5
2635 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2636 See \`config.log' for more details." >&2;}
2637 { (exit 1); exit 1; }; }
2640 rm -f conftest$ac_cv_exeext
2641 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2642 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2644 rm -f conftest.$ac_ext
2645 EXEEXT=$ac_cv_exeext
2646 ac_exeext=$EXEEXT
2647 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2648 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2649 if test "${ac_cv_objext+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 else
2652 cat >conftest.$ac_ext <<_ACEOF
2653 /* confdefs.h. */
2654 _ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2660 main ()
2664 return 0;
2666 _ACEOF
2667 rm -f conftest.o conftest.obj
2668 if { (ac_try="$ac_compile"
2669 case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2672 esac
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_compile") 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; then
2678 for ac_file in conftest.o conftest.obj conftest.*; do
2679 test -f "$ac_file" || continue;
2680 case $ac_file in
2681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2683 break;;
2684 esac
2685 done
2686 else
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2690 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2691 See \`config.log' for more details." >&5
2692 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2693 See \`config.log' for more details." >&2;}
2694 { (exit 1); exit 1; }; }
2697 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2699 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2700 echo "${ECHO_T}$ac_cv_objext" >&6; }
2701 OBJEXT=$ac_cv_objext
2702 ac_objext=$OBJEXT
2703 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2704 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2705 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708 cat >conftest.$ac_ext <<_ACEOF
2709 /* confdefs.h. */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2716 main ()
2718 #ifndef __GNUC__
2719 choke me
2720 #endif
2723 return 0;
2725 _ACEOF
2726 rm -f conftest.$ac_objext
2727 if { (ac_try="$ac_compile"
2728 case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_compile") 2>conftest.er1
2734 ac_status=$?
2735 grep -v '^ *+' conftest.er1 >conftest.err
2736 rm -f conftest.er1
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } && {
2740 test -z "$ac_c_werror_flag" ||
2741 test ! -s conftest.err
2742 } && test -s conftest.$ac_objext; then
2743 ac_compiler_gnu=yes
2744 else
2745 echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2748 ac_compiler_gnu=no
2751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2752 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2755 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2756 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2757 GCC=`test $ac_compiler_gnu = yes && echo yes`
2758 ac_test_CFLAGS=${CFLAGS+set}
2759 ac_save_CFLAGS=$CFLAGS
2760 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2761 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2762 if test "${ac_cv_prog_cc_g+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 ac_save_c_werror_flag=$ac_c_werror_flag
2766 ac_c_werror_flag=yes
2767 ac_cv_prog_cc_g=no
2768 CFLAGS="-g"
2769 cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h. */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2777 main ()
2781 return 0;
2783 _ACEOF
2784 rm -f conftest.$ac_objext
2785 if { (ac_try="$ac_compile"
2786 case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789 esac
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_compile") 2>conftest.er1
2792 ac_status=$?
2793 grep -v '^ *+' conftest.er1 >conftest.err
2794 rm -f conftest.er1
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } && {
2798 test -z "$ac_c_werror_flag" ||
2799 test ! -s conftest.err
2800 } && test -s conftest.$ac_objext; then
2801 ac_cv_prog_cc_g=yes
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 CFLAGS=""
2807 cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h. */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2815 main ()
2819 return 0;
2821 _ACEOF
2822 rm -f conftest.$ac_objext
2823 if { (ac_try="$ac_compile"
2824 case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827 esac
2828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_compile") 2>conftest.er1
2830 ac_status=$?
2831 grep -v '^ *+' conftest.er1 >conftest.err
2832 rm -f conftest.er1
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } && {
2836 test -z "$ac_c_werror_flag" ||
2837 test ! -s conftest.err
2838 } && test -s conftest.$ac_objext; then
2840 else
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2844 ac_c_werror_flag=$ac_save_c_werror_flag
2845 CFLAGS="-g"
2846 cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h. */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2854 main ()
2858 return 0;
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (ac_try="$ac_compile"
2863 case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866 esac
2867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868 (eval "$ac_compile") 2>conftest.er1
2869 ac_status=$?
2870 grep -v '^ *+' conftest.er1 >conftest.err
2871 rm -f conftest.er1
2872 cat conftest.err >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } && {
2875 test -z "$ac_c_werror_flag" ||
2876 test ! -s conftest.err
2877 } && test -s conftest.$ac_objext; then
2878 ac_cv_prog_cc_g=yes
2879 else
2880 echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 ac_c_werror_flag=$ac_save_c_werror_flag
2895 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2896 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2897 if test "$ac_test_CFLAGS" = set; then
2898 CFLAGS=$ac_save_CFLAGS
2899 elif test $ac_cv_prog_cc_g = yes; then
2900 if test "$GCC" = yes; then
2901 CFLAGS="-g -O2"
2902 else
2903 CFLAGS="-g"
2905 else
2906 if test "$GCC" = yes; then
2907 CFLAGS="-O2"
2908 else
2909 CFLAGS=
2912 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2913 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2914 if test "${ac_cv_prog_cc_c89+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 ac_cv_prog_cc_c89=no
2918 ac_save_CC=$CC
2919 cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h. */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2925 #include <stdarg.h>
2926 #include <stdio.h>
2927 #include <sys/types.h>
2928 #include <sys/stat.h>
2929 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2930 struct buf { int x; };
2931 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2932 static char *e (p, i)
2933 char **p;
2934 int i;
2936 return p[i];
2938 static char *f (char * (*g) (char **, int), char **p, ...)
2940 char *s;
2941 va_list v;
2942 va_start (v,p);
2943 s = g (p, va_arg (v,int));
2944 va_end (v);
2945 return s;
2948 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2949 function prototypes and stuff, but not '\xHH' hex character constants.
2950 These don't provoke an error unfortunately, instead are silently treated
2951 as 'x'. The following induces an error, until -std is added to get
2952 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2953 array size at least. It's necessary to write '\x00'==0 to get something
2954 that's true only with -std. */
2955 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2957 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2958 inside strings and character constants. */
2959 #define FOO(x) 'x'
2960 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2962 int test (int i, double x);
2963 struct s1 {int (*f) (int a);};
2964 struct s2 {int (*f) (double a);};
2965 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2966 int argc;
2967 char **argv;
2969 main ()
2971 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2973 return 0;
2975 _ACEOF
2976 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2977 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2979 CC="$ac_save_CC $ac_arg"
2980 rm -f conftest.$ac_objext
2981 if { (ac_try="$ac_compile"
2982 case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compile") 2>conftest.er1
2988 ac_status=$?
2989 grep -v '^ *+' conftest.er1 >conftest.err
2990 rm -f conftest.er1
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } && {
2994 test -z "$ac_c_werror_flag" ||
2995 test ! -s conftest.err
2996 } && test -s conftest.$ac_objext; then
2997 ac_cv_prog_cc_c89=$ac_arg
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3005 rm -f core conftest.err conftest.$ac_objext
3006 test "x$ac_cv_prog_cc_c89" != "xno" && break
3007 done
3008 rm -f conftest.$ac_ext
3009 CC=$ac_save_CC
3012 # AC_CACHE_VAL
3013 case "x$ac_cv_prog_cc_c89" in
3015 { echo "$as_me:$LINENO: result: none needed" >&5
3016 echo "${ECHO_T}none needed" >&6; } ;;
3017 xno)
3018 { echo "$as_me:$LINENO: result: unsupported" >&5
3019 echo "${ECHO_T}unsupported" >&6; } ;;
3021 CC="$CC $ac_cv_prog_cc_c89"
3022 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3023 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3024 esac
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034 ac_ext=c
3035 ac_cpp='$CPP $CPPFLAGS'
3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3040 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3041 # On Suns, sometimes $CPP names a directory.
3042 if test -n "$CPP" && test -d "$CPP"; then
3043 CPP=
3045 if test -z "$CPP"; then
3046 if test "${ac_cv_prog_CPP+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049 # Double quotes because CPP needs to be expanded
3050 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3052 ac_preproc_ok=false
3053 for ac_c_preproc_warn_flag in '' yes
3055 # Use a header file that comes with gcc, so configuring glibc
3056 # with a fresh cross-compiler works.
3057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3058 # <limits.h> exists even on freestanding compilers.
3059 # On the NeXT, cc -E runs the code through the compiler's parser,
3060 # not just through cpp. "Syntax error" is here to catch this case.
3061 cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h. */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3067 #ifdef __STDC__
3068 # include <limits.h>
3069 #else
3070 # include <assert.h>
3071 #endif
3072 Syntax error
3073 _ACEOF
3074 if { (ac_try="$ac_cpp conftest.$ac_ext"
3075 case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3081 ac_status=$?
3082 grep -v '^ *+' conftest.er1 >conftest.err
3083 rm -f conftest.er1
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } >/dev/null && {
3087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3088 test ! -s conftest.err
3089 }; then
3091 else
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 # Broken: fails on valid input.
3096 continue
3099 rm -f conftest.err conftest.$ac_ext
3101 # OK, works on sane cases. Now check whether nonexistent headers
3102 # can be detected and how.
3103 cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h. */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3109 #include <ac_nonexistent.h>
3110 _ACEOF
3111 if { (ac_try="$ac_cpp conftest.$ac_ext"
3112 case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3118 ac_status=$?
3119 grep -v '^ *+' conftest.er1 >conftest.err
3120 rm -f conftest.er1
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } >/dev/null && {
3124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3125 test ! -s conftest.err
3126 }; then
3127 # Broken: success on invalid input.
3128 continue
3129 else
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 # Passes both tests.
3134 ac_preproc_ok=:
3135 break
3138 rm -f conftest.err conftest.$ac_ext
3140 done
3141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3142 rm -f conftest.err conftest.$ac_ext
3143 if $ac_preproc_ok; then
3144 break
3147 done
3148 ac_cv_prog_CPP=$CPP
3151 CPP=$ac_cv_prog_CPP
3152 else
3153 ac_cv_prog_CPP=$CPP
3155 { echo "$as_me:$LINENO: result: $CPP" >&5
3156 echo "${ECHO_T}$CPP" >&6; }
3157 ac_preproc_ok=false
3158 for ac_c_preproc_warn_flag in '' yes
3160 # Use a header file that comes with gcc, so configuring glibc
3161 # with a fresh cross-compiler works.
3162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3163 # <limits.h> exists even on freestanding compilers.
3164 # On the NeXT, cc -E runs the code through the compiler's parser,
3165 # not just through cpp. "Syntax error" is here to catch this case.
3166 cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h. */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3172 #ifdef __STDC__
3173 # include <limits.h>
3174 #else
3175 # include <assert.h>
3176 #endif
3177 Syntax error
3178 _ACEOF
3179 if { (ac_try="$ac_cpp conftest.$ac_ext"
3180 case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3186 ac_status=$?
3187 grep -v '^ *+' conftest.er1 >conftest.err
3188 rm -f conftest.er1
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } >/dev/null && {
3192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3193 test ! -s conftest.err
3194 }; then
3196 else
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 # Broken: fails on valid input.
3201 continue
3204 rm -f conftest.err conftest.$ac_ext
3206 # OK, works on sane cases. Now check whether nonexistent headers
3207 # can be detected and how.
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3214 #include <ac_nonexistent.h>
3215 _ACEOF
3216 if { (ac_try="$ac_cpp conftest.$ac_ext"
3217 case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220 esac
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3223 ac_status=$?
3224 grep -v '^ *+' conftest.er1 >conftest.err
3225 rm -f conftest.er1
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } >/dev/null && {
3229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3230 test ! -s conftest.err
3231 }; then
3232 # Broken: success on invalid input.
3233 continue
3234 else
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3238 # Passes both tests.
3239 ac_preproc_ok=:
3240 break
3243 rm -f conftest.err conftest.$ac_ext
3245 done
3246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3247 rm -f conftest.err conftest.$ac_ext
3248 if $ac_preproc_ok; then
3250 else
3251 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3252 See \`config.log' for more details." >&5
3253 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3254 See \`config.log' for more details." >&2;}
3255 { (exit 1); exit 1; }; }
3258 ac_ext=c
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3266 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3267 if test "${ac_cv_path_GREP+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270 # Extract the first word of "grep ggrep" to use in msg output
3271 if test -z "$GREP"; then
3272 set dummy grep ggrep; ac_prog_name=$2
3273 if test "${ac_cv_path_GREP+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 ac_path_GREP_found=false
3277 # Loop through the user's path and test for each of PROGNAME-LIST
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_prog in grep ggrep; do
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3286 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3287 # Check for GNU ac_path_GREP and select it if it is found.
3288 # Check for GNU $ac_path_GREP
3289 case `"$ac_path_GREP" --version 2>&1` in
3290 *GNU*)
3291 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3293 ac_count=0
3294 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3295 while :
3297 cat "conftest.in" "conftest.in" >"conftest.tmp"
3298 mv "conftest.tmp" "conftest.in"
3299 cp "conftest.in" "conftest.nl"
3300 echo 'GREP' >> "conftest.nl"
3301 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3303 ac_count=`expr $ac_count + 1`
3304 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3305 # Best one so far, save it but keep looking for a better one
3306 ac_cv_path_GREP="$ac_path_GREP"
3307 ac_path_GREP_max=$ac_count
3309 # 10*(2^10) chars as input seems more than enough
3310 test $ac_count -gt 10 && break
3311 done
3312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3313 esac
3316 $ac_path_GREP_found && break 3
3317 done
3318 done
3320 done
3321 IFS=$as_save_IFS
3326 GREP="$ac_cv_path_GREP"
3327 if test -z "$GREP"; then
3328 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3329 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3330 { (exit 1); exit 1; }; }
3333 else
3334 ac_cv_path_GREP=$GREP
3339 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3340 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3341 GREP="$ac_cv_path_GREP"
3344 { echo "$as_me:$LINENO: checking for egrep" >&5
3345 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3346 if test "${ac_cv_path_EGREP+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3350 then ac_cv_path_EGREP="$GREP -E"
3351 else
3352 # Extract the first word of "egrep" to use in msg output
3353 if test -z "$EGREP"; then
3354 set dummy egrep; ac_prog_name=$2
3355 if test "${ac_cv_path_EGREP+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 ac_path_EGREP_found=false
3359 # Loop through the user's path and test for each of PROGNAME-LIST
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_prog in egrep; do
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3368 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3369 # Check for GNU ac_path_EGREP and select it if it is found.
3370 # Check for GNU $ac_path_EGREP
3371 case `"$ac_path_EGREP" --version 2>&1` in
3372 *GNU*)
3373 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3375 ac_count=0
3376 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3377 while :
3379 cat "conftest.in" "conftest.in" >"conftest.tmp"
3380 mv "conftest.tmp" "conftest.in"
3381 cp "conftest.in" "conftest.nl"
3382 echo 'EGREP' >> "conftest.nl"
3383 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3384 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3385 ac_count=`expr $ac_count + 1`
3386 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3387 # Best one so far, save it but keep looking for a better one
3388 ac_cv_path_EGREP="$ac_path_EGREP"
3389 ac_path_EGREP_max=$ac_count
3391 # 10*(2^10) chars as input seems more than enough
3392 test $ac_count -gt 10 && break
3393 done
3394 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3395 esac
3398 $ac_path_EGREP_found && break 3
3399 done
3400 done
3402 done
3403 IFS=$as_save_IFS
3408 EGREP="$ac_cv_path_EGREP"
3409 if test -z "$EGREP"; then
3410 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3411 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3412 { (exit 1); exit 1; }; }
3415 else
3416 ac_cv_path_EGREP=$EGREP
3422 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3423 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3424 EGREP="$ac_cv_path_EGREP"
3428 { echo "$as_me:$LINENO: checking for AIX" >&5
3429 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h. */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436 #ifdef _AIX
3438 #endif
3440 _ACEOF
3441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3442 $EGREP "yes" >/dev/null 2>&1; then
3443 { echo "$as_me:$LINENO: result: yes" >&5
3444 echo "${ECHO_T}yes" >&6; }
3445 cat >>confdefs.h <<\_ACEOF
3446 #define _ALL_SOURCE 1
3447 _ACEOF
3449 else
3450 { echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6; }
3453 rm -f conftest*
3456 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3457 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3458 if test "${ac_cv_header_stdc+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461 cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h. */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3467 #include <stdlib.h>
3468 #include <stdarg.h>
3469 #include <string.h>
3470 #include <float.h>
3473 main ()
3477 return 0;
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
3497 ac_cv_header_stdc=yes
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3502 ac_cv_header_stdc=no
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 if test $ac_cv_header_stdc = yes; then
3508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3509 cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h. */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 #include <string.h>
3517 _ACEOF
3518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3519 $EGREP "memchr" >/dev/null 2>&1; then
3521 else
3522 ac_cv_header_stdc=no
3524 rm -f conftest*
3528 if test $ac_cv_header_stdc = yes; then
3529 # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
3538 _ACEOF
3539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3540 $EGREP "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3551 if test "$cross_compiling" = yes; then
3553 else
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 #include <ctype.h>
3561 #include <stdlib.h>
3562 #if ((' ' & 0x0FF) == 0x020)
3563 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3564 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3565 #else
3566 # define ISLOWER(c) \
3567 (('a' <= (c) && (c) <= 'i') \
3568 || ('j' <= (c) && (c) <= 'r') \
3569 || ('s' <= (c) && (c) <= 'z'))
3570 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3571 #endif
3573 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3575 main ()
3577 int i;
3578 for (i = 0; i < 256; i++)
3579 if (XOR (islower (i), ISLOWER (i))
3580 || toupper (i) != TOUPPER (i))
3581 return 2;
3582 return 0;
3584 _ACEOF
3585 rm -f conftest$ac_exeext
3586 if { (ac_try="$ac_link"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_link") 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3596 { (case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_try") 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3606 else
3607 echo "$as_me: program exited with status $ac_status" >&5
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 ( exit $ac_status )
3612 ac_cv_header_stdc=no
3614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3620 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3621 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3622 if test $ac_cv_header_stdc = yes; then
3624 cat >>confdefs.h <<\_ACEOF
3625 #define STDC_HEADERS 1
3626 _ACEOF
3630 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3640 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3641 inttypes.h stdint.h unistd.h
3643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h. */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3655 $ac_includes_default
3657 #include <$ac_header>
3658 _ACEOF
3659 rm -f conftest.$ac_objext
3660 if { (ac_try="$ac_compile"
3661 case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_compile") 2>conftest.er1
3667 ac_status=$?
3668 grep -v '^ *+' conftest.er1 >conftest.err
3669 rm -f conftest.er1
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } && {
3673 test -z "$ac_c_werror_flag" ||
3674 test ! -s conftest.err
3675 } && test -s conftest.$ac_objext; then
3676 eval "$as_ac_Header=yes"
3677 else
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3681 eval "$as_ac_Header=no"
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686 ac_res=`eval echo '${'$as_ac_Header'}'`
3687 { echo "$as_me:$LINENO: result: $ac_res" >&5
3688 echo "${ECHO_T}$ac_res" >&6; }
3689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3690 cat >>confdefs.h <<_ACEOF
3691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3692 _ACEOF
3696 done
3699 if test "${ac_cv_header_minix_config_h+set}" = set; then
3700 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3701 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3702 if test "${ac_cv_header_minix_config_h+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3706 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3707 else
3708 # Is the header compilable?
3709 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3710 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3711 cat >conftest.$ac_ext <<_ACEOF
3712 /* confdefs.h. */
3713 _ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3717 $ac_includes_default
3718 #include <minix/config.h>
3719 _ACEOF
3720 rm -f conftest.$ac_objext
3721 if { (ac_try="$ac_compile"
3722 case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725 esac
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_compile") 2>conftest.er1
3728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } && {
3734 test -z "$ac_c_werror_flag" ||
3735 test ! -s conftest.err
3736 } && test -s conftest.$ac_objext; then
3737 ac_header_compiler=yes
3738 else
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3742 ac_header_compiler=no
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3747 echo "${ECHO_T}$ac_header_compiler" >&6; }
3749 # Is the header present?
3750 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3751 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3752 cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h. */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 #include <minix/config.h>
3759 _ACEOF
3760 if { (ac_try="$ac_cpp conftest.$ac_ext"
3761 case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764 esac
3765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } >/dev/null && {
3773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3774 test ! -s conftest.err
3775 }; then
3776 ac_header_preproc=yes
3777 else
3778 echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3781 ac_header_preproc=no
3784 rm -f conftest.err conftest.$ac_ext
3785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3786 echo "${ECHO_T}$ac_header_preproc" >&6; }
3788 # So? What about this header?
3789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3790 yes:no: )
3791 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3792 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3793 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3794 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3795 ac_header_preproc=yes
3797 no:yes:* )
3798 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3799 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3800 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3801 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3802 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3803 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3804 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3805 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3806 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3807 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3808 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3809 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3812 esac
3813 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3814 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3815 if test "${ac_cv_header_minix_config_h+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818 ac_cv_header_minix_config_h=$ac_header_preproc
3820 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3821 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3824 if test $ac_cv_header_minix_config_h = yes; then
3825 MINIX=yes
3826 else
3827 MINIX=
3831 if test "$MINIX" = yes; then
3833 cat >>confdefs.h <<\_ACEOF
3834 #define _POSIX_SOURCE 1
3835 _ACEOF
3838 cat >>confdefs.h <<\_ACEOF
3839 #define _POSIX_1_SOURCE 2
3840 _ACEOF
3843 cat >>confdefs.h <<\_ACEOF
3844 #define _MINIX 1
3845 _ACEOF
3859 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3860 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3861 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h. */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3871 # define __EXTENSIONS__ 1
3872 $ac_includes_default
3874 main ()
3878 return 0;
3880 _ACEOF
3881 rm -f conftest.$ac_objext
3882 if { (ac_try="$ac_compile"
3883 case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3886 esac
3887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888 (eval "$ac_compile") 2>conftest.er1
3889 ac_status=$?
3890 grep -v '^ *+' conftest.er1 >conftest.err
3891 rm -f conftest.er1
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } && {
3895 test -z "$ac_c_werror_flag" ||
3896 test ! -s conftest.err
3897 } && test -s conftest.$ac_objext; then
3898 ac_cv_safe_to_define___extensions__=yes
3899 else
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3903 ac_cv_safe_to_define___extensions__=no
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3909 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3910 test $ac_cv_safe_to_define___extensions__ = yes &&
3911 cat >>confdefs.h <<\_ACEOF
3912 #define __EXTENSIONS__ 1
3913 _ACEOF
3915 cat >>confdefs.h <<\_ACEOF
3916 #define _POSIX_PTHREAD_SEMANTICS 1
3917 _ACEOF
3919 cat >>confdefs.h <<\_ACEOF
3920 #define _TANDEM_SOURCE 1
3921 _ACEOF
3925 case "${host_os}" in
3926 freebsd*)
3927 ac_default_prefix=/usr/local
3928 CPPFLAGS=-I/usr/local/include
3929 LDFLAGS=-L/usr/local/lib
3932 ac_default_prefix=/usr
3933 if test ${sysconfdir} = '${prefix}/etc'; then
3934 sysconfdir=/etc
3936 if test ${mandir} = '${prefix}/man'; then
3937 mandir=/usr/share/man
3940 esac
3942 if test ${localstatedir} = '${prefix}/var'; then
3943 localstatedir=/var
3946 BUILD_PLATFORM=${build}
3947 BUILD_CPU=${build_cpu}
3948 BUILD_VENDOR=${build_vendor}
3949 BUILD_OS=${build_os}
3956 HOST_PLATFORM=${host}
3957 HOST_CPU=${host_cpu}
3958 HOST_VENDOR=${host_vendor}
3959 HOST_OS=${host_os}
3966 case "${host_os}" in
3967 freebsd*)
3968 OSARCH=FreeBSD
3970 netbsd*)
3971 OSARCH=NetBSD
3973 openbsd*)
3974 OSARCH=OpenBSD
3976 solaris*)
3977 OSARCH=SunOS
3980 OSARCH=${HOST_OS}
3982 esac
3986 # check for uname
3987 if test -n "$ac_tool_prefix"; then
3988 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
3989 set dummy ${ac_tool_prefix}uname; ac_word=$2
3990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3992 if test "${ac_cv_path_UNAME+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995 case $UNAME in
3996 [\\/]* | ?:[\\/]*)
3997 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4011 done
4012 done
4013 IFS=$as_save_IFS
4016 esac
4018 UNAME=$ac_cv_path_UNAME
4019 if test -n "$UNAME"; then
4020 { echo "$as_me:$LINENO: result: $UNAME" >&5
4021 echo "${ECHO_T}$UNAME" >&6; }
4022 else
4023 { echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6; }
4029 if test -z "$ac_cv_path_UNAME"; then
4030 ac_pt_UNAME=$UNAME
4031 # Extract the first word of "uname", so it can be a program name with args.
4032 set dummy uname; ac_word=$2
4033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4035 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038 case $ac_pt_UNAME in
4039 [\\/]* | ?:[\\/]*)
4040 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 break 2
4054 done
4055 done
4056 IFS=$as_save_IFS
4059 esac
4061 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4062 if test -n "$ac_pt_UNAME"; then
4063 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4064 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4065 else
4066 { echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6; }
4070 if test "x$ac_pt_UNAME" = x; then
4071 UNAME="No"
4072 else
4073 case $cross_compiling:$ac_tool_warned in
4074 yes:)
4075 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4076 whose name does not start with the host triplet. If you think this
4077 configuration is useful to you, please write to autoconf@gnu.org." >&5
4078 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4079 whose name does not start with the host triplet. If you think this
4080 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4081 ac_tool_warned=yes ;;
4082 esac
4083 UNAME=$ac_pt_UNAME
4085 else
4086 UNAME="$ac_cv_path_UNAME"
4089 if test ! x"${UNAME}" = xNo; then
4090 PBX_OSREV=$(${UNAME} -r)
4100 # cross-compile checks
4101 if test "${cross_compiling}" = "yes";
4102 then
4103 if test -n "$ac_tool_prefix"; then
4104 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4105 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4108 if test "${ac_cv_prog_CC+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 if test -n "$CC"; then
4112 ac_cv_prog_CC="$CC" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 break 2
4125 done
4126 done
4127 IFS=$as_save_IFS
4131 CC=$ac_cv_prog_CC
4132 if test -n "$CC"; then
4133 { echo "$as_me:$LINENO: result: $CC" >&5
4134 echo "${ECHO_T}$CC" >&6; }
4135 else
4136 { echo "$as_me:$LINENO: result: no" >&5
4137 echo "${ECHO_T}no" >&6; }
4142 if test -z "$ac_cv_prog_CC"; then
4143 ac_ct_CC=$CC
4144 # Extract the first word of "gcc", so it can be a program name with args.
4145 set dummy gcc; ac_word=$2
4146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151 if test -n "$ac_ct_CC"; then
4152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161 ac_cv_prog_ac_ct_CC="gcc"
4162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 break 2
4165 done
4166 done
4167 IFS=$as_save_IFS
4171 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4172 if test -n "$ac_ct_CC"; then
4173 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4174 echo "${ECHO_T}$ac_ct_CC" >&6; }
4175 else
4176 { echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6; }
4180 if test "x$ac_ct_CC" = x; then
4181 CC=":"
4182 else
4183 case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4186 whose name does not start with the host triplet. If you think this
4187 configuration is useful to you, please write to autoconf@gnu.org." >&5
4188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4189 whose name does not start with the host triplet. If you think this
4190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4191 ac_tool_warned=yes ;;
4192 esac
4193 CC=$ac_ct_CC
4195 else
4196 CC="$ac_cv_prog_CC"
4199 if test -n "$ac_tool_prefix"; then
4200 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4201 set dummy ${ac_tool_prefix}g++; ac_word=$2
4202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4204 if test "${ac_cv_prog_CXX+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207 if test -n "$CXX"; then
4208 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4221 done
4222 done
4223 IFS=$as_save_IFS
4227 CXX=$ac_cv_prog_CXX
4228 if test -n "$CXX"; then
4229 { echo "$as_me:$LINENO: result: $CXX" >&5
4230 echo "${ECHO_T}$CXX" >&6; }
4231 else
4232 { echo "$as_me:$LINENO: result: no" >&5
4233 echo "${ECHO_T}no" >&6; }
4238 if test -z "$ac_cv_prog_CXX"; then
4239 ac_ct_CXX=$CXX
4240 # Extract the first word of "g++", so it can be a program name with args.
4241 set dummy g++; ac_word=$2
4242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 if test -n "$ac_ct_CXX"; then
4248 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 ac_cv_prog_ac_ct_CXX="g++"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4261 done
4262 done
4263 IFS=$as_save_IFS
4267 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4268 if test -n "$ac_ct_CXX"; then
4269 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4270 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4271 else
4272 { echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6; }
4276 if test "x$ac_ct_CXX" = x; then
4277 CXX=":"
4278 else
4279 case $cross_compiling:$ac_tool_warned in
4280 yes:)
4281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4282 whose name does not start with the host triplet. If you think this
4283 configuration is useful to you, please write to autoconf@gnu.org." >&5
4284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4285 whose name does not start with the host triplet. If you think this
4286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4287 ac_tool_warned=yes ;;
4288 esac
4289 CXX=$ac_ct_CXX
4291 else
4292 CXX="$ac_cv_prog_CXX"
4295 if test -n "$ac_tool_prefix"; then
4296 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4297 set dummy ${ac_tool_prefix}ld; ac_word=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_prog_LD+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303 if test -n "$LD"; then
4304 ac_cv_prog_LD="$LD" # Let the user override the test.
4305 else
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_prog_LD="${ac_tool_prefix}ld"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4317 done
4318 done
4319 IFS=$as_save_IFS
4323 LD=$ac_cv_prog_LD
4324 if test -n "$LD"; then
4325 { echo "$as_me:$LINENO: result: $LD" >&5
4326 echo "${ECHO_T}$LD" >&6; }
4327 else
4328 { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4334 if test -z "$ac_cv_prog_LD"; then
4335 ac_ct_LD=$LD
4336 # Extract the first word of "ld", so it can be a program name with args.
4337 set dummy ld; ac_word=$2
4338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4340 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343 if test -n "$ac_ct_LD"; then
4344 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4345 else
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353 ac_cv_prog_ac_ct_LD="ld"
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4357 done
4358 done
4359 IFS=$as_save_IFS
4363 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4364 if test -n "$ac_ct_LD"; then
4365 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4366 echo "${ECHO_T}$ac_ct_LD" >&6; }
4367 else
4368 { echo "$as_me:$LINENO: result: no" >&5
4369 echo "${ECHO_T}no" >&6; }
4372 if test "x$ac_ct_LD" = x; then
4373 LD=":"
4374 else
4375 case $cross_compiling:$ac_tool_warned in
4376 yes:)
4377 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4378 whose name does not start with the host triplet. If you think this
4379 configuration is useful to you, please write to autoconf@gnu.org." >&5
4380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4381 whose name does not start with the host triplet. If you think this
4382 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4383 ac_tool_warned=yes ;;
4384 esac
4385 LD=$ac_ct_LD
4387 else
4388 LD="$ac_cv_prog_LD"
4391 if test -n "$ac_tool_prefix"; then
4392 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_prog_RANLIB+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 if test -n "$RANLIB"; then
4400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4409 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4413 done
4414 done
4415 IFS=$as_save_IFS
4419 RANLIB=$ac_cv_prog_RANLIB
4420 if test -n "$RANLIB"; then
4421 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4422 echo "${ECHO_T}$RANLIB" >&6; }
4423 else
4424 { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4430 if test -z "$ac_cv_prog_RANLIB"; then
4431 ac_ct_RANLIB=$RANLIB
4432 # Extract the first word of "ranlib", so it can be a program name with args.
4433 set dummy ranlib; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 if test -n "$ac_ct_RANLIB"; then
4440 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_ac_ct_RANLIB="ranlib"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4453 done
4454 done
4455 IFS=$as_save_IFS
4459 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4460 if test -n "$ac_ct_RANLIB"; then
4461 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4462 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4463 else
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4468 if test "x$ac_ct_RANLIB" = x; then
4469 RANLIB=":"
4470 else
4471 case $cross_compiling:$ac_tool_warned in
4472 yes:)
4473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4474 whose name does not start with the host triplet. If you think this
4475 configuration is useful to you, please write to autoconf@gnu.org." >&5
4476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4477 whose name does not start with the host triplet. If you think this
4478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4479 ac_tool_warned=yes ;;
4480 esac
4481 RANLIB=$ac_ct_RANLIB
4483 else
4484 RANLIB="$ac_cv_prog_RANLIB"
4489 # Checks for programs.
4490 ac_ext=c
4491 ac_cpp='$CPP $CPPFLAGS'
4492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495 if test -n "$ac_tool_prefix"; then
4496 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4497 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4500 if test "${ac_cv_prog_CC+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503 if test -n "$CC"; then
4504 ac_cv_prog_CC="$CC" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4517 done
4518 done
4519 IFS=$as_save_IFS
4523 CC=$ac_cv_prog_CC
4524 if test -n "$CC"; then
4525 { echo "$as_me:$LINENO: result: $CC" >&5
4526 echo "${ECHO_T}$CC" >&6; }
4527 else
4528 { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4534 if test -z "$ac_cv_prog_CC"; then
4535 ac_ct_CC=$CC
4536 # Extract the first word of "gcc", so it can be a program name with args.
4537 set dummy gcc; ac_word=$2
4538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543 if test -n "$ac_ct_CC"; then
4544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4545 else
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553 ac_cv_prog_ac_ct_CC="gcc"
4554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4557 done
4558 done
4559 IFS=$as_save_IFS
4563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4564 if test -n "$ac_ct_CC"; then
4565 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4566 echo "${ECHO_T}$ac_ct_CC" >&6; }
4567 else
4568 { echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6; }
4572 if test "x$ac_ct_CC" = x; then
4573 CC=""
4574 else
4575 case $cross_compiling:$ac_tool_warned in
4576 yes:)
4577 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4578 whose name does not start with the host triplet. If you think this
4579 configuration is useful to you, please write to autoconf@gnu.org." >&5
4580 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4581 whose name does not start with the host triplet. If you think this
4582 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4583 ac_tool_warned=yes ;;
4584 esac
4585 CC=$ac_ct_CC
4587 else
4588 CC="$ac_cv_prog_CC"
4591 if test -z "$CC"; then
4592 if test -n "$ac_tool_prefix"; then
4593 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4594 set dummy ${ac_tool_prefix}cc; ac_word=$2
4595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4597 if test "${ac_cv_prog_CC+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600 if test -n "$CC"; then
4601 ac_cv_prog_CC="$CC" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_CC="${ac_tool_prefix}cc"
4611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4614 done
4615 done
4616 IFS=$as_save_IFS
4620 CC=$ac_cv_prog_CC
4621 if test -n "$CC"; then
4622 { echo "$as_me:$LINENO: result: $CC" >&5
4623 echo "${ECHO_T}$CC" >&6; }
4624 else
4625 { echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6; }
4632 if test -z "$CC"; then
4633 # Extract the first word of "cc", so it can be a program name with args.
4634 set dummy cc; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_prog_CC+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 if test -n "$CC"; then
4641 ac_cv_prog_CC="$CC" # Let the user override the test.
4642 else
4643 ac_prog_rejected=no
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4652 ac_prog_rejected=yes
4653 continue
4655 ac_cv_prog_CC="cc"
4656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4659 done
4660 done
4661 IFS=$as_save_IFS
4663 if test $ac_prog_rejected = yes; then
4664 # We found a bogon in the path, so make sure we never use it.
4665 set dummy $ac_cv_prog_CC
4666 shift
4667 if test $# != 0; then
4668 # We chose a different compiler from the bogus one.
4669 # However, it has the same basename, so the bogon will be chosen
4670 # first if we set CC to just the basename; use the full file name.
4671 shift
4672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4677 CC=$ac_cv_prog_CC
4678 if test -n "$CC"; then
4679 { echo "$as_me:$LINENO: result: $CC" >&5
4680 echo "${ECHO_T}$CC" >&6; }
4681 else
4682 { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4688 if test -z "$CC"; then
4689 if test -n "$ac_tool_prefix"; then
4690 for ac_prog in cl.exe
4692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4696 if test "${ac_cv_prog_CC+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699 if test -n "$CC"; then
4700 ac_cv_prog_CC="$CC" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4713 done
4714 done
4715 IFS=$as_save_IFS
4719 CC=$ac_cv_prog_CC
4720 if test -n "$CC"; then
4721 { echo "$as_me:$LINENO: result: $CC" >&5
4722 echo "${ECHO_T}$CC" >&6; }
4723 else
4724 { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4729 test -n "$CC" && break
4730 done
4732 if test -z "$CC"; then
4733 ac_ct_CC=$CC
4734 for ac_prog in cl.exe
4736 # Extract the first word of "$ac_prog", so it can be a program name with args.
4737 set dummy $ac_prog; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 if test -n "$ac_ct_CC"; then
4744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_ac_ct_CC="$ac_prog"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4757 done
4758 done
4759 IFS=$as_save_IFS
4763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4764 if test -n "$ac_ct_CC"; then
4765 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4766 echo "${ECHO_T}$ac_ct_CC" >&6; }
4767 else
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4773 test -n "$ac_ct_CC" && break
4774 done
4776 if test "x$ac_ct_CC" = x; then
4777 CC=""
4778 else
4779 case $cross_compiling:$ac_tool_warned in
4780 yes:)
4781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4782 whose name does not start with the host triplet. If you think this
4783 configuration is useful to you, please write to autoconf@gnu.org." >&5
4784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4785 whose name does not start with the host triplet. If you think this
4786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4787 ac_tool_warned=yes ;;
4788 esac
4789 CC=$ac_ct_CC
4796 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4797 See \`config.log' for more details." >&5
4798 echo "$as_me: error: no acceptable C compiler found in \$PATH
4799 See \`config.log' for more details." >&2;}
4800 { (exit 1); exit 1; }; }
4802 # Provide some information about the compiler.
4803 echo "$as_me:$LINENO: checking for C compiler version" >&5
4804 ac_compiler=`set X $ac_compile; echo $2`
4805 { (ac_try="$ac_compiler --version >&5"
4806 case "(($ac_try" in
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4809 esac
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_compiler --version >&5") 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }
4815 { (ac_try="$ac_compiler -v >&5"
4816 case "(($ac_try" in
4817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818 *) ac_try_echo=$ac_try;;
4819 esac
4820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4821 (eval "$ac_compiler -v >&5") 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }
4825 { (ac_try="$ac_compiler -V >&5"
4826 case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829 esac
4830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4831 (eval "$ac_compiler -V >&5") 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }
4836 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4837 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4838 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841 cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h. */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4849 main ()
4851 #ifndef __GNUC__
4852 choke me
4853 #endif
4856 return 0;
4858 _ACEOF
4859 rm -f conftest.$ac_objext
4860 if { (ac_try="$ac_compile"
4861 case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4864 esac
4865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866 (eval "$ac_compile") 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } && {
4873 test -z "$ac_c_werror_flag" ||
4874 test ! -s conftest.err
4875 } && test -s conftest.$ac_objext; then
4876 ac_compiler_gnu=yes
4877 else
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 ac_compiler_gnu=no
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4888 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4889 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4890 GCC=`test $ac_compiler_gnu = yes && echo yes`
4891 ac_test_CFLAGS=${CFLAGS+set}
4892 ac_save_CFLAGS=$CFLAGS
4893 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4894 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_cc_g+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898 ac_save_c_werror_flag=$ac_c_werror_flag
4899 ac_c_werror_flag=yes
4900 ac_cv_prog_cc_g=no
4901 CFLAGS="-g"
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h. */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4910 main ()
4914 return 0;
4916 _ACEOF
4917 rm -f conftest.$ac_objext
4918 if { (ac_try="$ac_compile"
4919 case "(($ac_try" in
4920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921 *) ac_try_echo=$ac_try;;
4922 esac
4923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4924 (eval "$ac_compile") 2>conftest.er1
4925 ac_status=$?
4926 grep -v '^ *+' conftest.er1 >conftest.err
4927 rm -f conftest.er1
4928 cat conftest.err >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } && {
4931 test -z "$ac_c_werror_flag" ||
4932 test ! -s conftest.err
4933 } && test -s conftest.$ac_objext; then
4934 ac_cv_prog_cc_g=yes
4935 else
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4939 CFLAGS=""
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h. */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4948 main ()
4952 return 0;
4954 _ACEOF
4955 rm -f conftest.$ac_objext
4956 if { (ac_try="$ac_compile"
4957 case "(($ac_try" in
4958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959 *) ac_try_echo=$ac_try;;
4960 esac
4961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962 (eval "$ac_compile") 2>conftest.er1
4963 ac_status=$?
4964 grep -v '^ *+' conftest.er1 >conftest.err
4965 rm -f conftest.er1
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } && {
4969 test -z "$ac_c_werror_flag" ||
4970 test ! -s conftest.err
4971 } && test -s conftest.$ac_objext; then
4973 else
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4977 ac_c_werror_flag=$ac_save_c_werror_flag
4978 CFLAGS="-g"
4979 cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h. */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4987 main ()
4991 return 0;
4993 _ACEOF
4994 rm -f conftest.$ac_objext
4995 if { (ac_try="$ac_compile"
4996 case "(($ac_try" in
4997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998 *) ac_try_echo=$ac_try;;
4999 esac
5000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5001 (eval "$ac_compile") 2>conftest.er1
5002 ac_status=$?
5003 grep -v '^ *+' conftest.er1 >conftest.err
5004 rm -f conftest.er1
5005 cat conftest.err >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } && {
5008 test -z "$ac_c_werror_flag" ||
5009 test ! -s conftest.err
5010 } && test -s conftest.$ac_objext; then
5011 ac_cv_prog_cc_g=yes
5012 else
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 ac_c_werror_flag=$ac_save_c_werror_flag
5028 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5029 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5030 if test "$ac_test_CFLAGS" = set; then
5031 CFLAGS=$ac_save_CFLAGS
5032 elif test $ac_cv_prog_cc_g = yes; then
5033 if test "$GCC" = yes; then
5034 CFLAGS="-g -O2"
5035 else
5036 CFLAGS="-g"
5038 else
5039 if test "$GCC" = yes; then
5040 CFLAGS="-O2"
5041 else
5042 CFLAGS=
5045 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5046 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5047 if test "${ac_cv_prog_cc_c89+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050 ac_cv_prog_cc_c89=no
5051 ac_save_CC=$CC
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h. */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 #include <stdarg.h>
5059 #include <stdio.h>
5060 #include <sys/types.h>
5061 #include <sys/stat.h>
5062 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5063 struct buf { int x; };
5064 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5065 static char *e (p, i)
5066 char **p;
5067 int i;
5069 return p[i];
5071 static char *f (char * (*g) (char **, int), char **p, ...)
5073 char *s;
5074 va_list v;
5075 va_start (v,p);
5076 s = g (p, va_arg (v,int));
5077 va_end (v);
5078 return s;
5081 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5082 function prototypes and stuff, but not '\xHH' hex character constants.
5083 These don't provoke an error unfortunately, instead are silently treated
5084 as 'x'. The following induces an error, until -std is added to get
5085 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5086 array size at least. It's necessary to write '\x00'==0 to get something
5087 that's true only with -std. */
5088 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5090 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5091 inside strings and character constants. */
5092 #define FOO(x) 'x'
5093 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5095 int test (int i, double x);
5096 struct s1 {int (*f) (int a);};
5097 struct s2 {int (*f) (double a);};
5098 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5099 int argc;
5100 char **argv;
5102 main ()
5104 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5106 return 0;
5108 _ACEOF
5109 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5110 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5112 CC="$ac_save_CC $ac_arg"
5113 rm -f conftest.$ac_objext
5114 if { (ac_try="$ac_compile"
5115 case "(($ac_try" in
5116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117 *) ac_try_echo=$ac_try;;
5118 esac
5119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5120 (eval "$ac_compile") 2>conftest.er1
5121 ac_status=$?
5122 grep -v '^ *+' conftest.er1 >conftest.err
5123 rm -f conftest.er1
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } && {
5127 test -z "$ac_c_werror_flag" ||
5128 test ! -s conftest.err
5129 } && test -s conftest.$ac_objext; then
5130 ac_cv_prog_cc_c89=$ac_arg
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5138 rm -f core conftest.err conftest.$ac_objext
5139 test "x$ac_cv_prog_cc_c89" != "xno" && break
5140 done
5141 rm -f conftest.$ac_ext
5142 CC=$ac_save_CC
5145 # AC_CACHE_VAL
5146 case "x$ac_cv_prog_cc_c89" in
5148 { echo "$as_me:$LINENO: result: none needed" >&5
5149 echo "${ECHO_T}none needed" >&6; } ;;
5150 xno)
5151 { echo "$as_me:$LINENO: result: unsupported" >&5
5152 echo "${ECHO_T}unsupported" >&6; } ;;
5154 CC="$CC $ac_cv_prog_cc_c89"
5155 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5156 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5157 esac
5160 ac_ext=c
5161 ac_cpp='$CPP $CPPFLAGS'
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166 ac_ext=cpp
5167 ac_cpp='$CXXCPP $CPPFLAGS'
5168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5171 if test -z "$CXX"; then
5172 if test -n "$CCC"; then
5173 CXX=$CCC
5174 else
5175 if test -n "$ac_tool_prefix"; then
5176 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5182 if test "${ac_cv_prog_CXX+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185 if test -n "$CXX"; then
5186 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5201 IFS=$as_save_IFS
5205 CXX=$ac_cv_prog_CXX
5206 if test -n "$CXX"; then
5207 { echo "$as_me:$LINENO: result: $CXX" >&5
5208 echo "${ECHO_T}$CXX" >&6; }
5209 else
5210 { echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6; }
5215 test -n "$CXX" && break
5216 done
5218 if test -z "$CXX"; then
5219 ac_ct_CXX=$CXX
5220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5222 # Extract the first word of "$ac_prog", so it can be a program name with args.
5223 set dummy $ac_prog; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 if test -n "$ac_ct_CXX"; then
5230 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_prog_ac_ct_CXX="$ac_prog"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5243 done
5244 done
5245 IFS=$as_save_IFS
5249 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5250 if test -n "$ac_ct_CXX"; then
5251 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5252 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5253 else
5254 { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5259 test -n "$ac_ct_CXX" && break
5260 done
5262 if test "x$ac_ct_CXX" = x; then
5263 CXX="g++"
5264 else
5265 case $cross_compiling:$ac_tool_warned in
5266 yes:)
5267 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5268 whose name does not start with the host triplet. If you think this
5269 configuration is useful to you, please write to autoconf@gnu.org." >&5
5270 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5271 whose name does not start with the host triplet. If you think this
5272 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5273 ac_tool_warned=yes ;;
5274 esac
5275 CXX=$ac_ct_CXX
5281 # Provide some information about the compiler.
5282 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5283 ac_compiler=`set X $ac_compile; echo $2`
5284 { (ac_try="$ac_compiler --version >&5"
5285 case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288 esac
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_compiler --version >&5") 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }
5294 { (ac_try="$ac_compiler -v >&5"
5295 case "(($ac_try" in
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5298 esac
5299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300 (eval "$ac_compiler -v >&5") 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }
5304 { (ac_try="$ac_compiler -V >&5"
5305 case "(($ac_try" in
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5308 esac
5309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5310 (eval "$ac_compiler -V >&5") 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }
5315 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5316 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5317 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320 cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h. */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5328 main ()
5330 #ifndef __GNUC__
5331 choke me
5332 #endif
5335 return 0;
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (ac_try="$ac_compile"
5340 case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5343 esac
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_compile") 2>conftest.er1
5346 ac_status=$?
5347 grep -v '^ *+' conftest.er1 >conftest.err
5348 rm -f conftest.er1
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && {
5352 test -z "$ac_cxx_werror_flag" ||
5353 test ! -s conftest.err
5354 } && test -s conftest.$ac_objext; then
5355 ac_compiler_gnu=yes
5356 else
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 ac_compiler_gnu=no
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5367 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5368 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5369 GXX=`test $ac_compiler_gnu = yes && echo yes`
5370 ac_test_CXXFLAGS=${CXXFLAGS+set}
5371 ac_save_CXXFLAGS=$CXXFLAGS
5372 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5373 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5374 if test "${ac_cv_prog_cxx_g+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5378 ac_cxx_werror_flag=yes
5379 ac_cv_prog_cxx_g=no
5380 CXXFLAGS="-g"
5381 cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h. */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5389 main ()
5393 return 0;
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (ac_try="$ac_compile"
5398 case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_compile") 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } && {
5410 test -z "$ac_cxx_werror_flag" ||
5411 test ! -s conftest.err
5412 } && test -s conftest.$ac_objext; then
5413 ac_cv_prog_cxx_g=yes
5414 else
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 CXXFLAGS=""
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h. */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5427 main ()
5431 return 0;
5433 _ACEOF
5434 rm -f conftest.$ac_objext
5435 if { (ac_try="$ac_compile"
5436 case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439 esac
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_compile") 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } && {
5448 test -z "$ac_cxx_werror_flag" ||
5449 test ! -s conftest.err
5450 } && test -s conftest.$ac_objext; then
5452 else
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5456 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5457 CXXFLAGS="-g"
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5466 main ()
5470 return 0;
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5475 case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478 esac
5479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480 (eval "$ac_compile") 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && {
5487 test -z "$ac_cxx_werror_flag" ||
5488 test ! -s conftest.err
5489 } && test -s conftest.$ac_objext; then
5490 ac_cv_prog_cxx_g=yes
5491 else
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5507 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5508 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5509 if test "$ac_test_CXXFLAGS" = set; then
5510 CXXFLAGS=$ac_save_CXXFLAGS
5511 elif test $ac_cv_prog_cxx_g = yes; then
5512 if test "$GXX" = yes; then
5513 CXXFLAGS="-g -O2"
5514 else
5515 CXXFLAGS="-g"
5517 else
5518 if test "$GXX" = yes; then
5519 CXXFLAGS="-O2"
5520 else
5521 CXXFLAGS=
5524 ac_ext=c
5525 ac_cpp='$CPP $CPPFLAGS'
5526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5530 ac_ext=c
5531 ac_cpp='$CPP $CPPFLAGS'
5532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5536 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5537 # On Suns, sometimes $CPP names a directory.
5538 if test -n "$CPP" && test -d "$CPP"; then
5539 CPP=
5541 if test -z "$CPP"; then
5542 if test "${ac_cv_prog_CPP+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545 # Double quotes because CPP needs to be expanded
5546 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5548 ac_preproc_ok=false
5549 for ac_c_preproc_warn_flag in '' yes
5551 # Use a header file that comes with gcc, so configuring glibc
5552 # with a fresh cross-compiler works.
5553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5554 # <limits.h> exists even on freestanding compilers.
5555 # On the NeXT, cc -E runs the code through the compiler's parser,
5556 # not just through cpp. "Syntax error" is here to catch this case.
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 #ifdef __STDC__
5564 # include <limits.h>
5565 #else
5566 # include <assert.h>
5567 #endif
5568 Syntax error
5569 _ACEOF
5570 if { (ac_try="$ac_cpp conftest.$ac_ext"
5571 case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574 esac
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } >/dev/null && {
5583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5584 test ! -s conftest.err
5585 }; then
5587 else
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5591 # Broken: fails on valid input.
5592 continue
5595 rm -f conftest.err conftest.$ac_ext
5597 # OK, works on sane cases. Now check whether nonexistent headers
5598 # can be detected and how.
5599 cat >conftest.$ac_ext <<_ACEOF
5600 /* confdefs.h. */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5605 #include <ac_nonexistent.h>
5606 _ACEOF
5607 if { (ac_try="$ac_cpp conftest.$ac_ext"
5608 case "(($ac_try" in
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5611 esac
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } >/dev/null && {
5620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5621 test ! -s conftest.err
5622 }; then
5623 # Broken: success on invalid input.
5624 continue
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5629 # Passes both tests.
5630 ac_preproc_ok=:
5631 break
5634 rm -f conftest.err conftest.$ac_ext
5636 done
5637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5638 rm -f conftest.err conftest.$ac_ext
5639 if $ac_preproc_ok; then
5640 break
5643 done
5644 ac_cv_prog_CPP=$CPP
5647 CPP=$ac_cv_prog_CPP
5648 else
5649 ac_cv_prog_CPP=$CPP
5651 { echo "$as_me:$LINENO: result: $CPP" >&5
5652 echo "${ECHO_T}$CPP" >&6; }
5653 ac_preproc_ok=false
5654 for ac_c_preproc_warn_flag in '' yes
5656 # Use a header file that comes with gcc, so configuring glibc
5657 # with a fresh cross-compiler works.
5658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5659 # <limits.h> exists even on freestanding compilers.
5660 # On the NeXT, cc -E runs the code through the compiler's parser,
5661 # not just through cpp. "Syntax error" is here to catch this case.
5662 cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h. */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668 #ifdef __STDC__
5669 # include <limits.h>
5670 #else
5671 # include <assert.h>
5672 #endif
5673 Syntax error
5674 _ACEOF
5675 if { (ac_try="$ac_cpp conftest.$ac_ext"
5676 case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679 esac
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5682 ac_status=$?
5683 grep -v '^ *+' conftest.er1 >conftest.err
5684 rm -f conftest.er1
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } >/dev/null && {
5688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5689 test ! -s conftest.err
5690 }; then
5692 else
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5696 # Broken: fails on valid input.
5697 continue
5700 rm -f conftest.err conftest.$ac_ext
5702 # OK, works on sane cases. Now check whether nonexistent headers
5703 # can be detected and how.
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <ac_nonexistent.h>
5711 _ACEOF
5712 if { (ac_try="$ac_cpp conftest.$ac_ext"
5713 case "(($ac_try" in
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5716 esac
5717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5719 ac_status=$?
5720 grep -v '^ *+' conftest.er1 >conftest.err
5721 rm -f conftest.er1
5722 cat conftest.err >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } >/dev/null && {
5725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5726 test ! -s conftest.err
5727 }; then
5728 # Broken: success on invalid input.
5729 continue
5730 else
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5734 # Passes both tests.
5735 ac_preproc_ok=:
5736 break
5739 rm -f conftest.err conftest.$ac_ext
5741 done
5742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5743 rm -f conftest.err conftest.$ac_ext
5744 if $ac_preproc_ok; then
5746 else
5747 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5748 See \`config.log' for more details." >&5
5749 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5750 See \`config.log' for more details." >&2;}
5751 { (exit 1); exit 1; }; }
5754 ac_ext=c
5755 ac_cpp='$CPP $CPPFLAGS'
5756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5760 ac_ext=cpp
5761 ac_cpp='$CXXCPP $CPPFLAGS'
5762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5765 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5766 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5767 if test -z "$CXXCPP"; then
5768 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 # Double quotes because CXXCPP needs to be expanded
5772 for CXXCPP in "$CXX -E" "/lib/cpp"
5774 ac_preproc_ok=false
5775 for ac_cxx_preproc_warn_flag in '' yes
5777 # Use a header file that comes with gcc, so configuring glibc
5778 # with a fresh cross-compiler works.
5779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5780 # <limits.h> exists even on freestanding compilers.
5781 # On the NeXT, cc -E runs the code through the compiler's parser,
5782 # not just through cpp. "Syntax error" is here to catch this case.
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #ifdef __STDC__
5790 # include <limits.h>
5791 #else
5792 # include <assert.h>
5793 #endif
5794 Syntax error
5795 _ACEOF
5796 if { (ac_try="$ac_cpp conftest.$ac_ext"
5797 case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5800 esac
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } >/dev/null && {
5809 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5810 test ! -s conftest.err
5811 }; then
5813 else
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5817 # Broken: fails on valid input.
5818 continue
5821 rm -f conftest.err conftest.$ac_ext
5823 # OK, works on sane cases. Now check whether nonexistent headers
5824 # can be detected and how.
5825 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h. */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 #include <ac_nonexistent.h>
5832 _ACEOF
5833 if { (ac_try="$ac_cpp conftest.$ac_ext"
5834 case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837 esac
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } >/dev/null && {
5846 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5847 test ! -s conftest.err
5848 }; then
5849 # Broken: success on invalid input.
5850 continue
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 # Passes both tests.
5856 ac_preproc_ok=:
5857 break
5860 rm -f conftest.err conftest.$ac_ext
5862 done
5863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5864 rm -f conftest.err conftest.$ac_ext
5865 if $ac_preproc_ok; then
5866 break
5869 done
5870 ac_cv_prog_CXXCPP=$CXXCPP
5873 CXXCPP=$ac_cv_prog_CXXCPP
5874 else
5875 ac_cv_prog_CXXCPP=$CXXCPP
5877 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5878 echo "${ECHO_T}$CXXCPP" >&6; }
5879 ac_preproc_ok=false
5880 for ac_cxx_preproc_warn_flag in '' yes
5882 # Use a header file that comes with gcc, so configuring glibc
5883 # with a fresh cross-compiler works.
5884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5885 # <limits.h> exists even on freestanding compilers.
5886 # On the NeXT, cc -E runs the code through the compiler's parser,
5887 # not just through cpp. "Syntax error" is here to catch this case.
5888 cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h. */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 #ifdef __STDC__
5895 # include <limits.h>
5896 #else
5897 # include <assert.h>
5898 #endif
5899 Syntax error
5900 _ACEOF
5901 if { (ac_try="$ac_cpp conftest.$ac_ext"
5902 case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } >/dev/null && {
5914 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5915 test ! -s conftest.err
5916 }; then
5918 else
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 # Broken: fails on valid input.
5923 continue
5926 rm -f conftest.err conftest.$ac_ext
5928 # OK, works on sane cases. Now check whether nonexistent headers
5929 # can be detected and how.
5930 cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h. */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 #include <ac_nonexistent.h>
5937 _ACEOF
5938 if { (ac_try="$ac_cpp conftest.$ac_ext"
5939 case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942 esac
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } >/dev/null && {
5951 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5952 test ! -s conftest.err
5953 }; then
5954 # Broken: success on invalid input.
5955 continue
5956 else
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 # Passes both tests.
5961 ac_preproc_ok=:
5962 break
5965 rm -f conftest.err conftest.$ac_ext
5967 done
5968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5969 rm -f conftest.err conftest.$ac_ext
5970 if $ac_preproc_ok; then
5972 else
5973 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5974 See \`config.log' for more details." >&5
5975 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5976 See \`config.log' for more details." >&2;}
5977 { (exit 1); exit 1; }; }
5980 ac_ext=c
5981 ac_cpp='$CPP $CPPFLAGS'
5982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5986 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
5987 # the developers regenerating the configure script don't have to install libtool.
5988 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5989 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5990 if test "${ac_cv_path_SED+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5994 for ac_i in 1 2 3 4 5 6 7; do
5995 ac_script="$ac_script$as_nl$ac_script"
5996 done
5997 echo "$ac_script" | sed 99q >conftest.sed
5998 $as_unset ac_script || ac_script=
5999 # Extract the first word of "sed gsed" to use in msg output
6000 if test -z "$SED"; then
6001 set dummy sed gsed; ac_prog_name=$2
6002 if test "${ac_cv_path_SED+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005 ac_path_SED_found=false
6006 # Loop through the user's path and test for each of PROGNAME-LIST
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6010 IFS=$as_save_IFS
6011 test -z "$as_dir" && as_dir=.
6012 for ac_prog in sed gsed; do
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6015 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6016 # Check for GNU ac_path_SED and select it if it is found.
6017 # Check for GNU $ac_path_SED
6018 case `"$ac_path_SED" --version 2>&1` in
6019 *GNU*)
6020 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6022 ac_count=0
6023 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6024 while :
6026 cat "conftest.in" "conftest.in" >"conftest.tmp"
6027 mv "conftest.tmp" "conftest.in"
6028 cp "conftest.in" "conftest.nl"
6029 echo '' >> "conftest.nl"
6030 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6032 ac_count=`expr $ac_count + 1`
6033 if test $ac_count -gt ${ac_path_SED_max-0}; then
6034 # Best one so far, save it but keep looking for a better one
6035 ac_cv_path_SED="$ac_path_SED"
6036 ac_path_SED_max=$ac_count
6038 # 10*(2^10) chars as input seems more than enough
6039 test $ac_count -gt 10 && break
6040 done
6041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6042 esac
6045 $ac_path_SED_found && break 3
6046 done
6047 done
6049 done
6050 IFS=$as_save_IFS
6055 SED="$ac_cv_path_SED"
6056 if test -z "$SED"; then
6057 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6058 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6059 { (exit 1); exit 1; }; }
6062 else
6063 ac_cv_path_SED=$SED
6067 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6068 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6069 SED="$ac_cv_path_SED"
6070 rm -f conftest.sed
6072 { echo "$as_me:$LINENO: checking for egrep" >&5
6073 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6074 if test "${ac_cv_prog_egrep+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6078 then ac_cv_prog_egrep='grep -E'
6079 else ac_cv_prog_egrep='egrep'
6082 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6083 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6084 EGREP=$ac_cv_prog_egrep
6088 # Check whether --with-gnu-ld was given.
6089 if test "${with_gnu_ld+set}" = set; then
6090 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6091 else
6092 with_gnu_ld=no
6095 ac_prog=ld
6096 if test "$GCC" = yes; then
6097 # Check if gcc -print-prog-name=ld gives a path.
6098 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6099 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6100 case $host in
6101 *-*-mingw*)
6102 # gcc leaves a trailing carriage return which upsets mingw
6103 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6105 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6106 esac
6107 case $ac_prog in
6108 # Accept absolute paths.
6109 [\\/]* | ?:[\\/]*)
6110 re_direlt='/[^/][^/]*/\.\./'
6111 # Canonicalize the pathname of ld
6112 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6113 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6114 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6115 done
6116 test -z "$LD" && LD="$ac_prog"
6119 # If it fails, then pretend we aren't using GCC.
6120 ac_prog=ld
6123 # If it is relative, then search for the first ld in PATH.
6124 with_gnu_ld=unknown
6126 esac
6127 elif test "$with_gnu_ld" = yes; then
6128 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6129 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6130 else
6131 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6132 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6134 if test "${lt_cv_path_LD+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137 if test -z "$LD"; then
6138 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6139 for ac_dir in $PATH; do
6140 IFS="$lt_save_ifs"
6141 test -z "$ac_dir" && ac_dir=.
6142 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6143 lt_cv_path_LD="$ac_dir/$ac_prog"
6144 # Check to see if the program is GNU ld. I'd rather use --version,
6145 # but apparently some variants of GNU ld only accept -v.
6146 # Break only if it was the GNU/non-GNU ld that we prefer.
6147 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6148 *GNU* | *'with BFD'*)
6149 test "$with_gnu_ld" != no && break
6152 test "$with_gnu_ld" != yes && break
6154 esac
6156 done
6157 IFS="$lt_save_ifs"
6158 else
6159 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6163 LD="$lt_cv_path_LD"
6164 if test -n "$LD"; then
6165 { echo "$as_me:$LINENO: result: $LD" >&5
6166 echo "${ECHO_T}$LD" >&6; }
6167 else
6168 { echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6; }
6171 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6172 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6173 { (exit 1); exit 1; }; }
6174 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6175 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6176 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6180 case `$LD -v 2>&1 </dev/null` in
6181 *GNU* | *'with BFD'*)
6182 lt_cv_prog_gnu_ld=yes
6185 lt_cv_prog_gnu_ld=no
6187 esac
6189 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6190 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6191 with_gnu_ld=$lt_cv_prog_gnu_ld
6194 for ac_prog in gawk mawk nawk awk
6196 # Extract the first word of "$ac_prog", so it can be a program name with args.
6197 set dummy $ac_prog; ac_word=$2
6198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6200 if test "${ac_cv_prog_AWK+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 if test -n "$AWK"; then
6204 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213 ac_cv_prog_AWK="$ac_prog"
6214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 break 2
6217 done
6218 done
6219 IFS=$as_save_IFS
6223 AWK=$ac_cv_prog_AWK
6224 if test -n "$AWK"; then
6225 { echo "$as_me:$LINENO: result: $AWK" >&5
6226 echo "${ECHO_T}$AWK" >&6; }
6227 else
6228 { echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6; }
6233 test -n "$AWK" && break
6234 done
6236 # Find a good install program. We prefer a C program (faster),
6237 # so one script is as good as another. But avoid the broken or
6238 # incompatible versions:
6239 # SysV /etc/install, /usr/sbin/install
6240 # SunOS /usr/etc/install
6241 # IRIX /sbin/install
6242 # AIX /bin/install
6243 # AmigaOS /C/install, which installs bootblocks on floppy discs
6244 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6245 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6246 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6247 # OS/2's system install, which has a completely different semantic
6248 # ./install, which can be erroneously created by make from ./install.sh.
6249 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6250 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6251 if test -z "$INSTALL"; then
6252 if test "${ac_cv_path_install+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 # Account for people who put trailing slashes in PATH elements.
6261 case $as_dir/ in
6262 ./ | .// | /cC/* | \
6263 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6264 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6265 /usr/ucb/* ) ;;
6267 # OSF1 and SCO ODT 3.0 have their own names for install.
6268 # Don't use installbsd from OSF since it installs stuff as root
6269 # by default.
6270 for ac_prog in ginstall scoinst install; do
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6273 if test $ac_prog = install &&
6274 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6275 # AIX install. It has an incompatible calling convention.
6277 elif test $ac_prog = install &&
6278 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6279 # program-specific install script used by HP pwplus--don't use.
6281 else
6282 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6283 break 3
6286 done
6287 done
6289 esac
6290 done
6291 IFS=$as_save_IFS
6295 if test "${ac_cv_path_install+set}" = set; then
6296 INSTALL=$ac_cv_path_install
6297 else
6298 # As a last resort, use the slow shell script. Don't cache a
6299 # value for INSTALL within a source directory, because that will
6300 # break other packages using the cache if that directory is
6301 # removed, or if the value is a relative name.
6302 INSTALL=$ac_install_sh
6305 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6306 echo "${ECHO_T}$INSTALL" >&6; }
6308 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6309 # It thinks the first close brace ends the variable substitution.
6310 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6312 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6314 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6316 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6317 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6318 LN_S=$as_ln_s
6319 if test "$LN_S" = "ln -s"; then
6320 { echo "$as_me:$LINENO: result: yes" >&5
6321 echo "${ECHO_T}yes" >&6; }
6322 else
6323 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6324 echo "${ECHO_T}no, using $LN_S" >&6; }
6327 if test -n "$ac_tool_prefix"; then
6328 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6329 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6332 if test "${ac_cv_prog_RANLIB+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 if test -n "$RANLIB"; then
6336 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6349 done
6350 done
6351 IFS=$as_save_IFS
6355 RANLIB=$ac_cv_prog_RANLIB
6356 if test -n "$RANLIB"; then
6357 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6358 echo "${ECHO_T}$RANLIB" >&6; }
6359 else
6360 { echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6; }
6366 if test -z "$ac_cv_prog_RANLIB"; then
6367 ac_ct_RANLIB=$RANLIB
6368 # Extract the first word of "ranlib", so it can be a program name with args.
6369 set dummy ranlib; ac_word=$2
6370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6372 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375 if test -n "$ac_ct_RANLIB"; then
6376 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385 ac_cv_prog_ac_ct_RANLIB="ranlib"
6386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6389 done
6390 done
6391 IFS=$as_save_IFS
6395 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6396 if test -n "$ac_ct_RANLIB"; then
6397 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6398 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6399 else
6400 { echo "$as_me:$LINENO: result: no" >&5
6401 echo "${ECHO_T}no" >&6; }
6404 if test "x$ac_ct_RANLIB" = x; then
6405 RANLIB=":"
6406 else
6407 case $cross_compiling:$ac_tool_warned in
6408 yes:)
6409 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6410 whose name does not start with the host triplet. If you think this
6411 configuration is useful to you, please write to autoconf@gnu.org." >&5
6412 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6413 whose name does not start with the host triplet. If you think this
6414 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6415 ac_tool_warned=yes ;;
6416 esac
6417 RANLIB=$ac_ct_RANLIB
6419 else
6420 RANLIB="$ac_cv_prog_RANLIB"
6423 { echo "$as_me:$LINENO: checking for GNU make" >&5
6424 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6425 if test "${GNU_MAKE+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428 GNU_MAKE='Not Found' ;
6429 GNU_MAKE_VERSION_MAJOR=0 ;
6430 GNU_MAKE_VERSION_MINOR=0 ;
6431 for a in make gmake gnumake ; do
6432 if test -z "$a" ; then continue ; fi ;
6433 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6434 GNU_MAKE=$a ;
6435 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6436 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6437 break;
6439 done ;
6442 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6443 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6444 if test "x$GNU_MAKE" = "xNot Found" ; then
6445 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6446 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6447 { (exit 1); exit 1; }; }
6448 exit 1
6453 if test -n "$ac_tool_prefix"; then
6454 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}strip; ac_word=$2
6456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458 if test "${ac_cv_path_STRIP+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461 case $STRIP in
6462 [\\/]* | ?:[\\/]*)
6463 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6477 done
6478 done
6479 IFS=$as_save_IFS
6482 esac
6484 STRIP=$ac_cv_path_STRIP
6485 if test -n "$STRIP"; then
6486 { echo "$as_me:$LINENO: result: $STRIP" >&5
6487 echo "${ECHO_T}$STRIP" >&6; }
6488 else
6489 { echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6; }
6495 if test -z "$ac_cv_path_STRIP"; then
6496 ac_pt_STRIP=$STRIP
6497 # Extract the first word of "strip", so it can be a program name with args.
6498 set dummy strip; ac_word=$2
6499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6501 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504 case $ac_pt_STRIP in
6505 [\\/]* | ?:[\\/]*)
6506 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6520 done
6521 done
6522 IFS=$as_save_IFS
6525 esac
6527 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6528 if test -n "$ac_pt_STRIP"; then
6529 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6530 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6531 else
6532 { echo "$as_me:$LINENO: result: no" >&5
6533 echo "${ECHO_T}no" >&6; }
6536 if test "x$ac_pt_STRIP" = x; then
6537 STRIP=":"
6538 else
6539 case $cross_compiling:$ac_tool_warned in
6540 yes:)
6541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6542 whose name does not start with the host triplet. If you think this
6543 configuration is useful to you, please write to autoconf@gnu.org." >&5
6544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6545 whose name does not start with the host triplet. If you think this
6546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6547 ac_tool_warned=yes ;;
6548 esac
6549 STRIP=$ac_pt_STRIP
6551 else
6552 STRIP="$ac_cv_path_STRIP"
6555 if test -n "$ac_tool_prefix"; then
6556 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6557 set dummy ${ac_tool_prefix}ar; ac_word=$2
6558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6560 if test "${ac_cv_path_AR+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563 case $AR in
6564 [\\/]* | ?:[\\/]*)
6565 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 break 2
6579 done
6580 done
6581 IFS=$as_save_IFS
6584 esac
6586 AR=$ac_cv_path_AR
6587 if test -n "$AR"; then
6588 { echo "$as_me:$LINENO: result: $AR" >&5
6589 echo "${ECHO_T}$AR" >&6; }
6590 else
6591 { echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6; }
6597 if test -z "$ac_cv_path_AR"; then
6598 ac_pt_AR=$AR
6599 # Extract the first word of "ar", so it can be a program name with args.
6600 set dummy ar; ac_word=$2
6601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6603 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606 case $ac_pt_AR in
6607 [\\/]* | ?:[\\/]*)
6608 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6622 done
6623 done
6624 IFS=$as_save_IFS
6627 esac
6629 ac_pt_AR=$ac_cv_path_ac_pt_AR
6630 if test -n "$ac_pt_AR"; then
6631 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6632 echo "${ECHO_T}$ac_pt_AR" >&6; }
6633 else
6634 { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6638 if test "x$ac_pt_AR" = x; then
6639 AR=":"
6640 else
6641 case $cross_compiling:$ac_tool_warned in
6642 yes:)
6643 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6644 whose name does not start with the host triplet. If you think this
6645 configuration is useful to you, please write to autoconf@gnu.org." >&5
6646 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6647 whose name does not start with the host triplet. If you think this
6648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6649 ac_tool_warned=yes ;;
6650 esac
6651 AR=$ac_pt_AR
6653 else
6654 AR="$ac_cv_path_AR"
6658 GNU_LD=0
6659 if test "x$with_gnu_ld" = "xyes" ; then
6660 GNU_LD=1
6664 # Extract the first word of "grep", so it can be a program name with args.
6665 set dummy grep; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_path_GREP+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671 case $GREP in
6672 [\\/]* | ?:[\\/]*)
6673 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6687 done
6688 done
6689 IFS=$as_save_IFS
6691 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6693 esac
6695 GREP=$ac_cv_path_GREP
6696 if test -n "$GREP"; then
6697 { echo "$as_me:$LINENO: result: $GREP" >&5
6698 echo "${ECHO_T}$GREP" >&6; }
6699 else
6700 { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6705 # Extract the first word of "find", so it can be a program name with args.
6706 set dummy find; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_path_FIND+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712 case $FIND in
6713 [\\/]* | ?:[\\/]*)
6714 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6728 done
6729 done
6730 IFS=$as_save_IFS
6732 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6734 esac
6736 FIND=$ac_cv_path_FIND
6737 if test -n "$FIND"; then
6738 { echo "$as_me:$LINENO: result: $FIND" >&5
6739 echo "${ECHO_T}$FIND" >&6; }
6740 else
6741 { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6746 # Extract the first word of "compress", so it can be a program name with args.
6747 set dummy compress; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_COMPRESS+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753 case $COMPRESS in
6754 [\\/]* | ?:[\\/]*)
6755 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6769 done
6770 done
6771 IFS=$as_save_IFS
6773 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6775 esac
6777 COMPRESS=$ac_cv_path_COMPRESS
6778 if test -n "$COMPRESS"; then
6779 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6780 echo "${ECHO_T}$COMPRESS" >&6; }
6781 else
6782 { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6787 # Extract the first word of "basename", so it can be a program name with args.
6788 set dummy basename; ac_word=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_path_BASENAME+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794 case $BASENAME in
6795 [\\/]* | ?:[\\/]*)
6796 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 for as_dir in $PATH
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6806 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 break 2
6810 done
6811 done
6812 IFS=$as_save_IFS
6814 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6816 esac
6818 BASENAME=$ac_cv_path_BASENAME
6819 if test -n "$BASENAME"; then
6820 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6821 echo "${ECHO_T}$BASENAME" >&6; }
6822 else
6823 { echo "$as_me:$LINENO: result: no" >&5
6824 echo "${ECHO_T}no" >&6; }
6828 # Extract the first word of "id", so it can be a program name with args.
6829 set dummy id; ac_word=$2
6830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832 if test "${ac_cv_path_ID+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835 case $ID in
6836 [\\/]* | ?:[\\/]*)
6837 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6851 done
6852 done
6853 IFS=$as_save_IFS
6855 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6857 esac
6859 ID=$ac_cv_path_ID
6860 if test -n "$ID"; then
6861 { echo "$as_me:$LINENO: result: $ID" >&5
6862 echo "${ECHO_T}$ID" >&6; }
6863 else
6864 { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6869 # Extract the first word of "dirname", so it can be a program name with args.
6870 set dummy dirname; ac_word=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_path_DIRNAME+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 case $DIRNAME in
6877 [\\/]* | ?:[\\/]*)
6878 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 break 2
6892 done
6893 done
6894 IFS=$as_save_IFS
6896 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
6898 esac
6900 DIRNAME=$ac_cv_path_DIRNAME
6901 if test -n "$DIRNAME"; then
6902 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6903 echo "${ECHO_T}$DIRNAME" >&6; }
6904 else
6905 { echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6; }
6910 # Extract the first word of "sh", so it can be a program name with args.
6911 set dummy sh; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_path_SHELL+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917 case $SHELL in
6918 [\\/]* | ?:[\\/]*)
6919 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6933 done
6934 done
6935 IFS=$as_save_IFS
6937 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
6939 esac
6941 SHELL=$ac_cv_path_SHELL
6942 if test -n "$SHELL"; then
6943 { echo "$as_me:$LINENO: result: $SHELL" >&5
6944 echo "${ECHO_T}$SHELL" >&6; }
6945 else
6946 { echo "$as_me:$LINENO: result: no" >&5
6947 echo "${ECHO_T}no" >&6; }
6951 # Extract the first word of "ln", so it can be a program name with args.
6952 set dummy ln; ac_word=$2
6953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6955 if test "${ac_cv_path_LN+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958 case $LN in
6959 [\\/]* | ?:[\\/]*)
6960 ac_cv_path_LN="$LN" # Let the user override the test with a path.
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
6971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6974 done
6975 done
6976 IFS=$as_save_IFS
6978 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
6980 esac
6982 LN=$ac_cv_path_LN
6983 if test -n "$LN"; then
6984 { echo "$as_me:$LINENO: result: $LN" >&5
6985 echo "${ECHO_T}$LN" >&6; }
6986 else
6987 { echo "$as_me:$LINENO: result: no" >&5
6988 echo "${ECHO_T}no" >&6; }
6992 # Extract the first word of "dot", so it can be a program name with args.
6993 set dummy dot; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_path_DOT+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999 case $DOT in
7000 [\\/]* | ?:[\\/]*)
7001 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7015 done
7016 done
7017 IFS=$as_save_IFS
7019 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7021 esac
7023 DOT=$ac_cv_path_DOT
7024 if test -n "$DOT"; then
7025 { echo "$as_me:$LINENO: result: $DOT" >&5
7026 echo "${ECHO_T}$DOT" >&6; }
7027 else
7028 { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7033 # Extract the first word of "wget", so it can be a program name with args.
7034 set dummy wget; ac_word=$2
7035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7037 if test "${ac_cv_path_WGET+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040 case $WGET in
7041 [\\/]* | ?:[\\/]*)
7042 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7052 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7056 done
7057 done
7058 IFS=$as_save_IFS
7060 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7062 esac
7064 WGET=$ac_cv_path_WGET
7065 if test -n "$WGET"; then
7066 { echo "$as_me:$LINENO: result: $WGET" >&5
7067 echo "${ECHO_T}$WGET" >&6; }
7068 else
7069 { echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6; }
7074 if test "${WGET}" != ":" ; then
7075 DOWNLOAD=${WGET}
7076 else
7077 # Extract the first word of "fetch", so it can be a program name with args.
7078 set dummy fetch; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_path_FETCH+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084 case $FETCH in
7085 [\\/]* | ?:[\\/]*)
7086 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7100 done
7101 done
7102 IFS=$as_save_IFS
7104 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7106 esac
7108 FETCH=$ac_cv_path_FETCH
7109 if test -n "$FETCH"; then
7110 { echo "$as_me:$LINENO: result: $FETCH" >&5
7111 echo "${ECHO_T}$FETCH" >&6; }
7112 else
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7118 DOWNLOAD=${FETCH}
7125 ac_ext=c
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7131 acx_pthread_ok=no
7133 # We used to check for pthread.h first, but this fails if pthread.h
7134 # requires special compiler flags (e.g. on True64 or Sequent).
7135 # It gets checked for in the link test anyway.
7137 # First of all, check if the user has set any of the PTHREAD_LIBS,
7138 # etcetera environment variables, and if threads linking works using
7139 # them:
7140 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7141 save_CFLAGS="$CFLAGS"
7142 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7143 save_LIBS="$LIBS"
7144 LIBS="$PTHREAD_LIBS $LIBS"
7145 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7146 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7147 cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h. */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7154 /* Override any GCC internal prototype to avoid an error.
7155 Use char because int might match the return type of a GCC
7156 builtin and then its argument prototype would still apply. */
7157 #ifdef __cplusplus
7158 extern "C"
7159 #endif
7160 char pthread_join ();
7162 main ()
7164 return pthread_join ();
7166 return 0;
7168 _ACEOF
7169 rm -f conftest.$ac_objext conftest$ac_exeext
7170 if { (ac_try="$ac_link"
7171 case "(($ac_try" in
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_link") 2>conftest.er1
7177 ac_status=$?
7178 grep -v '^ *+' conftest.er1 >conftest.err
7179 rm -f conftest.er1
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } && {
7183 test -z "$ac_c_werror_flag" ||
7184 test ! -s conftest.err
7185 } && test -s conftest$ac_exeext &&
7186 $as_test_x conftest$ac_exeext; then
7187 acx_pthread_ok=yes
7188 else
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7196 conftest$ac_exeext conftest.$ac_ext
7197 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7198 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7199 if test x"$acx_pthread_ok" = xno; then
7200 PTHREAD_LIBS=""
7201 PTHREAD_CFLAGS=""
7203 LIBS="$save_LIBS"
7204 CFLAGS="$save_CFLAGS"
7207 # We must check for the threads library under a number of different
7208 # names; the ordering is very important because some systems
7209 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7210 # libraries is broken (non-POSIX).
7212 # Create a list of thread flags to try. Items starting with a "-" are
7213 # C compiler flags, and other items are library names, except for "none"
7214 # which indicates that we try without any flags at all, and "pthread-config"
7215 # which is a program returning the flags for the Pth emulation library.
7217 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7219 # The ordering *is* (sometimes) important. Some notes on the
7220 # individual items follow:
7222 # pthreads: AIX (must check this before -lpthread)
7223 # none: in case threads are in libc; should be tried before -Kthread and
7224 # other compiler flags to prevent continual compiler warnings
7225 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7226 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7227 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7228 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7229 # -pthreads: Solaris/gcc
7230 # -mthreads: Mingw32/gcc, Lynx/gcc
7231 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7232 # doesn't hurt to check since this sometimes defines pthreads too;
7233 # also defines -D_REENTRANT)
7234 # ... -mt is also the pthreads flag for HP/aCC
7235 # pthread: Linux, etcetera
7236 # --thread-safe: KAI C++
7237 # pthread-config: use pthread-config program (for GNU Pth library)
7239 case "${host_cpu}-${host_os}" in
7240 *solaris*)
7242 # On Solaris (at least, for some versions), libc contains stubbed
7243 # (non-functional) versions of the pthreads routines, so link-based
7244 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7245 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7246 # a function called by this macro, so we could check for that, but
7247 # who knows whether they'll stub that too in a future libc.) So,
7248 # we'll just look for -pthreads and -lpthread first:
7250 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7252 esac
7254 if test x"$acx_pthread_ok" = xno; then
7255 for flag in $acx_pthread_flags; do
7257 case $flag in
7258 none)
7259 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7260 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7264 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7265 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7266 PTHREAD_CFLAGS="$flag"
7269 pthread-config)
7270 # Extract the first word of "pthread-config", so it can be a program name with args.
7271 set dummy pthread-config; ac_word=$2
7272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277 if test -n "$acx_pthread_config"; then
7278 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7287 ac_cv_prog_acx_pthread_config="yes"
7288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 break 2
7291 done
7292 done
7293 IFS=$as_save_IFS
7295 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7298 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7299 if test -n "$acx_pthread_config"; then
7300 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7301 echo "${ECHO_T}$acx_pthread_config" >&6; }
7302 else
7303 { echo "$as_me:$LINENO: result: no" >&5
7304 echo "${ECHO_T}no" >&6; }
7308 if test x"$acx_pthread_config" = xno; then continue; fi
7309 PTHREAD_CFLAGS="`pthread-config --cflags`"
7310 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7314 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7315 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7316 PTHREAD_LIBS="-l$flag"
7318 esac
7320 save_LIBS="$LIBS"
7321 save_CFLAGS="$CFLAGS"
7322 LIBS="$PTHREAD_LIBS $LIBS"
7323 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7325 # Check for various functions. We must include pthread.h,
7326 # since some functions may be macros. (On the Sequent, we
7327 # need a special flag -Kthread to make this header compile.)
7328 # We check for pthread_join because it is in -lpthread on IRIX
7329 # while pthread_create is in libc. We check for pthread_attr_init
7330 # due to DEC craziness with -lpthreads. We check for
7331 # pthread_cleanup_push because it is one of the few pthread
7332 # functions on Solaris that doesn't have a non-functional libc stub.
7333 # We try pthread_create on general principles.
7334 cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h. */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 #include <pthread.h>
7342 main ()
7344 pthread_t th; pthread_join(th, 0);
7345 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7346 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7348 return 0;
7350 _ACEOF
7351 rm -f conftest.$ac_objext conftest$ac_exeext
7352 if { (ac_try="$ac_link"
7353 case "(($ac_try" in
7354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7355 *) ac_try_echo=$ac_try;;
7356 esac
7357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358 (eval "$ac_link") 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && {
7365 test -z "$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7367 } && test -s conftest$ac_exeext &&
7368 $as_test_x conftest$ac_exeext; then
7369 acx_pthread_ok=yes
7370 else
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7378 conftest$ac_exeext conftest.$ac_ext
7380 LIBS="$save_LIBS"
7381 CFLAGS="$save_CFLAGS"
7383 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7384 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7385 if test "x$acx_pthread_ok" = xyes; then
7386 break;
7389 PTHREAD_LIBS=""
7390 PTHREAD_CFLAGS=""
7391 done
7394 # Various other checks:
7395 if test "x$acx_pthread_ok" = xyes; then
7396 save_LIBS="$LIBS"
7397 LIBS="$PTHREAD_LIBS $LIBS"
7398 save_CFLAGS="$CFLAGS"
7399 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7401 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7402 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7403 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7404 attr_name=unknown
7405 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7406 cat >conftest.$ac_ext <<_ACEOF
7407 /* confdefs.h. */
7408 _ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412 #include <pthread.h>
7414 main ()
7416 int attr=$attr; return attr;
7418 return 0;
7420 _ACEOF
7421 rm -f conftest.$ac_objext conftest$ac_exeext
7422 if { (ac_try="$ac_link"
7423 case "(($ac_try" in
7424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425 *) ac_try_echo=$ac_try;;
7426 esac
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428 (eval "$ac_link") 2>conftest.er1
7429 ac_status=$?
7430 grep -v '^ *+' conftest.er1 >conftest.err
7431 rm -f conftest.er1
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } && {
7435 test -z "$ac_c_werror_flag" ||
7436 test ! -s conftest.err
7437 } && test -s conftest$ac_exeext &&
7438 $as_test_x conftest$ac_exeext; then
7439 attr_name=$attr; break
7440 else
7441 echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7448 conftest$ac_exeext conftest.$ac_ext
7449 done
7450 { echo "$as_me:$LINENO: result: $attr_name" >&5
7451 echo "${ECHO_T}$attr_name" >&6; }
7452 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7454 cat >>confdefs.h <<_ACEOF
7455 #define PTHREAD_CREATE_JOINABLE $attr_name
7456 _ACEOF
7460 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7461 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7462 flag=no
7463 case "${host_cpu}-${host_os}" in
7464 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7465 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7466 esac
7467 { echo "$as_me:$LINENO: result: ${flag}" >&5
7468 echo "${ECHO_T}${flag}" >&6; }
7469 if test "x$flag" != xno; then
7470 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7473 LIBS="$save_LIBS"
7474 CFLAGS="$save_CFLAGS"
7476 # More AIX lossage: must compile with xlc_r or cc_r
7477 if test x"$GCC" != xyes; then
7478 for ac_prog in xlc_r cc_r
7480 # Extract the first word of "$ac_prog", so it can be a program name with args.
7481 set dummy $ac_prog; ac_word=$2
7482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487 if test -n "$PTHREAD_CC"; then
7488 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7489 else
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7497 ac_cv_prog_PTHREAD_CC="$ac_prog"
7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 break 2
7501 done
7502 done
7503 IFS=$as_save_IFS
7507 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7508 if test -n "$PTHREAD_CC"; then
7509 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7510 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7511 else
7512 { echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6; }
7517 test -n "$PTHREAD_CC" && break
7518 done
7519 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7521 else
7522 PTHREAD_CC=$CC
7524 else
7525 PTHREAD_CC="$CC"
7532 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7533 if test x"$acx_pthread_ok" = xyes; then
7535 cat >>confdefs.h <<\_ACEOF
7536 #define HAVE_PTHREAD 1
7537 _ACEOF
7540 else
7541 acx_pthread_ok=no
7544 ac_ext=c
7545 ac_cpp='$CPP $CPPFLAGS'
7546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7552 ac_ext=c
7553 ac_cpp='$CPP $CPPFLAGS'
7554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559 # Check whether --enable-dev-mode was given.
7560 if test "${enable_dev_mode+set}" = set; then
7561 enableval=$enable_dev_mode; case "${enableval}" in
7562 y|ye|yes) AST_DEVMODE=yes ;;
7563 n|no) AST_DEVMODE=no ;;
7564 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7565 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7566 { (exit 1); exit 1; }; } ;;
7567 esac
7572 # package option names should be in alphabetical order
7573 # by the --with option name, to make things easier for the users :-)
7576 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7577 ALSA_OPTION="asound"
7579 # Check whether --with-asound was given.
7580 if test "${with_asound+set}" = set; then
7581 withval=$with_asound;
7582 case ${withval} in
7583 n|no)
7584 USE_ALSA=no
7586 y|ye|yes)
7587 ALSA_MANDATORY="yes"
7590 ALSA_DIR="${withval}"
7591 ALSA_MANDATORY="yes"
7593 esac
7597 PBX_ALSA=0
7604 CURL_DESCRIP="cURL"
7605 CURL_OPTION="curl"
7607 # Check whether --with-curl was given.
7608 if test "${with_curl+set}" = set; then
7609 withval=$with_curl;
7610 case ${withval} in
7611 n|no)
7612 USE_CURL=no
7614 y|ye|yes)
7615 CURL_MANDATORY="yes"
7618 CURL_DIR="${withval}"
7619 CURL_MANDATORY="yes"
7621 esac
7625 PBX_CURL=0
7632 CURSES_DESCRIP="curses"
7633 CURSES_OPTION="curses"
7635 # Check whether --with-curses was given.
7636 if test "${with_curses+set}" = set; then
7637 withval=$with_curses;
7638 case ${withval} in
7639 n|no)
7640 USE_CURSES=no
7642 y|ye|yes)
7643 CURSES_MANDATORY="yes"
7646 CURSES_DIR="${withval}"
7647 CURSES_MANDATORY="yes"
7649 esac
7653 PBX_CURSES=0
7660 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7661 GNUTLS_OPTION="gnutls"
7663 # Check whether --with-gnutls was given.
7664 if test "${with_gnutls+set}" = set; then
7665 withval=$with_gnutls;
7666 case ${withval} in
7667 n|no)
7668 USE_GNUTLS=no
7670 y|ye|yes)
7671 GNUTLS_MANDATORY="yes"
7674 GNUTLS_DIR="${withval}"
7675 GNUTLS_MANDATORY="yes"
7677 esac
7681 PBX_GNUTLS=0
7688 GSM_DESCRIP="GSM"
7689 GSM_OPTION="gsm"
7691 # Check whether --with-gsm was given.
7692 if test "${with_gsm+set}" = set; then
7693 withval=$with_gsm;
7694 case ${withval} in
7695 n|no)
7696 USE_GSM=no
7698 y|ye|yes)
7699 GSM_MANDATORY="yes"
7702 GSM_DIR="${withval}"
7703 GSM_MANDATORY="yes"
7705 esac
7709 PBX_GSM=0
7716 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7717 IKSEMEL_OPTION="iksemel"
7719 # Check whether --with-iksemel was given.
7720 if test "${with_iksemel+set}" = set; then
7721 withval=$with_iksemel;
7722 case ${withval} in
7723 n|no)
7724 USE_IKSEMEL=no
7726 y|ye|yes)
7727 IKSEMEL_MANDATORY="yes"
7730 IKSEMEL_DIR="${withval}"
7731 IKSEMEL_MANDATORY="yes"
7733 esac
7737 PBX_IKSEMEL=0
7744 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7745 IMAP_TK_OPTION="imap"
7747 # Check whether --with-imap was given.
7748 if test "${with_imap+set}" = set; then
7749 withval=$with_imap;
7750 case ${withval} in
7751 n|no)
7752 USE_IMAP_TK=no
7754 y|ye|yes)
7755 IMAP_TK_MANDATORY="yes"
7758 IMAP_TK_DIR="${withval}"
7759 IMAP_TK_MANDATORY="yes"
7761 esac
7765 PBX_IMAP_TK=0
7772 ISDNNET_DESCRIP="ISDN4Linux Library"
7773 ISDNNET_OPTION="isdnnet"
7775 # Check whether --with-isdnnet was given.
7776 if test "${with_isdnnet+set}" = set; then
7777 withval=$with_isdnnet;
7778 case ${withval} in
7779 n|no)
7780 USE_ISDNNET=no
7782 y|ye|yes)
7783 ISDNNET_MANDATORY="yes"
7786 ISDNNET_DIR="${withval}"
7787 ISDNNET_MANDATORY="yes"
7789 esac
7793 PBX_ISDNNET=0
7800 KDE_DESCRIP="KDE"
7801 KDE_OPTION="kde"
7803 # Check whether --with-kde was given.
7804 if test "${with_kde+set}" = set; then
7805 withval=$with_kde;
7806 case ${withval} in
7807 n|no)
7808 USE_KDE=no
7810 y|ye|yes)
7811 KDE_MANDATORY="yes"
7814 KDE_DIR="${withval}"
7815 KDE_MANDATORY="yes"
7817 esac
7821 PBX_KDE=0
7828 LTDL_DESCRIP="libtool"
7829 LTDL_OPTION="ltdl"
7831 # Check whether --with-ltdl was given.
7832 if test "${with_ltdl+set}" = set; then
7833 withval=$with_ltdl;
7834 case ${withval} in
7835 n|no)
7836 USE_LTDL=no
7838 y|ye|yes)
7839 LTDL_MANDATORY="yes"
7842 LTDL_DIR="${withval}"
7843 LTDL_MANDATORY="yes"
7845 esac
7849 PBX_LTDL=0
7856 MISDN_DESCRIP="mISDN User Library"
7857 MISDN_OPTION="misdn"
7859 # Check whether --with-misdn was given.
7860 if test "${with_misdn+set}" = set; then
7861 withval=$with_misdn;
7862 case ${withval} in
7863 n|no)
7864 USE_MISDN=no
7866 y|ye|yes)
7867 MISDN_MANDATORY="yes"
7870 MISDN_DIR="${withval}"
7871 MISDN_MANDATORY="yes"
7873 esac
7877 PBX_MISDN=0
7884 NBS_DESCRIP="Network Broadcast Sound"
7885 NBS_OPTION="nbs"
7887 # Check whether --with-nbs was given.
7888 if test "${with_nbs+set}" = set; then
7889 withval=$with_nbs;
7890 case ${withval} in
7891 n|no)
7892 USE_NBS=no
7894 y|ye|yes)
7895 NBS_MANDATORY="yes"
7898 NBS_DIR="${withval}"
7899 NBS_MANDATORY="yes"
7901 esac
7905 PBX_NBS=0
7912 NCURSES_DESCRIP="ncurses"
7913 NCURSES_OPTION="ncurses"
7915 # Check whether --with-ncurses was given.
7916 if test "${with_ncurses+set}" = set; then
7917 withval=$with_ncurses;
7918 case ${withval} in
7919 n|no)
7920 USE_NCURSES=no
7922 y|ye|yes)
7923 NCURSES_MANDATORY="yes"
7926 NCURSES_DIR="${withval}"
7927 NCURSES_MANDATORY="yes"
7929 esac
7933 PBX_NCURSES=0
7940 NETSNMP_DESCRIP="Net-SNMP"
7941 NETSNMP_OPTION="netsnmp"
7943 # Check whether --with-netsnmp was given.
7944 if test "${with_netsnmp+set}" = set; then
7945 withval=$with_netsnmp;
7946 case ${withval} in
7947 n|no)
7948 USE_NETSNMP=no
7950 y|ye|yes)
7951 NETSNMP_MANDATORY="yes"
7954 NETSNMP_DIR="${withval}"
7955 NETSNMP_MANDATORY="yes"
7957 esac
7961 PBX_NETSNMP=0
7968 NEWT_DESCRIP="newt"
7969 NEWT_OPTION="newt"
7971 # Check whether --with-newt was given.
7972 if test "${with_newt+set}" = set; then
7973 withval=$with_newt;
7974 case ${withval} in
7975 n|no)
7976 USE_NEWT=no
7978 y|ye|yes)
7979 NEWT_MANDATORY="yes"
7982 NEWT_DIR="${withval}"
7983 NEWT_MANDATORY="yes"
7985 esac
7989 PBX_NEWT=0
7996 UNIXODBC_DESCRIP="unixODBC"
7997 UNIXODBC_OPTION="odbc"
7999 # Check whether --with-odbc was given.
8000 if test "${with_odbc+set}" = set; then
8001 withval=$with_odbc;
8002 case ${withval} in
8003 n|no)
8004 USE_UNIXODBC=no
8006 y|ye|yes)
8007 UNIXODBC_MANDATORY="yes"
8010 UNIXODBC_DIR="${withval}"
8011 UNIXODBC_MANDATORY="yes"
8013 esac
8017 PBX_UNIXODBC=0
8024 OGG_DESCRIP="OGG"
8025 OGG_OPTION="ogg"
8027 # Check whether --with-ogg was given.
8028 if test "${with_ogg+set}" = set; then
8029 withval=$with_ogg;
8030 case ${withval} in
8031 n|no)
8032 USE_OGG=no
8034 y|ye|yes)
8035 OGG_MANDATORY="yes"
8038 OGG_DIR="${withval}"
8039 OGG_MANDATORY="yes"
8041 esac
8045 PBX_OGG=0
8052 OSPTK_DESCRIP="OSP Toolkit"
8053 OSPTK_OPTION="osptk"
8055 # Check whether --with-osptk was given.
8056 if test "${with_osptk+set}" = set; then
8057 withval=$with_osptk;
8058 case ${withval} in
8059 n|no)
8060 USE_OSPTK=no
8062 y|ye|yes)
8063 OSPTK_MANDATORY="yes"
8066 OSPTK_DIR="${withval}"
8067 OSPTK_MANDATORY="yes"
8069 esac
8073 PBX_OSPTK=0
8080 OSS_DESCRIP="Open Sound System"
8081 OSS_OPTION="oss"
8083 # Check whether --with-oss was given.
8084 if test "${with_oss+set}" = set; then
8085 withval=$with_oss;
8086 case ${withval} in
8087 n|no)
8088 USE_OSS=no
8090 y|ye|yes)
8091 OSS_MANDATORY="yes"
8094 OSS_DIR="${withval}"
8095 OSS_MANDATORY="yes"
8097 esac
8101 PBX_OSS=0
8108 POPT_DESCRIP="popt"
8109 POPT_OPTION="popt"
8111 # Check whether --with-popt was given.
8112 if test "${with_popt+set}" = set; then
8113 withval=$with_popt;
8114 case ${withval} in
8115 n|no)
8116 USE_POPT=no
8118 y|ye|yes)
8119 POPT_MANDATORY="yes"
8122 POPT_DIR="${withval}"
8123 POPT_MANDATORY="yes"
8125 esac
8129 PBX_POPT=0
8136 PGSQL_DESCRIP="PostgreSQL"
8137 PGSQL_OPTION="postgres"
8139 # Check whether --with-postgres was given.
8140 if test "${with_postgres+set}" = set; then
8141 withval=$with_postgres;
8142 case ${withval} in
8143 n|no)
8144 USE_PGSQL=no
8146 y|ye|yes)
8147 PGSQL_MANDATORY="yes"
8150 PGSQL_DIR="${withval}"
8151 PGSQL_MANDATORY="yes"
8153 esac
8157 PBX_PGSQL=0
8164 PRI_DESCRIP="ISDN PRI"
8165 PRI_OPTION="pri"
8167 # Check whether --with-pri was given.
8168 if test "${with_pri+set}" = set; then
8169 withval=$with_pri;
8170 case ${withval} in
8171 n|no)
8172 USE_PRI=no
8174 y|ye|yes)
8175 PRI_MANDATORY="yes"
8178 PRI_DIR="${withval}"
8179 PRI_MANDATORY="yes"
8181 esac
8185 PBX_PRI=0
8192 PWLIB_DESCRIP="PWlib"
8193 PWLIB_OPTION="pwlib"
8195 # Check whether --with-pwlib was given.
8196 if test "${with_pwlib+set}" = set; then
8197 withval=$with_pwlib;
8198 case ${withval} in
8199 n|no)
8200 USE_PWLIB=no
8202 y|ye|yes)
8203 PWLIB_MANDATORY="yes"
8206 PWLIB_DIR="${withval}"
8207 PWLIB_MANDATORY="yes"
8209 esac
8213 PBX_PWLIB=0
8220 OPENH323_DESCRIP="OpenH323"
8221 OPENH323_OPTION="h323"
8223 # Check whether --with-h323 was given.
8224 if test "${with_h323+set}" = set; then
8225 withval=$with_h323;
8226 case ${withval} in
8227 n|no)
8228 USE_OPENH323=no
8230 y|ye|yes)
8231 OPENH323_MANDATORY="yes"
8234 OPENH323_DIR="${withval}"
8235 OPENH323_MANDATORY="yes"
8237 esac
8241 PBX_OPENH323=0
8248 QT_DESCRIP="Qt"
8249 QT_OPTION="qt"
8251 # Check whether --with-qt was given.
8252 if test "${with_qt+set}" = set; then
8253 withval=$with_qt;
8254 case ${withval} in
8255 n|no)
8256 USE_QT=no
8258 y|ye|yes)
8259 QT_MANDATORY="yes"
8262 QT_DIR="${withval}"
8263 QT_MANDATORY="yes"
8265 esac
8269 PBX_QT=0
8276 RADIUS_DESCRIP="Radius Client"
8277 RADIUS_OPTION="radius"
8279 # Check whether --with-radius was given.
8280 if test "${with_radius+set}" = set; then
8281 withval=$with_radius;
8282 case ${withval} in
8283 n|no)
8284 USE_RADIUS=no
8286 y|ye|yes)
8287 RADIUS_MANDATORY="yes"
8290 RADIUS_DIR="${withval}"
8291 RADIUS_MANDATORY="yes"
8293 esac
8297 PBX_RADIUS=0
8304 SPEEX_DESCRIP="Speex"
8305 SPEEX_OPTION="speex"
8307 # Check whether --with-speex was given.
8308 if test "${with_speex+set}" = set; then
8309 withval=$with_speex;
8310 case ${withval} in
8311 n|no)
8312 USE_SPEEX=no
8314 y|ye|yes)
8315 SPEEX_MANDATORY="yes"
8318 SPEEX_DIR="${withval}"
8319 SPEEX_MANDATORY="yes"
8321 esac
8325 PBX_SPEEX=0
8332 SQLITE_DESCRIP="SQLite"
8333 SQLITE_OPTION="sqlite"
8335 # Check whether --with-sqlite was given.
8336 if test "${with_sqlite+set}" = set; then
8337 withval=$with_sqlite;
8338 case ${withval} in
8339 n|no)
8340 USE_SQLITE=no
8342 y|ye|yes)
8343 SQLITE_MANDATORY="yes"
8346 SQLITE_DIR="${withval}"
8347 SQLITE_MANDATORY="yes"
8349 esac
8353 PBX_SQLITE=0
8360 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8361 SUPPSERV_OPTION="suppserv"
8363 # Check whether --with-suppserv was given.
8364 if test "${with_suppserv+set}" = set; then
8365 withval=$with_suppserv;
8366 case ${withval} in
8367 n|no)
8368 USE_SUPPSERV=no
8370 y|ye|yes)
8371 SUPPSERV_MANDATORY="yes"
8374 SUPPSERV_DIR="${withval}"
8375 SUPPSERV_MANDATORY="yes"
8377 esac
8381 PBX_SUPPSERV=0
8388 OPENSSL_DESCRIP="OpenSSL"
8389 OPENSSL_OPTION="ssl"
8391 # Check whether --with-ssl was given.
8392 if test "${with_ssl+set}" = set; then
8393 withval=$with_ssl;
8394 case ${withval} in
8395 n|no)
8396 USE_OPENSSL=no
8398 y|ye|yes)
8399 OPENSSL_MANDATORY="yes"
8402 OPENSSL_DIR="${withval}"
8403 OPENSSL_MANDATORY="yes"
8405 esac
8409 PBX_OPENSSL=0
8416 FREETDS_DESCRIP="FreeTDS"
8417 FREETDS_OPTION="tds"
8419 # Check whether --with-tds was given.
8420 if test "${with_tds+set}" = set; then
8421 withval=$with_tds;
8422 case ${withval} in
8423 n|no)
8424 USE_FREETDS=no
8426 y|ye|yes)
8427 FREETDS_MANDATORY="yes"
8430 FREETDS_DIR="${withval}"
8431 FREETDS_MANDATORY="yes"
8433 esac
8437 PBX_FREETDS=0
8444 TERMCAP_DESCRIP="Termcap"
8445 TERMCAP_OPTION="termcap"
8447 # Check whether --with-termcap was given.
8448 if test "${with_termcap+set}" = set; then
8449 withval=$with_termcap;
8450 case ${withval} in
8451 n|no)
8452 USE_TERMCAP=no
8454 y|ye|yes)
8455 TERMCAP_MANDATORY="yes"
8458 TERMCAP_DIR="${withval}"
8459 TERMCAP_MANDATORY="yes"
8461 esac
8465 PBX_TERMCAP=0
8472 TINFO_DESCRIP="Term Info"
8473 TINFO_OPTION="tinfo"
8475 # Check whether --with-tinfo was given.
8476 if test "${with_tinfo+set}" = set; then
8477 withval=$with_tinfo;
8478 case ${withval} in
8479 n|no)
8480 USE_TINFO=no
8482 y|ye|yes)
8483 TINFO_MANDATORY="yes"
8486 TINFO_DIR="${withval}"
8487 TINFO_MANDATORY="yes"
8489 esac
8493 PBX_TINFO=0
8500 TONEZONE_DESCRIP="tonezone"
8501 TONEZONE_OPTION="tonezone"
8503 # Check whether --with-tonezone was given.
8504 if test "${with_tonezone+set}" = set; then
8505 withval=$with_tonezone;
8506 case ${withval} in
8507 n|no)
8508 USE_TONEZONE=no
8510 y|ye|yes)
8511 TONEZONE_MANDATORY="yes"
8514 TONEZONE_DIR="${withval}"
8515 TONEZONE_MANDATORY="yes"
8517 esac
8521 PBX_TONEZONE=0
8528 VORBIS_DESCRIP="Vorbis"
8529 VORBIS_OPTION="vorbis"
8531 # Check whether --with-vorbis was given.
8532 if test "${with_vorbis+set}" = set; then
8533 withval=$with_vorbis;
8534 case ${withval} in
8535 n|no)
8536 USE_VORBIS=no
8538 y|ye|yes)
8539 VORBIS_MANDATORY="yes"
8542 VORBIS_DIR="${withval}"
8543 VORBIS_MANDATORY="yes"
8545 esac
8549 PBX_VORBIS=0
8556 VPB_DESCRIP="Voicetronix API"
8557 VPB_OPTION="vpb"
8559 # Check whether --with-vpb was given.
8560 if test "${with_vpb+set}" = set; then
8561 withval=$with_vpb;
8562 case ${withval} in
8563 n|no)
8564 USE_VPB=no
8566 y|ye|yes)
8567 VPB_MANDATORY="yes"
8570 VPB_DIR="${withval}"
8571 VPB_MANDATORY="yes"
8573 esac
8577 PBX_VPB=0
8584 ZLIB_DESCRIP="zlib"
8585 ZLIB_OPTION="z"
8587 # Check whether --with-z was given.
8588 if test "${with_z+set}" = set; then
8589 withval=$with_z;
8590 case ${withval} in
8591 n|no)
8592 USE_ZLIB=no
8594 y|ye|yes)
8595 ZLIB_MANDATORY="yes"
8598 ZLIB_DIR="${withval}"
8599 ZLIB_MANDATORY="yes"
8601 esac
8605 PBX_ZLIB=0
8612 ZAPTEL_DESCRIP="Zaptel"
8613 ZAPTEL_OPTION="zaptel"
8615 # Check whether --with-zaptel was given.
8616 if test "${with_zaptel+set}" = set; then
8617 withval=$with_zaptel;
8618 case ${withval} in
8619 n|no)
8620 USE_ZAPTEL=no
8622 y|ye|yes)
8623 ZAPTEL_MANDATORY="yes"
8626 ZAPTEL_DIR="${withval}"
8627 ZAPTEL_MANDATORY="yes"
8629 esac
8633 PBX_ZAPTEL=0
8640 # check for basic system features and functionality before
8641 # checking for package libraries
8643 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8644 # for constant arguments. Useless!
8645 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8646 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8647 if test "${ac_cv_working_alloca_h+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h. */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 #include <alloca.h>
8658 main ()
8660 char *p = (char *) alloca (2 * sizeof (int));
8661 if (p) return 0;
8663 return 0;
8665 _ACEOF
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (ac_try="$ac_link"
8668 case "(($ac_try" in
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8671 esac
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673 (eval "$ac_link") 2>conftest.er1
8674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } && {
8680 test -z "$ac_c_werror_flag" ||
8681 test ! -s conftest.err
8682 } && test -s conftest$ac_exeext &&
8683 $as_test_x conftest$ac_exeext; then
8684 ac_cv_working_alloca_h=yes
8685 else
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689 ac_cv_working_alloca_h=no
8692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8693 conftest$ac_exeext conftest.$ac_ext
8695 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8696 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8697 if test $ac_cv_working_alloca_h = yes; then
8699 cat >>confdefs.h <<\_ACEOF
8700 #define HAVE_ALLOCA_H 1
8701 _ACEOF
8705 { echo "$as_me:$LINENO: checking for alloca" >&5
8706 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8707 if test "${ac_cv_func_alloca_works+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 else
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h. */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 #ifdef __GNUC__
8717 # define alloca __builtin_alloca
8718 #else
8719 # ifdef _MSC_VER
8720 # include <malloc.h>
8721 # define alloca _alloca
8722 # else
8723 # ifdef HAVE_ALLOCA_H
8724 # include <alloca.h>
8725 # else
8726 # ifdef _AIX
8727 #pragma alloca
8728 # else
8729 # ifndef alloca /* predefined by HP cc +Olibcalls */
8730 char *alloca ();
8731 # endif
8732 # endif
8733 # endif
8734 # endif
8735 #endif
8738 main ()
8740 char *p = (char *) alloca (1);
8741 if (p) return 0;
8743 return 0;
8745 _ACEOF
8746 rm -f conftest.$ac_objext conftest$ac_exeext
8747 if { (ac_try="$ac_link"
8748 case "(($ac_try" in
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8751 esac
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_link") 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest$ac_exeext &&
8763 $as_test_x conftest$ac_exeext; then
8764 ac_cv_func_alloca_works=yes
8765 else
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8769 ac_cv_func_alloca_works=no
8772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8773 conftest$ac_exeext conftest.$ac_ext
8775 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8776 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8778 if test $ac_cv_func_alloca_works = yes; then
8780 cat >>confdefs.h <<\_ACEOF
8781 #define HAVE_ALLOCA 1
8782 _ACEOF
8784 else
8785 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8786 # that cause trouble. Some versions do not even contain alloca or
8787 # contain a buggy version. If you still want to use their alloca,
8788 # use ar to extract alloca.o from them instead of compiling alloca.c.
8790 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8792 cat >>confdefs.h <<\_ACEOF
8793 #define C_ALLOCA 1
8794 _ACEOF
8797 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8798 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8799 if test "${ac_cv_os_cray+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 else
8802 cat >conftest.$ac_ext <<_ACEOF
8803 /* confdefs.h. */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8808 #if defined CRAY && ! defined CRAY2
8809 webecray
8810 #else
8811 wenotbecray
8812 #endif
8814 _ACEOF
8815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8816 $EGREP "webecray" >/dev/null 2>&1; then
8817 ac_cv_os_cray=yes
8818 else
8819 ac_cv_os_cray=no
8821 rm -f conftest*
8824 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8825 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8826 if test $ac_cv_os_cray = yes; then
8827 for ac_func in _getb67 GETB67 getb67; do
8828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 else
8834 cat >conftest.$ac_ext <<_ACEOF
8835 /* confdefs.h. */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8842 #define $ac_func innocuous_$ac_func
8844 /* System header to define __stub macros and hopefully few prototypes,
8845 which can conflict with char $ac_func (); below.
8846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8847 <limits.h> exists even on freestanding compilers. */
8849 #ifdef __STDC__
8850 # include <limits.h>
8851 #else
8852 # include <assert.h>
8853 #endif
8855 #undef $ac_func
8857 /* Override any GCC internal prototype to avoid an error.
8858 Use char because int might match the return type of a GCC
8859 builtin and then its argument prototype would still apply. */
8860 #ifdef __cplusplus
8861 extern "C"
8862 #endif
8863 char $ac_func ();
8864 /* The GNU C library defines this for functions which it implements
8865 to always fail with ENOSYS. Some functions are actually named
8866 something starting with __ and the normal name is an alias. */
8867 #if defined __stub_$ac_func || defined __stub___$ac_func
8868 choke me
8869 #endif
8872 main ()
8874 return $ac_func ();
8876 return 0;
8878 _ACEOF
8879 rm -f conftest.$ac_objext conftest$ac_exeext
8880 if { (ac_try="$ac_link"
8881 case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884 esac
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_link") 2>conftest.er1
8887 ac_status=$?
8888 grep -v '^ *+' conftest.er1 >conftest.err
8889 rm -f conftest.er1
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest$ac_exeext &&
8896 $as_test_x conftest$ac_exeext; then
8897 eval "$as_ac_var=yes"
8898 else
8899 echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8902 eval "$as_ac_var=no"
8905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8906 conftest$ac_exeext conftest.$ac_ext
8908 ac_res=`eval echo '${'$as_ac_var'}'`
8909 { echo "$as_me:$LINENO: result: $ac_res" >&5
8910 echo "${ECHO_T}$ac_res" >&6; }
8911 if test `eval echo '${'$as_ac_var'}'` = yes; then
8913 cat >>confdefs.h <<_ACEOF
8914 #define CRAY_STACKSEG_END $ac_func
8915 _ACEOF
8917 break
8920 done
8923 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8924 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8925 if test "${ac_cv_c_stack_direction+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928 if test "$cross_compiling" = yes; then
8929 ac_cv_c_stack_direction=0
8930 else
8931 cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h. */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 $ac_includes_default
8939 find_stack_direction ()
8941 static char *addr = 0;
8942 auto char dummy;
8943 if (addr == 0)
8945 addr = &dummy;
8946 return find_stack_direction ();
8948 else
8949 return (&dummy > addr) ? 1 : -1;
8953 main ()
8955 return find_stack_direction () < 0;
8957 _ACEOF
8958 rm -f conftest$ac_exeext
8959 if { (ac_try="$ac_link"
8960 case "(($ac_try" in
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8963 esac
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_link") 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8969 { (case "(($ac_try" in
8970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971 *) ac_try_echo=$ac_try;;
8972 esac
8973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8974 (eval "$ac_try") 2>&5
8975 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; }; then
8978 ac_cv_c_stack_direction=1
8979 else
8980 echo "$as_me: program exited with status $ac_status" >&5
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8984 ( exit $ac_status )
8985 ac_cv_c_stack_direction=-1
8987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8992 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8993 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8995 cat >>confdefs.h <<_ACEOF
8996 #define STACK_DIRECTION $ac_cv_c_stack_direction
8997 _ACEOF
9007 ac_header_dirent=no
9008 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9009 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9010 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9011 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 cat >conftest.$ac_ext <<_ACEOF
9016 /* confdefs.h. */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9021 #include <sys/types.h>
9022 #include <$ac_hdr>
9025 main ()
9027 if ((DIR *) 0)
9028 return 0;
9030 return 0;
9032 _ACEOF
9033 rm -f conftest.$ac_objext
9034 if { (ac_try="$ac_compile"
9035 case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038 esac
9039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_compile") 2>conftest.er1
9041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } && {
9047 test -z "$ac_c_werror_flag" ||
9048 test ! -s conftest.err
9049 } && test -s conftest.$ac_objext; then
9050 eval "$as_ac_Header=yes"
9051 else
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9055 eval "$as_ac_Header=no"
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060 ac_res=`eval echo '${'$as_ac_Header'}'`
9061 { echo "$as_me:$LINENO: result: $ac_res" >&5
9062 echo "${ECHO_T}$ac_res" >&6; }
9063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9064 cat >>confdefs.h <<_ACEOF
9065 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9066 _ACEOF
9068 ac_header_dirent=$ac_hdr; break
9071 done
9072 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9073 if test $ac_header_dirent = dirent.h; then
9074 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9075 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9076 if test "${ac_cv_search_opendir+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079 ac_func_search_save_LIBS=$LIBS
9080 cat >conftest.$ac_ext <<_ACEOF
9081 /* confdefs.h. */
9082 _ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9087 /* Override any GCC internal prototype to avoid an error.
9088 Use char because int might match the return type of a GCC
9089 builtin and then its argument prototype would still apply. */
9090 #ifdef __cplusplus
9091 extern "C"
9092 #endif
9093 char opendir ();
9095 main ()
9097 return opendir ();
9099 return 0;
9101 _ACEOF
9102 for ac_lib in '' dir; do
9103 if test -z "$ac_lib"; then
9104 ac_res="none required"
9105 else
9106 ac_res=-l$ac_lib
9107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9109 rm -f conftest.$ac_objext conftest$ac_exeext
9110 if { (ac_try="$ac_link"
9111 case "(($ac_try" in
9112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113 *) ac_try_echo=$ac_try;;
9114 esac
9115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116 (eval "$ac_link") 2>conftest.er1
9117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } && {
9123 test -z "$ac_c_werror_flag" ||
9124 test ! -s conftest.err
9125 } && test -s conftest$ac_exeext &&
9126 $as_test_x conftest$ac_exeext; then
9127 ac_cv_search_opendir=$ac_res
9128 else
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9136 conftest$ac_exeext
9137 if test "${ac_cv_search_opendir+set}" = set; then
9138 break
9140 done
9141 if test "${ac_cv_search_opendir+set}" = set; then
9143 else
9144 ac_cv_search_opendir=no
9146 rm conftest.$ac_ext
9147 LIBS=$ac_func_search_save_LIBS
9149 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9150 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9151 ac_res=$ac_cv_search_opendir
9152 if test "$ac_res" != no; then
9153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9157 else
9158 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9159 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9160 if test "${ac_cv_search_opendir+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163 ac_func_search_save_LIBS=$LIBS
9164 cat >conftest.$ac_ext <<_ACEOF
9165 /* confdefs.h. */
9166 _ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9171 /* Override any GCC internal prototype to avoid an error.
9172 Use char because int might match the return type of a GCC
9173 builtin and then its argument prototype would still apply. */
9174 #ifdef __cplusplus
9175 extern "C"
9176 #endif
9177 char opendir ();
9179 main ()
9181 return opendir ();
9183 return 0;
9185 _ACEOF
9186 for ac_lib in '' x; do
9187 if test -z "$ac_lib"; then
9188 ac_res="none required"
9189 else
9190 ac_res=-l$ac_lib
9191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (ac_try="$ac_link"
9195 case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9198 esac
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_link") 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } && {
9207 test -z "$ac_c_werror_flag" ||
9208 test ! -s conftest.err
9209 } && test -s conftest$ac_exeext &&
9210 $as_test_x conftest$ac_exeext; then
9211 ac_cv_search_opendir=$ac_res
9212 else
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9220 conftest$ac_exeext
9221 if test "${ac_cv_search_opendir+set}" = set; then
9222 break
9224 done
9225 if test "${ac_cv_search_opendir+set}" = set; then
9227 else
9228 ac_cv_search_opendir=no
9230 rm conftest.$ac_ext
9231 LIBS=$ac_func_search_save_LIBS
9233 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9234 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9235 ac_res=$ac_cv_search_opendir
9236 if test "$ac_res" != no; then
9237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9243 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9244 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9245 if test "${ac_cv_header_stdc+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 else
9248 cat >conftest.$ac_ext <<_ACEOF
9249 /* confdefs.h. */
9250 _ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9254 #include <stdlib.h>
9255 #include <stdarg.h>
9256 #include <string.h>
9257 #include <float.h>
9260 main ()
9264 return 0;
9266 _ACEOF
9267 rm -f conftest.$ac_objext
9268 if { (ac_try="$ac_compile"
9269 case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9272 esac
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_compile") 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } && {
9281 test -z "$ac_c_werror_flag" ||
9282 test ! -s conftest.err
9283 } && test -s conftest.$ac_objext; then
9284 ac_cv_header_stdc=yes
9285 else
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9289 ac_cv_header_stdc=no
9292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294 if test $ac_cv_header_stdc = yes; then
9295 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h. */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 #include <string.h>
9304 _ACEOF
9305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9306 $EGREP "memchr" >/dev/null 2>&1; then
9308 else
9309 ac_cv_header_stdc=no
9311 rm -f conftest*
9315 if test $ac_cv_header_stdc = yes; then
9316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9317 cat >conftest.$ac_ext <<_ACEOF
9318 /* confdefs.h. */
9319 _ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9323 #include <stdlib.h>
9325 _ACEOF
9326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9327 $EGREP "free" >/dev/null 2>&1; then
9329 else
9330 ac_cv_header_stdc=no
9332 rm -f conftest*
9336 if test $ac_cv_header_stdc = yes; then
9337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9338 if test "$cross_compiling" = yes; then
9340 else
9341 cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h. */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 #include <ctype.h>
9348 #include <stdlib.h>
9349 #if ((' ' & 0x0FF) == 0x020)
9350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9352 #else
9353 # define ISLOWER(c) \
9354 (('a' <= (c) && (c) <= 'i') \
9355 || ('j' <= (c) && (c) <= 'r') \
9356 || ('s' <= (c) && (c) <= 'z'))
9357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9358 #endif
9360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9362 main ()
9364 int i;
9365 for (i = 0; i < 256; i++)
9366 if (XOR (islower (i), ISLOWER (i))
9367 || toupper (i) != TOUPPER (i))
9368 return 2;
9369 return 0;
9371 _ACEOF
9372 rm -f conftest$ac_exeext
9373 if { (ac_try="$ac_link"
9374 case "(($ac_try" in
9375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376 *) ac_try_echo=$ac_try;;
9377 esac
9378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9379 (eval "$ac_link") 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9383 { (case "(($ac_try" in
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9386 esac
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_try") 2>&5
9389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; }; then
9393 else
9394 echo "$as_me: program exited with status $ac_status" >&5
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9398 ( exit $ac_status )
9399 ac_cv_header_stdc=no
9401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9407 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9408 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9409 if test $ac_cv_header_stdc = yes; then
9411 cat >>confdefs.h <<\_ACEOF
9412 #define STDC_HEADERS 1
9413 _ACEOF
9417 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9418 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9419 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422 cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h. */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428 #include <sys/types.h>
9429 #include <sys/wait.h>
9430 #ifndef WEXITSTATUS
9431 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9432 #endif
9433 #ifndef WIFEXITED
9434 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9435 #endif
9438 main ()
9440 int s;
9441 wait (&s);
9442 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9444 return 0;
9446 _ACEOF
9447 rm -f conftest.$ac_objext
9448 if { (ac_try="$ac_compile"
9449 case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9452 esac
9453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454 (eval "$ac_compile") 2>conftest.er1
9455 ac_status=$?
9456 grep -v '^ *+' conftest.er1 >conftest.err
9457 rm -f conftest.er1
9458 cat conftest.err >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } && {
9461 test -z "$ac_c_werror_flag" ||
9462 test ! -s conftest.err
9463 } && test -s conftest.$ac_objext; then
9464 ac_cv_header_sys_wait_h=yes
9465 else
9466 echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9469 ac_cv_header_sys_wait_h=no
9472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9474 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9475 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9476 if test $ac_cv_header_sys_wait_h = yes; then
9478 cat >>confdefs.h <<\_ACEOF
9479 #define HAVE_SYS_WAIT_H 1
9480 _ACEOF
9507 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
9509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 ac_res=`eval echo '${'$as_ac_Header'}'`
9517 { echo "$as_me:$LINENO: result: $ac_res" >&5
9518 echo "${ECHO_T}$ac_res" >&6; }
9519 else
9520 # Is the header compilable?
9521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
9530 #include <$ac_header>
9531 _ACEOF
9532 rm -f conftest.$ac_objext
9533 if { (ac_try="$ac_compile"
9534 case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537 esac
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_compile") 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } && {
9546 test -z "$ac_c_werror_flag" ||
9547 test ! -s conftest.err
9548 } && test -s conftest.$ac_objext; then
9549 ac_header_compiler=yes
9550 else
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_header_compiler=no
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9559 echo "${ECHO_T}$ac_header_compiler" >&6; }
9561 # Is the header present?
9562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9564 cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h. */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 #include <$ac_header>
9571 _ACEOF
9572 if { (ac_try="$ac_cpp conftest.$ac_ext"
9573 case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9576 esac
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9579 ac_status=$?
9580 grep -v '^ *+' conftest.er1 >conftest.err
9581 rm -f conftest.er1
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } >/dev/null && {
9585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9586 test ! -s conftest.err
9587 }; then
9588 ac_header_preproc=yes
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 ac_header_preproc=no
9596 rm -f conftest.err conftest.$ac_ext
9597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9598 echo "${ECHO_T}$ac_header_preproc" >&6; }
9600 # So? What about this header?
9601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9602 yes:no: )
9603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9607 ac_header_preproc=yes
9609 no:yes:* )
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9624 esac
9625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630 eval "$as_ac_Header=\$ac_header_preproc"
9632 ac_res=`eval echo '${'$as_ac_Header'}'`
9633 { echo "$as_me:$LINENO: result: $ac_res" >&5
9634 echo "${ECHO_T}$ac_res" >&6; }
9637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9638 cat >>confdefs.h <<_ACEOF
9639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9640 _ACEOF
9644 done
9647 # Check whether --enable-largefile was given.
9648 if test "${enable_largefile+set}" = set; then
9649 enableval=$enable_largefile;
9652 if test "$enable_largefile" != no; then
9654 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9655 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9656 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659 ac_cv_sys_largefile_CC=no
9660 if test "$GCC" != yes; then
9661 ac_save_CC=$CC
9662 while :; do
9663 # IRIX 6.2 and later do not support large files by default,
9664 # so use the C compiler's -n32 option if that helps.
9665 cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h. */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671 #include <sys/types.h>
9672 /* Check that off_t can represent 2**63 - 1 correctly.
9673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9674 since some C++ compilers masquerading as C compilers
9675 incorrectly reject 9223372036854775807. */
9676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9678 && LARGE_OFF_T % 2147483647 == 1)
9679 ? 1 : -1];
9681 main ()
9685 return 0;
9687 _ACEOF
9688 rm -f conftest.$ac_objext
9689 if { (ac_try="$ac_compile"
9690 case "(($ac_try" in
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9693 esac
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_compile") 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } && {
9702 test -z "$ac_c_werror_flag" ||
9703 test ! -s conftest.err
9704 } && test -s conftest.$ac_objext; then
9705 break
9706 else
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9713 rm -f core conftest.err conftest.$ac_objext
9714 CC="$CC -n32"
9715 rm -f conftest.$ac_objext
9716 if { (ac_try="$ac_compile"
9717 case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720 esac
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_compile") 2>conftest.er1
9723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } && {
9729 test -z "$ac_c_werror_flag" ||
9730 test ! -s conftest.err
9731 } && test -s conftest.$ac_objext; then
9732 ac_cv_sys_largefile_CC=' -n32'; break
9733 else
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9740 rm -f core conftest.err conftest.$ac_objext
9741 break
9742 done
9743 CC=$ac_save_CC
9744 rm -f conftest.$ac_ext
9747 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9748 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9749 if test "$ac_cv_sys_largefile_CC" != no; then
9750 CC=$CC$ac_cv_sys_largefile_CC
9753 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9754 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9755 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758 while :; do
9759 cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h. */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765 #include <sys/types.h>
9766 /* Check that off_t can represent 2**63 - 1 correctly.
9767 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9768 since some C++ compilers masquerading as C compilers
9769 incorrectly reject 9223372036854775807. */
9770 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9771 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9772 && LARGE_OFF_T % 2147483647 == 1)
9773 ? 1 : -1];
9775 main ()
9779 return 0;
9781 _ACEOF
9782 rm -f conftest.$ac_objext
9783 if { (ac_try="$ac_compile"
9784 case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_compile") 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest.$ac_objext; then
9799 ac_cv_sys_file_offset_bits=no; break
9800 else
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808 cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h. */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 #define _FILE_OFFSET_BITS 64
9815 #include <sys/types.h>
9816 /* Check that off_t can represent 2**63 - 1 correctly.
9817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9818 since some C++ compilers masquerading as C compilers
9819 incorrectly reject 9223372036854775807. */
9820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9822 && LARGE_OFF_T % 2147483647 == 1)
9823 ? 1 : -1];
9825 main ()
9829 return 0;
9831 _ACEOF
9832 rm -f conftest.$ac_objext
9833 if { (ac_try="$ac_compile"
9834 case "(($ac_try" in
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_compile") 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } && {
9846 test -z "$ac_c_werror_flag" ||
9847 test ! -s conftest.err
9848 } && test -s conftest.$ac_objext; then
9849 ac_cv_sys_file_offset_bits=64; break
9850 else
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9858 ac_cv_sys_file_offset_bits=unknown
9859 break
9860 done
9862 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9863 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9864 case $ac_cv_sys_file_offset_bits in #(
9865 no | unknown) ;;
9867 cat >>confdefs.h <<_ACEOF
9868 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9869 _ACEOF
9871 esac
9872 rm -f conftest*
9873 if test $ac_cv_sys_file_offset_bits = unknown; then
9874 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9875 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9876 if test "${ac_cv_sys_large_files+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879 while :; do
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h. */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 #include <sys/types.h>
9887 /* Check that off_t can represent 2**63 - 1 correctly.
9888 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9889 since some C++ compilers masquerading as C compilers
9890 incorrectly reject 9223372036854775807. */
9891 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9892 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9893 && LARGE_OFF_T % 2147483647 == 1)
9894 ? 1 : -1];
9896 main ()
9900 return 0;
9902 _ACEOF
9903 rm -f conftest.$ac_objext
9904 if { (ac_try="$ac_compile"
9905 case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9908 esac
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_compile") 2>conftest.er1
9911 ac_status=$?
9912 grep -v '^ *+' conftest.er1 >conftest.err
9913 rm -f conftest.er1
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } && {
9917 test -z "$ac_c_werror_flag" ||
9918 test ! -s conftest.err
9919 } && test -s conftest.$ac_objext; then
9920 ac_cv_sys_large_files=no; break
9921 else
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h. */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 #define _LARGE_FILES 1
9936 #include <sys/types.h>
9937 /* Check that off_t can represent 2**63 - 1 correctly.
9938 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9939 since some C++ compilers masquerading as C compilers
9940 incorrectly reject 9223372036854775807. */
9941 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9942 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9943 && LARGE_OFF_T % 2147483647 == 1)
9944 ? 1 : -1];
9946 main ()
9950 return 0;
9952 _ACEOF
9953 rm -f conftest.$ac_objext
9954 if { (ac_try="$ac_compile"
9955 case "(($ac_try" in
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9958 esac
9959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960 (eval "$ac_compile") 2>conftest.er1
9961 ac_status=$?
9962 grep -v '^ *+' conftest.er1 >conftest.err
9963 rm -f conftest.er1
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } && {
9967 test -z "$ac_c_werror_flag" ||
9968 test ! -s conftest.err
9969 } && test -s conftest.$ac_objext; then
9970 ac_cv_sys_large_files=1; break
9971 else
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 ac_cv_sys_large_files=unknown
9980 break
9981 done
9983 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9984 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
9985 case $ac_cv_sys_large_files in #(
9986 no | unknown) ;;
9988 cat >>confdefs.h <<_ACEOF
9989 #define _LARGE_FILES $ac_cv_sys_large_files
9990 _ACEOF
9992 esac
9993 rm -f conftest*
9998 # Checks for typedefs, structures, and compiler characteristics.
9999 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10000 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10001 if test "${ac_cv_header_stdbool_h+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10011 #include <stdbool.h>
10012 #ifndef bool
10013 "error: bool is not defined"
10014 #endif
10015 #ifndef false
10016 "error: false is not defined"
10017 #endif
10018 #if false
10019 "error: false is not 0"
10020 #endif
10021 #ifndef true
10022 "error: true is not defined"
10023 #endif
10024 #if true != 1
10025 "error: true is not 1"
10026 #endif
10027 #ifndef __bool_true_false_are_defined
10028 "error: __bool_true_false_are_defined is not defined"
10029 #endif
10031 struct s { _Bool s: 1; _Bool t; } s;
10033 char a[true == 1 ? 1 : -1];
10034 char b[false == 0 ? 1 : -1];
10035 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10036 char d[(bool) 0.5 == true ? 1 : -1];
10037 bool e = &s;
10038 char f[(_Bool) 0.0 == false ? 1 : -1];
10039 char g[true];
10040 char h[sizeof (_Bool)];
10041 char i[sizeof s.t];
10042 enum { j = false, k = true, l = false * true, m = true * 256 };
10043 _Bool n[m];
10044 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10045 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10046 # if defined __xlc__ || defined __GNUC__
10047 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10048 reported by James Lemley on 2005-10-05; see
10049 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10050 This test is not quite right, since xlc is allowed to
10051 reject this program, as the initializer for xlcbug is
10052 not one of the forms that C requires support for.
10053 However, doing the test right would require a runtime
10054 test, and that would make cross-compilation harder.
10055 Let us hope that IBM fixes the xlc bug, and also adds
10056 support for this kind of constant expression. In the
10057 meantime, this test will reject xlc, which is OK, since
10058 our stdbool.h substitute should suffice. We also test
10059 this with GCC, where it should work, to detect more
10060 quickly whether someone messes up the test in the
10061 future. */
10062 char digs[] = "0123456789";
10063 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10064 # endif
10065 /* Catch a bug in an HP-UX C compiler. See
10066 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10067 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10069 _Bool q = true;
10070 _Bool *pq = &q;
10073 main ()
10076 *pq |= q;
10077 *pq |= ! q;
10078 /* Refer to every declared value, to avoid compiler optimizations. */
10079 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10080 + !m + !n + !o + !p + !q + !pq);
10083 return 0;
10085 _ACEOF
10086 rm -f conftest.$ac_objext
10087 if { (ac_try="$ac_compile"
10088 case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10091 esac
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_compile") 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && {
10100 test -z "$ac_c_werror_flag" ||
10101 test ! -s conftest.err
10102 } && test -s conftest.$ac_objext; then
10103 ac_cv_header_stdbool_h=yes
10104 else
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_cv_header_stdbool_h=no
10111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10113 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10114 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10115 { echo "$as_me:$LINENO: checking for _Bool" >&5
10116 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10117 if test "${ac_cv_type__Bool+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 typedef _Bool ac__type_new_;
10129 main ()
10131 if ((ac__type_new_ *) 0)
10132 return 0;
10133 if (sizeof (ac__type_new_))
10134 return 0;
10136 return 0;
10138 _ACEOF
10139 rm -f conftest.$ac_objext
10140 if { (ac_try="$ac_compile"
10141 case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10144 esac
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_compile") 2>conftest.er1
10147 ac_status=$?
10148 grep -v '^ *+' conftest.er1 >conftest.err
10149 rm -f conftest.er1
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } && {
10153 test -z "$ac_c_werror_flag" ||
10154 test ! -s conftest.err
10155 } && test -s conftest.$ac_objext; then
10156 ac_cv_type__Bool=yes
10157 else
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ac_cv_type__Bool=no
10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10166 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10167 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10168 if test $ac_cv_type__Bool = yes; then
10170 cat >>confdefs.h <<_ACEOF
10171 #define HAVE__BOOL 1
10172 _ACEOF
10177 if test $ac_cv_header_stdbool_h = yes; then
10179 cat >>confdefs.h <<\_ACEOF
10180 #define HAVE_STDBOOL_H 1
10181 _ACEOF
10185 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10186 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10187 if test "${ac_cv_c_const+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190 cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h. */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10198 main ()
10200 /* FIXME: Include the comments suggested by Paul. */
10201 #ifndef __cplusplus
10202 /* Ultrix mips cc rejects this. */
10203 typedef int charset[2];
10204 const charset cs;
10205 /* SunOS 4.1.1 cc rejects this. */
10206 char const *const *pcpcc;
10207 char **ppc;
10208 /* NEC SVR4.0.2 mips cc rejects this. */
10209 struct point {int x, y;};
10210 static struct point const zero = {0,0};
10211 /* AIX XL C 1.02.0.0 rejects this.
10212 It does not let you subtract one const X* pointer from another in
10213 an arm of an if-expression whose if-part is not a constant
10214 expression */
10215 const char *g = "string";
10216 pcpcc = &g + (g ? g-g : 0);
10217 /* HPUX 7.0 cc rejects these. */
10218 ++pcpcc;
10219 ppc = (char**) pcpcc;
10220 pcpcc = (char const *const *) ppc;
10221 { /* SCO 3.2v4 cc rejects this. */
10222 char *t;
10223 char const *s = 0 ? (char *) 0 : (char const *) 0;
10225 *t++ = 0;
10226 if (s) return 0;
10228 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10229 int x[] = {25, 17};
10230 const int *foo = &x[0];
10231 ++foo;
10233 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10234 typedef const int *iptr;
10235 iptr p = 0;
10236 ++p;
10238 { /* AIX XL C 1.02.0.0 rejects this saying
10239 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10240 struct s { int j; const int *ap[3]; };
10241 struct s *b; b->j = 5;
10243 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10244 const int foo = 10;
10245 if (!foo) return 0;
10247 return !cs[0] && !zero.x;
10248 #endif
10251 return 0;
10253 _ACEOF
10254 rm -f conftest.$ac_objext
10255 if { (ac_try="$ac_compile"
10256 case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10259 esac
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261 (eval "$ac_compile") 2>conftest.er1
10262 ac_status=$?
10263 grep -v '^ *+' conftest.er1 >conftest.err
10264 rm -f conftest.er1
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } && {
10268 test -z "$ac_c_werror_flag" ||
10269 test ! -s conftest.err
10270 } && test -s conftest.$ac_objext; then
10271 ac_cv_c_const=yes
10272 else
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10276 ac_cv_c_const=no
10279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10281 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10282 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10283 if test $ac_cv_c_const = no; then
10285 cat >>confdefs.h <<\_ACEOF
10286 #define const
10287 _ACEOF
10291 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10292 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10293 if test "${ac_cv_type_uid_t+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h. */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302 #include <sys/types.h>
10304 _ACEOF
10305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10306 $EGREP "uid_t" >/dev/null 2>&1; then
10307 ac_cv_type_uid_t=yes
10308 else
10309 ac_cv_type_uid_t=no
10311 rm -f conftest*
10314 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10315 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10316 if test $ac_cv_type_uid_t = no; then
10318 cat >>confdefs.h <<\_ACEOF
10319 #define uid_t int
10320 _ACEOF
10323 cat >>confdefs.h <<\_ACEOF
10324 #define gid_t int
10325 _ACEOF
10329 { echo "$as_me:$LINENO: checking for inline" >&5
10330 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10331 if test "${ac_cv_c_inline+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334 ac_cv_c_inline=no
10335 for ac_kw in inline __inline__ __inline; do
10336 cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h. */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342 #ifndef __cplusplus
10343 typedef int foo_t;
10344 static $ac_kw foo_t static_foo () {return 0; }
10345 $ac_kw foo_t foo () {return 0; }
10346 #endif
10348 _ACEOF
10349 rm -f conftest.$ac_objext
10350 if { (ac_try="$ac_compile"
10351 case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10354 esac
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_compile") 2>conftest.er1
10357 ac_status=$?
10358 grep -v '^ *+' conftest.er1 >conftest.err
10359 rm -f conftest.er1
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } && {
10363 test -z "$ac_c_werror_flag" ||
10364 test ! -s conftest.err
10365 } && test -s conftest.$ac_objext; then
10366 ac_cv_c_inline=$ac_kw
10367 else
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375 test "$ac_cv_c_inline" != no && break
10376 done
10379 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10380 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10383 case $ac_cv_c_inline in
10384 inline | yes) ;;
10386 case $ac_cv_c_inline in
10387 no) ac_val=;;
10388 *) ac_val=$ac_cv_c_inline;;
10389 esac
10390 cat >>confdefs.h <<_ACEOF
10391 #ifndef __cplusplus
10392 #define inline $ac_val
10393 #endif
10394 _ACEOF
10396 esac
10398 { echo "$as_me:$LINENO: checking for mode_t" >&5
10399 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
10400 if test "${ac_cv_type_mode_t+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403 cat >conftest.$ac_ext <<_ACEOF
10404 /* confdefs.h. */
10405 _ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h. */
10409 $ac_includes_default
10410 typedef mode_t ac__type_new_;
10412 main ()
10414 if ((ac__type_new_ *) 0)
10415 return 0;
10416 if (sizeof (ac__type_new_))
10417 return 0;
10419 return 0;
10421 _ACEOF
10422 rm -f conftest.$ac_objext
10423 if { (ac_try="$ac_compile"
10424 case "(($ac_try" in
10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10427 esac
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429 (eval "$ac_compile") 2>conftest.er1
10430 ac_status=$?
10431 grep -v '^ *+' conftest.er1 >conftest.err
10432 rm -f conftest.er1
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } && {
10436 test -z "$ac_c_werror_flag" ||
10437 test ! -s conftest.err
10438 } && test -s conftest.$ac_objext; then
10439 ac_cv_type_mode_t=yes
10440 else
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 ac_cv_type_mode_t=no
10447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10450 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10451 if test $ac_cv_type_mode_t = yes; then
10453 else
10455 cat >>confdefs.h <<_ACEOF
10456 #define mode_t int
10457 _ACEOF
10461 { echo "$as_me:$LINENO: checking for off_t" >&5
10462 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
10463 if test "${ac_cv_type_off_t+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466 cat >conftest.$ac_ext <<_ACEOF
10467 /* confdefs.h. */
10468 _ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10472 $ac_includes_default
10473 typedef off_t ac__type_new_;
10475 main ()
10477 if ((ac__type_new_ *) 0)
10478 return 0;
10479 if (sizeof (ac__type_new_))
10480 return 0;
10482 return 0;
10484 _ACEOF
10485 rm -f conftest.$ac_objext
10486 if { (ac_try="$ac_compile"
10487 case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10490 esac
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_compile") 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest.$ac_objext; then
10502 ac_cv_type_off_t=yes
10503 else
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10507 ac_cv_type_off_t=no
10510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10512 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10513 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10514 if test $ac_cv_type_off_t = yes; then
10516 else
10518 cat >>confdefs.h <<_ACEOF
10519 #define off_t long int
10520 _ACEOF
10524 { echo "$as_me:$LINENO: checking for pid_t" >&5
10525 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10526 if test "${ac_cv_type_pid_t+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529 cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h. */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535 $ac_includes_default
10536 typedef pid_t ac__type_new_;
10538 main ()
10540 if ((ac__type_new_ *) 0)
10541 return 0;
10542 if (sizeof (ac__type_new_))
10543 return 0;
10545 return 0;
10547 _ACEOF
10548 rm -f conftest.$ac_objext
10549 if { (ac_try="$ac_compile"
10550 case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_compile") 2>conftest.er1
10556 ac_status=$?
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && {
10562 test -z "$ac_c_werror_flag" ||
10563 test ! -s conftest.err
10564 } && test -s conftest.$ac_objext; then
10565 ac_cv_type_pid_t=yes
10566 else
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10570 ac_cv_type_pid_t=no
10573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10576 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10577 if test $ac_cv_type_pid_t = yes; then
10579 else
10581 cat >>confdefs.h <<_ACEOF
10582 #define pid_t int
10583 _ACEOF
10587 { echo "$as_me:$LINENO: checking for size_t" >&5
10588 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10589 if test "${ac_cv_type_size_t+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592 cat >conftest.$ac_ext <<_ACEOF
10593 /* confdefs.h. */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598 $ac_includes_default
10599 typedef size_t ac__type_new_;
10601 main ()
10603 if ((ac__type_new_ *) 0)
10604 return 0;
10605 if (sizeof (ac__type_new_))
10606 return 0;
10608 return 0;
10610 _ACEOF
10611 rm -f conftest.$ac_objext
10612 if { (ac_try="$ac_compile"
10613 case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10616 esac
10617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10618 (eval "$ac_compile") 2>conftest.er1
10619 ac_status=$?
10620 grep -v '^ *+' conftest.er1 >conftest.err
10621 rm -f conftest.er1
10622 cat conftest.err >&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } && {
10625 test -z "$ac_c_werror_flag" ||
10626 test ! -s conftest.err
10627 } && test -s conftest.$ac_objext; then
10628 ac_cv_type_size_t=yes
10629 else
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 ac_cv_type_size_t=no
10636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10639 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10640 if test $ac_cv_type_size_t = yes; then
10642 else
10644 cat >>confdefs.h <<_ACEOF
10645 #define size_t unsigned int
10646 _ACEOF
10650 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10651 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10652 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 else
10655 cat >conftest.$ac_ext <<_ACEOF
10656 /* confdefs.h. */
10657 _ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10661 $ac_includes_default
10663 main ()
10665 static struct stat ac_aggr;
10666 if (ac_aggr.st_blksize)
10667 return 0;
10669 return 0;
10671 _ACEOF
10672 rm -f conftest.$ac_objext
10673 if { (ac_try="$ac_compile"
10674 case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10677 esac
10678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_compile") 2>conftest.er1
10680 ac_status=$?
10681 grep -v '^ *+' conftest.er1 >conftest.err
10682 rm -f conftest.er1
10683 cat conftest.err >&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } && {
10686 test -z "$ac_c_werror_flag" ||
10687 test ! -s conftest.err
10688 } && test -s conftest.$ac_objext; then
10689 ac_cv_member_struct_stat_st_blksize=yes
10690 else
10691 echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.$ac_ext >&5
10694 cat >conftest.$ac_ext <<_ACEOF
10695 /* confdefs.h. */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 $ac_includes_default
10702 main ()
10704 static struct stat ac_aggr;
10705 if (sizeof ac_aggr.st_blksize)
10706 return 0;
10708 return 0;
10710 _ACEOF
10711 rm -f conftest.$ac_objext
10712 if { (ac_try="$ac_compile"
10713 case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_compile") 2>conftest.er1
10719 ac_status=$?
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } && {
10725 test -z "$ac_c_werror_flag" ||
10726 test ! -s conftest.err
10727 } && test -s conftest.$ac_objext; then
10728 ac_cv_member_struct_stat_st_blksize=yes
10729 else
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10733 ac_cv_member_struct_stat_st_blksize=no
10736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10741 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10742 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10743 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10745 cat >>confdefs.h <<_ACEOF
10746 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10747 _ACEOF
10752 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10753 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10754 if test "${ac_cv_header_time+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757 cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h. */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763 #include <sys/types.h>
10764 #include <sys/time.h>
10765 #include <time.h>
10768 main ()
10770 if ((struct tm *) 0)
10771 return 0;
10773 return 0;
10775 _ACEOF
10776 rm -f conftest.$ac_objext
10777 if { (ac_try="$ac_compile"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_compile") 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } && {
10790 test -z "$ac_c_werror_flag" ||
10791 test ! -s conftest.err
10792 } && test -s conftest.$ac_objext; then
10793 ac_cv_header_time=yes
10794 else
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 ac_cv_header_time=no
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10803 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10804 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10805 if test $ac_cv_header_time = yes; then
10807 cat >>confdefs.h <<\_ACEOF
10808 #define TIME_WITH_SYS_TIME 1
10809 _ACEOF
10813 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10814 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
10815 if test "${ac_cv_struct_tm+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h. */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 #include <sys/types.h>
10825 #include <time.h>
10828 main ()
10830 struct tm tm;
10831 int *p = &tm.tm_sec;
10832 return !p;
10834 return 0;
10836 _ACEOF
10837 rm -f conftest.$ac_objext
10838 if { (ac_try="$ac_compile"
10839 case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_compile") 2>conftest.er1
10845 ac_status=$?
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } && {
10851 test -z "$ac_c_werror_flag" ||
10852 test ! -s conftest.err
10853 } && test -s conftest.$ac_objext; then
10854 ac_cv_struct_tm=time.h
10855 else
10856 echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10859 ac_cv_struct_tm=sys/time.h
10862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10864 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10865 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10866 if test $ac_cv_struct_tm = sys/time.h; then
10868 cat >>confdefs.h <<\_ACEOF
10869 #define TM_IN_SYS_TIME 1
10870 _ACEOF
10874 { echo "$as_me:$LINENO: checking for working volatile" >&5
10875 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
10876 if test "${ac_cv_c_volatile+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 else
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h. */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10887 main ()
10890 volatile int x;
10891 int * volatile y = (int *) 0;
10892 return !x && !y;
10894 return 0;
10896 _ACEOF
10897 rm -f conftest.$ac_objext
10898 if { (ac_try="$ac_compile"
10899 case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10902 esac
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_compile") 2>conftest.er1
10905 ac_status=$?
10906 grep -v '^ *+' conftest.er1 >conftest.err
10907 rm -f conftest.er1
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } && {
10911 test -z "$ac_c_werror_flag" ||
10912 test ! -s conftest.err
10913 } && test -s conftest.$ac_objext; then
10914 ac_cv_c_volatile=yes
10915 else
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10919 ac_cv_c_volatile=no
10922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10924 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10925 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
10926 if test $ac_cv_c_volatile = no; then
10928 cat >>confdefs.h <<\_ACEOF
10929 #define volatile
10930 _ACEOF
10934 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10935 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10936 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h. */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10945 $ac_includes_default
10946 typedef ptrdiff_t ac__type_new_;
10948 main ()
10950 if ((ac__type_new_ *) 0)
10951 return 0;
10952 if (sizeof (ac__type_new_))
10953 return 0;
10955 return 0;
10957 _ACEOF
10958 rm -f conftest.$ac_objext
10959 if { (ac_try="$ac_compile"
10960 case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10963 esac
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_compile") 2>conftest.er1
10966 ac_status=$?
10967 grep -v '^ *+' conftest.er1 >conftest.err
10968 rm -f conftest.er1
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } && {
10972 test -z "$ac_c_werror_flag" ||
10973 test ! -s conftest.err
10974 } && test -s conftest.$ac_objext; then
10975 ac_cv_type_ptrdiff_t=yes
10976 else
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10980 ac_cv_type_ptrdiff_t=no
10983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10985 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10986 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10987 if test $ac_cv_type_ptrdiff_t = yes; then
10989 cat >>confdefs.h <<_ACEOF
10990 #define HAVE_PTRDIFF_T 1
10991 _ACEOF
10997 # Checks for library functions.
10999 for ac_header in unistd.h
11001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 ac_res=`eval echo '${'$as_ac_Header'}'`
11009 { echo "$as_me:$LINENO: result: $ac_res" >&5
11010 echo "${ECHO_T}$ac_res" >&6; }
11011 else
11012 # Is the header compilable?
11013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 $ac_includes_default
11022 #include <$ac_header>
11023 _ACEOF
11024 rm -f conftest.$ac_objext
11025 if { (ac_try="$ac_compile"
11026 case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11029 esac
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_compile") 2>conftest.er1
11032 ac_status=$?
11033 grep -v '^ *+' conftest.er1 >conftest.err
11034 rm -f conftest.er1
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } && {
11038 test -z "$ac_c_werror_flag" ||
11039 test ! -s conftest.err
11040 } && test -s conftest.$ac_objext; then
11041 ac_header_compiler=yes
11042 else
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11046 ac_header_compiler=no
11049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11051 echo "${ECHO_T}$ac_header_compiler" >&6; }
11053 # Is the header present?
11054 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11056 cat >conftest.$ac_ext <<_ACEOF
11057 /* confdefs.h. */
11058 _ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h. */
11062 #include <$ac_header>
11063 _ACEOF
11064 if { (ac_try="$ac_cpp conftest.$ac_ext"
11065 case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11068 esac
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } >/dev/null && {
11077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11078 test ! -s conftest.err
11079 }; then
11080 ac_header_preproc=yes
11081 else
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 ac_header_preproc=no
11088 rm -f conftest.err conftest.$ac_ext
11089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11090 echo "${ECHO_T}$ac_header_preproc" >&6; }
11092 # So? What about this header?
11093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11094 yes:no: )
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11099 ac_header_preproc=yes
11101 no:yes:* )
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11116 esac
11117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 else
11122 eval "$as_ac_Header=\$ac_header_preproc"
11124 ac_res=`eval echo '${'$as_ac_Header'}'`
11125 { echo "$as_me:$LINENO: result: $ac_res" >&5
11126 echo "${ECHO_T}$ac_res" >&6; }
11129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11130 cat >>confdefs.h <<_ACEOF
11131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11132 _ACEOF
11136 done
11138 { echo "$as_me:$LINENO: checking for working chown" >&5
11139 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
11140 if test "${ac_cv_func_chown_works+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143 if test "$cross_compiling" = yes; then
11144 ac_cv_func_chown_works=no
11145 else
11146 cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h. */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11152 $ac_includes_default
11153 #include <fcntl.h>
11156 main ()
11158 char *f = "conftest.chown";
11159 struct stat before, after;
11161 if (creat (f, 0600) < 0)
11162 return 1;
11163 if (stat (f, &before) < 0)
11164 return 1;
11165 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11166 return 1;
11167 if (stat (f, &after) < 0)
11168 return 1;
11169 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11172 return 0;
11174 _ACEOF
11175 rm -f conftest$ac_exeext
11176 if { (ac_try="$ac_link"
11177 case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180 esac
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_link") 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11186 { (case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11189 esac
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_try") 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_func_chown_works=yes
11196 else
11197 echo "$as_me: program exited with status $ac_status" >&5
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ( exit $ac_status )
11202 ac_cv_func_chown_works=no
11204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11208 rm -f conftest.chown
11211 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11212 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11213 if test $ac_cv_func_chown_works = yes; then
11215 cat >>confdefs.h <<\_ACEOF
11216 #define HAVE_CHOWN 1
11217 _ACEOF
11221 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11222 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
11223 if test "${ac_cv_func_closedir_void+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226 if test "$cross_compiling" = yes; then
11227 ac_cv_func_closedir_void=yes
11228 else
11229 cat >conftest.$ac_ext <<_ACEOF
11230 /* confdefs.h. */
11231 _ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 $ac_includes_default
11236 #include <$ac_header_dirent>
11237 #ifndef __cplusplus
11238 int closedir ();
11239 #endif
11242 main ()
11244 return closedir (opendir (".")) != 0;
11246 return 0;
11248 _ACEOF
11249 rm -f conftest$ac_exeext
11250 if { (ac_try="$ac_link"
11251 case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11254 esac
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_link") 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11260 { (case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11263 esac
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_try") 2>&5
11266 ac_status=$?
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; }; then
11269 ac_cv_func_closedir_void=no
11270 else
11271 echo "$as_me: program exited with status $ac_status" >&5
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11275 ( exit $ac_status )
11276 ac_cv_func_closedir_void=yes
11278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11283 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11284 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11285 if test $ac_cv_func_closedir_void = yes; then
11287 cat >>confdefs.h <<\_ACEOF
11288 #define CLOSEDIR_VOID 1
11289 _ACEOF
11293 { echo "$as_me:$LINENO: checking for error_at_line" >&5
11294 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
11295 if test "${ac_cv_lib_error_at_line+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h. */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 #include <error.h>
11306 main ()
11308 error_at_line (0, 0, "", 0, "an error occurred");
11310 return 0;
11312 _ACEOF
11313 rm -f conftest.$ac_objext conftest$ac_exeext
11314 if { (ac_try="$ac_link"
11315 case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11318 esac
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_link") 2>conftest.er1
11321 ac_status=$?
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } && {
11327 test -z "$ac_c_werror_flag" ||
11328 test ! -s conftest.err
11329 } && test -s conftest$ac_exeext &&
11330 $as_test_x conftest$ac_exeext; then
11331 ac_cv_lib_error_at_line=yes
11332 else
11333 echo "$as_me: failed program was:" >&5
11334 sed 's/^/| /' conftest.$ac_ext >&5
11336 ac_cv_lib_error_at_line=no
11339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11340 conftest$ac_exeext conftest.$ac_ext
11342 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11343 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11344 if test $ac_cv_lib_error_at_line = no; then
11345 case " $LIBOBJS " in
11346 *" error.$ac_objext "* ) ;;
11347 *) LIBOBJS="$LIBOBJS error.$ac_objext"
11349 esac
11354 for ac_header in vfork.h
11356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
11363 ac_res=`eval echo '${'$as_ac_Header'}'`
11364 { echo "$as_me:$LINENO: result: $ac_res" >&5
11365 echo "${ECHO_T}$ac_res" >&6; }
11366 else
11367 # Is the header compilable?
11368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11370 cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h. */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 $ac_includes_default
11377 #include <$ac_header>
11378 _ACEOF
11379 rm -f conftest.$ac_objext
11380 if { (ac_try="$ac_compile"
11381 case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11384 esac
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_compile") 2>conftest.er1
11387 ac_status=$?
11388 grep -v '^ *+' conftest.er1 >conftest.err
11389 rm -f conftest.er1
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } && {
11393 test -z "$ac_c_werror_flag" ||
11394 test ! -s conftest.err
11395 } && test -s conftest.$ac_objext; then
11396 ac_header_compiler=yes
11397 else
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 ac_header_compiler=no
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11406 echo "${ECHO_T}$ac_header_compiler" >&6; }
11408 # Is the header present?
11409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11411 cat >conftest.$ac_ext <<_ACEOF
11412 /* confdefs.h. */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 #include <$ac_header>
11418 _ACEOF
11419 if { (ac_try="$ac_cpp conftest.$ac_ext"
11420 case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11423 esac
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } >/dev/null && {
11432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11433 test ! -s conftest.err
11434 }; then
11435 ac_header_preproc=yes
11436 else
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 ac_header_preproc=no
11443 rm -f conftest.err conftest.$ac_ext
11444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11445 echo "${ECHO_T}$ac_header_preproc" >&6; }
11447 # So? What about this header?
11448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11449 yes:no: )
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11454 ac_header_preproc=yes
11456 no:yes:* )
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11471 esac
11472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 else
11477 eval "$as_ac_Header=\$ac_header_preproc"
11479 ac_res=`eval echo '${'$as_ac_Header'}'`
11480 { echo "$as_me:$LINENO: result: $ac_res" >&5
11481 echo "${ECHO_T}$ac_res" >&6; }
11484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11485 cat >>confdefs.h <<_ACEOF
11486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11487 _ACEOF
11491 done
11495 for ac_func in fork vfork
11497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11498 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503 cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h. */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11511 #define $ac_func innocuous_$ac_func
11513 /* System header to define __stub macros and hopefully few prototypes,
11514 which can conflict with char $ac_func (); below.
11515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11516 <limits.h> exists even on freestanding compilers. */
11518 #ifdef __STDC__
11519 # include <limits.h>
11520 #else
11521 # include <assert.h>
11522 #endif
11524 #undef $ac_func
11526 /* Override any GCC internal prototype to avoid an error.
11527 Use char because int might match the return type of a GCC
11528 builtin and then its argument prototype would still apply. */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 char $ac_func ();
11533 /* The GNU C library defines this for functions which it implements
11534 to always fail with ENOSYS. Some functions are actually named
11535 something starting with __ and the normal name is an alias. */
11536 #if defined __stub_$ac_func || defined __stub___$ac_func
11537 choke me
11538 #endif
11541 main ()
11543 return $ac_func ();
11545 return 0;
11547 _ACEOF
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (ac_try="$ac_link"
11550 case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553 esac
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_link") 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && {
11562 test -z "$ac_c_werror_flag" ||
11563 test ! -s conftest.err
11564 } && test -s conftest$ac_exeext &&
11565 $as_test_x conftest$ac_exeext; then
11566 eval "$as_ac_var=yes"
11567 else
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11571 eval "$as_ac_var=no"
11574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11575 conftest$ac_exeext conftest.$ac_ext
11577 ac_res=`eval echo '${'$as_ac_var'}'`
11578 { echo "$as_me:$LINENO: result: $ac_res" >&5
11579 echo "${ECHO_T}$ac_res" >&6; }
11580 if test `eval echo '${'$as_ac_var'}'` = yes; then
11581 cat >>confdefs.h <<_ACEOF
11582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11583 _ACEOF
11586 done
11588 if test "x$ac_cv_func_fork" = xyes; then
11589 { echo "$as_me:$LINENO: checking for working fork" >&5
11590 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11591 if test "${ac_cv_func_fork_works+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11593 else
11594 if test "$cross_compiling" = yes; then
11595 ac_cv_func_fork_works=cross
11596 else
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h. */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 $ac_includes_default
11605 main ()
11608 /* By Ruediger Kuhlmann. */
11609 return fork () < 0;
11612 return 0;
11614 _ACEOF
11615 rm -f conftest$ac_exeext
11616 if { (ac_try="$ac_link"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_link") 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11626 { (case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629 esac
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_try") 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 ac_cv_func_fork_works=yes
11636 else
11637 echo "$as_me: program exited with status $ac_status" >&5
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11641 ( exit $ac_status )
11642 ac_cv_func_fork_works=no
11644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11649 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11650 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11652 else
11653 ac_cv_func_fork_works=$ac_cv_func_fork
11655 if test "x$ac_cv_func_fork_works" = xcross; then
11656 case $host in
11657 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11658 # Override, as these systems have only a dummy fork() stub
11659 ac_cv_func_fork_works=no
11662 ac_cv_func_fork_works=yes
11664 esac
11665 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11666 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11668 ac_cv_func_vfork_works=$ac_cv_func_vfork
11669 if test "x$ac_cv_func_vfork" = xyes; then
11670 { echo "$as_me:$LINENO: checking for working vfork" >&5
11671 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11672 if test "${ac_cv_func_vfork_works+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 else
11675 if test "$cross_compiling" = yes; then
11676 ac_cv_func_vfork_works=cross
11677 else
11678 cat >conftest.$ac_ext <<_ACEOF
11679 /* confdefs.h. */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11684 /* Thanks to Paul Eggert for this test. */
11685 $ac_includes_default
11686 #include <sys/wait.h>
11687 #ifdef HAVE_VFORK_H
11688 # include <vfork.h>
11689 #endif
11690 /* On some sparc systems, changes by the child to local and incoming
11691 argument registers are propagated back to the parent. The compiler
11692 is told about this with #include <vfork.h>, but some compilers
11693 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11694 static variable whose address is put into a register that is
11695 clobbered by the vfork. */
11696 static void
11697 #ifdef __cplusplus
11698 sparc_address_test (int arg)
11699 # else
11700 sparc_address_test (arg) int arg;
11701 #endif
11703 static pid_t child;
11704 if (!child) {
11705 child = vfork ();
11706 if (child < 0) {
11707 perror ("vfork");
11708 _exit(2);
11710 if (!child) {
11711 arg = getpid();
11712 write(-1, "", 0);
11713 _exit (arg);
11719 main ()
11721 pid_t parent = getpid ();
11722 pid_t child;
11724 sparc_address_test (0);
11726 child = vfork ();
11728 if (child == 0) {
11729 /* Here is another test for sparc vfork register problems. This
11730 test uses lots of local variables, at least as many local
11731 variables as main has allocated so far including compiler
11732 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11733 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11734 reuse the register of parent for one of the local variables,
11735 since it will think that parent can't possibly be used any more
11736 in this routine. Assigning to the local variable will thus
11737 munge parent in the parent process. */
11738 pid_t
11739 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11740 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11741 /* Convince the compiler that p..p7 are live; otherwise, it might
11742 use the same hardware register for all 8 local variables. */
11743 if (p != p1 || p != p2 || p != p3 || p != p4
11744 || p != p5 || p != p6 || p != p7)
11745 _exit(1);
11747 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11748 from child file descriptors. If the child closes a descriptor
11749 before it execs or exits, this munges the parent's descriptor
11750 as well. Test for this by closing stdout in the child. */
11751 _exit(close(fileno(stdout)) != 0);
11752 } else {
11753 int status;
11754 struct stat st;
11756 while (wait(&status) != child)
11758 return (
11759 /* Was there some problem with vforking? */
11760 child < 0
11762 /* Did the child fail? (This shouldn't happen.) */
11763 || status
11765 /* Did the vfork/compiler bug occur? */
11766 || parent != getpid()
11768 /* Did the file descriptor bug occur? */
11769 || fstat(fileno(stdout), &st) != 0
11773 _ACEOF
11774 rm -f conftest$ac_exeext
11775 if { (ac_try="$ac_link"
11776 case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_link") 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11785 { (case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11788 esac
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_try") 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11794 ac_cv_func_vfork_works=yes
11795 else
11796 echo "$as_me: program exited with status $ac_status" >&5
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 ( exit $ac_status )
11801 ac_cv_func_vfork_works=no
11803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11808 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11809 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11812 if test "x$ac_cv_func_fork_works" = xcross; then
11813 ac_cv_func_vfork_works=$ac_cv_func_vfork
11814 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11815 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11818 if test "x$ac_cv_func_vfork_works" = xyes; then
11820 cat >>confdefs.h <<\_ACEOF
11821 #define HAVE_WORKING_VFORK 1
11822 _ACEOF
11824 else
11826 cat >>confdefs.h <<\_ACEOF
11827 #define vfork fork
11828 _ACEOF
11831 if test "x$ac_cv_func_fork_works" = xyes; then
11833 cat >>confdefs.h <<\_ACEOF
11834 #define HAVE_WORKING_FORK 1
11835 _ACEOF
11839 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11840 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
11841 if test "${ac_cv_sys_largefile_source+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844 while :; do
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h. */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 #include <sys/types.h> /* for off_t */
11852 #include <stdio.h>
11854 main ()
11856 int (*fp) (FILE *, off_t, int) = fseeko;
11857 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11859 return 0;
11861 _ACEOF
11862 rm -f conftest.$ac_objext conftest$ac_exeext
11863 if { (ac_try="$ac_link"
11864 case "(($ac_try" in
11865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11867 esac
11868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869 (eval "$ac_link") 2>conftest.er1
11870 ac_status=$?
11871 grep -v '^ *+' conftest.er1 >conftest.err
11872 rm -f conftest.er1
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } && {
11876 test -z "$ac_c_werror_flag" ||
11877 test ! -s conftest.err
11878 } && test -s conftest$ac_exeext &&
11879 $as_test_x conftest$ac_exeext; then
11880 ac_cv_sys_largefile_source=no; break
11881 else
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11889 conftest$ac_exeext conftest.$ac_ext
11890 cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h. */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 #define _LARGEFILE_SOURCE 1
11897 #include <sys/types.h> /* for off_t */
11898 #include <stdio.h>
11900 main ()
11902 int (*fp) (FILE *, off_t, int) = fseeko;
11903 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11905 return 0;
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_link") 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest$ac_exeext &&
11925 $as_test_x conftest$ac_exeext; then
11926 ac_cv_sys_largefile_source=1; break
11927 else
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11935 conftest$ac_exeext conftest.$ac_ext
11936 ac_cv_sys_largefile_source=unknown
11937 break
11938 done
11940 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11941 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
11942 case $ac_cv_sys_largefile_source in #(
11943 no | unknown) ;;
11945 cat >>confdefs.h <<_ACEOF
11946 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11947 _ACEOF
11949 esac
11950 rm -f conftest*
11952 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11953 # in glibc 2.1.3, but that breaks too many other things.
11954 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11955 if test $ac_cv_sys_largefile_source != unknown; then
11957 cat >>confdefs.h <<\_ACEOF
11958 #define HAVE_FSEEKO 1
11959 _ACEOF
11963 if test $ac_cv_c_compiler_gnu = yes; then
11964 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11965 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11966 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 else
11969 ac_pattern="Autoconf.*'x'"
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h. */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11976 #include <sgtty.h>
11977 Autoconf TIOCGETP
11978 _ACEOF
11979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11980 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11981 ac_cv_prog_gcc_traditional=yes
11982 else
11983 ac_cv_prog_gcc_traditional=no
11985 rm -f conftest*
11988 if test $ac_cv_prog_gcc_traditional = no; then
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h. */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 #include <termio.h>
11996 Autoconf TCGETA
11997 _ACEOF
11998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11999 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12000 ac_cv_prog_gcc_traditional=yes
12002 rm -f conftest*
12006 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12007 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12008 if test $ac_cv_prog_gcc_traditional = yes; then
12009 CC="$CC -traditional"
12013 # XXX: these are commented out until we determine whether it matters if our malloc()
12014 # acts exactly like glibc's or not
12015 # AC_FUNC_MALLOC
12016 # AC_FUNC_REALLOC
12017 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12018 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12019 if test "${ac_cv_func_memcmp_working+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022 if test "$cross_compiling" = yes; then
12023 ac_cv_func_memcmp_working=no
12024 else
12025 cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h. */
12027 _ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031 $ac_includes_default
12033 main ()
12036 /* Some versions of memcmp are not 8-bit clean. */
12037 char c0 = '\100', c1 = '\200', c2 = '\201';
12038 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12039 return 1;
12041 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12042 or more and with at least one buffer not starting on a 4-byte boundary.
12043 William Lewis provided this test program. */
12045 char foo[21];
12046 char bar[21];
12047 int i;
12048 for (i = 0; i < 4; i++)
12050 char *a = foo + i;
12051 char *b = bar + i;
12052 strcpy (a, "--------01111111");
12053 strcpy (b, "--------10000000");
12054 if (memcmp (a, b, 16) >= 0)
12055 return 1;
12057 return 0;
12061 return 0;
12063 _ACEOF
12064 rm -f conftest$ac_exeext
12065 if { (ac_try="$ac_link"
12066 case "(($ac_try" in
12067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12069 esac
12070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12071 (eval "$ac_link") 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12075 { (case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12078 esac
12079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_try") 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 ac_cv_func_memcmp_working=yes
12085 else
12086 echo "$as_me: program exited with status $ac_status" >&5
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 ( exit $ac_status )
12091 ac_cv_func_memcmp_working=no
12093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12098 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12099 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12100 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12101 *" memcmp.$ac_objext "* ) ;;
12102 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12104 esac
12111 for ac_header in $ac_header_list
12113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 ac_res=`eval echo '${'$as_ac_Header'}'`
12121 { echo "$as_me:$LINENO: result: $ac_res" >&5
12122 echo "${ECHO_T}$ac_res" >&6; }
12123 else
12124 # Is the header compilable?
12125 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12127 cat >conftest.$ac_ext <<_ACEOF
12128 /* confdefs.h. */
12129 _ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133 $ac_includes_default
12134 #include <$ac_header>
12135 _ACEOF
12136 rm -f conftest.$ac_objext
12137 if { (ac_try="$ac_compile"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_compile") 2>conftest.er1
12144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest.$ac_objext; then
12153 ac_header_compiler=yes
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12158 ac_header_compiler=no
12161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12163 echo "${ECHO_T}$ac_header_compiler" >&6; }
12165 # Is the header present?
12166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12168 cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h. */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 #include <$ac_header>
12175 _ACEOF
12176 if { (ac_try="$ac_cpp conftest.$ac_ext"
12177 case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12180 esac
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } >/dev/null && {
12189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12190 test ! -s conftest.err
12191 }; then
12192 ac_header_preproc=yes
12193 else
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ac_header_preproc=no
12200 rm -f conftest.err conftest.$ac_ext
12201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202 echo "${ECHO_T}$ac_header_preproc" >&6; }
12204 # So? What about this header?
12205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12206 yes:no: )
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12211 ac_header_preproc=yes
12213 no:yes:* )
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12221 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12228 esac
12229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234 eval "$as_ac_Header=\$ac_header_preproc"
12236 ac_res=`eval echo '${'$as_ac_Header'}'`
12237 { echo "$as_me:$LINENO: result: $ac_res" >&5
12238 echo "${ECHO_T}$ac_res" >&6; }
12241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12244 _ACEOF
12248 done
12258 for ac_func in $ac_func_list
12260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266 cat >conftest.$ac_ext <<_ACEOF
12267 /* confdefs.h. */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12274 #define $ac_func innocuous_$ac_func
12276 /* System header to define __stub macros and hopefully few prototypes,
12277 which can conflict with char $ac_func (); below.
12278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12279 <limits.h> exists even on freestanding compilers. */
12281 #ifdef __STDC__
12282 # include <limits.h>
12283 #else
12284 # include <assert.h>
12285 #endif
12287 #undef $ac_func
12289 /* Override any GCC internal prototype to avoid an error.
12290 Use char because int might match the return type of a GCC
12291 builtin and then its argument prototype would still apply. */
12292 #ifdef __cplusplus
12293 extern "C"
12294 #endif
12295 char $ac_func ();
12296 /* The GNU C library defines this for functions which it implements
12297 to always fail with ENOSYS. Some functions are actually named
12298 something starting with __ and the normal name is an alias. */
12299 #if defined __stub_$ac_func || defined __stub___$ac_func
12300 choke me
12301 #endif
12304 main ()
12306 return $ac_func ();
12308 return 0;
12310 _ACEOF
12311 rm -f conftest.$ac_objext conftest$ac_exeext
12312 if { (ac_try="$ac_link"
12313 case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12316 esac
12317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_link") 2>conftest.er1
12319 ac_status=$?
12320 grep -v '^ *+' conftest.er1 >conftest.err
12321 rm -f conftest.er1
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } && {
12325 test -z "$ac_c_werror_flag" ||
12326 test ! -s conftest.err
12327 } && test -s conftest$ac_exeext &&
12328 $as_test_x conftest$ac_exeext; then
12329 eval "$as_ac_var=yes"
12330 else
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12334 eval "$as_ac_var=no"
12337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12338 conftest$ac_exeext conftest.$ac_ext
12340 ac_res=`eval echo '${'$as_ac_var'}'`
12341 { echo "$as_me:$LINENO: result: $ac_res" >&5
12342 echo "${ECHO_T}$ac_res" >&6; }
12343 if test `eval echo '${'$as_ac_var'}'` = yes; then
12344 cat >>confdefs.h <<_ACEOF
12345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12346 _ACEOF
12349 done
12367 { echo "$as_me:$LINENO: checking for working mktime" >&5
12368 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
12369 if test "${ac_cv_func_working_mktime+set}" = set; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 else
12372 if test "$cross_compiling" = yes; then
12373 ac_cv_func_working_mktime=no
12374 else
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h. */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381 /* Test program from Paul Eggert and Tony Leneis. */
12382 #ifdef TIME_WITH_SYS_TIME
12383 # include <sys/time.h>
12384 # include <time.h>
12385 #else
12386 # ifdef HAVE_SYS_TIME_H
12387 # include <sys/time.h>
12388 # else
12389 # include <time.h>
12390 # endif
12391 #endif
12393 #include <stdlib.h>
12395 #ifdef HAVE_UNISTD_H
12396 # include <unistd.h>
12397 #endif
12399 #ifndef HAVE_ALARM
12400 # define alarm(X) /* empty */
12401 #endif
12403 /* Work around redefinition to rpl_putenv by other config tests. */
12404 #undef putenv
12406 static time_t time_t_max;
12407 static time_t time_t_min;
12409 /* Values we'll use to set the TZ environment variable. */
12410 static char *tz_strings[] = {
12411 (char *) 0, "TZ=GMT0", "TZ=JST-9",
12412 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12414 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12416 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
12417 Based on a problem report from Andreas Jaeger. */
12418 static int
12419 spring_forward_gap ()
12421 /* glibc (up to about 1998-10-07) failed this test. */
12422 struct tm tm;
12424 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12425 instead of "TZ=America/Vancouver" in order to detect the bug even
12426 on systems that don't support the Olson extension, or don't have the
12427 full zoneinfo tables installed. */
12428 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12430 tm.tm_year = 98;
12431 tm.tm_mon = 3;
12432 tm.tm_mday = 5;
12433 tm.tm_hour = 2;
12434 tm.tm_min = 0;
12435 tm.tm_sec = 0;
12436 tm.tm_isdst = -1;
12437 return mktime (&tm) != (time_t) -1;
12440 static int
12441 mktime_test1 (now)
12442 time_t now;
12444 struct tm *lt;
12445 return ! (lt = localtime (&now)) || mktime (lt) == now;
12448 static int
12449 mktime_test (now)
12450 time_t now;
12452 return (mktime_test1 (now)
12453 && mktime_test1 ((time_t) (time_t_max - now))
12454 && mktime_test1 ((time_t) (time_t_min + now)));
12457 static int
12458 irix_6_4_bug ()
12460 /* Based on code from Ariel Faigon. */
12461 struct tm tm;
12462 tm.tm_year = 96;
12463 tm.tm_mon = 3;
12464 tm.tm_mday = 0;
12465 tm.tm_hour = 0;
12466 tm.tm_min = 0;
12467 tm.tm_sec = 0;
12468 tm.tm_isdst = -1;
12469 mktime (&tm);
12470 return tm.tm_mon == 2 && tm.tm_mday == 31;
12473 static int
12474 bigtime_test (j)
12475 int j;
12477 struct tm tm;
12478 time_t now;
12479 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12480 now = mktime (&tm);
12481 if (now != (time_t) -1)
12483 struct tm *lt = localtime (&now);
12484 if (! (lt
12485 && lt->tm_year == tm.tm_year
12486 && lt->tm_mon == tm.tm_mon
12487 && lt->tm_mday == tm.tm_mday
12488 && lt->tm_hour == tm.tm_hour
12489 && lt->tm_min == tm.tm_min
12490 && lt->tm_sec == tm.tm_sec
12491 && lt->tm_yday == tm.tm_yday
12492 && lt->tm_wday == tm.tm_wday
12493 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12494 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12495 return 0;
12497 return 1;
12500 static int
12501 year_2050_test ()
12503 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12504 ignoring leap seconds. */
12505 unsigned long int answer = 2527315200UL;
12507 struct tm tm;
12508 time_t t;
12509 tm.tm_year = 2050 - 1900;
12510 tm.tm_mon = 2 - 1;
12511 tm.tm_mday = 1;
12512 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12513 tm.tm_isdst = -1;
12515 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12516 instead of "TZ=America/Vancouver" in order to detect the bug even
12517 on systems that don't support the Olson extension, or don't have the
12518 full zoneinfo tables installed. */
12519 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12521 t = mktime (&tm);
12523 /* Check that the result is either a failure, or close enough
12524 to the correct answer that we can assume the discrepancy is
12525 due to leap seconds. */
12526 return (t == (time_t) -1
12527 || (0 < t && answer - 120 <= t && t <= answer + 120));
12531 main ()
12533 time_t t, delta;
12534 int i, j;
12536 /* This test makes some buggy mktime implementations loop.
12537 Give up after 60 seconds; a mktime slower than that
12538 isn't worth using anyway. */
12539 alarm (60);
12541 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12542 continue;
12543 time_t_max--;
12544 if ((time_t) -1 < 0)
12545 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
12546 continue;
12547 delta = time_t_max / 997; /* a suitable prime number */
12548 for (i = 0; i < N_STRINGS; i++)
12550 if (tz_strings[i])
12551 putenv (tz_strings[i]);
12553 for (t = 0; t <= time_t_max - delta; t += delta)
12554 if (! mktime_test (t))
12555 return 1;
12556 if (! (mktime_test ((time_t) 1)
12557 && mktime_test ((time_t) (60 * 60))
12558 && mktime_test ((time_t) (60 * 60 * 24))))
12559 return 1;
12561 for (j = 1; 0 < j; j *= 2)
12562 if (! bigtime_test (j))
12563 return 1;
12564 if (! bigtime_test (j - 1))
12565 return 1;
12567 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12569 _ACEOF
12570 rm -f conftest$ac_exeext
12571 if { (ac_try="$ac_link"
12572 case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12575 esac
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_link") 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12581 { (case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584 esac
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_try") 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_cv_func_working_mktime=yes
12591 else
12592 echo "$as_me: program exited with status $ac_status" >&5
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12596 ( exit $ac_status )
12597 ac_cv_func_working_mktime=no
12599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12604 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12605 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
12606 if test $ac_cv_func_working_mktime = no; then
12607 case " $LIBOBJS " in
12608 *" mktime.$ac_objext "* ) ;;
12609 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12611 esac
12617 for ac_header in stdlib.h unistd.h
12619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 ac_res=`eval echo '${'$as_ac_Header'}'`
12627 { echo "$as_me:$LINENO: result: $ac_res" >&5
12628 echo "${ECHO_T}$ac_res" >&6; }
12629 else
12630 # Is the header compilable?
12631 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12633 cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h. */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 $ac_includes_default
12640 #include <$ac_header>
12641 _ACEOF
12642 rm -f conftest.$ac_objext
12643 if { (ac_try="$ac_compile"
12644 case "(($ac_try" in
12645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646 *) ac_try_echo=$ac_try;;
12647 esac
12648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649 (eval "$ac_compile") 2>conftest.er1
12650 ac_status=$?
12651 grep -v '^ *+' conftest.er1 >conftest.err
12652 rm -f conftest.er1
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } && {
12656 test -z "$ac_c_werror_flag" ||
12657 test ! -s conftest.err
12658 } && test -s conftest.$ac_objext; then
12659 ac_header_compiler=yes
12660 else
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12664 ac_header_compiler=no
12667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12669 echo "${ECHO_T}$ac_header_compiler" >&6; }
12671 # Is the header present?
12672 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12674 cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h. */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12680 #include <$ac_header>
12681 _ACEOF
12682 if { (ac_try="$ac_cpp conftest.$ac_ext"
12683 case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12686 esac
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12689 ac_status=$?
12690 grep -v '^ *+' conftest.er1 >conftest.err
12691 rm -f conftest.er1
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } >/dev/null && {
12695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12696 test ! -s conftest.err
12697 }; then
12698 ac_header_preproc=yes
12699 else
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 ac_header_preproc=no
12706 rm -f conftest.err conftest.$ac_ext
12707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12708 echo "${ECHO_T}$ac_header_preproc" >&6; }
12710 # So? What about this header?
12711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12712 yes:no: )
12713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12717 ac_header_preproc=yes
12719 no:yes:* )
12720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12734 esac
12735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 else
12740 eval "$as_ac_Header=\$ac_header_preproc"
12742 ac_res=`eval echo '${'$as_ac_Header'}'`
12743 { echo "$as_me:$LINENO: result: $ac_res" >&5
12744 echo "${ECHO_T}$ac_res" >&6; }
12747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12748 cat >>confdefs.h <<_ACEOF
12749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12750 _ACEOF
12754 done
12757 for ac_func in getpagesize
12759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12765 cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h. */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12773 #define $ac_func innocuous_$ac_func
12775 /* System header to define __stub macros and hopefully few prototypes,
12776 which can conflict with char $ac_func (); below.
12777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12778 <limits.h> exists even on freestanding compilers. */
12780 #ifdef __STDC__
12781 # include <limits.h>
12782 #else
12783 # include <assert.h>
12784 #endif
12786 #undef $ac_func
12788 /* Override any GCC internal prototype to avoid an error.
12789 Use char because int might match the return type of a GCC
12790 builtin and then its argument prototype would still apply. */
12791 #ifdef __cplusplus
12792 extern "C"
12793 #endif
12794 char $ac_func ();
12795 /* The GNU C library defines this for functions which it implements
12796 to always fail with ENOSYS. Some functions are actually named
12797 something starting with __ and the normal name is an alias. */
12798 #if defined __stub_$ac_func || defined __stub___$ac_func
12799 choke me
12800 #endif
12803 main ()
12805 return $ac_func ();
12807 return 0;
12809 _ACEOF
12810 rm -f conftest.$ac_objext conftest$ac_exeext
12811 if { (ac_try="$ac_link"
12812 case "(($ac_try" in
12813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12814 *) ac_try_echo=$ac_try;;
12815 esac
12816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12817 (eval "$ac_link") 2>conftest.er1
12818 ac_status=$?
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } && {
12824 test -z "$ac_c_werror_flag" ||
12825 test ! -s conftest.err
12826 } && test -s conftest$ac_exeext &&
12827 $as_test_x conftest$ac_exeext; then
12828 eval "$as_ac_var=yes"
12829 else
12830 echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12833 eval "$as_ac_var=no"
12836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12837 conftest$ac_exeext conftest.$ac_ext
12839 ac_res=`eval echo '${'$as_ac_var'}'`
12840 { echo "$as_me:$LINENO: result: $ac_res" >&5
12841 echo "${ECHO_T}$ac_res" >&6; }
12842 if test `eval echo '${'$as_ac_var'}'` = yes; then
12843 cat >>confdefs.h <<_ACEOF
12844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12845 _ACEOF
12848 done
12850 { echo "$as_me:$LINENO: checking for working mmap" >&5
12851 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12852 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855 if test "$cross_compiling" = yes; then
12856 ac_cv_func_mmap_fixed_mapped=no
12857 else
12858 cat >conftest.$ac_ext <<_ACEOF
12859 /* confdefs.h. */
12860 _ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h. */
12864 $ac_includes_default
12865 /* malloc might have been renamed as rpl_malloc. */
12866 #undef malloc
12868 /* Thanks to Mike Haertel and Jim Avera for this test.
12869 Here is a matrix of mmap possibilities:
12870 mmap private not fixed
12871 mmap private fixed at somewhere currently unmapped
12872 mmap private fixed at somewhere already mapped
12873 mmap shared not fixed
12874 mmap shared fixed at somewhere currently unmapped
12875 mmap shared fixed at somewhere already mapped
12876 For private mappings, we should verify that changes cannot be read()
12877 back from the file, nor mmap's back from the file at a different
12878 address. (There have been systems where private was not correctly
12879 implemented like the infamous i386 svr4.0, and systems where the
12880 VM page cache was not coherent with the file system buffer cache
12881 like early versions of FreeBSD and possibly contemporary NetBSD.)
12882 For shared mappings, we should conversely verify that changes get
12883 propagated back to all the places they're supposed to be.
12885 Grep wants private fixed already mapped.
12886 The main things grep needs to know about mmap are:
12887 * does it exist and is it safe to write into the mmap'd area
12888 * how to use it (BSD variants) */
12890 #include <fcntl.h>
12891 #include <sys/mman.h>
12893 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12894 char *malloc ();
12895 #endif
12897 /* This mess was copied from the GNU getpagesize.h. */
12898 #ifndef HAVE_GETPAGESIZE
12899 /* Assume that all systems that can run configure have sys/param.h. */
12900 # ifndef HAVE_SYS_PARAM_H
12901 # define HAVE_SYS_PARAM_H 1
12902 # endif
12904 # ifdef _SC_PAGESIZE
12905 # define getpagesize() sysconf(_SC_PAGESIZE)
12906 # else /* no _SC_PAGESIZE */
12907 # ifdef HAVE_SYS_PARAM_H
12908 # include <sys/param.h>
12909 # ifdef EXEC_PAGESIZE
12910 # define getpagesize() EXEC_PAGESIZE
12911 # else /* no EXEC_PAGESIZE */
12912 # ifdef NBPG
12913 # define getpagesize() NBPG * CLSIZE
12914 # ifndef CLSIZE
12915 # define CLSIZE 1
12916 # endif /* no CLSIZE */
12917 # else /* no NBPG */
12918 # ifdef NBPC
12919 # define getpagesize() NBPC
12920 # else /* no NBPC */
12921 # ifdef PAGESIZE
12922 # define getpagesize() PAGESIZE
12923 # endif /* PAGESIZE */
12924 # endif /* no NBPC */
12925 # endif /* no NBPG */
12926 # endif /* no EXEC_PAGESIZE */
12927 # else /* no HAVE_SYS_PARAM_H */
12928 # define getpagesize() 8192 /* punt totally */
12929 # endif /* no HAVE_SYS_PARAM_H */
12930 # endif /* no _SC_PAGESIZE */
12932 #endif /* no HAVE_GETPAGESIZE */
12935 main ()
12937 char *data, *data2, *data3;
12938 int i, pagesize;
12939 int fd;
12941 pagesize = getpagesize ();
12943 /* First, make a file with some known garbage in it. */
12944 data = (char *) malloc (pagesize);
12945 if (!data)
12946 return 1;
12947 for (i = 0; i < pagesize; ++i)
12948 *(data + i) = rand ();
12949 umask (0);
12950 fd = creat ("conftest.mmap", 0600);
12951 if (fd < 0)
12952 return 1;
12953 if (write (fd, data, pagesize) != pagesize)
12954 return 1;
12955 close (fd);
12957 /* Next, try to mmap the file at a fixed address which already has
12958 something else allocated at it. If we can, also make sure that
12959 we see the same garbage. */
12960 fd = open ("conftest.mmap", O_RDWR);
12961 if (fd < 0)
12962 return 1;
12963 data2 = (char *) malloc (2 * pagesize);
12964 if (!data2)
12965 return 1;
12966 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12967 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12968 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12969 return 1;
12970 for (i = 0; i < pagesize; ++i)
12971 if (*(data + i) != *(data2 + i))
12972 return 1;
12974 /* Finally, make sure that changes to the mapped area do not
12975 percolate back to the file as seen by read(). (This is a bug on
12976 some variants of i386 svr4.0.) */
12977 for (i = 0; i < pagesize; ++i)
12978 *(data2 + i) = *(data2 + i) + 1;
12979 data3 = (char *) malloc (pagesize);
12980 if (!data3)
12981 return 1;
12982 if (read (fd, data3, pagesize) != pagesize)
12983 return 1;
12984 for (i = 0; i < pagesize; ++i)
12985 if (*(data + i) != *(data3 + i))
12986 return 1;
12987 close (fd);
12988 return 0;
12990 _ACEOF
12991 rm -f conftest$ac_exeext
12992 if { (ac_try="$ac_link"
12993 case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996 esac
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_link") 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13002 { (case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005 esac
13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_try") 2>&5
13008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; }; then
13011 ac_cv_func_mmap_fixed_mapped=yes
13012 else
13013 echo "$as_me: program exited with status $ac_status" >&5
13014 echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13017 ( exit $ac_status )
13018 ac_cv_func_mmap_fixed_mapped=no
13020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13025 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13026 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13027 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13029 cat >>confdefs.h <<\_ACEOF
13030 #define HAVE_MMAP 1
13031 _ACEOF
13034 rm -f conftest.mmap
13038 for ac_header in sys/select.h sys/socket.h
13040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13047 ac_res=`eval echo '${'$as_ac_Header'}'`
13048 { echo "$as_me:$LINENO: result: $ac_res" >&5
13049 echo "${ECHO_T}$ac_res" >&6; }
13050 else
13051 # Is the header compilable?
13052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13054 cat >conftest.$ac_ext <<_ACEOF
13055 /* confdefs.h. */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 $ac_includes_default
13061 #include <$ac_header>
13062 _ACEOF
13063 rm -f conftest.$ac_objext
13064 if { (ac_try="$ac_compile"
13065 case "(($ac_try" in
13066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067 *) ac_try_echo=$ac_try;;
13068 esac
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070 (eval "$ac_compile") 2>conftest.er1
13071 ac_status=$?
13072 grep -v '^ *+' conftest.er1 >conftest.err
13073 rm -f conftest.er1
13074 cat conftest.err >&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } && {
13077 test -z "$ac_c_werror_flag" ||
13078 test ! -s conftest.err
13079 } && test -s conftest.$ac_objext; then
13080 ac_header_compiler=yes
13081 else
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13085 ac_header_compiler=no
13088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13090 echo "${ECHO_T}$ac_header_compiler" >&6; }
13092 # Is the header present?
13093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13095 cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h. */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101 #include <$ac_header>
13102 _ACEOF
13103 if { (ac_try="$ac_cpp conftest.$ac_ext"
13104 case "(($ac_try" in
13105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106 *) ac_try_echo=$ac_try;;
13107 esac
13108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13110 ac_status=$?
13111 grep -v '^ *+' conftest.er1 >conftest.err
13112 rm -f conftest.er1
13113 cat conftest.err >&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } >/dev/null && {
13116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13117 test ! -s conftest.err
13118 }; then
13119 ac_header_preproc=yes
13120 else
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 ac_header_preproc=no
13127 rm -f conftest.err conftest.$ac_ext
13128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13129 echo "${ECHO_T}$ac_header_preproc" >&6; }
13131 # So? What about this header?
13132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13133 yes:no: )
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13138 ac_header_preproc=yes
13140 no:yes:* )
13141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13155 esac
13156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 else
13161 eval "$as_ac_Header=\$ac_header_preproc"
13163 ac_res=`eval echo '${'$as_ac_Header'}'`
13164 { echo "$as_me:$LINENO: result: $ac_res" >&5
13165 echo "${ECHO_T}$ac_res" >&6; }
13168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13169 cat >>confdefs.h <<_ACEOF
13170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13171 _ACEOF
13175 done
13177 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13178 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13179 if test "${ac_cv_func_select_args+set}" = set; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 else
13182 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13183 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13184 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13185 cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h. */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 $ac_includes_default
13192 #ifdef HAVE_SYS_SELECT_H
13193 # include <sys/select.h>
13194 #endif
13195 #ifdef HAVE_SYS_SOCKET_H
13196 # include <sys/socket.h>
13197 #endif
13200 main ()
13202 extern int select ($ac_arg1,
13203 $ac_arg234, $ac_arg234, $ac_arg234,
13204 $ac_arg5);
13206 return 0;
13208 _ACEOF
13209 rm -f conftest.$ac_objext
13210 if { (ac_try="$ac_compile"
13211 case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13214 esac
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_compile") 2>conftest.er1
13217 ac_status=$?
13218 grep -v '^ *+' conftest.er1 >conftest.err
13219 rm -f conftest.er1
13220 cat conftest.err >&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } && {
13223 test -z "$ac_c_werror_flag" ||
13224 test ! -s conftest.err
13225 } && test -s conftest.$ac_objext; then
13226 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13227 else
13228 echo "$as_me: failed program was:" >&5
13229 sed 's/^/| /' conftest.$ac_ext >&5
13234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13235 done
13236 done
13237 done
13238 # Provide a safe default value.
13239 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13242 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13243 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13244 ac_save_IFS=$IFS; IFS=','
13245 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13246 IFS=$ac_save_IFS
13247 shift
13249 cat >>confdefs.h <<_ACEOF
13250 #define SELECT_TYPE_ARG1 $1
13251 _ACEOF
13254 cat >>confdefs.h <<_ACEOF
13255 #define SELECT_TYPE_ARG234 ($2)
13256 _ACEOF
13259 cat >>confdefs.h <<_ACEOF
13260 #define SELECT_TYPE_ARG5 ($3)
13261 _ACEOF
13263 rm -f conftest*
13265 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13266 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13267 if test "$ac_cv_prog_cc_c89" != no; then
13268 { echo "$as_me:$LINENO: result: yes" >&5
13269 echo "${ECHO_T}yes" >&6; }
13271 cat >>confdefs.h <<\_ACEOF
13272 #define PROTOTYPES 1
13273 _ACEOF
13276 cat >>confdefs.h <<\_ACEOF
13277 #define __PROTOTYPES 1
13278 _ACEOF
13280 else
13281 { echo "$as_me:$LINENO: result: no" >&5
13282 echo "${ECHO_T}no" >&6; }
13285 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13286 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13287 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290 ac_cv_func_setvbuf_reversed=no
13291 cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h. */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 #include <stdio.h>
13298 # ifdef PROTOTYPES
13299 int (setvbuf) (FILE *, int, char *, size_t);
13300 # endif
13302 main ()
13304 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13306 return 0;
13308 _ACEOF
13309 rm -f conftest.$ac_objext conftest$ac_exeext
13310 if { (ac_try="$ac_link"
13311 case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13314 esac
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_link") 2>conftest.er1
13317 ac_status=$?
13318 grep -v '^ *+' conftest.er1 >conftest.err
13319 rm -f conftest.er1
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } && {
13323 test -z "$ac_c_werror_flag" ||
13324 test ! -s conftest.err
13325 } && test -s conftest$ac_exeext &&
13326 $as_test_x conftest$ac_exeext; then
13327 cat >conftest.$ac_ext <<_ACEOF
13328 /* confdefs.h. */
13329 _ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13333 #include <stdio.h>
13334 # ifdef PROTOTYPES
13335 int (setvbuf) (FILE *, int, char *, size_t);
13336 # endif
13338 main ()
13340 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13342 return 0;
13344 _ACEOF
13345 rm -f conftest.$ac_objext conftest$ac_exeext
13346 if { (ac_try="$ac_link"
13347 case "(($ac_try" in
13348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13349 *) ac_try_echo=$ac_try;;
13350 esac
13351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13352 (eval "$ac_link") 2>conftest.er1
13353 ac_status=$?
13354 grep -v '^ *+' conftest.er1 >conftest.err
13355 rm -f conftest.er1
13356 cat conftest.err >&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } && {
13359 test -z "$ac_c_werror_flag" ||
13360 test ! -s conftest.err
13361 } && test -s conftest$ac_exeext &&
13362 $as_test_x conftest$ac_exeext; then
13363 # It compiles and links either way, so it must not be declared
13364 # with a prototype and most likely this is a K&R C compiler.
13365 # Try running it.
13366 if test "$cross_compiling" = yes; then
13367 : # Assume setvbuf is not reversed when cross-compiling.
13368 else
13369 cat >conftest.$ac_ext <<_ACEOF
13370 /* confdefs.h. */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13375 $ac_includes_default
13377 main ()
13379 /* This call has the arguments reversed.
13380 A reversed system may check and see that the address of buf
13381 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13382 char buf;
13383 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13384 return 1;
13385 putchar ('\r');
13386 return 0; /* Non-reversed systems SEGV here. */
13388 return 0;
13390 _ACEOF
13391 rm -f conftest$ac_exeext
13392 if { (ac_try="$ac_link"
13393 case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13396 esac
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_link") 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13402 { (case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13405 esac
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_try") 2>&5
13408 ac_status=$?
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; }; then
13411 ac_cv_func_setvbuf_reversed=yes
13412 else
13413 echo "$as_me: program exited with status $ac_status" >&5
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13422 ac_cv_func_setvbuf_reversed=yes
13423 else
13424 echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13431 conftest$ac_exeext conftest.$ac_ext
13432 else
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13440 conftest$ac_exeext conftest.$ac_ext
13442 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13443 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13444 if test $ac_cv_func_setvbuf_reversed = yes; then
13446 cat >>confdefs.h <<\_ACEOF
13447 #define SETVBUF_REVERSED 1
13448 _ACEOF
13452 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13453 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13454 if test "${ac_cv_type_signal+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 else
13457 cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h. */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 #include <sys/types.h>
13464 #include <signal.h>
13467 main ()
13469 return *(signal (0, 0)) (0) == 1;
13471 return 0;
13473 _ACEOF
13474 rm -f conftest.$ac_objext
13475 if { (ac_try="$ac_compile"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479 esac
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_compile") 2>conftest.er1
13482 ac_status=$?
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } && {
13488 test -z "$ac_c_werror_flag" ||
13489 test ! -s conftest.err
13490 } && test -s conftest.$ac_objext; then
13491 ac_cv_type_signal=int
13492 else
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13496 ac_cv_type_signal=void
13499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13502 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13504 cat >>confdefs.h <<_ACEOF
13505 #define RETSIGTYPE $ac_cv_type_signal
13506 _ACEOF
13509 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13510 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13511 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13513 else
13514 rm -f conftest.sym conftest.file
13515 echo >conftest.file
13516 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13517 if test "$cross_compiling" = yes; then
13518 ac_cv_func_lstat_dereferences_slashed_symlink=no
13519 else
13520 cat >conftest.$ac_ext <<_ACEOF
13521 /* confdefs.h. */
13522 _ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13526 $ac_includes_default
13528 main ()
13530 struct stat sbuf;
13531 /* Linux will dereference the symlink and fail.
13532 That is better in the sense that it means we will not
13533 have to compile and use the lstat wrapper. */
13534 return lstat ("conftest.sym/", &sbuf) == 0;
13536 return 0;
13538 _ACEOF
13539 rm -f conftest$ac_exeext
13540 if { (ac_try="$ac_link"
13541 case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544 esac
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_link") 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13550 { (case "(($ac_try" in
13551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13552 *) ac_try_echo=$ac_try;;
13553 esac
13554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13555 (eval "$ac_try") 2>&5
13556 ac_status=$?
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; }; then
13559 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13560 else
13561 echo "$as_me: program exited with status $ac_status" >&5
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13565 ( exit $ac_status )
13566 ac_cv_func_lstat_dereferences_slashed_symlink=no
13568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13572 else
13573 # If the `ln -s' command failed, then we probably don't even
13574 # have an lstat function.
13575 ac_cv_func_lstat_dereferences_slashed_symlink=no
13577 rm -f conftest.sym conftest.file
13580 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13581 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13583 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13585 cat >>confdefs.h <<_ACEOF
13586 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13587 _ACEOF
13590 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13591 case " $LIBOBJS " in
13592 *" lstat.$ac_objext "* ) ;;
13593 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13595 esac
13599 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13600 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13601 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 else
13604 if test "$cross_compiling" = yes; then
13605 ac_cv_func_stat_empty_string_bug=yes
13606 else
13607 cat >conftest.$ac_ext <<_ACEOF
13608 /* confdefs.h. */
13609 _ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h. */
13613 $ac_includes_default
13615 main ()
13617 struct stat sbuf;
13618 return stat ("", &sbuf) == 0;
13620 return 0;
13622 _ACEOF
13623 rm -f conftest$ac_exeext
13624 if { (ac_try="$ac_link"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628 esac
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_link") 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13634 { (case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13637 esac
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_try") 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; }; then
13643 ac_cv_func_stat_empty_string_bug=no
13644 else
13645 echo "$as_me: program exited with status $ac_status" >&5
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13649 ( exit $ac_status )
13650 ac_cv_func_stat_empty_string_bug=yes
13652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13657 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13658 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13659 if test $ac_cv_func_stat_empty_string_bug = yes; then
13660 case " $LIBOBJS " in
13661 *" stat.$ac_objext "* ) ;;
13662 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13664 esac
13667 cat >>confdefs.h <<_ACEOF
13668 #define HAVE_STAT_EMPTY_STRING_BUG 1
13669 _ACEOF
13673 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13674 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13675 if test "${ac_cv_func_strcoll_works+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 else
13678 if test "$cross_compiling" = yes; then
13679 ac_cv_func_strcoll_works=no
13680 else
13681 cat >conftest.$ac_ext <<_ACEOF
13682 /* confdefs.h. */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13687 $ac_includes_default
13689 main ()
13691 return (strcoll ("abc", "def") >= 0 ||
13692 strcoll ("ABC", "DEF") >= 0 ||
13693 strcoll ("123", "456") >= 0)
13695 return 0;
13697 _ACEOF
13698 rm -f conftest$ac_exeext
13699 if { (ac_try="$ac_link"
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_link") 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13709 { (case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712 esac
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_try") 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 ac_cv_func_strcoll_works=yes
13719 else
13720 echo "$as_me: program exited with status $ac_status" >&5
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ( exit $ac_status )
13725 ac_cv_func_strcoll_works=no
13727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13732 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13733 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13734 if test $ac_cv_func_strcoll_works = yes; then
13736 cat >>confdefs.h <<\_ACEOF
13737 #define HAVE_STRCOLL 1
13738 _ACEOF
13743 for ac_func in strftime
13745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750 else
13751 cat >conftest.$ac_ext <<_ACEOF
13752 /* confdefs.h. */
13753 _ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h. */
13757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13759 #define $ac_func innocuous_$ac_func
13761 /* System header to define __stub macros and hopefully few prototypes,
13762 which can conflict with char $ac_func (); below.
13763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13764 <limits.h> exists even on freestanding compilers. */
13766 #ifdef __STDC__
13767 # include <limits.h>
13768 #else
13769 # include <assert.h>
13770 #endif
13772 #undef $ac_func
13774 /* Override any GCC internal prototype to avoid an error.
13775 Use char because int might match the return type of a GCC
13776 builtin and then its argument prototype would still apply. */
13777 #ifdef __cplusplus
13778 extern "C"
13779 #endif
13780 char $ac_func ();
13781 /* The GNU C library defines this for functions which it implements
13782 to always fail with ENOSYS. Some functions are actually named
13783 something starting with __ and the normal name is an alias. */
13784 #if defined __stub_$ac_func || defined __stub___$ac_func
13785 choke me
13786 #endif
13789 main ()
13791 return $ac_func ();
13793 return 0;
13795 _ACEOF
13796 rm -f conftest.$ac_objext conftest$ac_exeext
13797 if { (ac_try="$ac_link"
13798 case "(($ac_try" in
13799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13800 *) ac_try_echo=$ac_try;;
13801 esac
13802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13803 (eval "$ac_link") 2>conftest.er1
13804 ac_status=$?
13805 grep -v '^ *+' conftest.er1 >conftest.err
13806 rm -f conftest.er1
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } && {
13810 test -z "$ac_c_werror_flag" ||
13811 test ! -s conftest.err
13812 } && test -s conftest$ac_exeext &&
13813 $as_test_x conftest$ac_exeext; then
13814 eval "$as_ac_var=yes"
13815 else
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13819 eval "$as_ac_var=no"
13822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13823 conftest$ac_exeext conftest.$ac_ext
13825 ac_res=`eval echo '${'$as_ac_var'}'`
13826 { echo "$as_me:$LINENO: result: $ac_res" >&5
13827 echo "${ECHO_T}$ac_res" >&6; }
13828 if test `eval echo '${'$as_ac_var'}'` = yes; then
13829 cat >>confdefs.h <<_ACEOF
13830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13831 _ACEOF
13833 else
13834 # strftime is in -lintl on SCO UNIX.
13835 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13836 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13837 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 else
13840 ac_check_lib_save_LIBS=$LIBS
13841 LIBS="-lintl $LIBS"
13842 cat >conftest.$ac_ext <<_ACEOF
13843 /* confdefs.h. */
13844 _ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13849 /* Override any GCC internal prototype to avoid an error.
13850 Use char because int might match the return type of a GCC
13851 builtin and then its argument prototype would still apply. */
13852 #ifdef __cplusplus
13853 extern "C"
13854 #endif
13855 char strftime ();
13857 main ()
13859 return strftime ();
13861 return 0;
13863 _ACEOF
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_link") 2>conftest.er1
13872 ac_status=$?
13873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } && {
13878 test -z "$ac_c_werror_flag" ||
13879 test ! -s conftest.err
13880 } && test -s conftest$ac_exeext &&
13881 $as_test_x conftest$ac_exeext; then
13882 ac_cv_lib_intl_strftime=yes
13883 else
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13887 ac_cv_lib_intl_strftime=no
13890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13891 conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13894 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13895 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13896 if test $ac_cv_lib_intl_strftime = yes; then
13897 cat >>confdefs.h <<\_ACEOF
13898 #define HAVE_STRFTIME 1
13899 _ACEOF
13901 LIBS="-lintl $LIBS"
13905 done
13907 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13908 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13909 if test "${ac_cv_func_strnlen_working+set}" = set; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 else
13912 if test "$cross_compiling" = yes; then
13913 ac_cv_func_strnlen_working=no
13914 else
13915 cat >conftest.$ac_ext <<_ACEOF
13916 /* confdefs.h. */
13917 _ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13921 $ac_includes_default
13923 main ()
13926 #define S "foobar"
13927 #define S_LEN (sizeof S - 1)
13929 /* At least one implementation is buggy: that of AIX 4.3 would
13930 give strnlen (S, 1) == 3. */
13932 int i;
13933 for (i = 0; i < S_LEN + 1; ++i)
13935 int expected = i <= S_LEN ? i : S_LEN;
13936 if (strnlen (S, i) != expected)
13937 return 1;
13939 return 0;
13942 return 0;
13944 _ACEOF
13945 rm -f conftest$ac_exeext
13946 if { (ac_try="$ac_link"
13947 case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13950 esac
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_link") 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13956 { (case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13959 esac
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_try") 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13965 ac_cv_func_strnlen_working=yes
13966 else
13967 echo "$as_me: program exited with status $ac_status" >&5
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13971 ( exit $ac_status )
13972 ac_cv_func_strnlen_working=no
13974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13979 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13980 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13981 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13982 *" strnlen.$ac_objext "* ) ;;
13983 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13985 esac
13988 { echo "$as_me:$LINENO: checking for working strtod" >&5
13989 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13990 if test "${ac_cv_func_strtod+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 else
13993 if test "$cross_compiling" = yes; then
13994 ac_cv_func_strtod=no
13995 else
13996 cat >conftest.$ac_ext <<_ACEOF
13997 /* confdefs.h. */
13998 _ACEOF
13999 cat confdefs.h >>conftest.$ac_ext
14000 cat >>conftest.$ac_ext <<_ACEOF
14001 /* end confdefs.h. */
14003 $ac_includes_default
14004 #ifndef strtod
14005 double strtod ();
14006 #endif
14008 main()
14011 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14012 char *string = " +69";
14013 char *term;
14014 double value;
14015 value = strtod (string, &term);
14016 if (value != 69 || term != (string + 4))
14017 return 1;
14021 /* Under Solaris 2.4, strtod returns the wrong value for the
14022 terminating character under some conditions. */
14023 char *string = "NaN";
14024 char *term;
14025 strtod (string, &term);
14026 if (term != string && *(term - 1) == 0)
14027 return 1;
14029 return 0;
14032 _ACEOF
14033 rm -f conftest$ac_exeext
14034 if { (ac_try="$ac_link"
14035 case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14038 esac
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040 (eval "$ac_link") 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14044 { (case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14047 esac
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_try") 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_cv_func_strtod=yes
14054 else
14055 echo "$as_me: program exited with status $ac_status" >&5
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14059 ( exit $ac_status )
14060 ac_cv_func_strtod=no
14062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14067 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14068 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14069 if test $ac_cv_func_strtod = no; then
14070 case " $LIBOBJS " in
14071 *" strtod.$ac_objext "* ) ;;
14072 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14074 esac
14076 { echo "$as_me:$LINENO: checking for pow" >&5
14077 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
14078 if test "${ac_cv_func_pow+set}" = set; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081 cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h. */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14087 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14089 #define pow innocuous_pow
14091 /* System header to define __stub macros and hopefully few prototypes,
14092 which can conflict with char pow (); below.
14093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14094 <limits.h> exists even on freestanding compilers. */
14096 #ifdef __STDC__
14097 # include <limits.h>
14098 #else
14099 # include <assert.h>
14100 #endif
14102 #undef pow
14104 /* Override any GCC internal prototype to avoid an error.
14105 Use char because int might match the return type of a GCC
14106 builtin and then its argument prototype would still apply. */
14107 #ifdef __cplusplus
14108 extern "C"
14109 #endif
14110 char pow ();
14111 /* The GNU C library defines this for functions which it implements
14112 to always fail with ENOSYS. Some functions are actually named
14113 something starting with __ and the normal name is an alias. */
14114 #if defined __stub_pow || defined __stub___pow
14115 choke me
14116 #endif
14119 main ()
14121 return pow ();
14123 return 0;
14125 _ACEOF
14126 rm -f conftest.$ac_objext conftest$ac_exeext
14127 if { (ac_try="$ac_link"
14128 case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14131 esac
14132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_link") 2>conftest.er1
14134 ac_status=$?
14135 grep -v '^ *+' conftest.er1 >conftest.err
14136 rm -f conftest.er1
14137 cat conftest.err >&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } && {
14140 test -z "$ac_c_werror_flag" ||
14141 test ! -s conftest.err
14142 } && test -s conftest$ac_exeext &&
14143 $as_test_x conftest$ac_exeext; then
14144 ac_cv_func_pow=yes
14145 else
14146 echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14149 ac_cv_func_pow=no
14152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14153 conftest$ac_exeext conftest.$ac_ext
14155 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14156 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14158 if test $ac_cv_func_pow = no; then
14159 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14160 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14161 if test "${ac_cv_lib_m_pow+set}" = set; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 else
14164 ac_check_lib_save_LIBS=$LIBS
14165 LIBS="-lm $LIBS"
14166 cat >conftest.$ac_ext <<_ACEOF
14167 /* confdefs.h. */
14168 _ACEOF
14169 cat confdefs.h >>conftest.$ac_ext
14170 cat >>conftest.$ac_ext <<_ACEOF
14171 /* end confdefs.h. */
14173 /* Override any GCC internal prototype to avoid an error.
14174 Use char because int might match the return type of a GCC
14175 builtin and then its argument prototype would still apply. */
14176 #ifdef __cplusplus
14177 extern "C"
14178 #endif
14179 char pow ();
14181 main ()
14183 return pow ();
14185 return 0;
14187 _ACEOF
14188 rm -f conftest.$ac_objext conftest$ac_exeext
14189 if { (ac_try="$ac_link"
14190 case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14193 esac
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_link") 2>conftest.er1
14196 ac_status=$?
14197 grep -v '^ *+' conftest.er1 >conftest.err
14198 rm -f conftest.er1
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } && {
14202 test -z "$ac_c_werror_flag" ||
14203 test ! -s conftest.err
14204 } && test -s conftest$ac_exeext &&
14205 $as_test_x conftest$ac_exeext; then
14206 ac_cv_lib_m_pow=yes
14207 else
14208 echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14211 ac_cv_lib_m_pow=no
14214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14215 conftest$ac_exeext conftest.$ac_ext
14216 LIBS=$ac_check_lib_save_LIBS
14218 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14219 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14220 if test $ac_cv_lib_m_pow = yes; then
14221 POW_LIB=-lm
14222 else
14223 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14224 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14239 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14240 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14241 if test "${ac_cv_func_utime_null+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244 rm -f conftest.data; >conftest.data
14245 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14246 if test "$cross_compiling" = yes; then
14247 ac_cv_func_utime_null=no
14248 else
14249 cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h. */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 $ac_includes_default
14256 #ifdef HAVE_UTIME_H
14257 # include <utime.h>
14258 #endif
14260 main ()
14262 struct stat s, t;
14263 return ! (stat ("conftest.data", &s) == 0
14264 && utime ("conftest.data", 0) == 0
14265 && stat ("conftest.data", &t) == 0
14266 && t.st_mtime >= s.st_mtime
14267 && t.st_mtime - s.st_mtime < 120);
14269 return 0;
14271 _ACEOF
14272 rm -f conftest$ac_exeext
14273 if { (ac_try="$ac_link"
14274 case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14277 esac
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_link") 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14283 { (case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14286 esac
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_try") 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then
14292 ac_cv_func_utime_null=yes
14293 else
14294 echo "$as_me: program exited with status $ac_status" >&5
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 ( exit $ac_status )
14299 ac_cv_func_utime_null=no
14301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14306 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14307 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14308 if test $ac_cv_func_utime_null = yes; then
14310 cat >>confdefs.h <<\_ACEOF
14311 #define HAVE_UTIME_NULL 1
14312 _ACEOF
14315 rm -f conftest.data
14318 for ac_func in vprintf
14320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326 cat >conftest.$ac_ext <<_ACEOF
14327 /* confdefs.h. */
14328 _ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14334 #define $ac_func innocuous_$ac_func
14336 /* System header to define __stub macros and hopefully few prototypes,
14337 which can conflict with char $ac_func (); below.
14338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14339 <limits.h> exists even on freestanding compilers. */
14341 #ifdef __STDC__
14342 # include <limits.h>
14343 #else
14344 # include <assert.h>
14345 #endif
14347 #undef $ac_func
14349 /* Override any GCC internal prototype to avoid an error.
14350 Use char because int might match the return type of a GCC
14351 builtin and then its argument prototype would still apply. */
14352 #ifdef __cplusplus
14353 extern "C"
14354 #endif
14355 char $ac_func ();
14356 /* The GNU C library defines this for functions which it implements
14357 to always fail with ENOSYS. Some functions are actually named
14358 something starting with __ and the normal name is an alias. */
14359 #if defined __stub_$ac_func || defined __stub___$ac_func
14360 choke me
14361 #endif
14364 main ()
14366 return $ac_func ();
14368 return 0;
14370 _ACEOF
14371 rm -f conftest.$ac_objext conftest$ac_exeext
14372 if { (ac_try="$ac_link"
14373 case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376 esac
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_link") 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest$ac_exeext &&
14388 $as_test_x conftest$ac_exeext; then
14389 eval "$as_ac_var=yes"
14390 else
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 eval "$as_ac_var=no"
14397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14398 conftest$ac_exeext conftest.$ac_ext
14400 ac_res=`eval echo '${'$as_ac_var'}'`
14401 { echo "$as_me:$LINENO: result: $ac_res" >&5
14402 echo "${ECHO_T}$ac_res" >&6; }
14403 if test `eval echo '${'$as_ac_var'}'` = yes; then
14404 cat >>confdefs.h <<_ACEOF
14405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14406 _ACEOF
14408 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14409 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14410 if test "${ac_cv_func__doprnt+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 else
14413 cat >conftest.$ac_ext <<_ACEOF
14414 /* confdefs.h. */
14415 _ACEOF
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h. */
14419 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14421 #define _doprnt innocuous__doprnt
14423 /* System header to define __stub macros and hopefully few prototypes,
14424 which can conflict with char _doprnt (); below.
14425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14426 <limits.h> exists even on freestanding compilers. */
14428 #ifdef __STDC__
14429 # include <limits.h>
14430 #else
14431 # include <assert.h>
14432 #endif
14434 #undef _doprnt
14436 /* Override any GCC internal prototype to avoid an error.
14437 Use char because int might match the return type of a GCC
14438 builtin and then its argument prototype would still apply. */
14439 #ifdef __cplusplus
14440 extern "C"
14441 #endif
14442 char _doprnt ();
14443 /* The GNU C library defines this for functions which it implements
14444 to always fail with ENOSYS. Some functions are actually named
14445 something starting with __ and the normal name is an alias. */
14446 #if defined __stub__doprnt || defined __stub____doprnt
14447 choke me
14448 #endif
14451 main ()
14453 return _doprnt ();
14455 return 0;
14457 _ACEOF
14458 rm -f conftest.$ac_objext conftest$ac_exeext
14459 if { (ac_try="$ac_link"
14460 case "(($ac_try" in
14461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462 *) ac_try_echo=$ac_try;;
14463 esac
14464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465 (eval "$ac_link") 2>conftest.er1
14466 ac_status=$?
14467 grep -v '^ *+' conftest.er1 >conftest.err
14468 rm -f conftest.er1
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } && {
14472 test -z "$ac_c_werror_flag" ||
14473 test ! -s conftest.err
14474 } && test -s conftest$ac_exeext &&
14475 $as_test_x conftest$ac_exeext; then
14476 ac_cv_func__doprnt=yes
14477 else
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14481 ac_cv_func__doprnt=no
14484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14485 conftest$ac_exeext conftest.$ac_ext
14487 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14488 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14489 if test $ac_cv_func__doprnt = yes; then
14491 cat >>confdefs.h <<\_ACEOF
14492 #define HAVE_DOPRNT 1
14493 _ACEOF
14498 done
14550 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
14552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558 cat >conftest.$ac_ext <<_ACEOF
14559 /* confdefs.h. */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14566 #define $ac_func innocuous_$ac_func
14568 /* System header to define __stub macros and hopefully few prototypes,
14569 which can conflict with char $ac_func (); below.
14570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14571 <limits.h> exists even on freestanding compilers. */
14573 #ifdef __STDC__
14574 # include <limits.h>
14575 #else
14576 # include <assert.h>
14577 #endif
14579 #undef $ac_func
14581 /* Override any GCC internal prototype to avoid an error.
14582 Use char because int might match the return type of a GCC
14583 builtin and then its argument prototype would still apply. */
14584 #ifdef __cplusplus
14585 extern "C"
14586 #endif
14587 char $ac_func ();
14588 /* The GNU C library defines this for functions which it implements
14589 to always fail with ENOSYS. Some functions are actually named
14590 something starting with __ and the normal name is an alias. */
14591 #if defined __stub_$ac_func || defined __stub___$ac_func
14592 choke me
14593 #endif
14596 main ()
14598 return $ac_func ();
14600 return 0;
14602 _ACEOF
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (ac_try="$ac_link"
14605 case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14608 esac
14609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610 (eval "$ac_link") 2>conftest.er1
14611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } && {
14617 test -z "$ac_c_werror_flag" ||
14618 test ! -s conftest.err
14619 } && test -s conftest$ac_exeext &&
14620 $as_test_x conftest$ac_exeext; then
14621 eval "$as_ac_var=yes"
14622 else
14623 echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14626 eval "$as_ac_var=no"
14629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14630 conftest$ac_exeext conftest.$ac_ext
14632 ac_res=`eval echo '${'$as_ac_var'}'`
14633 { echo "$as_me:$LINENO: result: $ac_res" >&5
14634 echo "${ECHO_T}$ac_res" >&6; }
14635 if test `eval echo '${'$as_ac_var'}'` = yes; then
14636 cat >>confdefs.h <<_ACEOF
14637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14638 _ACEOF
14641 done
14644 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14645 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14646 cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h. */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 #include <pthread.h>
14654 main ()
14656 int foo = PTHREAD_RWLOCK_INITIALIZER;
14658 return 0;
14660 _ACEOF
14661 rm -f conftest.$ac_objext conftest$ac_exeext
14662 if { (ac_try="$ac_link"
14663 case "(($ac_try" in
14664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665 *) ac_try_echo=$ac_try;;
14666 esac
14667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14668 (eval "$ac_link") 2>conftest.er1
14669 ac_status=$?
14670 grep -v '^ *+' conftest.er1 >conftest.err
14671 rm -f conftest.er1
14672 cat conftest.err >&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } && {
14675 test -z "$ac_c_werror_flag" ||
14676 test ! -s conftest.err
14677 } && test -s conftest$ac_exeext &&
14678 $as_test_x conftest$ac_exeext; then
14679 { echo "$as_me:$LINENO: result: yes" >&5
14680 echo "${ECHO_T}yes" >&6; }
14682 cat >>confdefs.h <<\_ACEOF
14683 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14684 _ACEOF
14686 else
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14690 { echo "$as_me:$LINENO: result: no" >&5
14691 echo "${ECHO_T}no" >&6; }
14695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14696 conftest$ac_exeext conftest.$ac_ext
14698 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14699 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14700 cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h. */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 #include <pthread.h>
14708 main ()
14710 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14712 return 0;
14714 _ACEOF
14715 rm -f conftest.$ac_objext conftest$ac_exeext
14716 if { (ac_try="$ac_link"
14717 case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14720 esac
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_link") 2>conftest.er1
14723 ac_status=$?
14724 grep -v '^ *+' conftest.er1 >conftest.err
14725 rm -f conftest.er1
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } && {
14729 test -z "$ac_c_werror_flag" ||
14730 test ! -s conftest.err
14731 } && test -s conftest$ac_exeext &&
14732 $as_test_x conftest$ac_exeext; then
14733 { echo "$as_me:$LINENO: result: yes" >&5
14734 echo "${ECHO_T}yes" >&6; }
14736 cat >>confdefs.h <<\_ACEOF
14737 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14738 _ACEOF
14740 else
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 { echo "$as_me:$LINENO: result: no" >&5
14745 echo "${ECHO_T}no" >&6; }
14749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14750 conftest$ac_exeext conftest.$ac_ext
14752 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14753 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14754 cat >conftest.$ac_ext <<_ACEOF
14755 /* confdefs.h. */
14756 _ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14762 main ()
14764 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14766 return 0;
14768 _ACEOF
14769 rm -f conftest.$ac_objext conftest$ac_exeext
14770 if { (ac_try="$ac_link"
14771 case "(($ac_try" in
14772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773 *) ac_try_echo=$ac_try;;
14774 esac
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_link") 2>conftest.er1
14777 ac_status=$?
14778 grep -v '^ *+' conftest.er1 >conftest.err
14779 rm -f conftest.er1
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } && {
14783 test -z "$ac_c_werror_flag" ||
14784 test ! -s conftest.err
14785 } && test -s conftest$ac_exeext &&
14786 $as_test_x conftest$ac_exeext; then
14787 { echo "$as_me:$LINENO: result: yes" >&5
14788 echo "${ECHO_T}yes" >&6; }
14790 cat >>confdefs.h <<\_ACEOF
14791 #define HAVE_GCC_ATOMICS 1
14792 _ACEOF
14794 else
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14798 { echo "$as_me:$LINENO: result: no" >&5
14799 echo "${ECHO_T}no" >&6; }
14803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14804 conftest$ac_exeext conftest.$ac_ext
14807 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14808 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14809 cat >conftest.$ac_ext <<_ACEOF
14810 /* confdefs.h. */
14811 _ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14815 static int __attribute__((pure)) test(void) {}
14817 main ()
14821 return 0;
14823 _ACEOF
14824 rm -f conftest.$ac_objext
14825 if { (ac_try="$ac_compile"
14826 case "(($ac_try" in
14827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14828 *) ac_try_echo=$ac_try;;
14829 esac
14830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14831 (eval "$ac_compile") 2>conftest.er1
14832 ac_status=$?
14833 grep -v '^ *+' conftest.er1 >conftest.err
14834 rm -f conftest.er1
14835 cat conftest.err >&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); } && {
14838 test -z "$ac_c_werror_flag" ||
14839 test ! -s conftest.err
14840 } && test -s conftest.$ac_objext; then
14841 { echo "$as_me:$LINENO: result: yes" >&5
14842 echo "${ECHO_T}yes" >&6; }
14844 cat >>confdefs.h <<_ACEOF
14845 #define HAVE_ATTRIBUTE_pure 1
14846 _ACEOF
14848 else
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 { echo "$as_me:$LINENO: result: no" >&5
14853 echo "${ECHO_T}no" >&6; }
14856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14859 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14860 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14861 cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h. */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14867 static int __attribute__((malloc)) test(void) {}
14869 main ()
14873 return 0;
14875 _ACEOF
14876 rm -f conftest.$ac_objext
14877 if { (ac_try="$ac_compile"
14878 case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14881 esac
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_compile") 2>conftest.er1
14884 ac_status=$?
14885 grep -v '^ *+' conftest.er1 >conftest.err
14886 rm -f conftest.er1
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } && {
14890 test -z "$ac_c_werror_flag" ||
14891 test ! -s conftest.err
14892 } && test -s conftest.$ac_objext; then
14893 { echo "$as_me:$LINENO: result: yes" >&5
14894 echo "${ECHO_T}yes" >&6; }
14896 cat >>confdefs.h <<_ACEOF
14897 #define HAVE_ATTRIBUTE_malloc 1
14898 _ACEOF
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 { echo "$as_me:$LINENO: result: no" >&5
14905 echo "${ECHO_T}no" >&6; }
14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
14912 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
14913 cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h. */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14919 static int __attribute__((const)) test(void) {}
14921 main ()
14925 return 0;
14927 _ACEOF
14928 rm -f conftest.$ac_objext
14929 if { (ac_try="$ac_compile"
14930 case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14933 esac
14934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_compile") 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } && {
14942 test -z "$ac_c_werror_flag" ||
14943 test ! -s conftest.err
14944 } && test -s conftest.$ac_objext; then
14945 { echo "$as_me:$LINENO: result: yes" >&5
14946 echo "${ECHO_T}yes" >&6; }
14948 cat >>confdefs.h <<_ACEOF
14949 #define HAVE_ATTRIBUTE_const 1
14950 _ACEOF
14952 else
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14956 { echo "$as_me:$LINENO: result: no" >&5
14957 echo "${ECHO_T}no" >&6; }
14960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14963 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
14964 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h. */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 static int __attribute__((unused)) test(void) {}
14973 main ()
14977 return 0;
14979 _ACEOF
14980 rm -f conftest.$ac_objext
14981 if { (ac_try="$ac_compile"
14982 case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_compile") 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } && {
14994 test -z "$ac_c_werror_flag" ||
14995 test ! -s conftest.err
14996 } && test -s conftest.$ac_objext; then
14997 { echo "$as_me:$LINENO: result: yes" >&5
14998 echo "${ECHO_T}yes" >&6; }
15000 cat >>confdefs.h <<_ACEOF
15001 #define HAVE_ATTRIBUTE_unused 1
15002 _ACEOF
15004 else
15005 echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15008 { echo "$as_me:$LINENO: result: no" >&5
15009 echo "${ECHO_T}no" >&6; }
15012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15015 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
15016 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h. */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 static int __attribute__((always_inline)) test(void) {}
15025 main ()
15029 return 0;
15031 _ACEOF
15032 rm -f conftest.$ac_objext
15033 if { (ac_try="$ac_compile"
15034 case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15037 esac
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_compile") 2>conftest.er1
15040 ac_status=$?
15041 grep -v '^ *+' conftest.er1 >conftest.err
15042 rm -f conftest.er1
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } && {
15046 test -z "$ac_c_werror_flag" ||
15047 test ! -s conftest.err
15048 } && test -s conftest.$ac_objext; then
15049 { echo "$as_me:$LINENO: result: yes" >&5
15050 echo "${ECHO_T}yes" >&6; }
15052 cat >>confdefs.h <<_ACEOF
15053 #define HAVE_ATTRIBUTE_always_inline 1
15054 _ACEOF
15056 else
15057 echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15060 { echo "$as_me:$LINENO: result: no" >&5
15061 echo "${ECHO_T}no" >&6; }
15064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
15068 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
15069 saved_CFLAGS="${CFLAGS}"
15070 CFLAGS="${CFLAGS} -ffunction-sections"
15071 cat >conftest.$ac_ext <<_ACEOF
15072 /* confdefs.h. */
15073 _ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15079 main ()
15081 int x = 1;
15083 return 0;
15085 _ACEOF
15086 rm -f conftest.$ac_objext
15087 if { (ac_try="$ac_compile"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091 esac
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_compile") 2>conftest.er1
15094 ac_status=$?
15095 grep -v '^ *+' conftest.er1 >conftest.err
15096 rm -f conftest.er1
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } && {
15100 test -z "$ac_c_werror_flag" ||
15101 test ! -s conftest.err
15102 } && test -s conftest.$ac_objext; then
15103 { echo "$as_me:$LINENO: result: yes" >&5
15104 echo "${ECHO_T}yes" >&6; }
15105 saved_LDFLAGS="${LDFLAGS}"
15106 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15107 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
15108 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
15109 cat >conftest.$ac_ext <<_ACEOF
15110 /* confdefs.h. */
15111 _ACEOF
15112 cat confdefs.h >>conftest.$ac_ext
15113 cat >>conftest.$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15117 main ()
15119 int x = 1;
15121 return 0;
15123 _ACEOF
15124 rm -f conftest.$ac_objext conftest$ac_exeext
15125 if { (ac_try="$ac_link"
15126 case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15129 esac
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_link") 2>conftest.er1
15132 ac_status=$?
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } && {
15138 test -z "$ac_c_werror_flag" ||
15139 test ! -s conftest.err
15140 } && test -s conftest$ac_exeext &&
15141 $as_test_x conftest$ac_exeext; then
15142 { echo "$as_me:$LINENO: result: yes" >&5
15143 echo "${ECHO_T}yes" >&6; }
15144 GC_CFLAGS="-ffunction-sections"
15145 GC_LDFLAGS="-Wl,--gc-sections"
15146 else
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15150 { echo "$as_me:$LINENO: result: no" >&5
15151 echo "${ECHO_T}no" >&6; }
15155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15156 conftest$ac_exeext conftest.$ac_ext
15157 LDFLAGS="${saved_LDFLAGS}"
15158 else
15159 echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15162 { echo "$as_me:$LINENO: result: no" >&5
15163 echo "${ECHO_T}no" >&6; }
15167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15168 CFLAGS="${saved_CFLAGS}"
15172 { echo "$as_me:$LINENO: checking for res_ninit" >&5
15173 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
15174 cat >conftest.$ac_ext <<_ACEOF
15175 /* confdefs.h. */
15176 _ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h. */
15180 #include <resolv.h>
15182 main ()
15184 int foo = res_ninit(NULL);
15186 return 0;
15188 _ACEOF
15189 rm -f conftest.$ac_objext conftest$ac_exeext
15190 if { (ac_try="$ac_link"
15191 case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15194 esac
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_link") 2>conftest.er1
15197 ac_status=$?
15198 grep -v '^ *+' conftest.er1 >conftest.err
15199 rm -f conftest.er1
15200 cat conftest.err >&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } && {
15203 test -z "$ac_c_werror_flag" ||
15204 test ! -s conftest.err
15205 } && test -s conftest$ac_exeext &&
15206 $as_test_x conftest$ac_exeext; then
15207 { echo "$as_me:$LINENO: result: yes" >&5
15208 echo "${ECHO_T}yes" >&6; }
15210 cat >>confdefs.h <<\_ACEOF
15211 #define HAVE_RES_NINIT 1
15212 _ACEOF
15214 else
15215 echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15218 { echo "$as_me:$LINENO: result: no" >&5
15219 echo "${ECHO_T}no" >&6; }
15223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15224 conftest$ac_exeext conftest.$ac_ext
15226 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
15227 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
15228 cat >conftest.$ac_ext <<_ACEOF
15229 /* confdefs.h. */
15230 _ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15234 #include <dlfcn.h>
15236 main ()
15238 int foo = RTLD_NOLOAD;
15240 return 0;
15242 _ACEOF
15243 rm -f conftest.$ac_objext conftest$ac_exeext
15244 if { (ac_try="$ac_link"
15245 case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15248 esac
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_link") 2>conftest.er1
15251 ac_status=$?
15252 grep -v '^ *+' conftest.er1 >conftest.err
15253 rm -f conftest.er1
15254 cat conftest.err >&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } && {
15257 test -z "$ac_c_werror_flag" ||
15258 test ! -s conftest.err
15259 } && test -s conftest$ac_exeext &&
15260 $as_test_x conftest$ac_exeext; then
15261 { echo "$as_me:$LINENO: result: yes" >&5
15262 echo "${ECHO_T}yes" >&6; }
15264 cat >>confdefs.h <<\_ACEOF
15265 #define HAVE_RTLD_NOLOAD 1
15266 _ACEOF
15268 else
15269 echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15272 { echo "$as_me:$LINENO: result: no" >&5
15273 echo "${ECHO_T}no" >&6; }
15277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15278 conftest$ac_exeext conftest.$ac_ext
15280 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
15281 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
15282 cat >conftest.$ac_ext <<_ACEOF
15283 /* confdefs.h. */
15284 _ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15288 #include <netinet/in.h>
15290 main ()
15292 int foo = IP_MTU_DISCOVER;
15294 return 0;
15296 _ACEOF
15297 rm -f conftest.$ac_objext conftest$ac_exeext
15298 if { (ac_try="$ac_link"
15299 case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302 esac
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_link") 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } && {
15311 test -z "$ac_c_werror_flag" ||
15312 test ! -s conftest.err
15313 } && test -s conftest$ac_exeext &&
15314 $as_test_x conftest$ac_exeext; then
15315 { echo "$as_me:$LINENO: result: yes" >&5
15316 echo "${ECHO_T}yes" >&6; }
15318 cat >>confdefs.h <<\_ACEOF
15319 #define HAVE_IP_MTU_DISCOVER 1
15320 _ACEOF
15322 else
15323 echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15326 { echo "$as_me:$LINENO: result: no" >&5
15327 echo "${ECHO_T}no" >&6; }
15331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15332 conftest$ac_exeext conftest.$ac_ext
15334 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15335 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15336 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15337 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15341 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15342 else
15343 # Is the header compilable?
15344 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
15345 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
15346 cat >conftest.$ac_ext <<_ACEOF
15347 /* confdefs.h. */
15348 _ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h. */
15352 $ac_includes_default
15353 #include <libkern/OSAtomic.h>
15354 _ACEOF
15355 rm -f conftest.$ac_objext
15356 if { (ac_try="$ac_compile"
15357 case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15360 esac
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_compile") 2>conftest.er1
15363 ac_status=$?
15364 grep -v '^ *+' conftest.er1 >conftest.err
15365 rm -f conftest.er1
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } && {
15369 test -z "$ac_c_werror_flag" ||
15370 test ! -s conftest.err
15371 } && test -s conftest.$ac_objext; then
15372 ac_header_compiler=yes
15373 else
15374 echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 ac_header_compiler=no
15380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15382 echo "${ECHO_T}$ac_header_compiler" >&6; }
15384 # Is the header present?
15385 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
15386 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
15387 cat >conftest.$ac_ext <<_ACEOF
15388 /* confdefs.h. */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393 #include <libkern/OSAtomic.h>
15394 _ACEOF
15395 if { (ac_try="$ac_cpp conftest.$ac_ext"
15396 case "(($ac_try" in
15397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398 *) ac_try_echo=$ac_try;;
15399 esac
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15402 ac_status=$?
15403 grep -v '^ *+' conftest.er1 >conftest.err
15404 rm -f conftest.er1
15405 cat conftest.err >&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } >/dev/null && {
15408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15409 test ! -s conftest.err
15410 }; then
15411 ac_header_preproc=yes
15412 else
15413 echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15416 ac_header_preproc=no
15419 rm -f conftest.err conftest.$ac_ext
15420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15421 echo "${ECHO_T}$ac_header_preproc" >&6; }
15423 # So? What about this header?
15424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15425 yes:no: )
15426 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
15427 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
15429 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
15430 ac_header_preproc=yes
15432 no:yes:* )
15433 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
15434 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
15435 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
15436 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
15438 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
15439 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
15440 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
15442 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
15444 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
15447 esac
15448 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15449 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15450 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15455 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15456 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15459 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15461 cat >>confdefs.h <<_ACEOF
15462 #define HAVE_OSX_ATOMICS 1
15463 _ACEOF
15469 { echo "$as_me:$LINENO: checking for int" >&5
15470 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
15471 if test "${ac_cv_type_int+set}" = set; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 else
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 $ac_includes_default
15481 typedef int ac__type_new_;
15483 main ()
15485 if ((ac__type_new_ *) 0)
15486 return 0;
15487 if (sizeof (ac__type_new_))
15488 return 0;
15490 return 0;
15492 _ACEOF
15493 rm -f conftest.$ac_objext
15494 if { (ac_try="$ac_compile"
15495 case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_compile") 2>conftest.er1
15501 ac_status=$?
15502 grep -v '^ *+' conftest.er1 >conftest.err
15503 rm -f conftest.er1
15504 cat conftest.err >&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } && {
15507 test -z "$ac_c_werror_flag" ||
15508 test ! -s conftest.err
15509 } && test -s conftest.$ac_objext; then
15510 ac_cv_type_int=yes
15511 else
15512 echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15515 ac_cv_type_int=no
15518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15520 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15521 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15523 # The cast to long int works around a bug in the HP C Compiler
15524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15526 # This bug is HP SR number 8606223364.
15527 { echo "$as_me:$LINENO: checking size of int" >&5
15528 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15529 if test "${ac_cv_sizeof_int+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532 if test "$cross_compiling" = yes; then
15533 # Depending upon the size, compute the lo and hi bounds.
15534 cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h. */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15540 $ac_includes_default
15541 typedef int ac__type_sizeof_;
15543 main ()
15545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15546 test_array [0] = 0
15549 return 0;
15551 _ACEOF
15552 rm -f conftest.$ac_objext
15553 if { (ac_try="$ac_compile"
15554 case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15557 esac
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559 (eval "$ac_compile") 2>conftest.er1
15560 ac_status=$?
15561 grep -v '^ *+' conftest.er1 >conftest.err
15562 rm -f conftest.er1
15563 cat conftest.err >&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } && {
15566 test -z "$ac_c_werror_flag" ||
15567 test ! -s conftest.err
15568 } && test -s conftest.$ac_objext; then
15569 ac_lo=0 ac_mid=0
15570 while :; do
15571 cat >conftest.$ac_ext <<_ACEOF
15572 /* confdefs.h. */
15573 _ACEOF
15574 cat confdefs.h >>conftest.$ac_ext
15575 cat >>conftest.$ac_ext <<_ACEOF
15576 /* end confdefs.h. */
15577 $ac_includes_default
15578 typedef int ac__type_sizeof_;
15580 main ()
15582 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15583 test_array [0] = 0
15586 return 0;
15588 _ACEOF
15589 rm -f conftest.$ac_objext
15590 if { (ac_try="$ac_compile"
15591 case "(($ac_try" in
15592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15594 esac
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596 (eval "$ac_compile") 2>conftest.er1
15597 ac_status=$?
15598 grep -v '^ *+' conftest.er1 >conftest.err
15599 rm -f conftest.er1
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } && {
15603 test -z "$ac_c_werror_flag" ||
15604 test ! -s conftest.err
15605 } && test -s conftest.$ac_objext; then
15606 ac_hi=$ac_mid; break
15607 else
15608 echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15611 ac_lo=`expr $ac_mid + 1`
15612 if test $ac_lo -le $ac_mid; then
15613 ac_lo= ac_hi=
15614 break
15616 ac_mid=`expr 2 '*' $ac_mid + 1`
15619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15620 done
15621 else
15622 echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15625 cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h. */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 $ac_includes_default
15632 typedef int ac__type_sizeof_;
15634 main ()
15636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15637 test_array [0] = 0
15640 return 0;
15642 _ACEOF
15643 rm -f conftest.$ac_objext
15644 if { (ac_try="$ac_compile"
15645 case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15648 esac
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_compile") 2>conftest.er1
15651 ac_status=$?
15652 grep -v '^ *+' conftest.er1 >conftest.err
15653 rm -f conftest.er1
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } && {
15657 test -z "$ac_c_werror_flag" ||
15658 test ! -s conftest.err
15659 } && test -s conftest.$ac_objext; then
15660 ac_hi=-1 ac_mid=-1
15661 while :; do
15662 cat >conftest.$ac_ext <<_ACEOF
15663 /* confdefs.h. */
15664 _ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h. */
15668 $ac_includes_default
15669 typedef int ac__type_sizeof_;
15671 main ()
15673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15674 test_array [0] = 0
15677 return 0;
15679 _ACEOF
15680 rm -f conftest.$ac_objext
15681 if { (ac_try="$ac_compile"
15682 case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15685 esac
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_compile") 2>conftest.er1
15688 ac_status=$?
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } && {
15694 test -z "$ac_c_werror_flag" ||
15695 test ! -s conftest.err
15696 } && test -s conftest.$ac_objext; then
15697 ac_lo=$ac_mid; break
15698 else
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15702 ac_hi=`expr '(' $ac_mid ')' - 1`
15703 if test $ac_mid -le $ac_hi; then
15704 ac_lo= ac_hi=
15705 break
15707 ac_mid=`expr 2 '*' $ac_mid`
15710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15711 done
15712 else
15713 echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15716 ac_lo= ac_hi=
15719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723 # Binary search between lo and hi bounds.
15724 while test "x$ac_lo" != "x$ac_hi"; do
15725 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15726 cat >conftest.$ac_ext <<_ACEOF
15727 /* confdefs.h. */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15732 $ac_includes_default
15733 typedef int ac__type_sizeof_;
15735 main ()
15737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15738 test_array [0] = 0
15741 return 0;
15743 _ACEOF
15744 rm -f conftest.$ac_objext
15745 if { (ac_try="$ac_compile"
15746 case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15749 esac
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_compile") 2>conftest.er1
15752 ac_status=$?
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } && {
15758 test -z "$ac_c_werror_flag" ||
15759 test ! -s conftest.err
15760 } && test -s conftest.$ac_objext; then
15761 ac_hi=$ac_mid
15762 else
15763 echo "$as_me: failed program was:" >&5
15764 sed 's/^/| /' conftest.$ac_ext >&5
15766 ac_lo=`expr '(' $ac_mid ')' + 1`
15769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 done
15771 case $ac_lo in
15772 ?*) ac_cv_sizeof_int=$ac_lo;;
15773 '') if test "$ac_cv_type_int" = yes; then
15774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15775 See \`config.log' for more details." >&5
15776 echo "$as_me: error: cannot compute sizeof (int)
15777 See \`config.log' for more details." >&2;}
15778 { (exit 77); exit 77; }; }
15779 else
15780 ac_cv_sizeof_int=0
15781 fi ;;
15782 esac
15783 else
15784 cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h. */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 $ac_includes_default
15791 typedef int ac__type_sizeof_;
15792 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15793 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15794 #include <stdio.h>
15795 #include <stdlib.h>
15797 main ()
15800 FILE *f = fopen ("conftest.val", "w");
15801 if (! f)
15802 return 1;
15803 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15805 long int i = longval ();
15806 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15807 return 1;
15808 fprintf (f, "%ld\n", i);
15810 else
15812 unsigned long int i = ulongval ();
15813 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15814 return 1;
15815 fprintf (f, "%lu\n", i);
15817 return ferror (f) || fclose (f) != 0;
15820 return 0;
15822 _ACEOF
15823 rm -f conftest$ac_exeext
15824 if { (ac_try="$ac_link"
15825 case "(($ac_try" in
15826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15828 esac
15829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830 (eval "$ac_link") 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15834 { (case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_try") 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 ac_cv_sizeof_int=`cat conftest.val`
15844 else
15845 echo "$as_me: program exited with status $ac_status" >&5
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15849 ( exit $ac_status )
15850 if test "$ac_cv_type_int" = yes; then
15851 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15852 See \`config.log' for more details." >&5
15853 echo "$as_me: error: cannot compute sizeof (int)
15854 See \`config.log' for more details." >&2;}
15855 { (exit 77); exit 77; }; }
15856 else
15857 ac_cv_sizeof_int=0
15860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15862 rm -f conftest.val
15864 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15865 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15869 cat >>confdefs.h <<_ACEOF
15870 #define SIZEOF_INT $ac_cv_sizeof_int
15871 _ACEOF
15875 # do the package library checks now
15878 if test "${USE_ALSA}" != "no"; then
15879 pbxlibdir=""
15880 if test "x${ALSA_DIR}" != "x"; then
15881 if test -d ${ALSA_DIR}/lib; then
15882 pbxlibdir="-L${ALSA_DIR}/lib"
15883 else
15884 pbxlibdir="-L${ALSA_DIR}"
15887 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
15888 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
15889 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892 ac_check_lib_save_LIBS=$LIBS
15893 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
15894 cat >conftest.$ac_ext <<_ACEOF
15895 /* confdefs.h. */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15901 /* Override any GCC internal prototype to avoid an error.
15902 Use char because int might match the return type of a GCC
15903 builtin and then its argument prototype would still apply. */
15904 #ifdef __cplusplus
15905 extern "C"
15906 #endif
15907 char snd_spcm_init ();
15909 main ()
15911 return snd_spcm_init ();
15913 return 0;
15915 _ACEOF
15916 rm -f conftest.$ac_objext conftest$ac_exeext
15917 if { (ac_try="$ac_link"
15918 case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15921 esac
15922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923 (eval "$ac_link") 2>conftest.er1
15924 ac_status=$?
15925 grep -v '^ *+' conftest.er1 >conftest.err
15926 rm -f conftest.er1
15927 cat conftest.err >&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } && {
15930 test -z "$ac_c_werror_flag" ||
15931 test ! -s conftest.err
15932 } && test -s conftest$ac_exeext &&
15933 $as_test_x conftest$ac_exeext; then
15934 ac_cv_lib_asound_snd_spcm_init=yes
15935 else
15936 echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15939 ac_cv_lib_asound_snd_spcm_init=no
15942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15943 conftest$ac_exeext conftest.$ac_ext
15944 LIBS=$ac_check_lib_save_LIBS
15946 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
15947 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15948 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15949 AST_ALSA_FOUND=yes
15950 else
15951 AST_ALSA_FOUND=no
15955 if test "${AST_ALSA_FOUND}" = "yes"; then
15956 ALSA_LIB="-lasound -lm -ldl"
15957 ALSA_HEADER_FOUND="1"
15958 if test "x${ALSA_DIR}" != "x"; then
15959 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15960 ALSA_INCLUDE="-I${ALSA_DIR}/include"
15961 saved_cppflags="${CPPFLAGS}"
15962 CPPFLAGS="${CPPFLAGS} -I${ALSA_DIR}/include"
15963 if test "xalsa/asoundlib.h" != "x" ; then
15964 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
15965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15967 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 ac_res=`eval echo '${'$as_ac_Header'}'`
15972 { echo "$as_me:$LINENO: result: $ac_res" >&5
15973 echo "${ECHO_T}$ac_res" >&6; }
15974 else
15975 # Is the header compilable?
15976 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
15977 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
15978 cat >conftest.$ac_ext <<_ACEOF
15979 /* confdefs.h. */
15980 _ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15984 $ac_includes_default
15985 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15986 _ACEOF
15987 rm -f conftest.$ac_objext
15988 if { (ac_try="$ac_compile"
15989 case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15992 esac
15993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15994 (eval "$ac_compile") 2>conftest.er1
15995 ac_status=$?
15996 grep -v '^ *+' conftest.er1 >conftest.err
15997 rm -f conftest.er1
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } && {
16001 test -z "$ac_c_werror_flag" ||
16002 test ! -s conftest.err
16003 } && test -s conftest.$ac_objext; then
16004 ac_header_compiler=yes
16005 else
16006 echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.$ac_ext >&5
16009 ac_header_compiler=no
16012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16014 echo "${ECHO_T}$ac_header_compiler" >&6; }
16016 # Is the header present?
16017 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16018 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16019 cat >conftest.$ac_ext <<_ACEOF
16020 /* confdefs.h. */
16021 _ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h. */
16025 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16026 _ACEOF
16027 if { (ac_try="$ac_cpp conftest.$ac_ext"
16028 case "(($ac_try" in
16029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030 *) ac_try_echo=$ac_try;;
16031 esac
16032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16034 ac_status=$?
16035 grep -v '^ *+' conftest.er1 >conftest.err
16036 rm -f conftest.er1
16037 cat conftest.err >&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } >/dev/null && {
16040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16041 test ! -s conftest.err
16042 }; then
16043 ac_header_preproc=yes
16044 else
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16048 ac_header_preproc=no
16051 rm -f conftest.err conftest.$ac_ext
16052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16053 echo "${ECHO_T}$ac_header_preproc" >&6; }
16055 # So? What about this header?
16056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16057 yes:no: )
16058 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16059 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16061 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16062 ac_header_preproc=yes
16064 no:yes:* )
16065 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16066 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16068 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16069 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16070 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16071 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16072 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16073 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16074 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16075 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16076 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16079 esac
16080 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16081 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16084 else
16085 eval "$as_ac_Header=\$ac_header_preproc"
16087 ac_res=`eval echo '${'$as_ac_Header'}'`
16088 { echo "$as_me:$LINENO: result: $ac_res" >&5
16089 echo "${ECHO_T}$ac_res" >&6; }
16092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16093 ALSA_HEADER_FOUND=1
16094 else
16095 ALSA_HEADER_FOUND=0
16100 CPPFLAGS="${saved_cppflags}"
16101 else
16102 if test "xalsa/asoundlib.h" != "x" ; then
16103 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16104 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16105 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16106 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16110 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16111 else
16112 # Is the header compilable?
16113 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16114 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16115 cat >conftest.$ac_ext <<_ACEOF
16116 /* confdefs.h. */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121 $ac_includes_default
16122 #include <alsa/asoundlib.h>
16123 _ACEOF
16124 rm -f conftest.$ac_objext
16125 if { (ac_try="$ac_compile"
16126 case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16129 esac
16130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_compile") 2>conftest.er1
16132 ac_status=$?
16133 grep -v '^ *+' conftest.er1 >conftest.err
16134 rm -f conftest.er1
16135 cat conftest.err >&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } && {
16138 test -z "$ac_c_werror_flag" ||
16139 test ! -s conftest.err
16140 } && test -s conftest.$ac_objext; then
16141 ac_header_compiler=yes
16142 else
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16146 ac_header_compiler=no
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16151 echo "${ECHO_T}$ac_header_compiler" >&6; }
16153 # Is the header present?
16154 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16155 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16156 cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h. */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16162 #include <alsa/asoundlib.h>
16163 _ACEOF
16164 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
16177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16178 test ! -s conftest.err
16179 }; then
16180 ac_header_preproc=yes
16181 else
16182 echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 ac_header_preproc=no
16188 rm -f conftest.err conftest.$ac_ext
16189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16190 echo "${ECHO_T}$ac_header_preproc" >&6; }
16192 # So? What about this header?
16193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16194 yes:no: )
16195 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16196 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16197 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16198 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16199 ac_header_preproc=yes
16201 no:yes:* )
16202 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16203 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16205 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16207 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16209 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16211 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16212 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16213 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16216 esac
16217 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16218 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16219 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 else
16222 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
16224 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16225 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16228 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16229 ALSA_HEADER_FOUND=1
16230 else
16231 ALSA_HEADER_FOUND=0
16237 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16238 if test -n "${ALSA_MANDATORY}" ;
16239 then
16240 { echo "$as_me:$LINENO: ***" >&5
16241 echo "$as_me: ***" >&6;}
16242 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16243 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16244 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16245 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16246 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16247 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16248 exit 1
16250 ALSA_LIB=""
16251 ALSA_INCLUDE=""
16252 PBX_ALSA=0
16253 else
16254 PBX_ALSA=1
16256 cat >>confdefs.h <<_ACEOF
16257 #define HAVE_ALSA 1
16258 _ACEOF
16261 elif test -n "${ALSA_MANDATORY}";
16262 then
16263 { echo "$as_me:$LINENO: ***" >&5
16264 echo "$as_me: ***" >&6;}
16265 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16266 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16267 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16268 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16269 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16270 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16271 exit 1
16277 if test "${USE_CURSES}" != "no"; then
16278 pbxlibdir=""
16279 if test "x${CURSES_DIR}" != "x"; then
16280 if test -d ${CURSES_DIR}/lib; then
16281 pbxlibdir="-L${CURSES_DIR}/lib"
16282 else
16283 pbxlibdir="-L${CURSES_DIR}"
16286 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16287 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16288 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16290 else
16291 ac_check_lib_save_LIBS=$LIBS
16292 LIBS="-lcurses ${pbxlibdir} $LIBS"
16293 cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h. */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16300 /* Override any GCC internal prototype to avoid an error.
16301 Use char because int might match the return type of a GCC
16302 builtin and then its argument prototype would still apply. */
16303 #ifdef __cplusplus
16304 extern "C"
16305 #endif
16306 char initscr ();
16308 main ()
16310 return initscr ();
16312 return 0;
16314 _ACEOF
16315 rm -f conftest.$ac_objext conftest$ac_exeext
16316 if { (ac_try="$ac_link"
16317 case "(($ac_try" in
16318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16320 esac
16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322 (eval "$ac_link") 2>conftest.er1
16323 ac_status=$?
16324 grep -v '^ *+' conftest.er1 >conftest.err
16325 rm -f conftest.er1
16326 cat conftest.err >&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } && {
16329 test -z "$ac_c_werror_flag" ||
16330 test ! -s conftest.err
16331 } && test -s conftest$ac_exeext &&
16332 $as_test_x conftest$ac_exeext; then
16333 ac_cv_lib_curses_initscr=yes
16334 else
16335 echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16338 ac_cv_lib_curses_initscr=no
16341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16342 conftest$ac_exeext conftest.$ac_ext
16343 LIBS=$ac_check_lib_save_LIBS
16345 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16346 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16347 if test $ac_cv_lib_curses_initscr = yes; then
16348 AST_CURSES_FOUND=yes
16349 else
16350 AST_CURSES_FOUND=no
16354 if test "${AST_CURSES_FOUND}" = "yes"; then
16355 CURSES_LIB="-lcurses "
16356 CURSES_HEADER_FOUND="1"
16357 if test "x${CURSES_DIR}" != "x"; then
16358 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16359 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16360 saved_cppflags="${CPPFLAGS}"
16361 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16362 if test "xcurses.h" != "x" ; then
16363 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
16364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16365 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16366 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16368 echo $ECHO_N "(cached) $ECHO_C" >&6
16370 ac_res=`eval echo '${'$as_ac_Header'}'`
16371 { echo "$as_me:$LINENO: result: $ac_res" >&5
16372 echo "${ECHO_T}$ac_res" >&6; }
16373 else
16374 # Is the header compilable?
16375 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16376 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16377 cat >conftest.$ac_ext <<_ACEOF
16378 /* confdefs.h. */
16379 _ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16383 $ac_includes_default
16384 #include <${CURSES_DIR}/include/curses.h>
16385 _ACEOF
16386 rm -f conftest.$ac_objext
16387 if { (ac_try="$ac_compile"
16388 case "(($ac_try" in
16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16391 esac
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393 (eval "$ac_compile") 2>conftest.er1
16394 ac_status=$?
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } && {
16400 test -z "$ac_c_werror_flag" ||
16401 test ! -s conftest.err
16402 } && test -s conftest.$ac_objext; then
16403 ac_header_compiler=yes
16404 else
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16408 ac_header_compiler=no
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16413 echo "${ECHO_T}$ac_header_compiler" >&6; }
16415 # Is the header present?
16416 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16417 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16418 cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h. */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 #include <${CURSES_DIR}/include/curses.h>
16425 _ACEOF
16426 if { (ac_try="$ac_cpp conftest.$ac_ext"
16427 case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16430 esac
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16433 ac_status=$?
16434 grep -v '^ *+' conftest.er1 >conftest.err
16435 rm -f conftest.er1
16436 cat conftest.err >&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } >/dev/null && {
16439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16440 test ! -s conftest.err
16441 }; then
16442 ac_header_preproc=yes
16443 else
16444 echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16447 ac_header_preproc=no
16450 rm -f conftest.err conftest.$ac_ext
16451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16452 echo "${ECHO_T}$ac_header_preproc" >&6; }
16454 # So? What about this header?
16455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16456 yes:no: )
16457 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16458 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16460 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16461 ac_header_preproc=yes
16463 no:yes:* )
16464 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16465 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16467 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16469 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16470 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16471 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16472 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16473 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16474 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16475 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16478 esac
16479 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16480 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 else
16484 eval "$as_ac_Header=\$ac_header_preproc"
16486 ac_res=`eval echo '${'$as_ac_Header'}'`
16487 { echo "$as_me:$LINENO: result: $ac_res" >&5
16488 echo "${ECHO_T}$ac_res" >&6; }
16491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16492 CURSES_HEADER_FOUND=1
16493 else
16494 CURSES_HEADER_FOUND=0
16499 CPPFLAGS="${saved_cppflags}"
16500 else
16501 if test "xcurses.h" != "x" ; then
16502 if test "${ac_cv_header_curses_h+set}" = set; then
16503 { echo "$as_me:$LINENO: checking for curses.h" >&5
16504 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16505 if test "${ac_cv_header_curses_h+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16508 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16509 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16510 else
16511 # Is the header compilable?
16512 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16513 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16514 cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h. */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 $ac_includes_default
16521 #include <curses.h>
16522 _ACEOF
16523 rm -f conftest.$ac_objext
16524 if { (ac_try="$ac_compile"
16525 case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16528 esac
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_compile") 2>conftest.er1
16531 ac_status=$?
16532 grep -v '^ *+' conftest.er1 >conftest.err
16533 rm -f conftest.er1
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } && {
16537 test -z "$ac_c_werror_flag" ||
16538 test ! -s conftest.err
16539 } && test -s conftest.$ac_objext; then
16540 ac_header_compiler=yes
16541 else
16542 echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16545 ac_header_compiler=no
16548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16550 echo "${ECHO_T}$ac_header_compiler" >&6; }
16552 # Is the header present?
16553 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16554 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16555 cat >conftest.$ac_ext <<_ACEOF
16556 /* confdefs.h. */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561 #include <curses.h>
16562 _ACEOF
16563 if { (ac_try="$ac_cpp conftest.$ac_ext"
16564 case "(($ac_try" in
16565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566 *) ac_try_echo=$ac_try;;
16567 esac
16568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16570 ac_status=$?
16571 grep -v '^ *+' conftest.er1 >conftest.err
16572 rm -f conftest.er1
16573 cat conftest.err >&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); } >/dev/null && {
16576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16577 test ! -s conftest.err
16578 }; then
16579 ac_header_preproc=yes
16580 else
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 ac_header_preproc=no
16587 rm -f conftest.err conftest.$ac_ext
16588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16589 echo "${ECHO_T}$ac_header_preproc" >&6; }
16591 # So? What about this header?
16592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16593 yes:no: )
16594 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16595 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16597 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16598 ac_header_preproc=yes
16600 no:yes:* )
16601 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16602 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16603 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16604 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16605 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16606 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16607 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16608 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16609 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16610 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16612 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16615 esac
16616 { echo "$as_me:$LINENO: checking for curses.h" >&5
16617 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16618 if test "${ac_cv_header_curses_h+set}" = set; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16620 else
16621 ac_cv_header_curses_h=$ac_header_preproc
16623 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16624 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16627 if test $ac_cv_header_curses_h = yes; then
16628 CURSES_HEADER_FOUND=1
16629 else
16630 CURSES_HEADER_FOUND=0
16636 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16637 if test -n "${CURSES_MANDATORY}" ;
16638 then
16639 { echo "$as_me:$LINENO: ***" >&5
16640 echo "$as_me: ***" >&6;}
16641 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16642 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16643 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16644 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16645 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16646 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16647 exit 1
16649 CURSES_LIB=""
16650 CURSES_INCLUDE=""
16651 PBX_CURSES=0
16652 else
16653 PBX_CURSES=1
16655 cat >>confdefs.h <<_ACEOF
16656 #define HAVE_CURSES 1
16657 _ACEOF
16660 elif test -n "${CURSES_MANDATORY}";
16661 then
16662 { echo "$as_me:$LINENO: ***" >&5
16663 echo "$as_me: ***" >&6;}
16664 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16665 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16666 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16667 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16668 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16669 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16670 exit 1
16675 GSM_INTERNAL="yes"
16677 GSM_SYSTEM="yes"
16678 if test "${USE_GSM}" != "no"; then
16679 if test "${GSM_DIR}" = "internal"; then
16680 GSM_SYSTEM="no"
16681 elif test "${GSM_DIR}" != ""; then
16682 GSM_INTERNAL="no"
16684 if test "${GSM_SYSTEM}" = "yes"; then
16685 gsmlibdir=""
16686 if test "x${GSM_DIR}" != "x"; then
16687 if test -d ${GSM_DIR}/lib; then
16688 gsmlibdir="-L${GSM_DIR}/lib"
16689 else
16690 gsmlibdir="-L${GSM_DIR}"
16693 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
16694 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
16695 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 else
16698 ac_check_lib_save_LIBS=$LIBS
16699 LIBS="-lgsm ${gsmlibdir} $LIBS"
16700 cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h. */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16707 /* Override any GCC internal prototype to avoid an error.
16708 Use char because int might match the return type of a GCC
16709 builtin and then its argument prototype would still apply. */
16710 #ifdef __cplusplus
16711 extern "C"
16712 #endif
16713 char gsm_create ();
16715 main ()
16717 return gsm_create ();
16719 return 0;
16721 _ACEOF
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (ac_try="$ac_link"
16724 case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16727 esac
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_link") 2>conftest.er1
16730 ac_status=$?
16731 grep -v '^ *+' conftest.er1 >conftest.err
16732 rm -f conftest.er1
16733 cat conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } && {
16736 test -z "$ac_c_werror_flag" ||
16737 test ! -s conftest.err
16738 } && test -s conftest$ac_exeext &&
16739 $as_test_x conftest$ac_exeext; then
16740 ac_cv_lib_gsm_gsm_create=yes
16741 else
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 ac_cv_lib_gsm_gsm_create=no
16748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16749 conftest$ac_exeext conftest.$ac_ext
16750 LIBS=$ac_check_lib_save_LIBS
16752 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
16753 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16754 if test $ac_cv_lib_gsm_gsm_create = yes; then
16756 cat >>confdefs.h <<_ACEOF
16757 #define HAVE_GSM 1
16758 _ACEOF
16762 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16763 if test "x${GSM_DIR}" != "x" ; then
16764 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
16765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16766 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
16767 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
16768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16771 ac_res=`eval echo '${'$as_ac_Header'}'`
16772 { echo "$as_me:$LINENO: result: $ac_res" >&5
16773 echo "${ECHO_T}$ac_res" >&6; }
16774 else
16775 # Is the header compilable?
16776 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
16777 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
16778 cat >conftest.$ac_ext <<_ACEOF
16779 /* confdefs.h. */
16780 _ACEOF
16781 cat confdefs.h >>conftest.$ac_ext
16782 cat >>conftest.$ac_ext <<_ACEOF
16783 /* end confdefs.h. */
16784 $ac_includes_default
16785 #include <${GSM_DIR}/include/gsm.h>
16786 _ACEOF
16787 rm -f conftest.$ac_objext
16788 if { (ac_try="$ac_compile"
16789 case "(($ac_try" in
16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791 *) ac_try_echo=$ac_try;;
16792 esac
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794 (eval "$ac_compile") 2>conftest.er1
16795 ac_status=$?
16796 grep -v '^ *+' conftest.er1 >conftest.err
16797 rm -f conftest.er1
16798 cat conftest.err >&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } && {
16801 test -z "$ac_c_werror_flag" ||
16802 test ! -s conftest.err
16803 } && test -s conftest.$ac_objext; then
16804 ac_header_compiler=yes
16805 else
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 ac_header_compiler=no
16812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16814 echo "${ECHO_T}$ac_header_compiler" >&6; }
16816 # Is the header present?
16817 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
16818 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
16819 cat >conftest.$ac_ext <<_ACEOF
16820 /* confdefs.h. */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 #include <${GSM_DIR}/include/gsm.h>
16826 _ACEOF
16827 if { (ac_try="$ac_cpp conftest.$ac_ext"
16828 case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16834 ac_status=$?
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } >/dev/null && {
16840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16841 test ! -s conftest.err
16842 }; then
16843 ac_header_preproc=yes
16844 else
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 ac_header_preproc=no
16851 rm -f conftest.err conftest.$ac_ext
16852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16853 echo "${ECHO_T}$ac_header_preproc" >&6; }
16855 # So? What about this header?
16856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16857 yes:no: )
16858 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16859 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16860 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
16861 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
16862 ac_header_preproc=yes
16864 no:yes:* )
16865 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
16866 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
16867 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
16868 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
16869 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
16870 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
16871 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
16872 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16873 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
16874 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
16875 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
16876 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
16879 esac
16880 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
16881 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
16882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16883 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 else
16885 eval "$as_ac_Header=\$ac_header_preproc"
16887 ac_res=`eval echo '${'$as_ac_Header'}'`
16888 { echo "$as_me:$LINENO: result: $ac_res" >&5
16889 echo "${ECHO_T}$ac_res" >&6; }
16892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16893 GSM_HEADER_FOUND=1
16894 else
16895 GSM_HEADER_FOUND=0
16899 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
16900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16901 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
16902 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
16903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 ac_res=`eval echo '${'$as_ac_Header'}'`
16907 { echo "$as_me:$LINENO: result: $ac_res" >&5
16908 echo "${ECHO_T}$ac_res" >&6; }
16909 else
16910 # Is the header compilable?
16911 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
16912 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
16913 cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h. */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 $ac_includes_default
16920 #include <${GSM_DIR}/include/gsm/gsm.h>
16921 _ACEOF
16922 rm -f conftest.$ac_objext
16923 if { (ac_try="$ac_compile"
16924 case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16927 esac
16928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_compile") 2>conftest.er1
16930 ac_status=$?
16931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } && {
16936 test -z "$ac_c_werror_flag" ||
16937 test ! -s conftest.err
16938 } && test -s conftest.$ac_objext; then
16939 ac_header_compiler=yes
16940 else
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 ac_header_compiler=no
16947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16949 echo "${ECHO_T}$ac_header_compiler" >&6; }
16951 # Is the header present?
16952 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
16953 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
16954 cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h. */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 #include <${GSM_DIR}/include/gsm/gsm.h>
16961 _ACEOF
16962 if { (ac_try="$ac_cpp conftest.$ac_ext"
16963 case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16966 esac
16967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16969 ac_status=$?
16970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } >/dev/null && {
16975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16976 test ! -s conftest.err
16977 }; then
16978 ac_header_preproc=yes
16979 else
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ac_header_preproc=no
16986 rm -f conftest.err conftest.$ac_ext
16987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16988 echo "${ECHO_T}$ac_header_preproc" >&6; }
16990 # So? What about this header?
16991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16992 yes:no: )
16993 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16994 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16995 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
16996 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
16997 ac_header_preproc=yes
16999 no:yes:* )
17000 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17001 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17002 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17003 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17004 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17005 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17006 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17007 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17008 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17009 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17010 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17011 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17014 esac
17015 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17016 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 else
17020 eval "$as_ac_Header=\$ac_header_preproc"
17022 ac_res=`eval echo '${'$as_ac_Header'}'`
17023 { echo "$as_me:$LINENO: result: $ac_res" >&5
17024 echo "${ECHO_T}$ac_res" >&6; }
17027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17028 GSM_GSM_HEADER_FOUND=1
17029 else
17030 GSM_GSM_HEADER_FOUND=0
17034 else
17035 if test "${ac_cv_header_gsm_h+set}" = set; then
17036 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17037 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17038 if test "${ac_cv_header_gsm_h+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17042 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17043 else
17044 # Is the header compilable?
17045 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17046 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17047 cat >conftest.$ac_ext <<_ACEOF
17048 /* confdefs.h. */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17053 $ac_includes_default
17054 #include <gsm.h>
17055 _ACEOF
17056 rm -f conftest.$ac_objext
17057 if { (ac_try="$ac_compile"
17058 case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061 esac
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_compile") 2>conftest.er1
17064 ac_status=$?
17065 grep -v '^ *+' conftest.er1 >conftest.err
17066 rm -f conftest.er1
17067 cat conftest.err >&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } && {
17070 test -z "$ac_c_werror_flag" ||
17071 test ! -s conftest.err
17072 } && test -s conftest.$ac_objext; then
17073 ac_header_compiler=yes
17074 else
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17078 ac_header_compiler=no
17081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17083 echo "${ECHO_T}$ac_header_compiler" >&6; }
17085 # Is the header present?
17086 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17087 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17088 cat >conftest.$ac_ext <<_ACEOF
17089 /* confdefs.h. */
17090 _ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17094 #include <gsm.h>
17095 _ACEOF
17096 if { (ac_try="$ac_cpp conftest.$ac_ext"
17097 case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17100 esac
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17103 ac_status=$?
17104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } >/dev/null && {
17109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17110 test ! -s conftest.err
17111 }; then
17112 ac_header_preproc=yes
17113 else
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17117 ac_header_preproc=no
17120 rm -f conftest.err conftest.$ac_ext
17121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17122 echo "${ECHO_T}$ac_header_preproc" >&6; }
17124 # So? What about this header?
17125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17126 yes:no: )
17127 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17128 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17129 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17130 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17131 ac_header_preproc=yes
17133 no:yes:* )
17134 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17135 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17136 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17137 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17138 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17139 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17140 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17141 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17142 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17143 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17144 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17145 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17148 esac
17149 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17150 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17151 if test "${ac_cv_header_gsm_h+set}" = set; then
17152 echo $ECHO_N "(cached) $ECHO_C" >&6
17153 else
17154 ac_cv_header_gsm_h=$ac_header_preproc
17156 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17157 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17160 if test $ac_cv_header_gsm_h = yes; then
17161 GSM_HEADER_FOUND=1
17162 else
17163 GSM_HEADER_FOUND=0
17167 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17168 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17169 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17170 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17174 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17175 else
17176 # Is the header compilable?
17177 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17178 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17179 cat >conftest.$ac_ext <<_ACEOF
17180 /* confdefs.h. */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h. */
17185 $ac_includes_default
17186 #include <gsm/gsm.h>
17187 _ACEOF
17188 rm -f conftest.$ac_objext
17189 if { (ac_try="$ac_compile"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17193 esac
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_compile") 2>conftest.er1
17196 ac_status=$?
17197 grep -v '^ *+' conftest.er1 >conftest.err
17198 rm -f conftest.er1
17199 cat conftest.err >&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } && {
17202 test -z "$ac_c_werror_flag" ||
17203 test ! -s conftest.err
17204 } && test -s conftest.$ac_objext; then
17205 ac_header_compiler=yes
17206 else
17207 echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17210 ac_header_compiler=no
17213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17215 echo "${ECHO_T}$ac_header_compiler" >&6; }
17217 # Is the header present?
17218 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17219 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17220 cat >conftest.$ac_ext <<_ACEOF
17221 /* confdefs.h. */
17222 _ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17226 #include <gsm/gsm.h>
17227 _ACEOF
17228 if { (ac_try="$ac_cpp conftest.$ac_ext"
17229 case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17235 ac_status=$?
17236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } >/dev/null && {
17241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17242 test ! -s conftest.err
17243 }; then
17244 ac_header_preproc=yes
17245 else
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 ac_header_preproc=no
17252 rm -f conftest.err conftest.$ac_ext
17253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17254 echo "${ECHO_T}$ac_header_preproc" >&6; }
17256 # So? What about this header?
17257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17258 yes:no: )
17259 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17260 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17261 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
17262 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
17263 ac_header_preproc=yes
17265 no:yes:* )
17266 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
17267 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
17268 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
17269 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17270 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
17271 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
17272 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17273 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17274 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
17275 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17276 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
17277 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17280 esac
17281 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17282 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17283 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17285 else
17286 ac_cv_header_gsm_gsm_h=$ac_header_preproc
17288 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17289 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17292 if test $ac_cv_header_gsm_gsm_h = yes; then
17293 GSM_GSM_HEADER_FOUND=1
17294 else
17295 GSM_GSM_HEADER_FOUND=0
17300 if test "${GSM_HEADER_FOUND}" = "0" ; then
17301 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
17302 if test "x${GSM_MANDATORY}" = "xyes" ; then
17303 { echo "$as_me:$LINENO: ***" >&5
17304 echo "$as_me: ***" >&6;}
17305 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
17306 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
17307 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
17308 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
17309 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
17310 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
17311 exit 1
17315 GSM_OK=0
17316 if test "${GSM_HEADER_FOUND}" = "1" ; then
17318 cat >>confdefs.h <<_ACEOF
17319 #define HAVE_GSM_HEADER 1
17320 _ACEOF
17322 GSM_OK=1
17323 else
17324 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
17326 cat >>confdefs.h <<_ACEOF
17327 #define HAVE_GSM_GSM_HEADER 1
17328 _ACEOF
17330 GSM_OK=1
17333 if test "${GSM_OK}" = "1" ; then
17334 GSM_LIB="-lgsm"
17335 if test "x${GSM_DIR}" != "x"; then
17336 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
17337 GSM_INCLUDE="-I${GSM_DIR}/include"
17339 PBX_GSM=1
17340 GSM_INTERNAL="no"
17344 if test "${GSM_INTERNAL}" = "yes"; then
17345 PBX_GSM=1
17347 cat >>confdefs.h <<_ACEOF
17348 #define HAVE_GSM_HEADER 1
17349 _ACEOF
17355 if test "${USE_IKSEMEL}" != "no"; then
17356 pbxlibdir=""
17357 if test "x${IKSEMEL_DIR}" != "x"; then
17358 if test -d ${IKSEMEL_DIR}/lib; then
17359 pbxlibdir="-L${IKSEMEL_DIR}/lib"
17360 else
17361 pbxlibdir="-L${IKSEMEL_DIR}"
17364 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
17365 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
17366 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17368 else
17369 ac_check_lib_save_LIBS=$LIBS
17370 LIBS="-liksemel ${pbxlibdir} $LIBS"
17371 cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h. */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17378 /* Override any GCC internal prototype to avoid an error.
17379 Use char because int might match the return type of a GCC
17380 builtin and then its argument prototype would still apply. */
17381 #ifdef __cplusplus
17382 extern "C"
17383 #endif
17384 char iks_start_sasl ();
17386 main ()
17388 return iks_start_sasl ();
17390 return 0;
17392 _ACEOF
17393 rm -f conftest.$ac_objext conftest$ac_exeext
17394 if { (ac_try="$ac_link"
17395 case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17398 esac
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_link") 2>conftest.er1
17401 ac_status=$?
17402 grep -v '^ *+' conftest.er1 >conftest.err
17403 rm -f conftest.er1
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } && {
17407 test -z "$ac_c_werror_flag" ||
17408 test ! -s conftest.err
17409 } && test -s conftest$ac_exeext &&
17410 $as_test_x conftest$ac_exeext; then
17411 ac_cv_lib_iksemel_iks_start_sasl=yes
17412 else
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17416 ac_cv_lib_iksemel_iks_start_sasl=no
17419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17420 conftest$ac_exeext conftest.$ac_ext
17421 LIBS=$ac_check_lib_save_LIBS
17423 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
17424 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
17425 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
17426 AST_IKSEMEL_FOUND=yes
17427 else
17428 AST_IKSEMEL_FOUND=no
17432 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
17433 IKSEMEL_LIB="-liksemel "
17434 IKSEMEL_HEADER_FOUND="1"
17435 if test "x${IKSEMEL_DIR}" != "x"; then
17436 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
17437 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
17438 saved_cppflags="${CPPFLAGS}"
17439 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
17440 if test "xiksemel.h" != "x" ; then
17441 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
17442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17443 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
17444 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
17445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 ac_res=`eval echo '${'$as_ac_Header'}'`
17449 { echo "$as_me:$LINENO: result: $ac_res" >&5
17450 echo "${ECHO_T}$ac_res" >&6; }
17451 else
17452 # Is the header compilable?
17453 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
17454 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
17455 cat >conftest.$ac_ext <<_ACEOF
17456 /* confdefs.h. */
17457 _ACEOF
17458 cat confdefs.h >>conftest.$ac_ext
17459 cat >>conftest.$ac_ext <<_ACEOF
17460 /* end confdefs.h. */
17461 $ac_includes_default
17462 #include <${IKSEMEL_DIR}/include/iksemel.h>
17463 _ACEOF
17464 rm -f conftest.$ac_objext
17465 if { (ac_try="$ac_compile"
17466 case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17469 esac
17470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_compile") 2>conftest.er1
17472 ac_status=$?
17473 grep -v '^ *+' conftest.er1 >conftest.err
17474 rm -f conftest.er1
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } && {
17478 test -z "$ac_c_werror_flag" ||
17479 test ! -s conftest.err
17480 } && test -s conftest.$ac_objext; then
17481 ac_header_compiler=yes
17482 else
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17486 ac_header_compiler=no
17489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17491 echo "${ECHO_T}$ac_header_compiler" >&6; }
17493 # Is the header present?
17494 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
17495 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
17496 cat >conftest.$ac_ext <<_ACEOF
17497 /* confdefs.h. */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17502 #include <${IKSEMEL_DIR}/include/iksemel.h>
17503 _ACEOF
17504 if { (ac_try="$ac_cpp conftest.$ac_ext"
17505 case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17508 esac
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17511 ac_status=$?
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } >/dev/null && {
17517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17518 test ! -s conftest.err
17519 }; then
17520 ac_header_preproc=yes
17521 else
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 ac_header_preproc=no
17528 rm -f conftest.err conftest.$ac_ext
17529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17530 echo "${ECHO_T}$ac_header_preproc" >&6; }
17532 # So? What about this header?
17533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17534 yes:no: )
17535 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
17536 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17537 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
17538 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
17539 ac_header_preproc=yes
17541 no:yes:* )
17542 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
17543 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
17544 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
17545 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
17546 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
17547 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
17548 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
17549 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
17550 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
17551 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
17552 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
17553 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
17556 esac
17557 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
17558 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
17559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 else
17562 eval "$as_ac_Header=\$ac_header_preproc"
17564 ac_res=`eval echo '${'$as_ac_Header'}'`
17565 { echo "$as_me:$LINENO: result: $ac_res" >&5
17566 echo "${ECHO_T}$ac_res" >&6; }
17569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17570 IKSEMEL_HEADER_FOUND=1
17571 else
17572 IKSEMEL_HEADER_FOUND=0
17577 CPPFLAGS="${saved_cppflags}"
17578 else
17579 if test "xiksemel.h" != "x" ; then
17580 if test "${ac_cv_header_iksemel_h+set}" = set; then
17581 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
17582 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
17583 if test "${ac_cv_header_iksemel_h+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
17587 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
17588 else
17589 # Is the header compilable?
17590 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
17591 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
17592 cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h. */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 $ac_includes_default
17599 #include <iksemel.h>
17600 _ACEOF
17601 rm -f conftest.$ac_objext
17602 if { (ac_try="$ac_compile"
17603 case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17606 esac
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608 (eval "$ac_compile") 2>conftest.er1
17609 ac_status=$?
17610 grep -v '^ *+' conftest.er1 >conftest.err
17611 rm -f conftest.er1
17612 cat conftest.err >&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); } && {
17615 test -z "$ac_c_werror_flag" ||
17616 test ! -s conftest.err
17617 } && test -s conftest.$ac_objext; then
17618 ac_header_compiler=yes
17619 else
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17623 ac_header_compiler=no
17626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17628 echo "${ECHO_T}$ac_header_compiler" >&6; }
17630 # Is the header present?
17631 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
17632 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
17633 cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h. */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17639 #include <iksemel.h>
17640 _ACEOF
17641 if { (ac_try="$ac_cpp conftest.$ac_ext"
17642 case "(($ac_try" in
17643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644 *) ac_try_echo=$ac_try;;
17645 esac
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17648 ac_status=$?
17649 grep -v '^ *+' conftest.er1 >conftest.err
17650 rm -f conftest.er1
17651 cat conftest.err >&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } >/dev/null && {
17654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17655 test ! -s conftest.err
17656 }; then
17657 ac_header_preproc=yes
17658 else
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 ac_header_preproc=no
17665 rm -f conftest.err conftest.$ac_ext
17666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17667 echo "${ECHO_T}$ac_header_preproc" >&6; }
17669 # So? What about this header?
17670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17671 yes:no: )
17672 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
17673 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17674 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
17675 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
17676 ac_header_preproc=yes
17678 no:yes:* )
17679 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
17680 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
17681 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
17682 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
17683 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
17684 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
17685 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
17686 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
17687 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
17688 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
17689 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
17690 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
17693 esac
17694 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
17695 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
17696 if test "${ac_cv_header_iksemel_h+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699 ac_cv_header_iksemel_h=$ac_header_preproc
17701 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
17702 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
17705 if test $ac_cv_header_iksemel_h = yes; then
17706 IKSEMEL_HEADER_FOUND=1
17707 else
17708 IKSEMEL_HEADER_FOUND=0
17714 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
17715 if test -n "${IKSEMEL_MANDATORY}" ;
17716 then
17717 { echo "$as_me:$LINENO: ***" >&5
17718 echo "$as_me: ***" >&6;}
17719 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
17720 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
17721 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
17722 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
17723 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
17724 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
17725 exit 1
17727 IKSEMEL_LIB=""
17728 IKSEMEL_INCLUDE=""
17729 PBX_IKSEMEL=0
17730 else
17731 PBX_IKSEMEL=1
17733 cat >>confdefs.h <<_ACEOF
17734 #define HAVE_IKSEMEL 1
17735 _ACEOF
17738 elif test -n "${IKSEMEL_MANDATORY}";
17739 then
17740 { echo "$as_me:$LINENO: ***" >&5
17741 echo "$as_me: ***" >&6;}
17742 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
17743 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
17744 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17745 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17746 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
17747 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
17748 exit 1
17753 if test "${PBX_IKSEMEL}" = 1; then
17755 if test "${USE_GNUTLS}" != "no"; then
17756 pbxlibdir=""
17757 if test "x${GNUTLS_DIR}" != "x"; then
17758 if test -d ${GNUTLS_DIR}/lib; then
17759 pbxlibdir="-L${GNUTLS_DIR}/lib"
17760 else
17761 pbxlibdir="-L${GNUTLS_DIR}"
17764 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
17765 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
17766 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769 ac_check_lib_save_LIBS=$LIBS
17770 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
17771 cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h. */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17778 /* Override any GCC internal prototype to avoid an error.
17779 Use char because int might match the return type of a GCC
17780 builtin and then its argument prototype would still apply. */
17781 #ifdef __cplusplus
17782 extern "C"
17783 #endif
17784 char gnutls_bye ();
17786 main ()
17788 return gnutls_bye ();
17790 return 0;
17792 _ACEOF
17793 rm -f conftest.$ac_objext conftest$ac_exeext
17794 if { (ac_try="$ac_link"
17795 case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17798 esac
17799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800 (eval "$ac_link") 2>conftest.er1
17801 ac_status=$?
17802 grep -v '^ *+' conftest.er1 >conftest.err
17803 rm -f conftest.er1
17804 cat conftest.err >&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } && {
17807 test -z "$ac_c_werror_flag" ||
17808 test ! -s conftest.err
17809 } && test -s conftest$ac_exeext &&
17810 $as_test_x conftest$ac_exeext; then
17811 ac_cv_lib_gnutls_gnutls_bye=yes
17812 else
17813 echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17816 ac_cv_lib_gnutls_gnutls_bye=no
17819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17820 conftest$ac_exeext conftest.$ac_ext
17821 LIBS=$ac_check_lib_save_LIBS
17823 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
17824 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
17825 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
17826 AST_GNUTLS_FOUND=yes
17827 else
17828 AST_GNUTLS_FOUND=no
17832 if test "${AST_GNUTLS_FOUND}" = "yes"; then
17833 GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
17834 GNUTLS_HEADER_FOUND="1"
17835 if test "x${GNUTLS_DIR}" != "x"; then
17836 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
17837 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
17838 saved_cppflags="${CPPFLAGS}"
17839 CPPFLAGS="${CPPFLAGS} -I${GNUTLS_DIR}/include"
17840 if test "xgnutls/gnutls.h" != "x" ; then
17841 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
17842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17843 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
17844 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
17845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17846 echo $ECHO_N "(cached) $ECHO_C" >&6
17848 ac_res=`eval echo '${'$as_ac_Header'}'`
17849 { echo "$as_me:$LINENO: result: $ac_res" >&5
17850 echo "${ECHO_T}$ac_res" >&6; }
17851 else
17852 # Is the header compilable?
17853 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
17854 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
17855 cat >conftest.$ac_ext <<_ACEOF
17856 /* confdefs.h. */
17857 _ACEOF
17858 cat confdefs.h >>conftest.$ac_ext
17859 cat >>conftest.$ac_ext <<_ACEOF
17860 /* end confdefs.h. */
17861 $ac_includes_default
17862 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
17863 _ACEOF
17864 rm -f conftest.$ac_objext
17865 if { (ac_try="$ac_compile"
17866 case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17869 esac
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_compile") 2>conftest.er1
17872 ac_status=$?
17873 grep -v '^ *+' conftest.er1 >conftest.err
17874 rm -f conftest.er1
17875 cat conftest.err >&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } && {
17878 test -z "$ac_c_werror_flag" ||
17879 test ! -s conftest.err
17880 } && test -s conftest.$ac_objext; then
17881 ac_header_compiler=yes
17882 else
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17886 ac_header_compiler=no
17889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17891 echo "${ECHO_T}$ac_header_compiler" >&6; }
17893 # Is the header present?
17894 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
17895 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
17896 cat >conftest.$ac_ext <<_ACEOF
17897 /* confdefs.h. */
17898 _ACEOF
17899 cat confdefs.h >>conftest.$ac_ext
17900 cat >>conftest.$ac_ext <<_ACEOF
17901 /* end confdefs.h. */
17902 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
17903 _ACEOF
17904 if { (ac_try="$ac_cpp conftest.$ac_ext"
17905 case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17908 esac
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17911 ac_status=$?
17912 grep -v '^ *+' conftest.er1 >conftest.err
17913 rm -f conftest.er1
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } >/dev/null && {
17917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17918 test ! -s conftest.err
17919 }; then
17920 ac_header_preproc=yes
17921 else
17922 echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17925 ac_header_preproc=no
17928 rm -f conftest.err conftest.$ac_ext
17929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17930 echo "${ECHO_T}$ac_header_preproc" >&6; }
17932 # So? What about this header?
17933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17934 yes:no: )
17935 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
17936 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17937 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
17938 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
17939 ac_header_preproc=yes
17941 no:yes:* )
17942 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
17943 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
17944 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
17945 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
17946 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
17947 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
17948 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
17949 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
17950 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
17951 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
17952 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
17953 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
17956 esac
17957 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
17958 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
17959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 else
17962 eval "$as_ac_Header=\$ac_header_preproc"
17964 ac_res=`eval echo '${'$as_ac_Header'}'`
17965 { echo "$as_me:$LINENO: result: $ac_res" >&5
17966 echo "${ECHO_T}$ac_res" >&6; }
17969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17970 GNUTLS_HEADER_FOUND=1
17971 else
17972 GNUTLS_HEADER_FOUND=0
17977 CPPFLAGS="${saved_cppflags}"
17978 else
17979 if test "xgnutls/gnutls.h" != "x" ; then
17980 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
17981 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
17982 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
17983 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
17984 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
17987 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
17988 else
17989 # Is the header compilable?
17990 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
17991 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
17992 cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h. */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 $ac_includes_default
17999 #include <gnutls/gnutls.h>
18000 _ACEOF
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_compile") 2>conftest.er1
18009 ac_status=$?
18010 grep -v '^ *+' conftest.er1 >conftest.err
18011 rm -f conftest.er1
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } && {
18015 test -z "$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18017 } && test -s conftest.$ac_objext; then
18018 ac_header_compiler=yes
18019 else
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_header_compiler=no
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6; }
18030 # Is the header present?
18031 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18032 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h. */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <gnutls/gnutls.h>
18040 _ACEOF
18041 if { (ac_try="$ac_cpp conftest.$ac_ext"
18042 case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18045 esac
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18048 ac_status=$?
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } >/dev/null && {
18054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18056 }; then
18057 ac_header_preproc=yes
18058 else
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_header_preproc=no
18065 rm -f conftest.err conftest.$ac_ext
18066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18067 echo "${ECHO_T}$ac_header_preproc" >&6; }
18069 # So? What about this header?
18070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18071 yes:no: )
18072 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18073 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18074 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18075 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18076 ac_header_preproc=yes
18078 no:yes:* )
18079 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18080 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18082 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18084 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18086 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18088 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18090 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18093 esac
18094 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18095 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18096 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099 ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
18101 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18102 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18105 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18106 GNUTLS_HEADER_FOUND=1
18107 else
18108 GNUTLS_HEADER_FOUND=0
18114 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18115 if test -n "${GNUTLS_MANDATORY}" ;
18116 then
18117 { echo "$as_me:$LINENO: ***" >&5
18118 echo "$as_me: ***" >&6;}
18119 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18120 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18121 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18122 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18123 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18124 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18125 exit 1
18127 GNUTLS_LIB=""
18128 GNUTLS_INCLUDE=""
18129 PBX_GNUTLS=0
18130 else
18131 PBX_GNUTLS=1
18133 cat >>confdefs.h <<_ACEOF
18134 #define HAVE_GNUTLS 1
18135 _ACEOF
18138 elif test -n "${GNUTLS_MANDATORY}";
18139 then
18140 { echo "$as_me:$LINENO: ***" >&5
18141 echo "$as_me: ***" >&6;}
18142 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18143 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18144 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18145 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18146 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18147 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18148 exit 1
18154 if test "${USE_IMAP_TK}" != "no"; then
18155 if test "${IMAP_TK_DIR}" = ""; then
18156 IMAP_TK_DIR=`pwd`"/../imap-2004g"
18157 if test -n "${IMAP_TK_MANDATORY}"; then
18158 { echo "$as_me:$LINENO: The --with-imap option does not search your system for installed" >&5
18159 echo "$as_me: The --with-imap option does not search your system for installed" >&6;}
18160 { echo "$as_me:$LINENO: c-client library/header files. Since you did not provide a path" >&5
18161 echo "$as_me: c-client library/header files. Since you did not provide a path" >&6;}
18162 { echo "$as_me:$LINENO: the configure script will assume you have placed built the c-client" >&5
18163 echo "$as_me: the configure script will assume you have placed built the c-client" >&6;}
18164 { echo "$as_me:$LINENO: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&5
18165 echo "$as_me: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&6;}
18168 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18169 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18170 saved_cppflags="${CPPFLAGS}"
18171 saved_libs="${LIBS}"
18172 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
18173 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
18175 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
18176 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
18177 cat >conftest.$ac_ext <<_ACEOF
18178 /* confdefs.h. */
18179 _ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h. */
18183 #include "c-client.h"
18184 void mm_searched (MAILSTREAM *stream,unsigned long number)
18187 void mm_exists (MAILSTREAM *stream,unsigned long number)
18190 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18193 void mm_flags (MAILSTREAM *stream,unsigned long number)
18196 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18199 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18202 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18205 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18208 void mm_log (char *string,long errflg)
18211 void mm_dlog (char *string)
18214 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18217 void mm_critical (MAILSTREAM *stream)
18220 void mm_nocritical (MAILSTREAM *stream)
18223 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18226 void mm_fatal (char *string)
18230 main ()
18233 MAILSTREAM *foo = mail_open(NULL, "", 0);
18237 return 0;
18239 _ACEOF
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (ac_try="$ac_link"
18242 case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18245 esac
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_link") 2>conftest.er1
18248 ac_status=$?
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } && {
18254 test -z "$ac_c_werror_flag" ||
18255 test ! -s conftest.err
18256 } && test -s conftest$ac_exeext &&
18257 $as_test_x conftest$ac_exeext; then
18258 ac_cv_imap_tk="yes"
18259 else
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18263 ac_cv_imap_tk="no"
18267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18268 conftest$ac_exeext conftest.$ac_ext
18269 if test "${ac_cv_imap_tk}" = "yes"; then
18270 cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h. */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 #include "c-client.h"
18277 void mm_searched (MAILSTREAM *stream,unsigned long number)
18280 void mm_exists (MAILSTREAM *stream,unsigned long number)
18283 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18286 void mm_flags (MAILSTREAM *stream,unsigned long number)
18289 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18292 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18295 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18298 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18301 void mm_log (char *string,long errflg)
18304 void mm_dlog (char *string)
18307 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18310 void mm_critical (MAILSTREAM *stream)
18313 void mm_nocritical (MAILSTREAM *stream)
18316 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18319 void mm_fatal (char *string)
18323 main ()
18326 long check = mail_expunge_full(NULL, "", 0);
18330 return 0;
18332 _ACEOF
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_link") 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest$ac_exeext &&
18350 $as_test_x conftest$ac_exeext; then
18351 ac_cv_imap_tk2006="yes"
18352 else
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 ac_cv_imap_tk2006="no"
18360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18361 conftest$ac_exeext conftest.$ac_ext
18363 CPPFLAGS="${saved_cppflags}"
18364 LIBS="${saved_libs}"
18365 if test "${ac_cv_imap_tk}" = "yes"; then
18366 { echo "$as_me:$LINENO: result: yes" >&5
18367 echo "${ECHO_T}yes" >&6; }
18368 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
18369 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
18370 PBX_IMAP_TK=1
18372 cat >>confdefs.h <<\_ACEOF
18373 #define HAVE_IMAP_TK 1
18374 _ACEOF
18376 if test "${ac_cv_imap_tk2006}" = "yes"; then
18378 cat >>confdefs.h <<\_ACEOF
18379 #define HAVE_IMAP_TK2006 1
18380 _ACEOF
18383 elif test -n "${IMAP_TK_MANDATORY}"; then
18384 { echo "$as_me:$LINENO: result: no" >&5
18385 echo "${ECHO_T}no" >&6; }
18386 { echo "$as_me:$LINENO: ***" >&5
18387 echo "$as_me: ***" >&6;}
18388 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
18389 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
18390 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18391 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18392 { echo "$as_me:$LINENO: *** including --without-imap." >&5
18393 echo "$as_me: *** including --without-imap." >&6;}
18394 exit 1
18395 else
18396 { echo "$as_me:$LINENO: result: no" >&5
18397 echo "${ECHO_T}no" >&6; }
18401 # Needed by unixodbc
18403 if test "${USE_LTDL}" != "no"; then
18404 pbxlibdir=""
18405 if test "x${LTDL_DIR}" != "x"; then
18406 if test -d ${LTDL_DIR}/lib; then
18407 pbxlibdir="-L${LTDL_DIR}/lib"
18408 else
18409 pbxlibdir="-L${LTDL_DIR}"
18412 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
18413 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
18414 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
18416 else
18417 ac_check_lib_save_LIBS=$LIBS
18418 LIBS="-lltdl ${pbxlibdir} $LIBS"
18419 cat >conftest.$ac_ext <<_ACEOF
18420 /* confdefs.h. */
18421 _ACEOF
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h. */
18426 /* Override any GCC internal prototype to avoid an error.
18427 Use char because int might match the return type of a GCC
18428 builtin and then its argument prototype would still apply. */
18429 #ifdef __cplusplus
18430 extern "C"
18431 #endif
18432 char lt_dlinit ();
18434 main ()
18436 return lt_dlinit ();
18438 return 0;
18440 _ACEOF
18441 rm -f conftest.$ac_objext conftest$ac_exeext
18442 if { (ac_try="$ac_link"
18443 case "(($ac_try" in
18444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18445 *) ac_try_echo=$ac_try;;
18446 esac
18447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18448 (eval "$ac_link") 2>conftest.er1
18449 ac_status=$?
18450 grep -v '^ *+' conftest.er1 >conftest.err
18451 rm -f conftest.er1
18452 cat conftest.err >&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } && {
18455 test -z "$ac_c_werror_flag" ||
18456 test ! -s conftest.err
18457 } && test -s conftest$ac_exeext &&
18458 $as_test_x conftest$ac_exeext; then
18459 ac_cv_lib_ltdl_lt_dlinit=yes
18460 else
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18464 ac_cv_lib_ltdl_lt_dlinit=no
18467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18468 conftest$ac_exeext conftest.$ac_ext
18469 LIBS=$ac_check_lib_save_LIBS
18471 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
18472 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
18473 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
18474 AST_LTDL_FOUND=yes
18475 else
18476 AST_LTDL_FOUND=no
18480 if test "${AST_LTDL_FOUND}" = "yes"; then
18481 LTDL_LIB="-lltdl "
18482 LTDL_HEADER_FOUND="1"
18483 if test "x${LTDL_DIR}" != "x"; then
18484 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
18485 LTDL_INCLUDE="-I${LTDL_DIR}/include"
18486 saved_cppflags="${CPPFLAGS}"
18487 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
18488 if test "xltdl.h" != "x" ; then
18489 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" | $as_tr_sh`
18490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18491 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
18492 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
18493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 ac_res=`eval echo '${'$as_ac_Header'}'`
18497 { echo "$as_me:$LINENO: result: $ac_res" >&5
18498 echo "${ECHO_T}$ac_res" >&6; }
18499 else
18500 # Is the header compilable?
18501 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
18502 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h. */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509 $ac_includes_default
18510 #include <${LTDL_DIR}/include/ltdl.h>
18511 _ACEOF
18512 rm -f conftest.$ac_objext
18513 if { (ac_try="$ac_compile"
18514 case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18517 esac
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_compile") 2>conftest.er1
18520 ac_status=$?
18521 grep -v '^ *+' conftest.er1 >conftest.err
18522 rm -f conftest.er1
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } && {
18526 test -z "$ac_c_werror_flag" ||
18527 test ! -s conftest.err
18528 } && test -s conftest.$ac_objext; then
18529 ac_header_compiler=yes
18530 else
18531 echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18534 ac_header_compiler=no
18537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18539 echo "${ECHO_T}$ac_header_compiler" >&6; }
18541 # Is the header present?
18542 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
18543 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
18544 cat >conftest.$ac_ext <<_ACEOF
18545 /* confdefs.h. */
18546 _ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h. */
18550 #include <${LTDL_DIR}/include/ltdl.h>
18551 _ACEOF
18552 if { (ac_try="$ac_cpp conftest.$ac_ext"
18553 case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18556 esac
18557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18559 ac_status=$?
18560 grep -v '^ *+' conftest.er1 >conftest.err
18561 rm -f conftest.er1
18562 cat conftest.err >&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } >/dev/null && {
18565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18566 test ! -s conftest.err
18567 }; then
18568 ac_header_preproc=yes
18569 else
18570 echo "$as_me: failed program was:" >&5
18571 sed 's/^/| /' conftest.$ac_ext >&5
18573 ac_header_preproc=no
18576 rm -f conftest.err conftest.$ac_ext
18577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18578 echo "${ECHO_T}$ac_header_preproc" >&6; }
18580 # So? What about this header?
18581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18582 yes:no: )
18583 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18584 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18585 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
18586 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
18587 ac_header_preproc=yes
18589 no:yes:* )
18590 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
18591 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
18592 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
18593 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
18594 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
18595 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
18596 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
18597 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
18598 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
18599 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
18600 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
18601 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
18604 esac
18605 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
18606 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
18607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18609 else
18610 eval "$as_ac_Header=\$ac_header_preproc"
18612 ac_res=`eval echo '${'$as_ac_Header'}'`
18613 { echo "$as_me:$LINENO: result: $ac_res" >&5
18614 echo "${ECHO_T}$ac_res" >&6; }
18617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18618 LTDL_HEADER_FOUND=1
18619 else
18620 LTDL_HEADER_FOUND=0
18625 CPPFLAGS="${saved_cppflags}"
18626 else
18627 if test "xltdl.h" != "x" ; then
18628 if test "${ac_cv_header_ltdl_h+set}" = set; then
18629 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
18630 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
18631 if test "${ac_cv_header_ltdl_h+set}" = set; then
18632 echo $ECHO_N "(cached) $ECHO_C" >&6
18634 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
18635 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
18636 else
18637 # Is the header compilable?
18638 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
18639 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
18640 cat >conftest.$ac_ext <<_ACEOF
18641 /* confdefs.h. */
18642 _ACEOF
18643 cat confdefs.h >>conftest.$ac_ext
18644 cat >>conftest.$ac_ext <<_ACEOF
18645 /* end confdefs.h. */
18646 $ac_includes_default
18647 #include <ltdl.h>
18648 _ACEOF
18649 rm -f conftest.$ac_objext
18650 if { (ac_try="$ac_compile"
18651 case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18654 esac
18655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_compile") 2>conftest.er1
18657 ac_status=$?
18658 grep -v '^ *+' conftest.er1 >conftest.err
18659 rm -f conftest.er1
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } && {
18663 test -z "$ac_c_werror_flag" ||
18664 test ! -s conftest.err
18665 } && test -s conftest.$ac_objext; then
18666 ac_header_compiler=yes
18667 else
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 ac_header_compiler=no
18674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18676 echo "${ECHO_T}$ac_header_compiler" >&6; }
18678 # Is the header present?
18679 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
18680 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
18681 cat >conftest.$ac_ext <<_ACEOF
18682 /* confdefs.h. */
18683 _ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h. */
18687 #include <ltdl.h>
18688 _ACEOF
18689 if { (ac_try="$ac_cpp conftest.$ac_ext"
18690 case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18693 esac
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18696 ac_status=$?
18697 grep -v '^ *+' conftest.er1 >conftest.err
18698 rm -f conftest.er1
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } >/dev/null && {
18702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18703 test ! -s conftest.err
18704 }; then
18705 ac_header_preproc=yes
18706 else
18707 echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18710 ac_header_preproc=no
18713 rm -f conftest.err conftest.$ac_ext
18714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18715 echo "${ECHO_T}$ac_header_preproc" >&6; }
18717 # So? What about this header?
18718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18719 yes:no: )
18720 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18721 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18722 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
18723 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
18724 ac_header_preproc=yes
18726 no:yes:* )
18727 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
18728 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
18729 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
18730 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
18731 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
18732 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
18733 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
18734 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
18735 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
18736 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
18737 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
18738 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
18741 esac
18742 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
18743 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
18744 if test "${ac_cv_header_ltdl_h+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18746 else
18747 ac_cv_header_ltdl_h=$ac_header_preproc
18749 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
18750 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
18753 if test $ac_cv_header_ltdl_h = yes; then
18754 LTDL_HEADER_FOUND=1
18755 else
18756 LTDL_HEADER_FOUND=0
18762 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
18763 if test -n "${LTDL_MANDATORY}" ;
18764 then
18765 { echo "$as_me:$LINENO: ***" >&5
18766 echo "$as_me: ***" >&6;}
18767 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
18768 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
18769 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
18770 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
18771 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
18772 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
18773 exit 1
18775 LTDL_LIB=""
18776 LTDL_INCLUDE=""
18777 PBX_LTDL=0
18778 else
18779 PBX_LTDL=1
18781 cat >>confdefs.h <<_ACEOF
18782 #define HAVE_LTDL 1
18783 _ACEOF
18786 elif test -n "${LTDL_MANDATORY}";
18787 then
18788 { echo "$as_me:$LINENO: ***" >&5
18789 echo "$as_me: ***" >&6;}
18790 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
18791 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
18792 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18793 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18794 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
18795 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
18796 exit 1
18801 ac_ext=cpp
18802 ac_cpp='$CXXCPP $CPPFLAGS'
18803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18808 if test "${USE_KDE}" != "no"; then
18809 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
18810 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
18811 saved_libs="${LIBS}"
18812 saved_cppflags="${CPPFLAGS}"
18813 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
18814 if test -d ${KDE_DIR}/lib; then
18815 kdelibdir="${KDE_DIR}/lib"
18816 else
18817 kdelibdir="${KDE_DIR}"
18819 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
18822 cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h. */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h. */
18828 #include "kcrash.h"
18830 main ()
18832 KCrash::defaultCrashHandler(1);
18834 return 0;
18837 _ACEOF
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18843 esac
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_link") 2>conftest.er1
18846 ac_status=$?
18847 grep -v '^ *+' conftest.er1 >conftest.err
18848 rm -f conftest.er1
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && {
18852 test -z "$ac_cxx_werror_flag" ||
18853 test ! -s conftest.err
18854 } && test -s conftest$ac_exeext &&
18855 $as_test_x conftest$ac_exeext; then
18856 ac_cv_lib_kde_crash="yes"
18857 else
18858 echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18861 ac_cv_lib_kde_crash="no"
18864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18865 conftest$ac_exeext conftest.$ac_ext
18867 LIBS="${saved_libs}"
18868 CPPFLAGS="${saved_cppflags}"
18870 if test "${ac_cv_lib_kde_crash}" = "yes"; then
18871 { echo "$as_me:$LINENO: result: yes" >&5
18872 echo "${ECHO_T}yes" >&6; }
18873 KDE_LIB="-lkdecore -lkdeui"
18874 if test "${KDE_DIR}" != ""; then
18875 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
18876 KDE_INCLUDE="-I${KDE_DIR}/include"
18878 PBX_KDE=1
18880 cat >>confdefs.h <<\_ACEOF
18881 #define HAVE_LIBKDE 1
18882 _ACEOF
18884 elif test -n "${KDE_MANDATORY}"; then
18885 { echo "$as_me:$LINENO: result: no" >&5
18886 echo "${ECHO_T}no" >&6; }
18887 { echo "$as_me:$LINENO: ***" >&5
18888 echo "$as_me: ***" >&6;}
18889 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
18890 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
18891 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18892 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18893 { echo "$as_me:$LINENO: *** including --without-kde." >&5
18894 echo "$as_me: *** including --without-kde." >&6;}
18895 exit 1
18896 else
18897 { echo "$as_me:$LINENO: result: no" >&5
18898 echo "${ECHO_T}no" >&6; }
18901 if test "${PBX_KDE}" = 1; then
18902 if test -n "$ac_tool_prefix"; then
18903 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
18904 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
18905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18907 if test "${ac_cv_path_KDEINIT+set}" = set; then
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18909 else
18910 case $KDEINIT in
18911 [\\/]* | ?:[\\/]*)
18912 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
18915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18916 for as_dir in $PATH
18918 IFS=$as_save_IFS
18919 test -z "$as_dir" && as_dir=.
18920 for ac_exec_ext in '' $ac_executable_extensions; do
18921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18922 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
18923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18924 break 2
18926 done
18927 done
18928 IFS=$as_save_IFS
18931 esac
18933 KDEINIT=$ac_cv_path_KDEINIT
18934 if test -n "$KDEINIT"; then
18935 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
18936 echo "${ECHO_T}$KDEINIT" >&6; }
18937 else
18938 { echo "$as_me:$LINENO: result: no" >&5
18939 echo "${ECHO_T}no" >&6; }
18944 if test -z "$ac_cv_path_KDEINIT"; then
18945 ac_pt_KDEINIT=$KDEINIT
18946 # Extract the first word of "kdeinit", so it can be a program name with args.
18947 set dummy kdeinit; ac_word=$2
18948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18950 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
18951 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 else
18953 case $ac_pt_KDEINIT in
18954 [\\/]* | ?:[\\/]*)
18955 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
18958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18959 for as_dir in $PATH
18961 IFS=$as_save_IFS
18962 test -z "$as_dir" && as_dir=.
18963 for ac_exec_ext in '' $ac_executable_extensions; do
18964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18965 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
18966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18967 break 2
18969 done
18970 done
18971 IFS=$as_save_IFS
18974 esac
18976 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
18977 if test -n "$ac_pt_KDEINIT"; then
18978 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
18979 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
18980 else
18981 { echo "$as_me:$LINENO: result: no" >&5
18982 echo "${ECHO_T}no" >&6; }
18985 if test "x$ac_pt_KDEINIT" = x; then
18986 KDEINIT="No"
18987 else
18988 case $cross_compiling:$ac_tool_warned in
18989 yes:)
18990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18991 whose name does not start with the host triplet. If you think this
18992 configuration is useful to you, please write to autoconf@gnu.org." >&5
18993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18994 whose name does not start with the host triplet. If you think this
18995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18996 ac_tool_warned=yes ;;
18997 esac
18998 KDEINIT=$ac_pt_KDEINIT
19000 else
19001 KDEINIT="$ac_cv_path_KDEINIT"
19004 if test ! x"${KDEINIT}" = xNo; then
19005 KDEDIR=$(${DIRNAME} ${KDEINIT})
19006 KDEDIR=$(${DIRNAME} ${KDEDIR})
19011 ac_ext=c
19012 ac_cpp='$CPP $CPPFLAGS'
19013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19019 if test "${USE_MISDN}" != "no"; then
19020 pbxlibdir=""
19021 if test "x${MISDN_DIR}" != "x"; then
19022 if test -d ${MISDN_DIR}/lib; then
19023 pbxlibdir="-L${MISDN_DIR}/lib"
19024 else
19025 pbxlibdir="-L${MISDN_DIR}"
19028 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
19029 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
19030 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19032 else
19033 ac_check_lib_save_LIBS=$LIBS
19034 LIBS="-lmISDN ${pbxlibdir} $LIBS"
19035 cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h. */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h. */
19042 /* Override any GCC internal prototype to avoid an error.
19043 Use char because int might match the return type of a GCC
19044 builtin and then its argument prototype would still apply. */
19045 #ifdef __cplusplus
19046 extern "C"
19047 #endif
19048 char mISDN_open ();
19050 main ()
19052 return mISDN_open ();
19054 return 0;
19056 _ACEOF
19057 rm -f conftest.$ac_objext conftest$ac_exeext
19058 if { (ac_try="$ac_link"
19059 case "(($ac_try" in
19060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061 *) ac_try_echo=$ac_try;;
19062 esac
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064 (eval "$ac_link") 2>conftest.er1
19065 ac_status=$?
19066 grep -v '^ *+' conftest.er1 >conftest.err
19067 rm -f conftest.er1
19068 cat conftest.err >&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } && {
19071 test -z "$ac_c_werror_flag" ||
19072 test ! -s conftest.err
19073 } && test -s conftest$ac_exeext &&
19074 $as_test_x conftest$ac_exeext; then
19075 ac_cv_lib_mISDN_mISDN_open=yes
19076 else
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19080 ac_cv_lib_mISDN_mISDN_open=no
19083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19084 conftest$ac_exeext conftest.$ac_ext
19085 LIBS=$ac_check_lib_save_LIBS
19087 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
19088 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
19089 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
19090 AST_MISDN_FOUND=yes
19091 else
19092 AST_MISDN_FOUND=no
19096 if test "${AST_MISDN_FOUND}" = "yes"; then
19097 MISDN_LIB="-lmISDN "
19098 MISDN_HEADER_FOUND="1"
19099 if test "x${MISDN_DIR}" != "x"; then
19100 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
19101 MISDN_INCLUDE="-I${MISDN_DIR}/include"
19102 saved_cppflags="${CPPFLAGS}"
19103 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
19104 if test "xmISDNuser/mISDNlib.h" != "x" ; then
19105 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
19106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19107 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
19108 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 ac_res=`eval echo '${'$as_ac_Header'}'`
19113 { echo "$as_me:$LINENO: result: $ac_res" >&5
19114 echo "${ECHO_T}$ac_res" >&6; }
19115 else
19116 # Is the header compilable?
19117 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
19118 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
19119 cat >conftest.$ac_ext <<_ACEOF
19120 /* confdefs.h. */
19121 _ACEOF
19122 cat confdefs.h >>conftest.$ac_ext
19123 cat >>conftest.$ac_ext <<_ACEOF
19124 /* end confdefs.h. */
19125 $ac_includes_default
19126 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
19127 _ACEOF
19128 rm -f conftest.$ac_objext
19129 if { (ac_try="$ac_compile"
19130 case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19133 esac
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_compile") 2>conftest.er1
19136 ac_status=$?
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
19144 } && test -s conftest.$ac_objext; then
19145 ac_header_compiler=yes
19146 else
19147 echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19150 ac_header_compiler=no
19153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19155 echo "${ECHO_T}$ac_header_compiler" >&6; }
19157 # Is the header present?
19158 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
19159 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
19160 cat >conftest.$ac_ext <<_ACEOF
19161 /* confdefs.h. */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19166 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
19167 _ACEOF
19168 if { (ac_try="$ac_cpp conftest.$ac_ext"
19169 case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19172 esac
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19175 ac_status=$?
19176 grep -v '^ *+' conftest.er1 >conftest.err
19177 rm -f conftest.er1
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } >/dev/null && {
19181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19182 test ! -s conftest.err
19183 }; then
19184 ac_header_preproc=yes
19185 else
19186 echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19189 ac_header_preproc=no
19192 rm -f conftest.err conftest.$ac_ext
19193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19194 echo "${ECHO_T}$ac_header_preproc" >&6; }
19196 # So? What about this header?
19197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19198 yes:no: )
19199 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19200 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19201 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
19202 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
19203 ac_header_preproc=yes
19205 no:yes:* )
19206 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
19207 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
19208 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
19209 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
19210 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
19211 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
19212 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
19213 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19214 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
19215 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
19216 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
19217 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
19220 esac
19221 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
19222 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19225 else
19226 eval "$as_ac_Header=\$ac_header_preproc"
19228 ac_res=`eval echo '${'$as_ac_Header'}'`
19229 { echo "$as_me:$LINENO: result: $ac_res" >&5
19230 echo "${ECHO_T}$ac_res" >&6; }
19233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19234 MISDN_HEADER_FOUND=1
19235 else
19236 MISDN_HEADER_FOUND=0
19241 CPPFLAGS="${saved_cppflags}"
19242 else
19243 if test "xmISDNuser/mISDNlib.h" != "x" ; then
19244 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19245 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
19246 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19247 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19250 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
19251 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
19252 else
19253 # Is the header compilable?
19254 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
19255 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
19256 cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h. */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262 $ac_includes_default
19263 #include <mISDNuser/mISDNlib.h>
19264 _ACEOF
19265 rm -f conftest.$ac_objext
19266 if { (ac_try="$ac_compile"
19267 case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270 esac
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_compile") 2>conftest.er1
19273 ac_status=$?
19274 grep -v '^ *+' conftest.er1 >conftest.err
19275 rm -f conftest.er1
19276 cat conftest.err >&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } && {
19279 test -z "$ac_c_werror_flag" ||
19280 test ! -s conftest.err
19281 } && test -s conftest.$ac_objext; then
19282 ac_header_compiler=yes
19283 else
19284 echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19287 ac_header_compiler=no
19290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19292 echo "${ECHO_T}$ac_header_compiler" >&6; }
19294 # Is the header present?
19295 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
19296 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
19297 cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h. */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19303 #include <mISDNuser/mISDNlib.h>
19304 _ACEOF
19305 if { (ac_try="$ac_cpp conftest.$ac_ext"
19306 case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19309 esac
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19312 ac_status=$?
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -f conftest.er1
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } >/dev/null && {
19318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19319 test ! -s conftest.err
19320 }; then
19321 ac_header_preproc=yes
19322 else
19323 echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19326 ac_header_preproc=no
19329 rm -f conftest.err conftest.$ac_ext
19330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19331 echo "${ECHO_T}$ac_header_preproc" >&6; }
19333 # So? What about this header?
19334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19335 yes:no: )
19336 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19337 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19338 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
19339 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
19340 ac_header_preproc=yes
19342 no:yes:* )
19343 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
19344 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
19345 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
19346 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
19347 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
19348 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
19349 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
19350 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19351 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
19352 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
19353 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
19354 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
19357 esac
19358 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
19359 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19360 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19361 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 else
19363 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
19365 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
19366 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
19369 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
19370 MISDN_HEADER_FOUND=1
19371 else
19372 MISDN_HEADER_FOUND=0
19378 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
19379 if test -n "${MISDN_MANDATORY}" ;
19380 then
19381 { echo "$as_me:$LINENO: ***" >&5
19382 echo "$as_me: ***" >&6;}
19383 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
19384 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
19385 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
19386 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
19387 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
19388 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
19389 exit 1
19391 MISDN_LIB=""
19392 MISDN_INCLUDE=""
19393 PBX_MISDN=0
19394 else
19395 PBX_MISDN=1
19397 cat >>confdefs.h <<_ACEOF
19398 #define HAVE_MISDN 1
19399 _ACEOF
19402 elif test -n "${MISDN_MANDATORY}";
19403 then
19404 { echo "$as_me:$LINENO: ***" >&5
19405 echo "$as_me: ***" >&6;}
19406 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
19407 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
19408 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19409 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19410 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
19411 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
19412 exit 1
19417 if test "${PBX_MISDN}" = 1; then
19419 if test "${USE_ISDNNET}" != "no"; then
19420 pbxlibdir=""
19421 if test "x${ISDNNET_DIR}" != "x"; then
19422 if test -d ${ISDNNET_DIR}/lib; then
19423 pbxlibdir="-L${ISDNNET_DIR}/lib"
19424 else
19425 pbxlibdir="-L${ISDNNET_DIR}"
19428 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
19429 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
19430 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
19431 echo $ECHO_N "(cached) $ECHO_C" >&6
19432 else
19433 ac_check_lib_save_LIBS=$LIBS
19434 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
19435 cat >conftest.$ac_ext <<_ACEOF
19436 /* confdefs.h. */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19442 /* Override any GCC internal prototype to avoid an error.
19443 Use char because int might match the return type of a GCC
19444 builtin and then its argument prototype would still apply. */
19445 #ifdef __cplusplus
19446 extern "C"
19447 #endif
19448 char init_manager ();
19450 main ()
19452 return init_manager ();
19454 return 0;
19456 _ACEOF
19457 rm -f conftest.$ac_objext conftest$ac_exeext
19458 if { (ac_try="$ac_link"
19459 case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19462 esac
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_link") 2>conftest.er1
19465 ac_status=$?
19466 grep -v '^ *+' conftest.er1 >conftest.err
19467 rm -f conftest.er1
19468 cat conftest.err >&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } && {
19471 test -z "$ac_c_werror_flag" ||
19472 test ! -s conftest.err
19473 } && test -s conftest$ac_exeext &&
19474 $as_test_x conftest$ac_exeext; then
19475 ac_cv_lib_isdnnet_init_manager=yes
19476 else
19477 echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19480 ac_cv_lib_isdnnet_init_manager=no
19483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19484 conftest$ac_exeext conftest.$ac_ext
19485 LIBS=$ac_check_lib_save_LIBS
19487 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
19488 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
19489 if test $ac_cv_lib_isdnnet_init_manager = yes; then
19490 AST_ISDNNET_FOUND=yes
19491 else
19492 AST_ISDNNET_FOUND=no
19496 if test "${AST_ISDNNET_FOUND}" = "yes"; then
19497 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
19498 ISDNNET_HEADER_FOUND="1"
19499 if test "x${ISDNNET_DIR}" != "x"; then
19500 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
19501 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
19502 saved_cppflags="${CPPFLAGS}"
19503 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include"
19504 if test "xmISDNuser/isdn_net.h" != "x" ; then
19505 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
19506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19507 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
19508 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
19509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 ac_res=`eval echo '${'$as_ac_Header'}'`
19513 { echo "$as_me:$LINENO: result: $ac_res" >&5
19514 echo "${ECHO_T}$ac_res" >&6; }
19515 else
19516 # Is the header compilable?
19517 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
19518 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
19519 cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h. */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19525 $ac_includes_default
19526 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
19527 _ACEOF
19528 rm -f conftest.$ac_objext
19529 if { (ac_try="$ac_compile"
19530 case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_compile") 2>conftest.er1
19536 ac_status=$?
19537 grep -v '^ *+' conftest.er1 >conftest.err
19538 rm -f conftest.er1
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } && {
19542 test -z "$ac_c_werror_flag" ||
19543 test ! -s conftest.err
19544 } && test -s conftest.$ac_objext; then
19545 ac_header_compiler=yes
19546 else
19547 echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19550 ac_header_compiler=no
19553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19555 echo "${ECHO_T}$ac_header_compiler" >&6; }
19557 # Is the header present?
19558 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
19559 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
19560 cat >conftest.$ac_ext <<_ACEOF
19561 /* confdefs.h. */
19562 _ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h. */
19566 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
19567 _ACEOF
19568 if { (ac_try="$ac_cpp conftest.$ac_ext"
19569 case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19575 ac_status=$?
19576 grep -v '^ *+' conftest.er1 >conftest.err
19577 rm -f conftest.er1
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } >/dev/null && {
19581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19582 test ! -s conftest.err
19583 }; then
19584 ac_header_preproc=yes
19585 else
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 ac_header_preproc=no
19592 rm -f conftest.err conftest.$ac_ext
19593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19594 echo "${ECHO_T}$ac_header_preproc" >&6; }
19596 # So? What about this header?
19597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19598 yes:no: )
19599 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
19600 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19601 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
19602 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
19603 ac_header_preproc=yes
19605 no:yes:* )
19606 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
19607 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
19608 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
19609 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
19610 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
19611 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
19612 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
19613 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
19614 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
19615 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
19616 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
19617 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
19620 esac
19621 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
19622 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
19623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19625 else
19626 eval "$as_ac_Header=\$ac_header_preproc"
19628 ac_res=`eval echo '${'$as_ac_Header'}'`
19629 { echo "$as_me:$LINENO: result: $ac_res" >&5
19630 echo "${ECHO_T}$ac_res" >&6; }
19633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19634 ISDNNET_HEADER_FOUND=1
19635 else
19636 ISDNNET_HEADER_FOUND=0
19641 CPPFLAGS="${saved_cppflags}"
19642 else
19643 if test "xmISDNuser/isdn_net.h" != "x" ; then
19644 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
19645 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
19646 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
19647 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19650 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
19651 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
19652 else
19653 # Is the header compilable?
19654 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
19655 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
19656 cat >conftest.$ac_ext <<_ACEOF
19657 /* confdefs.h. */
19658 _ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19662 $ac_includes_default
19663 #include <mISDNuser/isdn_net.h>
19664 _ACEOF
19665 rm -f conftest.$ac_objext
19666 if { (ac_try="$ac_compile"
19667 case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19670 esac
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_compile") 2>conftest.er1
19673 ac_status=$?
19674 grep -v '^ *+' conftest.er1 >conftest.err
19675 rm -f conftest.er1
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } && {
19679 test -z "$ac_c_werror_flag" ||
19680 test ! -s conftest.err
19681 } && test -s conftest.$ac_objext; then
19682 ac_header_compiler=yes
19683 else
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19687 ac_header_compiler=no
19690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19692 echo "${ECHO_T}$ac_header_compiler" >&6; }
19694 # Is the header present?
19695 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
19696 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
19697 cat >conftest.$ac_ext <<_ACEOF
19698 /* confdefs.h. */
19699 _ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19703 #include <mISDNuser/isdn_net.h>
19704 _ACEOF
19705 if { (ac_try="$ac_cpp conftest.$ac_ext"
19706 case "(($ac_try" in
19707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708 *) ac_try_echo=$ac_try;;
19709 esac
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19712 ac_status=$?
19713 grep -v '^ *+' conftest.er1 >conftest.err
19714 rm -f conftest.er1
19715 cat conftest.err >&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } >/dev/null && {
19718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19719 test ! -s conftest.err
19720 }; then
19721 ac_header_preproc=yes
19722 else
19723 echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19726 ac_header_preproc=no
19729 rm -f conftest.err conftest.$ac_ext
19730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19731 echo "${ECHO_T}$ac_header_preproc" >&6; }
19733 # So? What about this header?
19734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19735 yes:no: )
19736 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
19737 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19738 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
19739 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
19740 ac_header_preproc=yes
19742 no:yes:* )
19743 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
19744 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
19745 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
19746 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
19747 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
19748 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
19749 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
19750 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
19751 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
19752 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
19753 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
19754 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
19757 esac
19758 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
19759 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
19760 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
19765 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
19766 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
19769 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
19770 ISDNNET_HEADER_FOUND=1
19771 else
19772 ISDNNET_HEADER_FOUND=0
19778 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
19779 if test -n "${ISDNNET_MANDATORY}" ;
19780 then
19781 { echo "$as_me:$LINENO: ***" >&5
19782 echo "$as_me: ***" >&6;}
19783 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
19784 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
19785 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
19786 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
19787 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
19788 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
19789 exit 1
19791 ISDNNET_LIB=""
19792 ISDNNET_INCLUDE=""
19793 PBX_ISDNNET=0
19794 else
19795 PBX_ISDNNET=1
19797 cat >>confdefs.h <<_ACEOF
19798 #define HAVE_ISDNNET 1
19799 _ACEOF
19802 elif test -n "${ISDNNET_MANDATORY}";
19803 then
19804 { echo "$as_me:$LINENO: ***" >&5
19805 echo "$as_me: ***" >&6;}
19806 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
19807 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
19808 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19809 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19810 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
19811 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
19812 exit 1
19817 if test "${USE_SUPPSERV}" != "no"; then
19818 pbxlibdir=""
19819 if test "x${SUPPSERV_DIR}" != "x"; then
19820 if test -d ${SUPPSERV_DIR}/lib; then
19821 pbxlibdir="-L${SUPPSERV_DIR}/lib"
19822 else
19823 pbxlibdir="-L${SUPPSERV_DIR}"
19826 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
19827 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
19828 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
19829 echo $ECHO_N "(cached) $ECHO_C" >&6
19830 else
19831 ac_check_lib_save_LIBS=$LIBS
19832 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
19833 cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h. */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19840 /* Override any GCC internal prototype to avoid an error.
19841 Use char because int might match the return type of a GCC
19842 builtin and then its argument prototype would still apply. */
19843 #ifdef __cplusplus
19844 extern "C"
19845 #endif
19846 char encodeFac ();
19848 main ()
19850 return encodeFac ();
19852 return 0;
19854 _ACEOF
19855 rm -f conftest.$ac_objext conftest$ac_exeext
19856 if { (ac_try="$ac_link"
19857 case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_link") 2>conftest.er1
19863 ac_status=$?
19864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } && {
19869 test -z "$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19871 } && test -s conftest$ac_exeext &&
19872 $as_test_x conftest$ac_exeext; then
19873 ac_cv_lib_suppserv_encodeFac=yes
19874 else
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19878 ac_cv_lib_suppserv_encodeFac=no
19881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19882 conftest$ac_exeext conftest.$ac_ext
19883 LIBS=$ac_check_lib_save_LIBS
19885 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
19886 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
19887 if test $ac_cv_lib_suppserv_encodeFac = yes; then
19888 AST_SUPPSERV_FOUND=yes
19889 else
19890 AST_SUPPSERV_FOUND=no
19894 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
19895 SUPPSERV_LIB="-lsuppserv "
19896 SUPPSERV_HEADER_FOUND="1"
19897 if test "x${SUPPSERV_DIR}" != "x"; then
19898 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
19899 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
19900 saved_cppflags="${CPPFLAGS}"
19901 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
19902 if test "xmISDNuser/suppserv.h" != "x" ; then
19903 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
19904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19905 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
19906 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
19907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19910 ac_res=`eval echo '${'$as_ac_Header'}'`
19911 { echo "$as_me:$LINENO: result: $ac_res" >&5
19912 echo "${ECHO_T}$ac_res" >&6; }
19913 else
19914 # Is the header compilable?
19915 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
19916 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
19917 cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h. */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923 $ac_includes_default
19924 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
19925 _ACEOF
19926 rm -f conftest.$ac_objext
19927 if { (ac_try="$ac_compile"
19928 case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19931 esac
19932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_compile") 2>conftest.er1
19934 ac_status=$?
19935 grep -v '^ *+' conftest.er1 >conftest.err
19936 rm -f conftest.er1
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } && {
19940 test -z "$ac_c_werror_flag" ||
19941 test ! -s conftest.err
19942 } && test -s conftest.$ac_objext; then
19943 ac_header_compiler=yes
19944 else
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19948 ac_header_compiler=no
19951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19953 echo "${ECHO_T}$ac_header_compiler" >&6; }
19955 # Is the header present?
19956 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
19957 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
19958 cat >conftest.$ac_ext <<_ACEOF
19959 /* confdefs.h. */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
19965 _ACEOF
19966 if { (ac_try="$ac_cpp conftest.$ac_ext"
19967 case "(($ac_try" in
19968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969 *) ac_try_echo=$ac_try;;
19970 esac
19971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19973 ac_status=$?
19974 grep -v '^ *+' conftest.er1 >conftest.err
19975 rm -f conftest.er1
19976 cat conftest.err >&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } >/dev/null && {
19979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19980 test ! -s conftest.err
19981 }; then
19982 ac_header_preproc=yes
19983 else
19984 echo "$as_me: failed program was:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19987 ac_header_preproc=no
19990 rm -f conftest.err conftest.$ac_ext
19991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19992 echo "${ECHO_T}$ac_header_preproc" >&6; }
19994 # So? What about this header?
19995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19996 yes:no: )
19997 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
19998 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19999 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
20000 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
20001 ac_header_preproc=yes
20003 no:yes:* )
20004 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
20005 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
20006 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
20007 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
20008 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
20009 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
20010 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
20011 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20012 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
20013 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
20015 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
20018 esac
20019 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
20020 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
20021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024 eval "$as_ac_Header=\$ac_header_preproc"
20026 ac_res=`eval echo '${'$as_ac_Header'}'`
20027 { echo "$as_me:$LINENO: result: $ac_res" >&5
20028 echo "${ECHO_T}$ac_res" >&6; }
20031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20032 SUPPSERV_HEADER_FOUND=1
20033 else
20034 SUPPSERV_HEADER_FOUND=0
20039 CPPFLAGS="${saved_cppflags}"
20040 else
20041 if test "xmISDNuser/suppserv.h" != "x" ; then
20042 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20043 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
20044 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
20045 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
20049 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20050 else
20051 # Is the header compilable?
20052 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
20053 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
20054 cat >conftest.$ac_ext <<_ACEOF
20055 /* confdefs.h. */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20060 $ac_includes_default
20061 #include <mISDNuser/suppserv.h>
20062 _ACEOF
20063 rm -f conftest.$ac_objext
20064 if { (ac_try="$ac_compile"
20065 case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068 esac
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_compile") 2>conftest.er1
20071 ac_status=$?
20072 grep -v '^ *+' conftest.er1 >conftest.err
20073 rm -f conftest.er1
20074 cat conftest.err >&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } && {
20077 test -z "$ac_c_werror_flag" ||
20078 test ! -s conftest.err
20079 } && test -s conftest.$ac_objext; then
20080 ac_header_compiler=yes
20081 else
20082 echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20085 ac_header_compiler=no
20088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20090 echo "${ECHO_T}$ac_header_compiler" >&6; }
20092 # Is the header present?
20093 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
20094 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
20095 cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h. */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 #include <mISDNuser/suppserv.h>
20102 _ACEOF
20103 if { (ac_try="$ac_cpp conftest.$ac_ext"
20104 case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20110 ac_status=$?
20111 grep -v '^ *+' conftest.er1 >conftest.err
20112 rm -f conftest.er1
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } >/dev/null && {
20116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20117 test ! -s conftest.err
20118 }; then
20119 ac_header_preproc=yes
20120 else
20121 echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20124 ac_header_preproc=no
20127 rm -f conftest.err conftest.$ac_ext
20128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20129 echo "${ECHO_T}$ac_header_preproc" >&6; }
20131 # So? What about this header?
20132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20133 yes:no: )
20134 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20135 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20136 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
20137 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
20138 ac_header_preproc=yes
20140 no:yes:* )
20141 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
20142 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
20143 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
20144 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
20145 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
20146 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
20147 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
20148 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20149 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
20150 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
20151 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
20152 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
20155 esac
20156 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
20157 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
20158 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20160 else
20161 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
20163 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
20164 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20167 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
20168 SUPPSERV_HEADER_FOUND=1
20169 else
20170 SUPPSERV_HEADER_FOUND=0
20176 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
20177 if test -n "${SUPPSERV_MANDATORY}" ;
20178 then
20179 { echo "$as_me:$LINENO: ***" >&5
20180 echo "$as_me: ***" >&6;}
20181 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
20182 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
20183 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
20184 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
20185 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
20186 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
20187 exit 1
20189 SUPPSERV_LIB=""
20190 SUPPSERV_INCLUDE=""
20191 PBX_SUPPSERV=0
20192 else
20193 PBX_SUPPSERV=1
20195 cat >>confdefs.h <<_ACEOF
20196 #define HAVE_SUPPSERV 1
20197 _ACEOF
20200 elif test -n "${SUPPSERV_MANDATORY}";
20201 then
20202 { echo "$as_me:$LINENO: ***" >&5
20203 echo "$as_me: ***" >&6;}
20204 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
20205 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
20206 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20207 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20208 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
20209 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
20210 exit 1
20214 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20215 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
20216 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
20217 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20220 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
20221 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20222 else
20223 # Is the header compilable?
20224 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
20225 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
20226 cat >conftest.$ac_ext <<_ACEOF
20227 /* confdefs.h. */
20228 _ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h. */
20232 $ac_includes_default
20233 #include <linux/mISDNdsp.h>
20234 _ACEOF
20235 rm -f conftest.$ac_objext
20236 if { (ac_try="$ac_compile"
20237 case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_compile") 2>conftest.er1
20243 ac_status=$?
20244 grep -v '^ *+' conftest.er1 >conftest.err
20245 rm -f conftest.er1
20246 cat conftest.err >&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } && {
20249 test -z "$ac_c_werror_flag" ||
20250 test ! -s conftest.err
20251 } && test -s conftest.$ac_objext; then
20252 ac_header_compiler=yes
20253 else
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20257 ac_header_compiler=no
20260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20262 echo "${ECHO_T}$ac_header_compiler" >&6; }
20264 # Is the header present?
20265 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
20266 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
20267 cat >conftest.$ac_ext <<_ACEOF
20268 /* confdefs.h. */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20273 #include <linux/mISDNdsp.h>
20274 _ACEOF
20275 if { (ac_try="$ac_cpp conftest.$ac_ext"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20279 esac
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20282 ac_status=$?
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } >/dev/null && {
20288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 }; then
20291 ac_header_preproc=yes
20292 else
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20296 ac_header_preproc=no
20299 rm -f conftest.err conftest.$ac_ext
20300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20301 echo "${ECHO_T}$ac_header_preproc" >&6; }
20303 # So? What about this header?
20304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20305 yes:no: )
20306 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20307 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20308 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
20309 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
20310 ac_header_preproc=yes
20312 no:yes:* )
20313 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
20314 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
20315 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
20316 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
20317 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
20318 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
20319 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
20320 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20321 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
20322 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
20323 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
20324 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
20327 esac
20328 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
20329 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
20330 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20331 echo $ECHO_N "(cached) $ECHO_C" >&6
20332 else
20333 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
20335 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
20336 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20339 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
20341 cat >>confdefs.h <<_ACEOF
20342 #define MISDN_1_2 1
20343 _ACEOF
20351 if test "${USE_NBS}" != "no"; then
20352 pbxlibdir=""
20353 if test "x${NBS_DIR}" != "x"; then
20354 if test -d ${NBS_DIR}/lib; then
20355 pbxlibdir="-L${NBS_DIR}/lib"
20356 else
20357 pbxlibdir="-L${NBS_DIR}"
20360 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
20361 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
20362 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 else
20365 ac_check_lib_save_LIBS=$LIBS
20366 LIBS="-lnbs ${pbxlibdir} $LIBS"
20367 cat >conftest.$ac_ext <<_ACEOF
20368 /* confdefs.h. */
20369 _ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20374 /* Override any GCC internal prototype to avoid an error.
20375 Use char because int might match the return type of a GCC
20376 builtin and then its argument prototype would still apply. */
20377 #ifdef __cplusplus
20378 extern "C"
20379 #endif
20380 char nbs_connect ();
20382 main ()
20384 return nbs_connect ();
20386 return 0;
20388 _ACEOF
20389 rm -f conftest.$ac_objext conftest$ac_exeext
20390 if { (ac_try="$ac_link"
20391 case "(($ac_try" in
20392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20393 *) ac_try_echo=$ac_try;;
20394 esac
20395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20396 (eval "$ac_link") 2>conftest.er1
20397 ac_status=$?
20398 grep -v '^ *+' conftest.er1 >conftest.err
20399 rm -f conftest.er1
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } && {
20403 test -z "$ac_c_werror_flag" ||
20404 test ! -s conftest.err
20405 } && test -s conftest$ac_exeext &&
20406 $as_test_x conftest$ac_exeext; then
20407 ac_cv_lib_nbs_nbs_connect=yes
20408 else
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20412 ac_cv_lib_nbs_nbs_connect=no
20415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20416 conftest$ac_exeext conftest.$ac_ext
20417 LIBS=$ac_check_lib_save_LIBS
20419 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
20420 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
20421 if test $ac_cv_lib_nbs_nbs_connect = yes; then
20422 AST_NBS_FOUND=yes
20423 else
20424 AST_NBS_FOUND=no
20428 if test "${AST_NBS_FOUND}" = "yes"; then
20429 NBS_LIB="-lnbs "
20430 NBS_HEADER_FOUND="1"
20431 if test "x${NBS_DIR}" != "x"; then
20432 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
20433 NBS_INCLUDE="-I${NBS_DIR}/include"
20434 saved_cppflags="${CPPFLAGS}"
20435 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include"
20436 if test "xnbs.h" != "x" ; then
20437 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
20438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20439 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
20440 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
20441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20442 echo $ECHO_N "(cached) $ECHO_C" >&6
20444 ac_res=`eval echo '${'$as_ac_Header'}'`
20445 { echo "$as_me:$LINENO: result: $ac_res" >&5
20446 echo "${ECHO_T}$ac_res" >&6; }
20447 else
20448 # Is the header compilable?
20449 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
20450 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
20451 cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h. */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457 $ac_includes_default
20458 #include <${NBS_DIR}/include/nbs.h>
20459 _ACEOF
20460 rm -f conftest.$ac_objext
20461 if { (ac_try="$ac_compile"
20462 case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20465 esac
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_compile") 2>conftest.er1
20468 ac_status=$?
20469 grep -v '^ *+' conftest.er1 >conftest.err
20470 rm -f conftest.er1
20471 cat conftest.err >&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); } && {
20474 test -z "$ac_c_werror_flag" ||
20475 test ! -s conftest.err
20476 } && test -s conftest.$ac_objext; then
20477 ac_header_compiler=yes
20478 else
20479 echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20482 ac_header_compiler=no
20485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20487 echo "${ECHO_T}$ac_header_compiler" >&6; }
20489 # Is the header present?
20490 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
20491 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
20492 cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h. */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 #include <${NBS_DIR}/include/nbs.h>
20499 _ACEOF
20500 if { (ac_try="$ac_cpp conftest.$ac_ext"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20504 esac
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20507 ac_status=$?
20508 grep -v '^ *+' conftest.er1 >conftest.err
20509 rm -f conftest.er1
20510 cat conftest.err >&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } >/dev/null && {
20513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 }; then
20516 ac_header_preproc=yes
20517 else
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20521 ac_header_preproc=no
20524 rm -f conftest.err conftest.$ac_ext
20525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20526 echo "${ECHO_T}$ac_header_preproc" >&6; }
20528 # So? What about this header?
20529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20530 yes:no: )
20531 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
20532 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20533 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
20534 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
20535 ac_header_preproc=yes
20537 no:yes:* )
20538 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
20539 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
20540 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
20541 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
20542 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
20543 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
20544 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
20545 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
20546 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
20547 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
20548 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
20549 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
20552 esac
20553 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
20554 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
20555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 else
20558 eval "$as_ac_Header=\$ac_header_preproc"
20560 ac_res=`eval echo '${'$as_ac_Header'}'`
20561 { echo "$as_me:$LINENO: result: $ac_res" >&5
20562 echo "${ECHO_T}$ac_res" >&6; }
20565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20566 NBS_HEADER_FOUND=1
20567 else
20568 NBS_HEADER_FOUND=0
20573 CPPFLAGS="${saved_cppflags}"
20574 else
20575 if test "xnbs.h" != "x" ; then
20576 if test "${ac_cv_header_nbs_h+set}" = set; then
20577 { echo "$as_me:$LINENO: checking for nbs.h" >&5
20578 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
20579 if test "${ac_cv_header_nbs_h+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20582 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
20583 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
20584 else
20585 # Is the header compilable?
20586 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
20587 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
20588 cat >conftest.$ac_ext <<_ACEOF
20589 /* confdefs.h. */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 $ac_includes_default
20595 #include <nbs.h>
20596 _ACEOF
20597 rm -f conftest.$ac_objext
20598 if { (ac_try="$ac_compile"
20599 case "(($ac_try" in
20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601 *) ac_try_echo=$ac_try;;
20602 esac
20603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20604 (eval "$ac_compile") 2>conftest.er1
20605 ac_status=$?
20606 grep -v '^ *+' conftest.er1 >conftest.err
20607 rm -f conftest.er1
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } && {
20611 test -z "$ac_c_werror_flag" ||
20612 test ! -s conftest.err
20613 } && test -s conftest.$ac_objext; then
20614 ac_header_compiler=yes
20615 else
20616 echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20619 ac_header_compiler=no
20622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20624 echo "${ECHO_T}$ac_header_compiler" >&6; }
20626 # Is the header present?
20627 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
20628 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
20629 cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h. */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 #include <nbs.h>
20636 _ACEOF
20637 if { (ac_try="$ac_cpp conftest.$ac_ext"
20638 case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20641 esac
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20644 ac_status=$?
20645 grep -v '^ *+' conftest.er1 >conftest.err
20646 rm -f conftest.er1
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } >/dev/null && {
20650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20651 test ! -s conftest.err
20652 }; then
20653 ac_header_preproc=yes
20654 else
20655 echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20658 ac_header_preproc=no
20661 rm -f conftest.err conftest.$ac_ext
20662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20663 echo "${ECHO_T}$ac_header_preproc" >&6; }
20665 # So? What about this header?
20666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20667 yes:no: )
20668 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
20669 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20670 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
20671 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
20672 ac_header_preproc=yes
20674 no:yes:* )
20675 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
20676 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
20677 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
20678 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
20679 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
20680 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
20681 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
20682 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
20683 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
20684 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
20685 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
20686 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
20689 esac
20690 { echo "$as_me:$LINENO: checking for nbs.h" >&5
20691 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
20692 if test "${ac_cv_header_nbs_h+set}" = set; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 else
20695 ac_cv_header_nbs_h=$ac_header_preproc
20697 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
20698 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
20701 if test $ac_cv_header_nbs_h = yes; then
20702 NBS_HEADER_FOUND=1
20703 else
20704 NBS_HEADER_FOUND=0
20710 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
20711 if test -n "${NBS_MANDATORY}" ;
20712 then
20713 { echo "$as_me:$LINENO: ***" >&5
20714 echo "$as_me: ***" >&6;}
20715 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
20716 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
20717 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
20718 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
20719 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
20720 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
20721 exit 1
20723 NBS_LIB=""
20724 NBS_INCLUDE=""
20725 PBX_NBS=0
20726 else
20727 PBX_NBS=1
20729 cat >>confdefs.h <<_ACEOF
20730 #define HAVE_NBS 1
20731 _ACEOF
20734 elif test -n "${NBS_MANDATORY}";
20735 then
20736 { echo "$as_me:$LINENO: ***" >&5
20737 echo "$as_me: ***" >&6;}
20738 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
20739 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
20740 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20741 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20742 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
20743 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
20744 exit 1
20750 if test "${USE_NCURSES}" != "no"; then
20751 pbxlibdir=""
20752 if test "x${NCURSES_DIR}" != "x"; then
20753 if test -d ${NCURSES_DIR}/lib; then
20754 pbxlibdir="-L${NCURSES_DIR}/lib"
20755 else
20756 pbxlibdir="-L${NCURSES_DIR}"
20759 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
20760 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
20761 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20763 else
20764 ac_check_lib_save_LIBS=$LIBS
20765 LIBS="-lncurses ${pbxlibdir} $LIBS"
20766 cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h. */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20773 /* Override any GCC internal prototype to avoid an error.
20774 Use char because int might match the return type of a GCC
20775 builtin and then its argument prototype would still apply. */
20776 #ifdef __cplusplus
20777 extern "C"
20778 #endif
20779 char initscr ();
20781 main ()
20783 return initscr ();
20785 return 0;
20787 _ACEOF
20788 rm -f conftest.$ac_objext conftest$ac_exeext
20789 if { (ac_try="$ac_link"
20790 case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20793 esac
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_link") 2>conftest.er1
20796 ac_status=$?
20797 grep -v '^ *+' conftest.er1 >conftest.err
20798 rm -f conftest.er1
20799 cat conftest.err >&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } && {
20802 test -z "$ac_c_werror_flag" ||
20803 test ! -s conftest.err
20804 } && test -s conftest$ac_exeext &&
20805 $as_test_x conftest$ac_exeext; then
20806 ac_cv_lib_ncurses_initscr=yes
20807 else
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 ac_cv_lib_ncurses_initscr=no
20814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20815 conftest$ac_exeext conftest.$ac_ext
20816 LIBS=$ac_check_lib_save_LIBS
20818 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
20819 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
20820 if test $ac_cv_lib_ncurses_initscr = yes; then
20821 AST_NCURSES_FOUND=yes
20822 else
20823 AST_NCURSES_FOUND=no
20827 if test "${AST_NCURSES_FOUND}" = "yes"; then
20828 NCURSES_LIB="-lncurses "
20829 NCURSES_HEADER_FOUND="1"
20830 if test "x${NCURSES_DIR}" != "x"; then
20831 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
20832 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
20833 saved_cppflags="${CPPFLAGS}"
20834 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
20835 if test "xcurses.h" != "x" ; then
20836 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
20837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20838 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
20839 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
20840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20841 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 ac_res=`eval echo '${'$as_ac_Header'}'`
20844 { echo "$as_me:$LINENO: result: $ac_res" >&5
20845 echo "${ECHO_T}$ac_res" >&6; }
20846 else
20847 # Is the header compilable?
20848 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
20849 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
20850 cat >conftest.$ac_ext <<_ACEOF
20851 /* confdefs.h. */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20856 $ac_includes_default
20857 #include <${NCURSES_DIR}/include/curses.h>
20858 _ACEOF
20859 rm -f conftest.$ac_objext
20860 if { (ac_try="$ac_compile"
20861 case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20864 esac
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_compile") 2>conftest.er1
20867 ac_status=$?
20868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && {
20873 test -z "$ac_c_werror_flag" ||
20874 test ! -s conftest.err
20875 } && test -s conftest.$ac_objext; then
20876 ac_header_compiler=yes
20877 else
20878 echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20881 ac_header_compiler=no
20884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20886 echo "${ECHO_T}$ac_header_compiler" >&6; }
20888 # Is the header present?
20889 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
20890 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
20891 cat >conftest.$ac_ext <<_ACEOF
20892 /* confdefs.h. */
20893 _ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20897 #include <${NCURSES_DIR}/include/curses.h>
20898 _ACEOF
20899 if { (ac_try="$ac_cpp conftest.$ac_ext"
20900 case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20903 esac
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20906 ac_status=$?
20907 grep -v '^ *+' conftest.er1 >conftest.err
20908 rm -f conftest.er1
20909 cat conftest.err >&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } >/dev/null && {
20912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20913 test ! -s conftest.err
20914 }; then
20915 ac_header_preproc=yes
20916 else
20917 echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20920 ac_header_preproc=no
20923 rm -f conftest.err conftest.$ac_ext
20924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20925 echo "${ECHO_T}$ac_header_preproc" >&6; }
20927 # So? What about this header?
20928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20929 yes:no: )
20930 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
20931 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20932 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
20933 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
20934 ac_header_preproc=yes
20936 no:yes:* )
20937 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
20938 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
20939 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
20940 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
20941 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
20942 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
20943 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
20944 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
20945 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
20946 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
20947 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
20948 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
20951 esac
20952 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
20953 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
20954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20956 else
20957 eval "$as_ac_Header=\$ac_header_preproc"
20959 ac_res=`eval echo '${'$as_ac_Header'}'`
20960 { echo "$as_me:$LINENO: result: $ac_res" >&5
20961 echo "${ECHO_T}$ac_res" >&6; }
20964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20965 NCURSES_HEADER_FOUND=1
20966 else
20967 NCURSES_HEADER_FOUND=0
20972 CPPFLAGS="${saved_cppflags}"
20973 else
20974 if test "xcurses.h" != "x" ; then
20975 if test "${ac_cv_header_curses_h+set}" = set; then
20976 { echo "$as_me:$LINENO: checking for curses.h" >&5
20977 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
20978 if test "${ac_cv_header_curses_h+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
20982 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
20983 else
20984 # Is the header compilable?
20985 { echo "$as_me:$LINENO: checking curses.h usability" >&5
20986 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
20987 cat >conftest.$ac_ext <<_ACEOF
20988 /* confdefs.h. */
20989 _ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h. */
20993 $ac_includes_default
20994 #include <curses.h>
20995 _ACEOF
20996 rm -f conftest.$ac_objext
20997 if { (ac_try="$ac_compile"
20998 case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_compile") 2>conftest.er1
21004 ac_status=$?
21005 grep -v '^ *+' conftest.er1 >conftest.err
21006 rm -f conftest.er1
21007 cat conftest.err >&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } && {
21010 test -z "$ac_c_werror_flag" ||
21011 test ! -s conftest.err
21012 } && test -s conftest.$ac_objext; then
21013 ac_header_compiler=yes
21014 else
21015 echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21018 ac_header_compiler=no
21021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21023 echo "${ECHO_T}$ac_header_compiler" >&6; }
21025 # Is the header present?
21026 { echo "$as_me:$LINENO: checking curses.h presence" >&5
21027 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
21028 cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h. */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21034 #include <curses.h>
21035 _ACEOF
21036 if { (ac_try="$ac_cpp conftest.$ac_ext"
21037 case "(($ac_try" in
21038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039 *) ac_try_echo=$ac_try;;
21040 esac
21041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21043 ac_status=$?
21044 grep -v '^ *+' conftest.er1 >conftest.err
21045 rm -f conftest.er1
21046 cat conftest.err >&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } >/dev/null && {
21049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21050 test ! -s conftest.err
21051 }; then
21052 ac_header_preproc=yes
21053 else
21054 echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21057 ac_header_preproc=no
21060 rm -f conftest.err conftest.$ac_ext
21061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21062 echo "${ECHO_T}$ac_header_preproc" >&6; }
21064 # So? What about this header?
21065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21066 yes:no: )
21067 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
21068 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21069 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
21070 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
21071 ac_header_preproc=yes
21073 no:yes:* )
21074 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
21075 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
21076 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
21077 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
21078 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
21079 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
21080 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
21081 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
21082 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
21083 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
21084 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
21085 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
21088 esac
21089 { echo "$as_me:$LINENO: checking for curses.h" >&5
21090 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
21091 if test "${ac_cv_header_curses_h+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21093 else
21094 ac_cv_header_curses_h=$ac_header_preproc
21096 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
21097 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21100 if test $ac_cv_header_curses_h = yes; then
21101 NCURSES_HEADER_FOUND=1
21102 else
21103 NCURSES_HEADER_FOUND=0
21109 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
21110 if test -n "${NCURSES_MANDATORY}" ;
21111 then
21112 { echo "$as_me:$LINENO: ***" >&5
21113 echo "$as_me: ***" >&6;}
21114 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
21115 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
21116 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
21117 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
21118 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
21119 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
21120 exit 1
21122 NCURSES_LIB=""
21123 NCURSES_INCLUDE=""
21124 PBX_NCURSES=0
21125 else
21126 PBX_NCURSES=1
21128 cat >>confdefs.h <<_ACEOF
21129 #define HAVE_NCURSES 1
21130 _ACEOF
21133 elif test -n "${NCURSES_MANDATORY}";
21134 then
21135 { echo "$as_me:$LINENO: ***" >&5
21136 echo "$as_me: ***" >&6;}
21137 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
21138 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
21139 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21140 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21141 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
21142 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
21143 exit 1
21148 NETSNMP_CONFIG=No
21149 if test "${USE_NETSNMP}" != "no"; then
21150 if test "x${NETSNMP_DIR}" != "x"; then
21151 if test -n "$ac_tool_prefix"; then
21152 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21153 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
21154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21156 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21157 echo $ECHO_N "(cached) $ECHO_C" >&6
21158 else
21159 case $NETSNMP_CONFIG in
21160 [\\/]* | ?:[\\/]*)
21161 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
21164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21165 for as_dir in ${NETSNMP_DIR}/bin
21167 IFS=$as_save_IFS
21168 test -z "$as_dir" && as_dir=.
21169 for ac_exec_ext in '' $ac_executable_extensions; do
21170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21171 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21173 break 2
21175 done
21176 done
21177 IFS=$as_save_IFS
21180 esac
21182 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
21183 if test -n "$NETSNMP_CONFIG"; then
21184 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
21185 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21186 else
21187 { echo "$as_me:$LINENO: result: no" >&5
21188 echo "${ECHO_T}no" >&6; }
21193 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21194 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
21195 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21196 set dummy net-snmp-config; ac_word=$2
21197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21199 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21200 echo $ECHO_N "(cached) $ECHO_C" >&6
21201 else
21202 case $ac_pt_NETSNMP_CONFIG in
21203 [\\/]* | ?:[\\/]*)
21204 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21208 for as_dir in ${NETSNMP_DIR}/bin
21210 IFS=$as_save_IFS
21211 test -z "$as_dir" && as_dir=.
21212 for ac_exec_ext in '' $ac_executable_extensions; do
21213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21214 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21216 break 2
21218 done
21219 done
21220 IFS=$as_save_IFS
21223 esac
21225 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21226 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21227 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
21228 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21229 else
21230 { echo "$as_me:$LINENO: result: no" >&5
21231 echo "${ECHO_T}no" >&6; }
21234 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
21235 NETSNMP_CONFIG="No"
21236 else
21237 case $cross_compiling:$ac_tool_warned in
21238 yes:)
21239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21240 whose name does not start with the host triplet. If you think this
21241 configuration is useful to you, please write to autoconf@gnu.org." >&5
21242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21243 whose name does not start with the host triplet. If you think this
21244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21245 ac_tool_warned=yes ;;
21246 esac
21247 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
21249 else
21250 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
21253 if test x"${NETSNMP_CONFIG}" = xNo; then
21254 { echo "$as_me:$LINENO: ***" >&5
21255 echo "$as_me: ***" >&6;}
21256 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
21257 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
21258 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
21259 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
21260 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21261 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21262 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21263 echo "$as_me: *** including --without-netsnmp" >&6;}
21264 exit 1
21266 else
21267 if test -n "$ac_tool_prefix"; then
21268 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21269 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
21270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21272 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21274 else
21275 case $NETSNMP_CONFIG in
21276 [\\/]* | ?:[\\/]*)
21277 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
21280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21281 for as_dir in $PATH
21283 IFS=$as_save_IFS
21284 test -z "$as_dir" && as_dir=.
21285 for ac_exec_ext in '' $ac_executable_extensions; do
21286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21287 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21289 break 2
21291 done
21292 done
21293 IFS=$as_save_IFS
21296 esac
21298 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
21299 if test -n "$NETSNMP_CONFIG"; then
21300 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
21301 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21302 else
21303 { echo "$as_me:$LINENO: result: no" >&5
21304 echo "${ECHO_T}no" >&6; }
21309 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21310 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
21311 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21312 set dummy net-snmp-config; ac_word=$2
21313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21315 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21317 else
21318 case $ac_pt_NETSNMP_CONFIG in
21319 [\\/]* | ?:[\\/]*)
21320 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21324 for as_dir in $PATH
21326 IFS=$as_save_IFS
21327 test -z "$as_dir" && as_dir=.
21328 for ac_exec_ext in '' $ac_executable_extensions; do
21329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21330 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21332 break 2
21334 done
21335 done
21336 IFS=$as_save_IFS
21339 esac
21341 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21342 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21343 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
21344 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21345 else
21346 { echo "$as_me:$LINENO: result: no" >&5
21347 echo "${ECHO_T}no" >&6; }
21350 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
21351 NETSNMP_CONFIG="No"
21352 else
21353 case $cross_compiling:$ac_tool_warned in
21354 yes:)
21355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21356 whose name does not start with the host triplet. If you think this
21357 configuration is useful to you, please write to autoconf@gnu.org." >&5
21358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21359 whose name does not start with the host triplet. If you think this
21360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21361 ac_tool_warned=yes ;;
21362 esac
21363 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
21365 else
21366 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
21371 if test x"${NETSNMP_CONFIG}" != xNo; then
21372 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
21374 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
21375 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
21376 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
21377 echo $ECHO_N "(cached) $ECHO_C" >&6
21378 else
21379 ac_check_lib_save_LIBS=$LIBS
21380 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
21381 cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h. */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21388 /* Override any GCC internal prototype to avoid an error.
21389 Use char because int might match the return type of a GCC
21390 builtin and then its argument prototype would still apply. */
21391 #ifdef __cplusplus
21392 extern "C"
21393 #endif
21394 char snmp_register_callback ();
21396 main ()
21398 return snmp_register_callback ();
21400 return 0;
21402 _ACEOF
21403 rm -f conftest.$ac_objext conftest$ac_exeext
21404 if { (ac_try="$ac_link"
21405 case "(($ac_try" in
21406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407 *) ac_try_echo=$ac_try;;
21408 esac
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410 (eval "$ac_link") 2>conftest.er1
21411 ac_status=$?
21412 grep -v '^ *+' conftest.er1 >conftest.err
21413 rm -f conftest.er1
21414 cat conftest.err >&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } && {
21417 test -z "$ac_c_werror_flag" ||
21418 test ! -s conftest.err
21419 } && test -s conftest$ac_exeext &&
21420 $as_test_x conftest$ac_exeext; then
21421 ac_cv_lib_netsnmp_snmp_register_callback=yes
21422 else
21423 echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21426 ac_cv_lib_netsnmp_snmp_register_callback=no
21429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21430 conftest$ac_exeext conftest.$ac_ext
21431 LIBS=$ac_check_lib_save_LIBS
21433 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
21434 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
21435 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
21437 cat >>confdefs.h <<_ACEOF
21438 #define HAVE_NETSNMP 1
21439 _ACEOF
21444 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
21445 NETSNMP_LIB="${NETSNMP_libs}"
21446 PBX_NETSNMP=1
21447 elif test -n "${NETSNMP_MANDATORY}";
21448 then
21449 { echo "$as_me:$LINENO: ***" >&5
21450 echo "$as_me: ***" >&6;}
21451 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
21452 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
21453 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21454 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21455 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21456 echo "$as_me: *** including --without-netsnmp" >&6;}
21457 exit 1
21459 elif test -n "${NETSNMP_MANDATORY}";
21460 then
21461 { echo "$as_me:$LINENO: ***" >&5
21462 echo "$as_me: ***" >&6;}
21463 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
21464 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
21465 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21466 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21467 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21468 echo "$as_me: *** including --without-netsnmp" >&6;}
21469 exit 1
21473 if test "${USE_NEWT}" != "no"; then
21474 pbxlibdir=""
21475 if test "x${NEWT_DIR}" != "x"; then
21476 if test -d ${NEWT_DIR}/lib; then
21477 pbxlibdir="-L${NEWT_DIR}/lib"
21478 else
21479 pbxlibdir="-L${NEWT_DIR}"
21482 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
21483 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
21484 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21486 else
21487 ac_check_lib_save_LIBS=$LIBS
21488 LIBS="-lnewt ${pbxlibdir} $LIBS"
21489 cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h. */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21496 /* Override any GCC internal prototype to avoid an error.
21497 Use char because int might match the return type of a GCC
21498 builtin and then its argument prototype would still apply. */
21499 #ifdef __cplusplus
21500 extern "C"
21501 #endif
21502 char newtBell ();
21504 main ()
21506 return newtBell ();
21508 return 0;
21510 _ACEOF
21511 rm -f conftest.$ac_objext conftest$ac_exeext
21512 if { (ac_try="$ac_link"
21513 case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21516 esac
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518 (eval "$ac_link") 2>conftest.er1
21519 ac_status=$?
21520 grep -v '^ *+' conftest.er1 >conftest.err
21521 rm -f conftest.er1
21522 cat conftest.err >&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } && {
21525 test -z "$ac_c_werror_flag" ||
21526 test ! -s conftest.err
21527 } && test -s conftest$ac_exeext &&
21528 $as_test_x conftest$ac_exeext; then
21529 ac_cv_lib_newt_newtBell=yes
21530 else
21531 echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21534 ac_cv_lib_newt_newtBell=no
21537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21538 conftest$ac_exeext conftest.$ac_ext
21539 LIBS=$ac_check_lib_save_LIBS
21541 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
21542 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
21543 if test $ac_cv_lib_newt_newtBell = yes; then
21544 AST_NEWT_FOUND=yes
21545 else
21546 AST_NEWT_FOUND=no
21550 if test "${AST_NEWT_FOUND}" = "yes"; then
21551 NEWT_LIB="-lnewt "
21552 NEWT_HEADER_FOUND="1"
21553 if test "x${NEWT_DIR}" != "x"; then
21554 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
21555 NEWT_INCLUDE="-I${NEWT_DIR}/include"
21556 saved_cppflags="${CPPFLAGS}"
21557 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
21558 if test "xnewt.h" != "x" ; then
21559 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
21560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21561 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
21562 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
21563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21566 ac_res=`eval echo '${'$as_ac_Header'}'`
21567 { echo "$as_me:$LINENO: result: $ac_res" >&5
21568 echo "${ECHO_T}$ac_res" >&6; }
21569 else
21570 # Is the header compilable?
21571 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
21572 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
21573 cat >conftest.$ac_ext <<_ACEOF
21574 /* confdefs.h. */
21575 _ACEOF
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h. */
21579 $ac_includes_default
21580 #include <${NEWT_DIR}/include/newt.h>
21581 _ACEOF
21582 rm -f conftest.$ac_objext
21583 if { (ac_try="$ac_compile"
21584 case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21587 esac
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_compile") 2>conftest.er1
21590 ac_status=$?
21591 grep -v '^ *+' conftest.er1 >conftest.err
21592 rm -f conftest.er1
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } && {
21596 test -z "$ac_c_werror_flag" ||
21597 test ! -s conftest.err
21598 } && test -s conftest.$ac_objext; then
21599 ac_header_compiler=yes
21600 else
21601 echo "$as_me: failed program was:" >&5
21602 sed 's/^/| /' conftest.$ac_ext >&5
21604 ac_header_compiler=no
21607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21609 echo "${ECHO_T}$ac_header_compiler" >&6; }
21611 # Is the header present?
21612 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
21613 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
21614 cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h. */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 #include <${NEWT_DIR}/include/newt.h>
21621 _ACEOF
21622 if { (ac_try="$ac_cpp conftest.$ac_ext"
21623 case "(($ac_try" in
21624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21625 *) ac_try_echo=$ac_try;;
21626 esac
21627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21629 ac_status=$?
21630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } >/dev/null && {
21635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21636 test ! -s conftest.err
21637 }; then
21638 ac_header_preproc=yes
21639 else
21640 echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21643 ac_header_preproc=no
21646 rm -f conftest.err conftest.$ac_ext
21647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21648 echo "${ECHO_T}$ac_header_preproc" >&6; }
21650 # So? What about this header?
21651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21652 yes:no: )
21653 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21654 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21655 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
21656 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
21657 ac_header_preproc=yes
21659 no:yes:* )
21660 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
21661 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
21662 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
21663 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
21665 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
21666 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
21667 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
21669 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
21671 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
21674 esac
21675 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
21676 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
21677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21679 else
21680 eval "$as_ac_Header=\$ac_header_preproc"
21682 ac_res=`eval echo '${'$as_ac_Header'}'`
21683 { echo "$as_me:$LINENO: result: $ac_res" >&5
21684 echo "${ECHO_T}$ac_res" >&6; }
21687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21688 NEWT_HEADER_FOUND=1
21689 else
21690 NEWT_HEADER_FOUND=0
21695 CPPFLAGS="${saved_cppflags}"
21696 else
21697 if test "xnewt.h" != "x" ; then
21698 if test "${ac_cv_header_newt_h+set}" = set; then
21699 { echo "$as_me:$LINENO: checking for newt.h" >&5
21700 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
21701 if test "${ac_cv_header_newt_h+set}" = set; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21704 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
21705 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
21706 else
21707 # Is the header compilable?
21708 { echo "$as_me:$LINENO: checking newt.h usability" >&5
21709 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
21710 cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h. */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21716 $ac_includes_default
21717 #include <newt.h>
21718 _ACEOF
21719 rm -f conftest.$ac_objext
21720 if { (ac_try="$ac_compile"
21721 case "(($ac_try" in
21722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723 *) ac_try_echo=$ac_try;;
21724 esac
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726 (eval "$ac_compile") 2>conftest.er1
21727 ac_status=$?
21728 grep -v '^ *+' conftest.er1 >conftest.err
21729 rm -f conftest.er1
21730 cat conftest.err >&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); } && {
21733 test -z "$ac_c_werror_flag" ||
21734 test ! -s conftest.err
21735 } && test -s conftest.$ac_objext; then
21736 ac_header_compiler=yes
21737 else
21738 echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21741 ac_header_compiler=no
21744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21746 echo "${ECHO_T}$ac_header_compiler" >&6; }
21748 # Is the header present?
21749 { echo "$as_me:$LINENO: checking newt.h presence" >&5
21750 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
21751 cat >conftest.$ac_ext <<_ACEOF
21752 /* confdefs.h. */
21753 _ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21757 #include <newt.h>
21758 _ACEOF
21759 if { (ac_try="$ac_cpp conftest.$ac_ext"
21760 case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21763 esac
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21766 ac_status=$?
21767 grep -v '^ *+' conftest.er1 >conftest.err
21768 rm -f conftest.er1
21769 cat conftest.err >&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } >/dev/null && {
21772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21773 test ! -s conftest.err
21774 }; then
21775 ac_header_preproc=yes
21776 else
21777 echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21780 ac_header_preproc=no
21783 rm -f conftest.err conftest.$ac_ext
21784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21785 echo "${ECHO_T}$ac_header_preproc" >&6; }
21787 # So? What about this header?
21788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21789 yes:no: )
21790 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21791 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21792 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
21793 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
21794 ac_header_preproc=yes
21796 no:yes:* )
21797 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
21798 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
21799 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
21800 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
21801 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
21802 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
21804 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
21806 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
21807 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
21808 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
21811 esac
21812 { echo "$as_me:$LINENO: checking for newt.h" >&5
21813 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
21814 if test "${ac_cv_header_newt_h+set}" = set; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21816 else
21817 ac_cv_header_newt_h=$ac_header_preproc
21819 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
21820 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
21823 if test $ac_cv_header_newt_h = yes; then
21824 NEWT_HEADER_FOUND=1
21825 else
21826 NEWT_HEADER_FOUND=0
21832 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
21833 if test -n "${NEWT_MANDATORY}" ;
21834 then
21835 { echo "$as_me:$LINENO: ***" >&5
21836 echo "$as_me: ***" >&6;}
21837 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
21838 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
21839 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
21840 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
21841 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
21842 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
21843 exit 1
21845 NEWT_LIB=""
21846 NEWT_INCLUDE=""
21847 PBX_NEWT=0
21848 else
21849 PBX_NEWT=1
21851 cat >>confdefs.h <<_ACEOF
21852 #define HAVE_NEWT 1
21853 _ACEOF
21856 elif test -n "${NEWT_MANDATORY}";
21857 then
21858 { echo "$as_me:$LINENO: ***" >&5
21859 echo "$as_me: ***" >&6;}
21860 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
21861 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
21862 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21863 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21864 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
21865 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
21866 exit 1
21872 if test "${USE_UNIXODBC}" != "no"; then
21873 pbxlibdir=""
21874 if test "x${UNIXODBC_DIR}" != "x"; then
21875 if test -d ${UNIXODBC_DIR}/lib; then
21876 pbxlibdir="-L${UNIXODBC_DIR}/lib"
21877 else
21878 pbxlibdir="-L${UNIXODBC_DIR}"
21881 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
21882 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
21883 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21885 else
21886 ac_check_lib_save_LIBS=$LIBS
21887 LIBS="-lodbc ${pbxlibdir} $LIBS"
21888 cat >conftest.$ac_ext <<_ACEOF
21889 /* confdefs.h. */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21895 /* Override any GCC internal prototype to avoid an error.
21896 Use char because int might match the return type of a GCC
21897 builtin and then its argument prototype would still apply. */
21898 #ifdef __cplusplus
21899 extern "C"
21900 #endif
21901 char SQLConnect ();
21903 main ()
21905 return SQLConnect ();
21907 return 0;
21909 _ACEOF
21910 rm -f conftest.$ac_objext conftest$ac_exeext
21911 if { (ac_try="$ac_link"
21912 case "(($ac_try" in
21913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914 *) ac_try_echo=$ac_try;;
21915 esac
21916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21917 (eval "$ac_link") 2>conftest.er1
21918 ac_status=$?
21919 grep -v '^ *+' conftest.er1 >conftest.err
21920 rm -f conftest.er1
21921 cat conftest.err >&5
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); } && {
21924 test -z "$ac_c_werror_flag" ||
21925 test ! -s conftest.err
21926 } && test -s conftest$ac_exeext &&
21927 $as_test_x conftest$ac_exeext; then
21928 ac_cv_lib_odbc_SQLConnect=yes
21929 else
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21933 ac_cv_lib_odbc_SQLConnect=no
21936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21937 conftest$ac_exeext conftest.$ac_ext
21938 LIBS=$ac_check_lib_save_LIBS
21940 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
21941 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
21942 if test $ac_cv_lib_odbc_SQLConnect = yes; then
21943 AST_UNIXODBC_FOUND=yes
21944 else
21945 AST_UNIXODBC_FOUND=no
21949 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
21950 UNIXODBC_LIB="-lodbc "
21951 UNIXODBC_HEADER_FOUND="1"
21952 if test "x${UNIXODBC_DIR}" != "x"; then
21953 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
21954 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
21955 saved_cppflags="${CPPFLAGS}"
21956 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
21957 if test "xsql.h" != "x" ; then
21958 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
21959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21960 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
21961 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
21962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 ac_res=`eval echo '${'$as_ac_Header'}'`
21966 { echo "$as_me:$LINENO: result: $ac_res" >&5
21967 echo "${ECHO_T}$ac_res" >&6; }
21968 else
21969 # Is the header compilable?
21970 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
21971 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
21972 cat >conftest.$ac_ext <<_ACEOF
21973 /* confdefs.h. */
21974 _ACEOF
21975 cat confdefs.h >>conftest.$ac_ext
21976 cat >>conftest.$ac_ext <<_ACEOF
21977 /* end confdefs.h. */
21978 $ac_includes_default
21979 #include <${UNIXODBC_DIR}/include/sql.h>
21980 _ACEOF
21981 rm -f conftest.$ac_objext
21982 if { (ac_try="$ac_compile"
21983 case "(($ac_try" in
21984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985 *) ac_try_echo=$ac_try;;
21986 esac
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988 (eval "$ac_compile") 2>conftest.er1
21989 ac_status=$?
21990 grep -v '^ *+' conftest.er1 >conftest.err
21991 rm -f conftest.er1
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } && {
21995 test -z "$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21997 } && test -s conftest.$ac_objext; then
21998 ac_header_compiler=yes
21999 else
22000 echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22003 ac_header_compiler=no
22006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22008 echo "${ECHO_T}$ac_header_compiler" >&6; }
22010 # Is the header present?
22011 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
22012 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
22013 cat >conftest.$ac_ext <<_ACEOF
22014 /* confdefs.h. */
22015 _ACEOF
22016 cat confdefs.h >>conftest.$ac_ext
22017 cat >>conftest.$ac_ext <<_ACEOF
22018 /* end confdefs.h. */
22019 #include <${UNIXODBC_DIR}/include/sql.h>
22020 _ACEOF
22021 if { (ac_try="$ac_cpp conftest.$ac_ext"
22022 case "(($ac_try" in
22023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22025 esac
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22028 ac_status=$?
22029 grep -v '^ *+' conftest.er1 >conftest.err
22030 rm -f conftest.er1
22031 cat conftest.err >&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } >/dev/null && {
22034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22035 test ! -s conftest.err
22036 }; then
22037 ac_header_preproc=yes
22038 else
22039 echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22042 ac_header_preproc=no
22045 rm -f conftest.err conftest.$ac_ext
22046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22047 echo "${ECHO_T}$ac_header_preproc" >&6; }
22049 # So? What about this header?
22050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22051 yes:no: )
22052 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
22053 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22054 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
22055 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
22056 ac_header_preproc=yes
22058 no:yes:* )
22059 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
22060 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
22061 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
22062 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
22063 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
22064 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
22065 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
22066 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
22067 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
22068 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
22069 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
22070 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
22073 esac
22074 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
22075 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
22076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22078 else
22079 eval "$as_ac_Header=\$ac_header_preproc"
22081 ac_res=`eval echo '${'$as_ac_Header'}'`
22082 { echo "$as_me:$LINENO: result: $ac_res" >&5
22083 echo "${ECHO_T}$ac_res" >&6; }
22086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22087 UNIXODBC_HEADER_FOUND=1
22088 else
22089 UNIXODBC_HEADER_FOUND=0
22094 CPPFLAGS="${saved_cppflags}"
22095 else
22096 if test "xsql.h" != "x" ; then
22097 if test "${ac_cv_header_sql_h+set}" = set; then
22098 { echo "$as_me:$LINENO: checking for sql.h" >&5
22099 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
22100 if test "${ac_cv_header_sql_h+set}" = set; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
22103 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
22104 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22105 else
22106 # Is the header compilable?
22107 { echo "$as_me:$LINENO: checking sql.h usability" >&5
22108 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
22109 cat >conftest.$ac_ext <<_ACEOF
22110 /* confdefs.h. */
22111 _ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22115 $ac_includes_default
22116 #include <sql.h>
22117 _ACEOF
22118 rm -f conftest.$ac_objext
22119 if { (ac_try="$ac_compile"
22120 case "(($ac_try" in
22121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122 *) ac_try_echo=$ac_try;;
22123 esac
22124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22125 (eval "$ac_compile") 2>conftest.er1
22126 ac_status=$?
22127 grep -v '^ *+' conftest.er1 >conftest.err
22128 rm -f conftest.er1
22129 cat conftest.err >&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); } && {
22132 test -z "$ac_c_werror_flag" ||
22133 test ! -s conftest.err
22134 } && test -s conftest.$ac_objext; then
22135 ac_header_compiler=yes
22136 else
22137 echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22140 ac_header_compiler=no
22143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22145 echo "${ECHO_T}$ac_header_compiler" >&6; }
22147 # Is the header present?
22148 { echo "$as_me:$LINENO: checking sql.h presence" >&5
22149 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
22150 cat >conftest.$ac_ext <<_ACEOF
22151 /* confdefs.h. */
22152 _ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22156 #include <sql.h>
22157 _ACEOF
22158 if { (ac_try="$ac_cpp conftest.$ac_ext"
22159 case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22162 esac
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22165 ac_status=$?
22166 grep -v '^ *+' conftest.er1 >conftest.err
22167 rm -f conftest.er1
22168 cat conftest.err >&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } >/dev/null && {
22171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22172 test ! -s conftest.err
22173 }; then
22174 ac_header_preproc=yes
22175 else
22176 echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22179 ac_header_preproc=no
22182 rm -f conftest.err conftest.$ac_ext
22183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22184 echo "${ECHO_T}$ac_header_preproc" >&6; }
22186 # So? What about this header?
22187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22188 yes:no: )
22189 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
22190 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22191 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
22192 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
22193 ac_header_preproc=yes
22195 no:yes:* )
22196 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
22197 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
22198 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
22199 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
22200 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
22201 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
22202 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
22203 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
22204 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
22205 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
22206 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
22207 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
22210 esac
22211 { echo "$as_me:$LINENO: checking for sql.h" >&5
22212 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
22213 if test "${ac_cv_header_sql_h+set}" = set; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
22215 else
22216 ac_cv_header_sql_h=$ac_header_preproc
22218 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
22219 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22222 if test $ac_cv_header_sql_h = yes; then
22223 UNIXODBC_HEADER_FOUND=1
22224 else
22225 UNIXODBC_HEADER_FOUND=0
22231 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
22232 if test -n "${UNIXODBC_MANDATORY}" ;
22233 then
22234 { echo "$as_me:$LINENO: ***" >&5
22235 echo "$as_me: ***" >&6;}
22236 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
22237 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
22238 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
22239 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
22240 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
22241 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
22242 exit 1
22244 UNIXODBC_LIB=""
22245 UNIXODBC_INCLUDE=""
22246 PBX_UNIXODBC=0
22247 else
22248 PBX_UNIXODBC=1
22250 cat >>confdefs.h <<_ACEOF
22251 #define HAVE_UNIXODBC 1
22252 _ACEOF
22255 elif test -n "${UNIXODBC_MANDATORY}";
22256 then
22257 { echo "$as_me:$LINENO: ***" >&5
22258 echo "$as_me: ***" >&6;}
22259 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
22260 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
22261 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22262 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22263 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
22264 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
22265 exit 1
22271 if test "${USE_OGG}" != "no"; then
22272 pbxlibdir=""
22273 if test "x${OGG_DIR}" != "x"; then
22274 if test -d ${OGG_DIR}/lib; then
22275 pbxlibdir="-L${OGG_DIR}/lib"
22276 else
22277 pbxlibdir="-L${OGG_DIR}"
22280 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
22281 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
22282 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
22283 echo $ECHO_N "(cached) $ECHO_C" >&6
22284 else
22285 ac_check_lib_save_LIBS=$LIBS
22286 LIBS="-logg ${pbxlibdir} $LIBS"
22287 cat >conftest.$ac_ext <<_ACEOF
22288 /* confdefs.h. */
22289 _ACEOF
22290 cat confdefs.h >>conftest.$ac_ext
22291 cat >>conftest.$ac_ext <<_ACEOF
22292 /* end confdefs.h. */
22294 /* Override any GCC internal prototype to avoid an error.
22295 Use char because int might match the return type of a GCC
22296 builtin and then its argument prototype would still apply. */
22297 #ifdef __cplusplus
22298 extern "C"
22299 #endif
22300 char ogg_sync_init ();
22302 main ()
22304 return ogg_sync_init ();
22306 return 0;
22308 _ACEOF
22309 rm -f conftest.$ac_objext conftest$ac_exeext
22310 if { (ac_try="$ac_link"
22311 case "(($ac_try" in
22312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313 *) ac_try_echo=$ac_try;;
22314 esac
22315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22316 (eval "$ac_link") 2>conftest.er1
22317 ac_status=$?
22318 grep -v '^ *+' conftest.er1 >conftest.err
22319 rm -f conftest.er1
22320 cat conftest.err >&5
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); } && {
22323 test -z "$ac_c_werror_flag" ||
22324 test ! -s conftest.err
22325 } && test -s conftest$ac_exeext &&
22326 $as_test_x conftest$ac_exeext; then
22327 ac_cv_lib_ogg_ogg_sync_init=yes
22328 else
22329 echo "$as_me: failed program was:" >&5
22330 sed 's/^/| /' conftest.$ac_ext >&5
22332 ac_cv_lib_ogg_ogg_sync_init=no
22335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22336 conftest$ac_exeext conftest.$ac_ext
22337 LIBS=$ac_check_lib_save_LIBS
22339 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
22340 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
22341 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
22342 AST_OGG_FOUND=yes
22343 else
22344 AST_OGG_FOUND=no
22348 if test "${AST_OGG_FOUND}" = "yes"; then
22349 OGG_LIB="-logg "
22350 OGG_HEADER_FOUND="1"
22351 if test "x${OGG_DIR}" != "x"; then
22352 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
22353 OGG_INCLUDE="-I${OGG_DIR}/include"
22354 saved_cppflags="${CPPFLAGS}"
22355 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
22356 if test "x" != "x" ; then
22357 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
22358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22359 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
22360 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
22361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22362 echo $ECHO_N "(cached) $ECHO_C" >&6
22364 ac_res=`eval echo '${'$as_ac_Header'}'`
22365 { echo "$as_me:$LINENO: result: $ac_res" >&5
22366 echo "${ECHO_T}$ac_res" >&6; }
22367 else
22368 # Is the header compilable?
22369 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
22370 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
22371 cat >conftest.$ac_ext <<_ACEOF
22372 /* confdefs.h. */
22373 _ACEOF
22374 cat confdefs.h >>conftest.$ac_ext
22375 cat >>conftest.$ac_ext <<_ACEOF
22376 /* end confdefs.h. */
22377 $ac_includes_default
22378 #include <${OGG_DIR}/include/>
22379 _ACEOF
22380 rm -f conftest.$ac_objext
22381 if { (ac_try="$ac_compile"
22382 case "(($ac_try" in
22383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22384 *) ac_try_echo=$ac_try;;
22385 esac
22386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387 (eval "$ac_compile") 2>conftest.er1
22388 ac_status=$?
22389 grep -v '^ *+' conftest.er1 >conftest.err
22390 rm -f conftest.er1
22391 cat conftest.err >&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } && {
22394 test -z "$ac_c_werror_flag" ||
22395 test ! -s conftest.err
22396 } && test -s conftest.$ac_objext; then
22397 ac_header_compiler=yes
22398 else
22399 echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22402 ac_header_compiler=no
22405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22407 echo "${ECHO_T}$ac_header_compiler" >&6; }
22409 # Is the header present?
22410 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
22411 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
22412 cat >conftest.$ac_ext <<_ACEOF
22413 /* confdefs.h. */
22414 _ACEOF
22415 cat confdefs.h >>conftest.$ac_ext
22416 cat >>conftest.$ac_ext <<_ACEOF
22417 /* end confdefs.h. */
22418 #include <${OGG_DIR}/include/>
22419 _ACEOF
22420 if { (ac_try="$ac_cpp conftest.$ac_ext"
22421 case "(($ac_try" in
22422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423 *) ac_try_echo=$ac_try;;
22424 esac
22425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22427 ac_status=$?
22428 grep -v '^ *+' conftest.er1 >conftest.err
22429 rm -f conftest.er1
22430 cat conftest.err >&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); } >/dev/null && {
22433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22434 test ! -s conftest.err
22435 }; then
22436 ac_header_preproc=yes
22437 else
22438 echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22441 ac_header_preproc=no
22444 rm -f conftest.err conftest.$ac_ext
22445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22446 echo "${ECHO_T}$ac_header_preproc" >&6; }
22448 # So? What about this header?
22449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22450 yes:no: )
22451 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
22452 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
22453 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
22454 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
22455 ac_header_preproc=yes
22457 no:yes:* )
22458 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
22459 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
22460 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
22461 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
22462 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
22463 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
22464 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
22465 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
22466 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
22467 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
22468 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
22469 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
22472 esac
22473 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
22474 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
22475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22476 echo $ECHO_N "(cached) $ECHO_C" >&6
22477 else
22478 eval "$as_ac_Header=\$ac_header_preproc"
22480 ac_res=`eval echo '${'$as_ac_Header'}'`
22481 { echo "$as_me:$LINENO: result: $ac_res" >&5
22482 echo "${ECHO_T}$ac_res" >&6; }
22485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22486 OGG_HEADER_FOUND=1
22487 else
22488 OGG_HEADER_FOUND=0
22493 CPPFLAGS="${saved_cppflags}"
22494 else
22495 if test "x" != "x" ; then
22496 if test "${ac_cv_header_+set}" = set; then
22497 { echo "$as_me:$LINENO: checking for " >&5
22498 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22499 if test "${ac_cv_header_+set}" = set; then
22500 echo $ECHO_N "(cached) $ECHO_C" >&6
22502 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22503 echo "${ECHO_T}$ac_cv_header_" >&6; }
22504 else
22505 # Is the header compilable?
22506 { echo "$as_me:$LINENO: checking usability" >&5
22507 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22508 cat >conftest.$ac_ext <<_ACEOF
22509 /* confdefs.h. */
22510 _ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h. */
22514 $ac_includes_default
22515 #include <>
22516 _ACEOF
22517 rm -f conftest.$ac_objext
22518 if { (ac_try="$ac_compile"
22519 case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22522 esac
22523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_compile") 2>conftest.er1
22525 ac_status=$?
22526 grep -v '^ *+' conftest.er1 >conftest.err
22527 rm -f conftest.er1
22528 cat conftest.err >&5
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } && {
22531 test -z "$ac_c_werror_flag" ||
22532 test ! -s conftest.err
22533 } && test -s conftest.$ac_objext; then
22534 ac_header_compiler=yes
22535 else
22536 echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22539 ac_header_compiler=no
22542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22544 echo "${ECHO_T}$ac_header_compiler" >&6; }
22546 # Is the header present?
22547 { echo "$as_me:$LINENO: checking presence" >&5
22548 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22549 cat >conftest.$ac_ext <<_ACEOF
22550 /* confdefs.h. */
22551 _ACEOF
22552 cat confdefs.h >>conftest.$ac_ext
22553 cat >>conftest.$ac_ext <<_ACEOF
22554 /* end confdefs.h. */
22555 #include <>
22556 _ACEOF
22557 if { (ac_try="$ac_cpp conftest.$ac_ext"
22558 case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22561 esac
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22564 ac_status=$?
22565 grep -v '^ *+' conftest.er1 >conftest.err
22566 rm -f conftest.er1
22567 cat conftest.err >&5
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); } >/dev/null && {
22570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22571 test ! -s conftest.err
22572 }; then
22573 ac_header_preproc=yes
22574 else
22575 echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 ac_header_preproc=no
22581 rm -f conftest.err conftest.$ac_ext
22582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22583 echo "${ECHO_T}$ac_header_preproc" >&6; }
22585 # So? What about this header?
22586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22587 yes:no: )
22588 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22589 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22590 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22591 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22592 ac_header_preproc=yes
22594 no:yes:* )
22595 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22596 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22597 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22598 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22599 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22600 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22601 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22602 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22603 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22604 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22605 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22606 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22609 esac
22610 { echo "$as_me:$LINENO: checking for " >&5
22611 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22612 if test "${ac_cv_header_+set}" = set; then
22613 echo $ECHO_N "(cached) $ECHO_C" >&6
22614 else
22615 ac_cv_header_=$ac_header_preproc
22617 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22618 echo "${ECHO_T}$ac_cv_header_" >&6; }
22621 if test $ac_cv_header_ = yes; then
22622 OGG_HEADER_FOUND=1
22623 else
22624 OGG_HEADER_FOUND=0
22630 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
22631 if test -n "${OGG_MANDATORY}" ;
22632 then
22633 { echo "$as_me:$LINENO: ***" >&5
22634 echo "$as_me: ***" >&6;}
22635 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
22636 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
22637 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
22638 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
22639 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
22640 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
22641 exit 1
22643 OGG_LIB=""
22644 OGG_INCLUDE=""
22645 PBX_OGG=0
22646 else
22647 PBX_OGG=1
22649 cat >>confdefs.h <<_ACEOF
22650 #define HAVE_OGG 1
22651 _ACEOF
22654 elif test -n "${OGG_MANDATORY}";
22655 then
22656 { echo "$as_me:$LINENO: ***" >&5
22657 echo "$as_me: ***" >&6;}
22658 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
22659 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
22660 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22661 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22662 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
22663 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
22664 exit 1
22669 if test "${USE_OSS}" != "no"; then
22670 PBX_OSS=0
22671 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22672 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22673 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22674 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22675 echo $ECHO_N "(cached) $ECHO_C" >&6
22677 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22678 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22679 else
22680 # Is the header compilable?
22681 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
22682 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
22683 cat >conftest.$ac_ext <<_ACEOF
22684 /* confdefs.h. */
22685 _ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h. */
22689 $ac_includes_default
22690 #include <linux/soundcard.h>
22691 _ACEOF
22692 rm -f conftest.$ac_objext
22693 if { (ac_try="$ac_compile"
22694 case "(($ac_try" in
22695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22696 *) ac_try_echo=$ac_try;;
22697 esac
22698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22699 (eval "$ac_compile") 2>conftest.er1
22700 ac_status=$?
22701 grep -v '^ *+' conftest.er1 >conftest.err
22702 rm -f conftest.er1
22703 cat conftest.err >&5
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); } && {
22706 test -z "$ac_c_werror_flag" ||
22707 test ! -s conftest.err
22708 } && test -s conftest.$ac_objext; then
22709 ac_header_compiler=yes
22710 else
22711 echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22714 ac_header_compiler=no
22717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22719 echo "${ECHO_T}$ac_header_compiler" >&6; }
22721 # Is the header present?
22722 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
22723 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
22724 cat >conftest.$ac_ext <<_ACEOF
22725 /* confdefs.h. */
22726 _ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h. */
22730 #include <linux/soundcard.h>
22731 _ACEOF
22732 if { (ac_try="$ac_cpp conftest.$ac_ext"
22733 case "(($ac_try" in
22734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735 *) ac_try_echo=$ac_try;;
22736 esac
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22739 ac_status=$?
22740 grep -v '^ *+' conftest.er1 >conftest.err
22741 rm -f conftest.er1
22742 cat conftest.err >&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } >/dev/null && {
22745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22746 test ! -s conftest.err
22747 }; then
22748 ac_header_preproc=yes
22749 else
22750 echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22753 ac_header_preproc=no
22756 rm -f conftest.err conftest.$ac_ext
22757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22758 echo "${ECHO_T}$ac_header_preproc" >&6; }
22760 # So? What about this header?
22761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22762 yes:no: )
22763 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22764 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22765 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
22766 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
22767 ac_header_preproc=yes
22769 no:yes:* )
22770 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
22771 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
22772 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
22773 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
22774 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
22775 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
22776 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22777 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22778 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
22779 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
22780 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
22781 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
22784 esac
22785 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22786 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22787 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22788 echo $ECHO_N "(cached) $ECHO_C" >&6
22789 else
22790 ac_cv_header_linux_soundcard_h=$ac_header_preproc
22792 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22793 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22796 if test $ac_cv_header_linux_soundcard_h = yes; then
22798 PBX_OSS=1
22800 cat >>confdefs.h <<_ACEOF
22801 #define HAVE_OSS 1
22802 _ACEOF
22808 if test "$PBX_OSS" = "0"; then
22809 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22810 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22811 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22812 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22813 echo $ECHO_N "(cached) $ECHO_C" >&6
22815 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22816 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22817 else
22818 # Is the header compilable?
22819 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
22820 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
22821 cat >conftest.$ac_ext <<_ACEOF
22822 /* confdefs.h. */
22823 _ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h. */
22827 $ac_includes_default
22828 #include <sys/soundcard.h>
22829 _ACEOF
22830 rm -f conftest.$ac_objext
22831 if { (ac_try="$ac_compile"
22832 case "(($ac_try" in
22833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834 *) ac_try_echo=$ac_try;;
22835 esac
22836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22837 (eval "$ac_compile") 2>conftest.er1
22838 ac_status=$?
22839 grep -v '^ *+' conftest.er1 >conftest.err
22840 rm -f conftest.er1
22841 cat conftest.err >&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } && {
22844 test -z "$ac_c_werror_flag" ||
22845 test ! -s conftest.err
22846 } && test -s conftest.$ac_objext; then
22847 ac_header_compiler=yes
22848 else
22849 echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22852 ac_header_compiler=no
22855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22857 echo "${ECHO_T}$ac_header_compiler" >&6; }
22859 # Is the header present?
22860 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
22861 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
22862 cat >conftest.$ac_ext <<_ACEOF
22863 /* confdefs.h. */
22864 _ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22868 #include <sys/soundcard.h>
22869 _ACEOF
22870 if { (ac_try="$ac_cpp conftest.$ac_ext"
22871 case "(($ac_try" in
22872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873 *) ac_try_echo=$ac_try;;
22874 esac
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22877 ac_status=$?
22878 grep -v '^ *+' conftest.er1 >conftest.err
22879 rm -f conftest.er1
22880 cat conftest.err >&5
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } >/dev/null && {
22883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22884 test ! -s conftest.err
22885 }; then
22886 ac_header_preproc=yes
22887 else
22888 echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22891 ac_header_preproc=no
22894 rm -f conftest.err conftest.$ac_ext
22895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22896 echo "${ECHO_T}$ac_header_preproc" >&6; }
22898 # So? What about this header?
22899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22900 yes:no: )
22901 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22902 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22903 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
22904 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
22905 ac_header_preproc=yes
22907 no:yes:* )
22908 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
22909 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
22910 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
22911 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
22912 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
22913 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
22914 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22915 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22916 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
22917 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
22918 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
22919 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
22922 esac
22923 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22924 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22925 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22926 echo $ECHO_N "(cached) $ECHO_C" >&6
22927 else
22928 ac_cv_header_sys_soundcard_h=$ac_header_preproc
22930 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22931 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22934 if test $ac_cv_header_sys_soundcard_h = yes; then
22936 PBX_OSS=1
22938 cat >>confdefs.h <<_ACEOF
22939 #define HAVE_OSS 1
22940 _ACEOF
22947 if test "$PBX_OSS" = "0"; then
22949 if test "${USE_OSS}" != "no"; then
22950 pbxlibdir=""
22951 if test "x${OSS_DIR}" != "x"; then
22952 if test -d ${OSS_DIR}/lib; then
22953 pbxlibdir="-L${OSS_DIR}/lib"
22954 else
22955 pbxlibdir="-L${OSS_DIR}"
22958 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
22959 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
22960 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
22961 echo $ECHO_N "(cached) $ECHO_C" >&6
22962 else
22963 ac_check_lib_save_LIBS=$LIBS
22964 LIBS="-lossaudio ${pbxlibdir} $LIBS"
22965 cat >conftest.$ac_ext <<_ACEOF
22966 /* confdefs.h. */
22967 _ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h. */
22972 /* Override any GCC internal prototype to avoid an error.
22973 Use char because int might match the return type of a GCC
22974 builtin and then its argument prototype would still apply. */
22975 #ifdef __cplusplus
22976 extern "C"
22977 #endif
22978 char oss_ioctl_mixer ();
22980 main ()
22982 return oss_ioctl_mixer ();
22984 return 0;
22986 _ACEOF
22987 rm -f conftest.$ac_objext conftest$ac_exeext
22988 if { (ac_try="$ac_link"
22989 case "(($ac_try" in
22990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22991 *) ac_try_echo=$ac_try;;
22992 esac
22993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22994 (eval "$ac_link") 2>conftest.er1
22995 ac_status=$?
22996 grep -v '^ *+' conftest.er1 >conftest.err
22997 rm -f conftest.er1
22998 cat conftest.err >&5
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); } && {
23001 test -z "$ac_c_werror_flag" ||
23002 test ! -s conftest.err
23003 } && test -s conftest$ac_exeext &&
23004 $as_test_x conftest$ac_exeext; then
23005 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
23006 else
23007 echo "$as_me: failed program was:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23010 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
23013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23014 conftest$ac_exeext conftest.$ac_ext
23015 LIBS=$ac_check_lib_save_LIBS
23017 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
23018 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
23019 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
23020 AST_OSS_FOUND=yes
23021 else
23022 AST_OSS_FOUND=no
23026 if test "${AST_OSS_FOUND}" = "yes"; then
23027 OSS_LIB="-lossaudio "
23028 OSS_HEADER_FOUND="1"
23029 if test "x${OSS_DIR}" != "x"; then
23030 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
23031 OSS_INCLUDE="-I${OSS_DIR}/include"
23032 saved_cppflags="${CPPFLAGS}"
23033 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include"
23034 if test "xsoundcard.h" != "x" ; then
23035 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
23036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23037 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
23038 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
23039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23040 echo $ECHO_N "(cached) $ECHO_C" >&6
23042 ac_res=`eval echo '${'$as_ac_Header'}'`
23043 { echo "$as_me:$LINENO: result: $ac_res" >&5
23044 echo "${ECHO_T}$ac_res" >&6; }
23045 else
23046 # Is the header compilable?
23047 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
23048 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
23049 cat >conftest.$ac_ext <<_ACEOF
23050 /* confdefs.h. */
23051 _ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h. */
23055 $ac_includes_default
23056 #include <${OSS_DIR}/include/soundcard.h>
23057 _ACEOF
23058 rm -f conftest.$ac_objext
23059 if { (ac_try="$ac_compile"
23060 case "(($ac_try" in
23061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062 *) ac_try_echo=$ac_try;;
23063 esac
23064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23065 (eval "$ac_compile") 2>conftest.er1
23066 ac_status=$?
23067 grep -v '^ *+' conftest.er1 >conftest.err
23068 rm -f conftest.er1
23069 cat conftest.err >&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } && {
23072 test -z "$ac_c_werror_flag" ||
23073 test ! -s conftest.err
23074 } && test -s conftest.$ac_objext; then
23075 ac_header_compiler=yes
23076 else
23077 echo "$as_me: failed program was:" >&5
23078 sed 's/^/| /' conftest.$ac_ext >&5
23080 ac_header_compiler=no
23083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23085 echo "${ECHO_T}$ac_header_compiler" >&6; }
23087 # Is the header present?
23088 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
23089 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
23090 cat >conftest.$ac_ext <<_ACEOF
23091 /* confdefs.h. */
23092 _ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23096 #include <${OSS_DIR}/include/soundcard.h>
23097 _ACEOF
23098 if { (ac_try="$ac_cpp conftest.$ac_ext"
23099 case "(($ac_try" in
23100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23101 *) ac_try_echo=$ac_try;;
23102 esac
23103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23105 ac_status=$?
23106 grep -v '^ *+' conftest.er1 >conftest.err
23107 rm -f conftest.er1
23108 cat conftest.err >&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); } >/dev/null && {
23111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23112 test ! -s conftest.err
23113 }; then
23114 ac_header_preproc=yes
23115 else
23116 echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23119 ac_header_preproc=no
23122 rm -f conftest.err conftest.$ac_ext
23123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23124 echo "${ECHO_T}$ac_header_preproc" >&6; }
23126 # So? What about this header?
23127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23128 yes:no: )
23129 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
23130 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23131 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
23132 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
23133 ac_header_preproc=yes
23135 no:yes:* )
23136 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
23137 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
23138 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
23139 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
23140 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
23141 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
23142 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
23143 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
23144 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
23145 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
23146 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
23147 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
23150 esac
23151 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
23152 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
23153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23154 echo $ECHO_N "(cached) $ECHO_C" >&6
23155 else
23156 eval "$as_ac_Header=\$ac_header_preproc"
23158 ac_res=`eval echo '${'$as_ac_Header'}'`
23159 { echo "$as_me:$LINENO: result: $ac_res" >&5
23160 echo "${ECHO_T}$ac_res" >&6; }
23163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23164 OSS_HEADER_FOUND=1
23165 else
23166 OSS_HEADER_FOUND=0
23171 CPPFLAGS="${saved_cppflags}"
23172 else
23173 if test "xsoundcard.h" != "x" ; then
23174 if test "${ac_cv_header_soundcard_h+set}" = set; then
23175 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
23176 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
23177 if test "${ac_cv_header_soundcard_h+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
23180 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
23181 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
23182 else
23183 # Is the header compilable?
23184 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
23185 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
23186 cat >conftest.$ac_ext <<_ACEOF
23187 /* confdefs.h. */
23188 _ACEOF
23189 cat confdefs.h >>conftest.$ac_ext
23190 cat >>conftest.$ac_ext <<_ACEOF
23191 /* end confdefs.h. */
23192 $ac_includes_default
23193 #include <soundcard.h>
23194 _ACEOF
23195 rm -f conftest.$ac_objext
23196 if { (ac_try="$ac_compile"
23197 case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23200 esac
23201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23202 (eval "$ac_compile") 2>conftest.er1
23203 ac_status=$?
23204 grep -v '^ *+' conftest.er1 >conftest.err
23205 rm -f conftest.er1
23206 cat conftest.err >&5
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); } && {
23209 test -z "$ac_c_werror_flag" ||
23210 test ! -s conftest.err
23211 } && test -s conftest.$ac_objext; then
23212 ac_header_compiler=yes
23213 else
23214 echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23217 ac_header_compiler=no
23220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23222 echo "${ECHO_T}$ac_header_compiler" >&6; }
23224 # Is the header present?
23225 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
23226 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
23227 cat >conftest.$ac_ext <<_ACEOF
23228 /* confdefs.h. */
23229 _ACEOF
23230 cat confdefs.h >>conftest.$ac_ext
23231 cat >>conftest.$ac_ext <<_ACEOF
23232 /* end confdefs.h. */
23233 #include <soundcard.h>
23234 _ACEOF
23235 if { (ac_try="$ac_cpp conftest.$ac_ext"
23236 case "(($ac_try" in
23237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238 *) ac_try_echo=$ac_try;;
23239 esac
23240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23242 ac_status=$?
23243 grep -v '^ *+' conftest.er1 >conftest.err
23244 rm -f conftest.er1
23245 cat conftest.err >&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); } >/dev/null && {
23248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23249 test ! -s conftest.err
23250 }; then
23251 ac_header_preproc=yes
23252 else
23253 echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23256 ac_header_preproc=no
23259 rm -f conftest.err conftest.$ac_ext
23260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23261 echo "${ECHO_T}$ac_header_preproc" >&6; }
23263 # So? What about this header?
23264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23265 yes:no: )
23266 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
23267 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23268 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
23269 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
23270 ac_header_preproc=yes
23272 no:yes:* )
23273 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
23274 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
23275 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
23276 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
23277 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
23278 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
23279 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
23280 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
23281 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
23282 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
23283 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
23284 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
23287 esac
23288 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
23289 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
23290 if test "${ac_cv_header_soundcard_h+set}" = set; then
23291 echo $ECHO_N "(cached) $ECHO_C" >&6
23292 else
23293 ac_cv_header_soundcard_h=$ac_header_preproc
23295 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
23296 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
23299 if test $ac_cv_header_soundcard_h = yes; then
23300 OSS_HEADER_FOUND=1
23301 else
23302 OSS_HEADER_FOUND=0
23308 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
23309 if test -n "${OSS_MANDATORY}" ;
23310 then
23311 { echo "$as_me:$LINENO: ***" >&5
23312 echo "$as_me: ***" >&6;}
23313 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
23314 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
23315 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
23316 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
23317 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
23318 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23319 exit 1
23321 OSS_LIB=""
23322 OSS_INCLUDE=""
23323 PBX_OSS=0
23324 else
23325 PBX_OSS=1
23327 cat >>confdefs.h <<_ACEOF
23328 #define HAVE_OSS 1
23329 _ACEOF
23332 elif test -n "${OSS_MANDATORY}";
23333 then
23334 { echo "$as_me:$LINENO: ***" >&5
23335 echo "$as_me: ***" >&6;}
23336 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
23337 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
23338 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23339 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23340 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
23341 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23342 exit 1
23349 PG_CONFIG=No
23350 if test "${USE_PGSQL}" != "no"; then
23351 if test "x${PGSQL_DIR}" != "x"; then
23352 if test -n "$ac_tool_prefix"; then
23353 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23354 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23357 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23358 echo $ECHO_N "(cached) $ECHO_C" >&6
23359 else
23360 case $PG_CONFIG in
23361 [\\/]* | ?:[\\/]*)
23362 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23366 for as_dir in ${PGSQL_DIR}/bin
23368 IFS=$as_save_IFS
23369 test -z "$as_dir" && as_dir=.
23370 for ac_exec_ext in '' $ac_executable_extensions; do
23371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23372 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23374 break 2
23376 done
23377 done
23378 IFS=$as_save_IFS
23381 esac
23383 PG_CONFIG=$ac_cv_path_PG_CONFIG
23384 if test -n "$PG_CONFIG"; then
23385 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23386 echo "${ECHO_T}$PG_CONFIG" >&6; }
23387 else
23388 { echo "$as_me:$LINENO: result: no" >&5
23389 echo "${ECHO_T}no" >&6; }
23394 if test -z "$ac_cv_path_PG_CONFIG"; then
23395 ac_pt_PG_CONFIG=$PG_CONFIG
23396 # Extract the first word of "pg_config", so it can be a program name with args.
23397 set dummy pg_config; ac_word=$2
23398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23400 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
23401 echo $ECHO_N "(cached) $ECHO_C" >&6
23402 else
23403 case $ac_pt_PG_CONFIG in
23404 [\\/]* | ?:[\\/]*)
23405 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23409 for as_dir in ${PGSQL_DIR}/bin
23411 IFS=$as_save_IFS
23412 test -z "$as_dir" && as_dir=.
23413 for ac_exec_ext in '' $ac_executable_extensions; do
23414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23415 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23417 break 2
23419 done
23420 done
23421 IFS=$as_save_IFS
23424 esac
23426 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23427 if test -n "$ac_pt_PG_CONFIG"; then
23428 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23429 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23430 else
23431 { echo "$as_me:$LINENO: result: no" >&5
23432 echo "${ECHO_T}no" >&6; }
23435 if test "x$ac_pt_PG_CONFIG" = x; then
23436 PG_CONFIG="No"
23437 else
23438 case $cross_compiling:$ac_tool_warned in
23439 yes:)
23440 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23441 whose name does not start with the host triplet. If you think this
23442 configuration is useful to you, please write to autoconf@gnu.org." >&5
23443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23444 whose name does not start with the host triplet. If you think this
23445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23446 ac_tool_warned=yes ;;
23447 esac
23448 PG_CONFIG=$ac_pt_PG_CONFIG
23450 else
23451 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23454 if test x"${PG_CONFIG}" = xNo; then
23455 { echo "$as_me:$LINENO: ***" >&5
23456 echo "$as_me: ***" >&6;}
23457 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
23458 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
23459 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
23460 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
23461 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23462 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23463 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23464 echo "$as_me: *** including --without-postgres" >&6;}
23465 exit 1
23467 else
23468 if test -n "$ac_tool_prefix"; then
23469 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23470 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23473 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23474 echo $ECHO_N "(cached) $ECHO_C" >&6
23475 else
23476 case $PG_CONFIG in
23477 [\\/]* | ?:[\\/]*)
23478 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23482 for as_dir in $PATH
23484 IFS=$as_save_IFS
23485 test -z "$as_dir" && as_dir=.
23486 for ac_exec_ext in '' $ac_executable_extensions; do
23487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23488 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23490 break 2
23492 done
23493 done
23494 IFS=$as_save_IFS
23497 esac
23499 PG_CONFIG=$ac_cv_path_PG_CONFIG
23500 if test -n "$PG_CONFIG"; then
23501 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23502 echo "${ECHO_T}$PG_CONFIG" >&6; }
23503 else
23504 { echo "$as_me:$LINENO: result: no" >&5
23505 echo "${ECHO_T}no" >&6; }
23510 if test -z "$ac_cv_path_PG_CONFIG"; then
23511 ac_pt_PG_CONFIG=$PG_CONFIG
23512 # Extract the first word of "pg_config", so it can be a program name with args.
23513 set dummy pg_config; ac_word=$2
23514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23516 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
23517 echo $ECHO_N "(cached) $ECHO_C" >&6
23518 else
23519 case $ac_pt_PG_CONFIG in
23520 [\\/]* | ?:[\\/]*)
23521 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23525 for as_dir in $PATH
23527 IFS=$as_save_IFS
23528 test -z "$as_dir" && as_dir=.
23529 for ac_exec_ext in '' $ac_executable_extensions; do
23530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23531 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23533 break 2
23535 done
23536 done
23537 IFS=$as_save_IFS
23540 esac
23542 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23543 if test -n "$ac_pt_PG_CONFIG"; then
23544 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23545 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23546 else
23547 { echo "$as_me:$LINENO: result: no" >&5
23548 echo "${ECHO_T}no" >&6; }
23551 if test "x$ac_pt_PG_CONFIG" = x; then
23552 PG_CONFIG="No"
23553 else
23554 case $cross_compiling:$ac_tool_warned in
23555 yes:)
23556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23557 whose name does not start with the host triplet. If you think this
23558 configuration is useful to you, please write to autoconf@gnu.org." >&5
23559 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23560 whose name does not start with the host triplet. If you think this
23561 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23562 ac_tool_warned=yes ;;
23563 esac
23564 PG_CONFIG=$ac_pt_PG_CONFIG
23566 else
23567 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23572 if test "${PG_CONFIG}" != No; then
23573 PGSQL_libdir=`${PG_CONFIG} --libdir`
23574 PGSQL_includedir=`${PG_CONFIG} --includedir`
23576 if test "x$?" != "x0" ; then
23577 if test -n "${PGSQL_MANDATORY}" ; then
23578 { echo "$as_me:$LINENO: ***" >&5
23579 echo "$as_me: ***" >&6;}
23580 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23581 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23582 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23583 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23584 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23585 echo "$as_me: *** including --without-postgres" >&6;}
23586 exit 1
23588 else
23589 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
23590 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
23591 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
23592 echo $ECHO_N "(cached) $ECHO_C" >&6
23593 else
23594 ac_check_lib_save_LIBS=$LIBS
23595 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
23596 cat >conftest.$ac_ext <<_ACEOF
23597 /* confdefs.h. */
23598 _ACEOF
23599 cat confdefs.h >>conftest.$ac_ext
23600 cat >>conftest.$ac_ext <<_ACEOF
23601 /* end confdefs.h. */
23603 /* Override any GCC internal prototype to avoid an error.
23604 Use char because int might match the return type of a GCC
23605 builtin and then its argument prototype would still apply. */
23606 #ifdef __cplusplus
23607 extern "C"
23608 #endif
23609 char PQexec ();
23611 main ()
23613 return PQexec ();
23615 return 0;
23617 _ACEOF
23618 rm -f conftest.$ac_objext conftest$ac_exeext
23619 if { (ac_try="$ac_link"
23620 case "(($ac_try" in
23621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23622 *) ac_try_echo=$ac_try;;
23623 esac
23624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23625 (eval "$ac_link") 2>conftest.er1
23626 ac_status=$?
23627 grep -v '^ *+' conftest.er1 >conftest.err
23628 rm -f conftest.er1
23629 cat conftest.err >&5
23630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); } && {
23632 test -z "$ac_c_werror_flag" ||
23633 test ! -s conftest.err
23634 } && test -s conftest$ac_exeext &&
23635 $as_test_x conftest$ac_exeext; then
23636 ac_cv_lib_pq_PQexec=yes
23637 else
23638 echo "$as_me: failed program was:" >&5
23639 sed 's/^/| /' conftest.$ac_ext >&5
23641 ac_cv_lib_pq_PQexec=no
23644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23645 conftest$ac_exeext conftest.$ac_ext
23646 LIBS=$ac_check_lib_save_LIBS
23648 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
23649 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
23650 if test $ac_cv_lib_pq_PQexec = yes; then
23652 cat >>confdefs.h <<_ACEOF
23653 #define HAVE_PGSQL 1
23654 _ACEOF
23659 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
23660 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
23661 PGSQL_INCLUDE="-I${PGSQL_includedir}"
23662 PBX_PGSQL=1
23663 elif test -n "${PGSQL_MANDATORY}";
23664 then
23665 { echo "$as_me:$LINENO: ***" >&5
23666 echo "$as_me: ***" >&6;}
23667 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23668 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23669 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23670 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23671 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23672 echo "$as_me: *** including --without-postgres" >&6;}
23673 exit 1
23676 elif test -n "${PGSQL_MANDATORY}";
23677 then
23678 { echo "$as_me:$LINENO: ***" >&5
23679 echo "$as_me: ***" >&6;}
23680 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23681 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23682 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23683 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23684 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23685 echo "$as_me: *** including --without-postgres" >&6;}
23686 exit 1
23690 if test "${USE_POPT}" != "no"; then
23691 pbxlibdir=""
23692 if test "x${POPT_DIR}" != "x"; then
23693 if test -d ${POPT_DIR}/lib; then
23694 pbxlibdir="-L${POPT_DIR}/lib"
23695 else
23696 pbxlibdir="-L${POPT_DIR}"
23699 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
23700 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
23701 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
23702 echo $ECHO_N "(cached) $ECHO_C" >&6
23703 else
23704 ac_check_lib_save_LIBS=$LIBS
23705 LIBS="-lpopt ${pbxlibdir} $LIBS"
23706 cat >conftest.$ac_ext <<_ACEOF
23707 /* confdefs.h. */
23708 _ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h. */
23713 /* Override any GCC internal prototype to avoid an error.
23714 Use char because int might match the return type of a GCC
23715 builtin and then its argument prototype would still apply. */
23716 #ifdef __cplusplus
23717 extern "C"
23718 #endif
23719 char poptStrerror ();
23721 main ()
23723 return poptStrerror ();
23725 return 0;
23727 _ACEOF
23728 rm -f conftest.$ac_objext conftest$ac_exeext
23729 if { (ac_try="$ac_link"
23730 case "(($ac_try" in
23731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23732 *) ac_try_echo=$ac_try;;
23733 esac
23734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23735 (eval "$ac_link") 2>conftest.er1
23736 ac_status=$?
23737 grep -v '^ *+' conftest.er1 >conftest.err
23738 rm -f conftest.er1
23739 cat conftest.err >&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } && {
23742 test -z "$ac_c_werror_flag" ||
23743 test ! -s conftest.err
23744 } && test -s conftest$ac_exeext &&
23745 $as_test_x conftest$ac_exeext; then
23746 ac_cv_lib_popt_poptStrerror=yes
23747 else
23748 echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23751 ac_cv_lib_popt_poptStrerror=no
23754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23755 conftest$ac_exeext conftest.$ac_ext
23756 LIBS=$ac_check_lib_save_LIBS
23758 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
23759 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
23760 if test $ac_cv_lib_popt_poptStrerror = yes; then
23761 AST_POPT_FOUND=yes
23762 else
23763 AST_POPT_FOUND=no
23767 if test "${AST_POPT_FOUND}" = "yes"; then
23768 POPT_LIB="-lpopt "
23769 POPT_HEADER_FOUND="1"
23770 if test "x${POPT_DIR}" != "x"; then
23771 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
23772 POPT_INCLUDE="-I${POPT_DIR}/include"
23773 saved_cppflags="${CPPFLAGS}"
23774 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include"
23775 if test "xpopt.h" != "x" ; then
23776 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
23777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23778 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
23779 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
23780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23781 echo $ECHO_N "(cached) $ECHO_C" >&6
23783 ac_res=`eval echo '${'$as_ac_Header'}'`
23784 { echo "$as_me:$LINENO: result: $ac_res" >&5
23785 echo "${ECHO_T}$ac_res" >&6; }
23786 else
23787 # Is the header compilable?
23788 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
23789 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
23790 cat >conftest.$ac_ext <<_ACEOF
23791 /* confdefs.h. */
23792 _ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h. */
23796 $ac_includes_default
23797 #include <${POPT_DIR}/include/popt.h>
23798 _ACEOF
23799 rm -f conftest.$ac_objext
23800 if { (ac_try="$ac_compile"
23801 case "(($ac_try" in
23802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803 *) ac_try_echo=$ac_try;;
23804 esac
23805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23806 (eval "$ac_compile") 2>conftest.er1
23807 ac_status=$?
23808 grep -v '^ *+' conftest.er1 >conftest.err
23809 rm -f conftest.er1
23810 cat conftest.err >&5
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); } && {
23813 test -z "$ac_c_werror_flag" ||
23814 test ! -s conftest.err
23815 } && test -s conftest.$ac_objext; then
23816 ac_header_compiler=yes
23817 else
23818 echo "$as_me: failed program was:" >&5
23819 sed 's/^/| /' conftest.$ac_ext >&5
23821 ac_header_compiler=no
23824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23826 echo "${ECHO_T}$ac_header_compiler" >&6; }
23828 # Is the header present?
23829 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
23830 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
23831 cat >conftest.$ac_ext <<_ACEOF
23832 /* confdefs.h. */
23833 _ACEOF
23834 cat confdefs.h >>conftest.$ac_ext
23835 cat >>conftest.$ac_ext <<_ACEOF
23836 /* end confdefs.h. */
23837 #include <${POPT_DIR}/include/popt.h>
23838 _ACEOF
23839 if { (ac_try="$ac_cpp conftest.$ac_ext"
23840 case "(($ac_try" in
23841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842 *) ac_try_echo=$ac_try;;
23843 esac
23844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23846 ac_status=$?
23847 grep -v '^ *+' conftest.er1 >conftest.err
23848 rm -f conftest.er1
23849 cat conftest.err >&5
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); } >/dev/null && {
23852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23853 test ! -s conftest.err
23854 }; then
23855 ac_header_preproc=yes
23856 else
23857 echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23860 ac_header_preproc=no
23863 rm -f conftest.err conftest.$ac_ext
23864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23865 echo "${ECHO_T}$ac_header_preproc" >&6; }
23867 # So? What about this header?
23868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23869 yes:no: )
23870 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23871 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23872 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
23873 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
23874 ac_header_preproc=yes
23876 no:yes:* )
23877 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
23878 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
23879 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
23880 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
23881 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
23882 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
23883 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
23884 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23885 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
23886 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
23887 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
23888 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
23891 esac
23892 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
23893 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
23894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23895 echo $ECHO_N "(cached) $ECHO_C" >&6
23896 else
23897 eval "$as_ac_Header=\$ac_header_preproc"
23899 ac_res=`eval echo '${'$as_ac_Header'}'`
23900 { echo "$as_me:$LINENO: result: $ac_res" >&5
23901 echo "${ECHO_T}$ac_res" >&6; }
23904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23905 POPT_HEADER_FOUND=1
23906 else
23907 POPT_HEADER_FOUND=0
23912 CPPFLAGS="${saved_cppflags}"
23913 else
23914 if test "xpopt.h" != "x" ; then
23915 if test "${ac_cv_header_popt_h+set}" = set; then
23916 { echo "$as_me:$LINENO: checking for popt.h" >&5
23917 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23918 if test "${ac_cv_header_popt_h+set}" = set; then
23919 echo $ECHO_N "(cached) $ECHO_C" >&6
23921 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23922 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23923 else
23924 # Is the header compilable?
23925 { echo "$as_me:$LINENO: checking popt.h usability" >&5
23926 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
23927 cat >conftest.$ac_ext <<_ACEOF
23928 /* confdefs.h. */
23929 _ACEOF
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h. */
23933 $ac_includes_default
23934 #include <popt.h>
23935 _ACEOF
23936 rm -f conftest.$ac_objext
23937 if { (ac_try="$ac_compile"
23938 case "(($ac_try" in
23939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940 *) ac_try_echo=$ac_try;;
23941 esac
23942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23943 (eval "$ac_compile") 2>conftest.er1
23944 ac_status=$?
23945 grep -v '^ *+' conftest.er1 >conftest.err
23946 rm -f conftest.er1
23947 cat conftest.err >&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); } && {
23950 test -z "$ac_c_werror_flag" ||
23951 test ! -s conftest.err
23952 } && test -s conftest.$ac_objext; then
23953 ac_header_compiler=yes
23954 else
23955 echo "$as_me: failed program was:" >&5
23956 sed 's/^/| /' conftest.$ac_ext >&5
23958 ac_header_compiler=no
23961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23963 echo "${ECHO_T}$ac_header_compiler" >&6; }
23965 # Is the header present?
23966 { echo "$as_me:$LINENO: checking popt.h presence" >&5
23967 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
23968 cat >conftest.$ac_ext <<_ACEOF
23969 /* confdefs.h. */
23970 _ACEOF
23971 cat confdefs.h >>conftest.$ac_ext
23972 cat >>conftest.$ac_ext <<_ACEOF
23973 /* end confdefs.h. */
23974 #include <popt.h>
23975 _ACEOF
23976 if { (ac_try="$ac_cpp conftest.$ac_ext"
23977 case "(($ac_try" in
23978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979 *) ac_try_echo=$ac_try;;
23980 esac
23981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23983 ac_status=$?
23984 grep -v '^ *+' conftest.er1 >conftest.err
23985 rm -f conftest.er1
23986 cat conftest.err >&5
23987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988 (exit $ac_status); } >/dev/null && {
23989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23990 test ! -s conftest.err
23991 }; then
23992 ac_header_preproc=yes
23993 else
23994 echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23997 ac_header_preproc=no
24000 rm -f conftest.err conftest.$ac_ext
24001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24002 echo "${ECHO_T}$ac_header_preproc" >&6; }
24004 # So? What about this header?
24005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24006 yes:no: )
24007 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24008 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24009 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
24010 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
24011 ac_header_preproc=yes
24013 no:yes:* )
24014 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
24015 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
24016 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
24017 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
24018 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
24019 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
24020 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
24021 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
24022 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
24023 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
24024 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
24025 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
24028 esac
24029 { echo "$as_me:$LINENO: checking for popt.h" >&5
24030 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
24031 if test "${ac_cv_header_popt_h+set}" = set; then
24032 echo $ECHO_N "(cached) $ECHO_C" >&6
24033 else
24034 ac_cv_header_popt_h=$ac_header_preproc
24036 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
24037 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
24040 if test $ac_cv_header_popt_h = yes; then
24041 POPT_HEADER_FOUND=1
24042 else
24043 POPT_HEADER_FOUND=0
24049 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
24050 if test -n "${POPT_MANDATORY}" ;
24051 then
24052 { echo "$as_me:$LINENO: ***" >&5
24053 echo "$as_me: ***" >&6;}
24054 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
24055 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
24056 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
24057 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
24058 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
24059 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
24060 exit 1
24062 POPT_LIB=""
24063 POPT_INCLUDE=""
24064 PBX_POPT=0
24065 else
24066 PBX_POPT=1
24068 cat >>confdefs.h <<_ACEOF
24069 #define HAVE_POPT 1
24070 _ACEOF
24073 elif test -n "${POPT_MANDATORY}";
24074 then
24075 { echo "$as_me:$LINENO: ***" >&5
24076 echo "$as_me: ***" >&6;}
24077 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
24078 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
24079 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24080 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24081 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
24082 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
24083 exit 1
24089 if test "${USE_PRI}" != "no"; then
24090 pbxlibdir=""
24091 if test "x${PRI_DIR}" != "x"; then
24092 if test -d ${PRI_DIR}/lib; then
24093 pbxlibdir="-L${PRI_DIR}/lib"
24094 else
24095 pbxlibdir="-L${PRI_DIR}"
24098 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
24099 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
24100 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
24101 echo $ECHO_N "(cached) $ECHO_C" >&6
24102 else
24103 ac_check_lib_save_LIBS=$LIBS
24104 LIBS="-lpri ${pbxlibdir} $LIBS"
24105 cat >conftest.$ac_ext <<_ACEOF
24106 /* confdefs.h. */
24107 _ACEOF
24108 cat confdefs.h >>conftest.$ac_ext
24109 cat >>conftest.$ac_ext <<_ACEOF
24110 /* end confdefs.h. */
24112 /* Override any GCC internal prototype to avoid an error.
24113 Use char because int might match the return type of a GCC
24114 builtin and then its argument prototype would still apply. */
24115 #ifdef __cplusplus
24116 extern "C"
24117 #endif
24118 char pri_call ();
24120 main ()
24122 return pri_call ();
24124 return 0;
24126 _ACEOF
24127 rm -f conftest.$ac_objext conftest$ac_exeext
24128 if { (ac_try="$ac_link"
24129 case "(($ac_try" in
24130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24131 *) ac_try_echo=$ac_try;;
24132 esac
24133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24134 (eval "$ac_link") 2>conftest.er1
24135 ac_status=$?
24136 grep -v '^ *+' conftest.er1 >conftest.err
24137 rm -f conftest.er1
24138 cat conftest.err >&5
24139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); } && {
24141 test -z "$ac_c_werror_flag" ||
24142 test ! -s conftest.err
24143 } && test -s conftest$ac_exeext &&
24144 $as_test_x conftest$ac_exeext; then
24145 ac_cv_lib_pri_pri_call=yes
24146 else
24147 echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24150 ac_cv_lib_pri_pri_call=no
24153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24154 conftest$ac_exeext conftest.$ac_ext
24155 LIBS=$ac_check_lib_save_LIBS
24157 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
24158 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
24159 if test $ac_cv_lib_pri_pri_call = yes; then
24160 AST_PRI_FOUND=yes
24161 else
24162 AST_PRI_FOUND=no
24166 if test "${AST_PRI_FOUND}" = "yes"; then
24167 PRI_LIB="-lpri "
24168 PRI_HEADER_FOUND="1"
24169 if test "x${PRI_DIR}" != "x"; then
24170 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
24171 PRI_INCLUDE="-I${PRI_DIR}/include"
24172 saved_cppflags="${CPPFLAGS}"
24173 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
24174 if test "xlibpri.h" != "x" ; then
24175 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
24176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24177 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
24178 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
24179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24180 echo $ECHO_N "(cached) $ECHO_C" >&6
24182 ac_res=`eval echo '${'$as_ac_Header'}'`
24183 { echo "$as_me:$LINENO: result: $ac_res" >&5
24184 echo "${ECHO_T}$ac_res" >&6; }
24185 else
24186 # Is the header compilable?
24187 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
24188 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
24189 cat >conftest.$ac_ext <<_ACEOF
24190 /* confdefs.h. */
24191 _ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h. */
24195 $ac_includes_default
24196 #include <${PRI_DIR}/include/libpri.h>
24197 _ACEOF
24198 rm -f conftest.$ac_objext
24199 if { (ac_try="$ac_compile"
24200 case "(($ac_try" in
24201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24202 *) ac_try_echo=$ac_try;;
24203 esac
24204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24205 (eval "$ac_compile") 2>conftest.er1
24206 ac_status=$?
24207 grep -v '^ *+' conftest.er1 >conftest.err
24208 rm -f conftest.er1
24209 cat conftest.err >&5
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } && {
24212 test -z "$ac_c_werror_flag" ||
24213 test ! -s conftest.err
24214 } && test -s conftest.$ac_objext; then
24215 ac_header_compiler=yes
24216 else
24217 echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24220 ac_header_compiler=no
24223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24225 echo "${ECHO_T}$ac_header_compiler" >&6; }
24227 # Is the header present?
24228 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
24229 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
24230 cat >conftest.$ac_ext <<_ACEOF
24231 /* confdefs.h. */
24232 _ACEOF
24233 cat confdefs.h >>conftest.$ac_ext
24234 cat >>conftest.$ac_ext <<_ACEOF
24235 /* end confdefs.h. */
24236 #include <${PRI_DIR}/include/libpri.h>
24237 _ACEOF
24238 if { (ac_try="$ac_cpp conftest.$ac_ext"
24239 case "(($ac_try" in
24240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24241 *) ac_try_echo=$ac_try;;
24242 esac
24243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24245 ac_status=$?
24246 grep -v '^ *+' conftest.er1 >conftest.err
24247 rm -f conftest.er1
24248 cat conftest.err >&5
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); } >/dev/null && {
24251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24252 test ! -s conftest.err
24253 }; then
24254 ac_header_preproc=yes
24255 else
24256 echo "$as_me: failed program was:" >&5
24257 sed 's/^/| /' conftest.$ac_ext >&5
24259 ac_header_preproc=no
24262 rm -f conftest.err conftest.$ac_ext
24263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24264 echo "${ECHO_T}$ac_header_preproc" >&6; }
24266 # So? What about this header?
24267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24268 yes:no: )
24269 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24270 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24271 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
24272 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
24273 ac_header_preproc=yes
24275 no:yes:* )
24276 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
24277 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
24278 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
24279 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
24280 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
24281 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
24282 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24283 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24284 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
24285 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
24286 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
24287 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
24290 esac
24291 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
24292 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
24293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24294 echo $ECHO_N "(cached) $ECHO_C" >&6
24295 else
24296 eval "$as_ac_Header=\$ac_header_preproc"
24298 ac_res=`eval echo '${'$as_ac_Header'}'`
24299 { echo "$as_me:$LINENO: result: $ac_res" >&5
24300 echo "${ECHO_T}$ac_res" >&6; }
24303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24304 PRI_HEADER_FOUND=1
24305 else
24306 PRI_HEADER_FOUND=0
24311 CPPFLAGS="${saved_cppflags}"
24312 else
24313 if test "xlibpri.h" != "x" ; then
24314 if test "${ac_cv_header_libpri_h+set}" = set; then
24315 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24316 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24317 if test "${ac_cv_header_libpri_h+set}" = set; then
24318 echo $ECHO_N "(cached) $ECHO_C" >&6
24320 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24321 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24322 else
24323 # Is the header compilable?
24324 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
24325 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
24326 cat >conftest.$ac_ext <<_ACEOF
24327 /* confdefs.h. */
24328 _ACEOF
24329 cat confdefs.h >>conftest.$ac_ext
24330 cat >>conftest.$ac_ext <<_ACEOF
24331 /* end confdefs.h. */
24332 $ac_includes_default
24333 #include <libpri.h>
24334 _ACEOF
24335 rm -f conftest.$ac_objext
24336 if { (ac_try="$ac_compile"
24337 case "(($ac_try" in
24338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24339 *) ac_try_echo=$ac_try;;
24340 esac
24341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24342 (eval "$ac_compile") 2>conftest.er1
24343 ac_status=$?
24344 grep -v '^ *+' conftest.er1 >conftest.err
24345 rm -f conftest.er1
24346 cat conftest.err >&5
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); } && {
24349 test -z "$ac_c_werror_flag" ||
24350 test ! -s conftest.err
24351 } && test -s conftest.$ac_objext; then
24352 ac_header_compiler=yes
24353 else
24354 echo "$as_me: failed program was:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24357 ac_header_compiler=no
24360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24362 echo "${ECHO_T}$ac_header_compiler" >&6; }
24364 # Is the header present?
24365 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
24366 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
24367 cat >conftest.$ac_ext <<_ACEOF
24368 /* confdefs.h. */
24369 _ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h. */
24373 #include <libpri.h>
24374 _ACEOF
24375 if { (ac_try="$ac_cpp conftest.$ac_ext"
24376 case "(($ac_try" in
24377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24378 *) ac_try_echo=$ac_try;;
24379 esac
24380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24382 ac_status=$?
24383 grep -v '^ *+' conftest.er1 >conftest.err
24384 rm -f conftest.er1
24385 cat conftest.err >&5
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); } >/dev/null && {
24388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24389 test ! -s conftest.err
24390 }; then
24391 ac_header_preproc=yes
24392 else
24393 echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24396 ac_header_preproc=no
24399 rm -f conftest.err conftest.$ac_ext
24400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24401 echo "${ECHO_T}$ac_header_preproc" >&6; }
24403 # So? What about this header?
24404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24405 yes:no: )
24406 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24407 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24408 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
24409 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
24410 ac_header_preproc=yes
24412 no:yes:* )
24413 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
24414 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
24415 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
24416 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
24417 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
24418 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
24419 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24420 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24421 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
24422 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
24423 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
24424 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
24427 esac
24428 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24429 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24430 if test "${ac_cv_header_libpri_h+set}" = set; then
24431 echo $ECHO_N "(cached) $ECHO_C" >&6
24432 else
24433 ac_cv_header_libpri_h=$ac_header_preproc
24435 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24436 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24439 if test $ac_cv_header_libpri_h = yes; then
24440 PRI_HEADER_FOUND=1
24441 else
24442 PRI_HEADER_FOUND=0
24448 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
24449 if test -n "${PRI_MANDATORY}" ;
24450 then
24451 { echo "$as_me:$LINENO: ***" >&5
24452 echo "$as_me: ***" >&6;}
24453 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
24454 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
24455 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
24456 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
24457 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
24458 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
24459 exit 1
24461 PRI_LIB=""
24462 PRI_INCLUDE=""
24463 PBX_PRI=0
24464 else
24465 PBX_PRI=1
24467 cat >>confdefs.h <<_ACEOF
24468 #define HAVE_PRI 1
24469 _ACEOF
24472 elif test -n "${PRI_MANDATORY}";
24473 then
24474 { echo "$as_me:$LINENO: ***" >&5
24475 echo "$as_me: ***" >&6;}
24476 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
24477 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
24478 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24479 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24480 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
24481 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
24482 exit 1
24487 if test "${USE_PWLIB}" != "no"; then
24488 if test -n "${PWLIB_DIR}"; then
24489 PWLIBDIR="${PWLIB_DIR}"
24492 PWLIB_INCDIR=
24493 PWLIB_LIBDIR=
24494 if test "${PWLIBDIR:-unset}" != "unset" ; then
24495 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
24496 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24497 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24498 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24499 echo $ECHO_N "(cached) $ECHO_C" >&6
24500 else
24501 test "$cross_compiling" = yes &&
24502 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24503 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24504 { (exit 1); exit 1; }; }
24505 if test -r "${PWLIBDIR}/version.h"; then
24506 eval "$as_ac_File=yes"
24507 else
24508 eval "$as_ac_File=no"
24511 ac_res=`eval echo '${'$as_ac_File'}'`
24512 { echo "$as_me:$LINENO: result: $ac_res" >&5
24513 echo "${ECHO_T}$ac_res" >&6; }
24514 if test `eval echo '${'$as_ac_File'}'` = yes; then
24515 HAS_PWLIB=1
24519 if test "${HAS_PWLIB:-unset}" = "unset" ; then
24520 if test "${OPENH323DIR:-unset}" != "unset"; then
24521 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
24522 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
24523 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
24524 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24525 echo $ECHO_N "(cached) $ECHO_C" >&6
24526 else
24527 test "$cross_compiling" = yes &&
24528 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24529 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24530 { (exit 1); exit 1; }; }
24531 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
24532 eval "$as_ac_File=yes"
24533 else
24534 eval "$as_ac_File=no"
24537 ac_res=`eval echo '${'$as_ac_File'}'`
24538 { echo "$as_me:$LINENO: result: $ac_res" >&5
24539 echo "${ECHO_T}$ac_res" >&6; }
24540 if test `eval echo '${'$as_ac_File'}'` = yes; then
24541 HAS_PWLIB=1
24545 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24546 PWLIBDIR="${OPENH323DIR}/../pwlib"
24547 else
24548 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
24549 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
24550 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
24551 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24552 echo $ECHO_N "(cached) $ECHO_C" >&6
24553 else
24554 test "$cross_compiling" = yes &&
24555 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24556 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24557 { (exit 1); exit 1; }; }
24558 if test -r "${HOME}/pwlib/include/ptlib.h"; then
24559 eval "$as_ac_File=yes"
24560 else
24561 eval "$as_ac_File=no"
24564 ac_res=`eval echo '${'$as_ac_File'}'`
24565 { echo "$as_me:$LINENO: result: $ac_res" >&5
24566 echo "${ECHO_T}$ac_res" >&6; }
24567 if test `eval echo '${'$as_ac_File'}'` = yes; then
24568 HAS_PWLIB=1
24571 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24572 PWLIBDIR="${HOME}/pwlib"
24573 else
24574 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
24575 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
24576 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
24577 echo $ECHO_N "(cached) $ECHO_C" >&6
24578 else
24579 test "$cross_compiling" = yes &&
24580 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24581 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24582 { (exit 1); exit 1; }; }
24583 if test -r "/usr/local/include/ptlib.h"; then
24584 ac_cv_file__usr_local_include_ptlib_h=yes
24585 else
24586 ac_cv_file__usr_local_include_ptlib_h=no
24589 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
24590 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
24591 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
24592 HAS_PWLIB=1
24595 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24596 # Extract the first word of "ptlib-config", so it can be a program name with args.
24597 set dummy ptlib-config; ac_word=$2
24598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24600 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24601 echo $ECHO_N "(cached) $ECHO_C" >&6
24602 else
24603 case $PTLIB_CONFIG in
24604 [\\/]* | ?:[\\/]*)
24605 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
24608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24609 for as_dir in /usr/local/bin
24611 IFS=$as_save_IFS
24612 test -z "$as_dir" && as_dir=.
24613 for ac_exec_ext in '' $ac_executable_extensions; do
24614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24615 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24617 break 2
24619 done
24620 done
24621 IFS=$as_save_IFS
24624 esac
24626 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
24627 if test -n "$PTLIB_CONFIG"; then
24628 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24629 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24630 else
24631 { echo "$as_me:$LINENO: result: no" >&5
24632 echo "${ECHO_T}no" >&6; }
24636 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
24637 # Extract the first word of "ptlib-config", so it can be a program name with args.
24638 set dummy ptlib-config; ac_word=$2
24639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24641 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24642 echo $ECHO_N "(cached) $ECHO_C" >&6
24643 else
24644 case $PTLIB_CONFIG in
24645 [\\/]* | ?:[\\/]*)
24646 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
24649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24650 for as_dir in /usr/local/share/pwlib/make
24652 IFS=$as_save_IFS
24653 test -z "$as_dir" && as_dir=.
24654 for ac_exec_ext in '' $ac_executable_extensions; do
24655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24656 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24658 break 2
24660 done
24661 done
24662 IFS=$as_save_IFS
24665 esac
24667 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
24668 if test -n "$PTLIB_CONFIG"; then
24669 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24670 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24671 else
24672 { echo "$as_me:$LINENO: result: no" >&5
24673 echo "${ECHO_T}no" >&6; }
24678 PWLIB_INCDIR="/usr/local/include"
24679 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
24680 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
24681 if test "x$LIB64" != "x"; then
24682 PWLIB_LIBDIR="/usr/local/lib64"
24683 else
24684 PWLIB_LIBDIR="/usr/local/lib"
24687 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
24688 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
24689 else
24690 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
24691 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
24692 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
24693 echo $ECHO_N "(cached) $ECHO_C" >&6
24694 else
24695 test "$cross_compiling" = yes &&
24696 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24697 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24698 { (exit 1); exit 1; }; }
24699 if test -r "/usr/include/ptlib.h"; then
24700 ac_cv_file__usr_include_ptlib_h=yes
24701 else
24702 ac_cv_file__usr_include_ptlib_h=no
24705 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
24706 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
24707 if test $ac_cv_file__usr_include_ptlib_h = yes; then
24708 HAS_PWLIB=1
24711 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24712 # Extract the first word of "ptlib-config", so it can be a program name with args.
24713 set dummy ptlib-config; ac_word=$2
24714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24716 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24717 echo $ECHO_N "(cached) $ECHO_C" >&6
24718 else
24719 case $PTLIB_CONFIG in
24720 [\\/]* | ?:[\\/]*)
24721 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
24724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24725 for as_dir in /usr/share/pwlib/make
24727 IFS=$as_save_IFS
24728 test -z "$as_dir" && as_dir=.
24729 for ac_exec_ext in '' $ac_executable_extensions; do
24730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24731 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24733 break 2
24735 done
24736 done
24737 IFS=$as_save_IFS
24740 esac
24742 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
24743 if test -n "$PTLIB_CONFIG"; then
24744 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24745 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24746 else
24747 { echo "$as_me:$LINENO: result: no" >&5
24748 echo "${ECHO_T}no" >&6; }
24752 PWLIB_INCDIR="/usr/include"
24753 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
24754 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
24755 if test "x$LIB64" != "x"; then
24756 PWLIB_LIBDIR="/usr/lib64"
24757 else
24758 PWLIB_LIBDIR="/usr/lib"
24761 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
24762 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
24769 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
24770 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
24771 # exit
24774 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24775 if test "${PWLIBDIR:-unset}" = "unset" ; then
24776 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
24777 PWLIBDIR=`$PTLIB_CONFIG --prefix`
24778 else
24779 echo "Cannot find ptlib-config - please install and try again"
24780 exit
24784 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
24785 PWLIBDIR="/usr/share/pwlib"
24786 PWLIB_INCDIR="/usr/include"
24787 if test "x$LIB64" != "x"; then
24788 PWLIB_LIBDIR="/usr/lib64"
24789 else
24790 PWLIB_LIBDIR="/usr/lib"
24793 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
24794 PWLIBDIR="/usr/local/share/pwlib"
24795 PWLIB_INCDIR="/usr/local/include"
24796 if test "x$LIB64" != "x"; then
24797 PWLIB_LIBDIR="/usr/local/lib64"
24798 else
24799 PWLIB_LIBDIR="/usr/local/lib"
24803 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
24804 PWLIB_INCDIR="${PWLIBDIR}/include"
24806 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
24807 PWLIB_LIBDIR="${PWLIBDIR}/lib"
24816 if test "${HAS_PWLIB:-unset}" != "unset"; then
24817 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
24818 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
24819 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
24820 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
24821 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
24822 let PWLIB_REQ=1*10000+9*100+2
24824 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
24825 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
24826 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
24827 { echo "$as_me:$LINENO: result: no" >&5
24828 echo "${ECHO_T}no" >&6; }
24829 unset HAS_PWLIB
24830 else
24831 { echo "$as_me:$LINENO: result: yes" >&5
24832 echo "${ECHO_T}yes" >&6; }
24837 if test "${HAS_PWLIB:-unset}" != "unset"; then
24839 PWLIB_OSTYPE=
24840 case "$host_os" in
24841 linux*) PWLIB_OSTYPE=linux ;
24843 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
24845 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
24846 ENDLDLIBS="-lossaudio" ;
24848 netbsd* ) PWLIB_OSTYPE=NetBSD ;
24849 ENDLDLIBS="-lossaudio" ;
24851 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
24853 darwin* ) PWLIB_OSTYPE=Darwin ;
24855 beos*) PWLIB_OSTYPE=beos ;
24856 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
24858 cygwin*) PWLIB_OSTYPE=cygwin ;
24860 mingw*) PWLIB_OSTYPE=mingw ;
24861 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
24862 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
24864 * ) PWLIB_OSTYPE="$host_os" ;
24865 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
24866 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
24868 esac
24870 PWLIB_MACHTYPE=
24871 case "$host_cpu" in
24872 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
24875 x86_64) PWLIB_MACHTYPE=x86_64 ;
24876 P_64BIT=1 ;
24877 LIB64=1 ;
24880 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
24881 P_64BIT=1 ;
24884 sparc ) PWLIB_MACHTYPE=sparc ;
24887 powerpc ) PWLIB_MACHTYPE=ppc ;
24890 ppc ) PWLIB_MACHTYPE=ppc ;
24893 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
24894 P_64BIT=1 ;
24895 LIB64=1 ;
24898 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
24899 P_64BIT=1 ;
24900 LIB64=1 ;
24903 ia64) PWLIB_MACHTYPE=ia64 ;
24904 P_64BIT=1 ;
24907 s390x) PWLIB_MACHTYPE=s390x ;
24908 P_64BIT=1 ;
24909 LIB64=1 ;
24912 s390) PWLIB_MACHTYPE=s390 ;
24915 * ) PWLIB_MACHTYPE="$host_cpu";
24916 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
24917 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
24918 esac
24920 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
24925 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
24928 if test "${HAS_PWLIB:-unset}" != "unset"; then
24929 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
24930 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
24932 saved_cppflags="${CPPFLAGS}"
24933 saved_libs="${LIBS}"
24934 if test "${PWLIB_LIB:-unset}" != "unset"; then
24935 LIBS="${LIBS} ${PWLIB_LIB} "
24936 else
24937 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
24939 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
24941 ac_ext=cpp
24942 ac_cpp='$CXXCPP $CPPFLAGS'
24943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24948 cat >conftest.$ac_ext <<_ACEOF
24949 /* confdefs.h. */
24950 _ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h. */
24954 #include "ptlib.h"
24956 main ()
24958 BOOL q = PTime::IsDaylightSavings();
24960 return 0;
24962 _ACEOF
24963 rm -f conftest.$ac_objext conftest$ac_exeext
24964 if { (ac_try="$ac_link"
24965 case "(($ac_try" in
24966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967 *) ac_try_echo=$ac_try;;
24968 esac
24969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24970 (eval "$ac_link") 2>conftest.er1
24971 ac_status=$?
24972 grep -v '^ *+' conftest.er1 >conftest.err
24973 rm -f conftest.er1
24974 cat conftest.err >&5
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); } && {
24977 test -z "$ac_cxx_werror_flag" ||
24978 test ! -s conftest.err
24979 } && test -s conftest$ac_exeext &&
24980 $as_test_x conftest$ac_exeext; then
24981 { echo "$as_me:$LINENO: result: yes" >&5
24982 echo "${ECHO_T}yes" >&6; }
24983 ac_cv_lib_PWLIB="yes"
24985 else
24986 echo "$as_me: failed program was:" >&5
24987 sed 's/^/| /' conftest.$ac_ext >&5
24989 { echo "$as_me:$LINENO: result: no" >&5
24990 echo "${ECHO_T}no" >&6; }
24991 ac_cv_lib_PWLIB="no"
24996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24997 conftest$ac_exeext conftest.$ac_ext
24999 ac_ext=c
25000 ac_cpp='$CPP $CPPFLAGS'
25001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25006 LIBS="${saved_libs}"
25007 CPPFLAGS="${saved_cppflags}"
25009 if test "${ac_cv_lib_PWLIB}" = "yes"; then
25010 if test "${PWLIB_LIB:-undef}" = "undef"; then
25011 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
25012 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
25013 else
25014 PWLIB_LIB="-l${PLATFORM_PWLIB}"
25017 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
25018 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
25020 PBX_PWLIB=1
25022 cat >>confdefs.h <<\_ACEOF
25023 #define HAVE_PWLIB 1
25024 _ACEOF
25032 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
25033 { echo "$as_me:$LINENO: ***" >&5
25034 echo "$as_me: ***" >&6;}
25035 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
25036 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
25037 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25038 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25039 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
25040 echo "$as_me: *** including --without-pwlib" >&6;}
25041 exit 1
25044 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
25045 if test -n "${OPENH323_DIR}"; then
25046 OPENH323DIR="${OPENH323_DIR}"
25049 OPENH323_INCDIR=
25050 OPENH323_LIBDIR=
25051 if test "${OPENH323DIR:-unset}" != "unset" ; then
25052 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" | $as_tr_sh`
25053 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
25054 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
25055 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
25056 echo $ECHO_N "(cached) $ECHO_C" >&6
25057 else
25058 test "$cross_compiling" = yes &&
25059 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25060 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25061 { (exit 1); exit 1; }; }
25062 if test -r "${OPENH323DIR}/version.h"; then
25063 eval "$as_ac_File=yes"
25064 else
25065 eval "$as_ac_File=no"
25068 ac_res=`eval echo '${'$as_ac_File'}'`
25069 { echo "$as_me:$LINENO: result: $ac_res" >&5
25070 echo "${ECHO_T}$ac_res" >&6; }
25071 if test `eval echo '${'$as_ac_File'}'` = yes; then
25072 HAS_OPENH323=1
25076 if test "${HAS_OPENH323:-unset}" = "unset" ; then
25077 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
25078 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
25079 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
25080 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
25081 echo $ECHO_N "(cached) $ECHO_C" >&6
25082 else
25083 test "$cross_compiling" = yes &&
25084 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25085 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25086 { (exit 1); exit 1; }; }
25087 if test -r "${PWLIBDIR}/../openh323/version.h"; then
25088 eval "$as_ac_File=yes"
25089 else
25090 eval "$as_ac_File=no"
25093 ac_res=`eval echo '${'$as_ac_File'}'`
25094 { echo "$as_me:$LINENO: result: $ac_res" >&5
25095 echo "${ECHO_T}$ac_res" >&6; }
25096 if test `eval echo '${'$as_ac_File'}'` = yes; then
25097 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
25100 if test "${HAS_OPENH323:-unset}" != "unset" ; then
25101 OPENH323DIR="${PWLIBDIR}/../openh323"
25102 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
25103 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
25104 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
25105 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
25106 echo $ECHO_N "(cached) $ECHO_C" >&6
25107 else
25108 test "$cross_compiling" = yes &&
25109 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25110 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25111 { (exit 1); exit 1; }; }
25112 if test -r "${OPENH323DIR}/include/h323.h"; then
25113 eval "$as_ac_File=yes"
25114 else
25115 eval "$as_ac_File=no"
25118 ac_res=`eval echo '${'$as_ac_File'}'`
25119 { echo "$as_me:$LINENO: result: $ac_res" >&5
25120 echo "${ECHO_T}$ac_res" >&6; }
25121 if test `eval echo '${'$as_ac_File'}'` = yes; then
25123 else
25124 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
25127 else
25128 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" | $as_tr_sh`
25129 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
25130 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
25131 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
25132 echo $ECHO_N "(cached) $ECHO_C" >&6
25133 else
25134 test "$cross_compiling" = yes &&
25135 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25136 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25137 { (exit 1); exit 1; }; }
25138 if test -r "${HOME}/openh323/include/h323.h"; then
25139 eval "$as_ac_File=yes"
25140 else
25141 eval "$as_ac_File=no"
25144 ac_res=`eval echo '${'$as_ac_File'}'`
25145 { echo "$as_me:$LINENO: result: $ac_res" >&5
25146 echo "${ECHO_T}$ac_res" >&6; }
25147 if test `eval echo '${'$as_ac_File'}'` = yes; then
25148 HAS_OPENH323=1
25151 if test "${HAS_OPENH323:-unset}" != "unset" ; then
25152 OPENH323DIR="${HOME}/openh323"
25153 else
25154 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
25155 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
25156 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
25157 echo $ECHO_N "(cached) $ECHO_C" >&6
25158 else
25159 test "$cross_compiling" = yes &&
25160 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25161 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25162 { (exit 1); exit 1; }; }
25163 if test -r "/usr/local/include/openh323/h323.h"; then
25164 ac_cv_file__usr_local_include_openh323_h323_h=yes
25165 else
25166 ac_cv_file__usr_local_include_openh323_h323_h=no
25169 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
25170 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
25171 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
25172 HAS_OPENH323=1
25175 if test "${HAS_OPENH323:-unset}" != "unset" ; then
25176 OPENH323DIR="/usr/local/share/openh323"
25177 OPENH323_INCDIR="/usr/local/include/openh323"
25178 if test "x$LIB64" != "x"; then
25179 OPENH323_LIBDIR="/usr/local/lib64"
25180 else
25181 OPENH323_LIBDIR="/usr/local/lib"
25183 else
25184 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
25185 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
25186 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
25187 echo $ECHO_N "(cached) $ECHO_C" >&6
25188 else
25189 test "$cross_compiling" = yes &&
25190 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25191 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25192 { (exit 1); exit 1; }; }
25193 if test -r "/usr/include/openh323/h323.h"; then
25194 ac_cv_file__usr_include_openh323_h323_h=yes
25195 else
25196 ac_cv_file__usr_include_openh323_h323_h=no
25199 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
25200 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
25201 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
25202 HAS_OPENH323=1
25205 if test "${HAS_OPENH323:-unset}" != "unset" ; then
25206 OPENH323DIR="/usr/share/openh323"
25207 OPENH323_INCDIR="/usr/include/openh323"
25208 if test "x$LIB64" != "x"; then
25209 OPENH323_LIBDIR="/usr/lib64"
25210 else
25211 OPENH323_LIBDIR="/usr/lib"
25219 if test "${HAS_OPENH323:-unset}" != "unset" ; then
25220 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
25221 OPENH323_INCDIR="${OPENH323DIR}/include"
25223 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
25224 OPENH323_LIBDIR="${OPENH323DIR}/lib"
25227 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
25228 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
25229 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
25237 if test "${HAS_OPENH323:-unset}" != "unset"; then
25238 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
25239 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
25240 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
25241 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
25242 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
25243 let OPENH323_REQ=1*10000+17*100+3
25245 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
25246 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
25247 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
25248 { echo "$as_me:$LINENO: result: no" >&5
25249 echo "${ECHO_T}no" >&6; }
25250 unset HAS_OPENH323
25251 else
25252 { echo "$as_me:$LINENO: result: yes" >&5
25253 echo "${ECHO_T}yes" >&6; }
25258 if test "${HAS_OPENH323:-unset}" != "unset"; then
25259 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
25260 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
25261 OPENH323_SUFFIX=
25262 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
25263 for pfx in $prefixes; do
25264 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
25265 libfile=
25266 if test -n "$files"; then
25267 for f in $files; do
25268 if test -f $f -a ! -L $f; then
25269 libfile=`basename $f`
25270 break;
25272 done
25274 if test -n "$libfile"; then
25275 OPENH323_PREFIX=$pfx
25276 break;
25278 done
25279 if test "${libfile:-unset}" != "unset"; then
25280 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
25282 case "${OPENH323_SUFFIX}" in
25284 OPENH323_BUILD="notrace";;
25286 OPENH323_BUILD="opt";;
25288 OPENH323_BUILD="debug";;
25290 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
25291 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
25292 if test "x$notrace" = "x"; then
25293 notrace="0"
25295 if test "$notrace" -ne 0; then
25296 OPENH323_BUILD="notrace"
25297 else
25298 OPENH323_BUILD="opt"
25300 OPENH323_LIB="-l${OPENH323_PREFIX}"
25301 else
25302 OPENH323_BUILD="notrace"
25305 esac
25306 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
25307 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
25313 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
25315 if test "${HAS_OPENH323:-unset}" != "unset"; then
25316 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
25317 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
25319 saved_cppflags="${CPPFLAGS}"
25320 saved_libs="${LIBS}"
25321 if test "${OPENH323_LIB:-unset}" != "unset"; then
25322 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
25323 else
25324 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
25326 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
25328 ac_ext=cpp
25329 ac_cpp='$CXXCPP $CPPFLAGS'
25330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25335 cat >conftest.$ac_ext <<_ACEOF
25336 /* confdefs.h. */
25337 _ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h. */
25341 #include "ptlib.h"
25342 #include "h323.h"
25343 #include "h323ep.h"
25345 main ()
25347 H323EndPoint ep = H323EndPoint();
25349 return 0;
25351 _ACEOF
25352 rm -f conftest.$ac_objext conftest$ac_exeext
25353 if { (ac_try="$ac_link"
25354 case "(($ac_try" in
25355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25356 *) ac_try_echo=$ac_try;;
25357 esac
25358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25359 (eval "$ac_link") 2>conftest.er1
25360 ac_status=$?
25361 grep -v '^ *+' conftest.er1 >conftest.err
25362 rm -f conftest.er1
25363 cat conftest.err >&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); } && {
25366 test -z "$ac_cxx_werror_flag" ||
25367 test ! -s conftest.err
25368 } && test -s conftest$ac_exeext &&
25369 $as_test_x conftest$ac_exeext; then
25370 { echo "$as_me:$LINENO: result: yes" >&5
25371 echo "${ECHO_T}yes" >&6; }
25372 ac_cv_lib_OPENH323="yes"
25374 else
25375 echo "$as_me: failed program was:" >&5
25376 sed 's/^/| /' conftest.$ac_ext >&5
25378 { echo "$as_me:$LINENO: result: no" >&5
25379 echo "${ECHO_T}no" >&6; }
25380 ac_cv_lib_OPENH323="no"
25385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25386 conftest$ac_exeext conftest.$ac_ext
25388 ac_ext=c
25389 ac_cpp='$CPP $CPPFLAGS'
25390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25395 LIBS="${saved_libs}"
25396 CPPFLAGS="${saved_cppflags}"
25398 if test "${ac_cv_lib_OPENH323}" = "yes"; then
25399 if test "${OPENH323_LIB:-undef}" = "undef"; then
25400 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
25401 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
25402 else
25403 OPENH323_LIB="-l${PLATFORM_OPENH323}"
25406 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
25407 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
25409 PBX_OPENH323=1
25411 cat >>confdefs.h <<\_ACEOF
25412 #define HAVE_OPENH323 1
25413 _ACEOF
25419 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
25420 { echo "$as_me:$LINENO: ***" >&5
25421 echo "$as_me: ***" >&6;}
25422 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
25423 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
25424 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25425 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25426 { echo "$as_me:$LINENO: *** including --without-h323" >&5
25427 echo "$as_me: *** including --without-h323" >&6;}
25428 exit 1
25432 ac_ext=cpp
25433 ac_cpp='$CXXCPP $CPPFLAGS'
25434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25439 if test "${USE_QT}" != "no"; then
25440 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
25441 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
25442 saved_libs="${LIBS}"
25443 saved_cppflags="${CPPFLAGS}"
25444 if test "x${QT_DIR}" != "x"; then
25445 LIBS="${LIBS} -L${QT_DIR}/lib"
25446 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
25448 LIBS="${LIBS} -lqt"
25449 qtlib="qt"
25450 cat >conftest.$ac_ext <<_ACEOF
25452 /* confdefs.h. */
25453 _ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h. */
25457 #include <qt3/qdatetime.h>
25459 main ()
25461 QDate date();
25463 return 0;
25466 _ACEOF
25467 rm -f conftest.$ac_objext conftest$ac_exeext
25468 if { (ac_try="$ac_link"
25469 case "(($ac_try" in
25470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25471 *) ac_try_echo=$ac_try;;
25472 esac
25473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25474 (eval "$ac_link") 2>conftest.er1
25475 ac_status=$?
25476 grep -v '^ *+' conftest.er1 >conftest.err
25477 rm -f conftest.er1
25478 cat conftest.err >&5
25479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480 (exit $ac_status); } && {
25481 test -z "$ac_cxx_werror_flag" ||
25482 test ! -s conftest.err
25483 } && test -s conftest$ac_exeext &&
25484 $as_test_x conftest$ac_exeext; then
25485 ac_cv_lib_qt_qt_date="yes"
25486 else
25487 echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25490 ac_cv_lib_qt_qt_date="no"
25493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25494 conftest$ac_exeext conftest.$ac_ext
25495 LIBS="${saved_libs}"
25496 CPPFLAGS="${saved_cppflags}"
25498 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
25499 saved_libs="${LIBS}"
25500 saved_cppflags="${CPPFLAGS}"
25501 if test "x${QT_DIR}" != "x"; then
25502 LIBS="${LIBS} -L${QT_DIR}/lib"
25503 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
25505 LIBS="${LIBS} -lqt-mt"
25506 qtlib="qt-mt"
25507 cat >conftest.$ac_ext <<_ACEOF
25509 /* confdefs.h. */
25510 _ACEOF
25511 cat confdefs.h >>conftest.$ac_ext
25512 cat >>conftest.$ac_ext <<_ACEOF
25513 /* end confdefs.h. */
25514 #include <qt3/qdatetime.h>
25516 main ()
25518 QDate date();
25520 return 0;
25523 _ACEOF
25524 rm -f conftest.$ac_objext conftest$ac_exeext
25525 if { (ac_try="$ac_link"
25526 case "(($ac_try" in
25527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25528 *) ac_try_echo=$ac_try;;
25529 esac
25530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25531 (eval "$ac_link") 2>conftest.er1
25532 ac_status=$?
25533 grep -v '^ *+' conftest.er1 >conftest.err
25534 rm -f conftest.er1
25535 cat conftest.err >&5
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); } && {
25538 test -z "$ac_cxx_werror_flag" ||
25539 test ! -s conftest.err
25540 } && test -s conftest$ac_exeext &&
25541 $as_test_x conftest$ac_exeext; then
25542 ac_cv_lib_qt_qt_date="yes"
25543 else
25544 echo "$as_me: failed program was:" >&5
25545 sed 's/^/| /' conftest.$ac_ext >&5
25547 ac_cv_lib_qt_qt_date="no"
25550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25551 conftest$ac_exeext conftest.$ac_ext
25552 LIBS="${saved_libs}"
25553 CPPFLAGS="${saved_cppflags}"
25556 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
25557 { echo "$as_me:$LINENO: result: yes" >&5
25558 echo "${ECHO_T}yes" >&6; }
25559 else
25560 { echo "$as_me:$LINENO: result: no" >&5
25561 echo "${ECHO_T}no" >&6; }
25564 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
25565 QT_LIB="-l${qtlib}"
25566 if test "${QT_DIR}" != ""; then
25567 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
25568 QT_INCLUDE="-I${QT_DIR}/include"
25570 PBX_QT=1
25572 cat >>confdefs.h <<\_ACEOF
25573 #define HAVE_QT 1
25574 _ACEOF
25576 if test -n "$ac_tool_prefix"; then
25577 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
25578 set dummy ${ac_tool_prefix}moc; ac_word=$2
25579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25581 if test "${ac_cv_path_QTMOC+set}" = set; then
25582 echo $ECHO_N "(cached) $ECHO_C" >&6
25583 else
25584 case $QTMOC in
25585 [\\/]* | ?:[\\/]*)
25586 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
25589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25590 for as_dir in $PATH
25592 IFS=$as_save_IFS
25593 test -z "$as_dir" && as_dir=.
25594 for ac_exec_ext in '' $ac_executable_extensions; do
25595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25596 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
25597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25598 break 2
25600 done
25601 done
25602 IFS=$as_save_IFS
25605 esac
25607 QTMOC=$ac_cv_path_QTMOC
25608 if test -n "$QTMOC"; then
25609 { echo "$as_me:$LINENO: result: $QTMOC" >&5
25610 echo "${ECHO_T}$QTMOC" >&6; }
25611 else
25612 { echo "$as_me:$LINENO: result: no" >&5
25613 echo "${ECHO_T}no" >&6; }
25618 if test -z "$ac_cv_path_QTMOC"; then
25619 ac_pt_QTMOC=$QTMOC
25620 # Extract the first word of "moc", so it can be a program name with args.
25621 set dummy moc; ac_word=$2
25622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25624 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
25625 echo $ECHO_N "(cached) $ECHO_C" >&6
25626 else
25627 case $ac_pt_QTMOC in
25628 [\\/]* | ?:[\\/]*)
25629 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
25632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25633 for as_dir in $PATH
25635 IFS=$as_save_IFS
25636 test -z "$as_dir" && as_dir=.
25637 for ac_exec_ext in '' $ac_executable_extensions; do
25638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25639 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
25640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25641 break 2
25643 done
25644 done
25645 IFS=$as_save_IFS
25648 esac
25650 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
25651 if test -n "$ac_pt_QTMOC"; then
25652 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
25653 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
25654 else
25655 { echo "$as_me:$LINENO: result: no" >&5
25656 echo "${ECHO_T}no" >&6; }
25659 if test "x$ac_pt_QTMOC" = x; then
25660 QTMOC="No"
25661 else
25662 case $cross_compiling:$ac_tool_warned in
25663 yes:)
25664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25665 whose name does not start with the host triplet. If you think this
25666 configuration is useful to you, please write to autoconf@gnu.org." >&5
25667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25668 whose name does not start with the host triplet. If you think this
25669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25670 ac_tool_warned=yes ;;
25671 esac
25672 QTMOC=$ac_pt_QTMOC
25674 else
25675 QTMOC="$ac_cv_path_QTMOC"
25678 elif test -n "${QT_MANDATORY}";
25679 then
25680 { echo "$as_me:$LINENO: ***" >&5
25681 echo "$as_me: ***" >&6;}
25682 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
25683 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
25684 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25685 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25686 { echo "$as_me:$LINENO: *** including --without-qt." >&5
25687 echo "$as_me: *** including --without-qt." >&6;}
25688 exit 1
25692 ac_ext=c
25693 ac_cpp='$CPP $CPPFLAGS'
25694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25700 if test "${USE_RADIUS}" != "no"; then
25701 pbxlibdir=""
25702 if test "x${RADIUS_DIR}" != "x"; then
25703 if test -d ${RADIUS_DIR}/lib; then
25704 pbxlibdir="-L${RADIUS_DIR}/lib"
25705 else
25706 pbxlibdir="-L${RADIUS_DIR}"
25709 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
25710 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
25711 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
25712 echo $ECHO_N "(cached) $ECHO_C" >&6
25713 else
25714 ac_check_lib_save_LIBS=$LIBS
25715 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
25716 cat >conftest.$ac_ext <<_ACEOF
25717 /* confdefs.h. */
25718 _ACEOF
25719 cat confdefs.h >>conftest.$ac_ext
25720 cat >>conftest.$ac_ext <<_ACEOF
25721 /* end confdefs.h. */
25723 /* Override any GCC internal prototype to avoid an error.
25724 Use char because int might match the return type of a GCC
25725 builtin and then its argument prototype would still apply. */
25726 #ifdef __cplusplus
25727 extern "C"
25728 #endif
25729 char rc_read_config ();
25731 main ()
25733 return rc_read_config ();
25735 return 0;
25737 _ACEOF
25738 rm -f conftest.$ac_objext conftest$ac_exeext
25739 if { (ac_try="$ac_link"
25740 case "(($ac_try" in
25741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25742 *) ac_try_echo=$ac_try;;
25743 esac
25744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25745 (eval "$ac_link") 2>conftest.er1
25746 ac_status=$?
25747 grep -v '^ *+' conftest.er1 >conftest.err
25748 rm -f conftest.er1
25749 cat conftest.err >&5
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); } && {
25752 test -z "$ac_c_werror_flag" ||
25753 test ! -s conftest.err
25754 } && test -s conftest$ac_exeext &&
25755 $as_test_x conftest$ac_exeext; then
25756 ac_cv_lib_radiusclient_ng_rc_read_config=yes
25757 else
25758 echo "$as_me: failed program was:" >&5
25759 sed 's/^/| /' conftest.$ac_ext >&5
25761 ac_cv_lib_radiusclient_ng_rc_read_config=no
25764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25765 conftest$ac_exeext conftest.$ac_ext
25766 LIBS=$ac_check_lib_save_LIBS
25768 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
25769 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
25770 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
25771 AST_RADIUS_FOUND=yes
25772 else
25773 AST_RADIUS_FOUND=no
25777 if test "${AST_RADIUS_FOUND}" = "yes"; then
25778 RADIUS_LIB="-lradiusclient-ng "
25779 RADIUS_HEADER_FOUND="1"
25780 if test "x${RADIUS_DIR}" != "x"; then
25781 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
25782 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
25783 saved_cppflags="${CPPFLAGS}"
25784 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
25785 if test "xradiusclient-ng.h" != "x" ; then
25786 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
25787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25788 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
25789 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
25790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25791 echo $ECHO_N "(cached) $ECHO_C" >&6
25793 ac_res=`eval echo '${'$as_ac_Header'}'`
25794 { echo "$as_me:$LINENO: result: $ac_res" >&5
25795 echo "${ECHO_T}$ac_res" >&6; }
25796 else
25797 # Is the header compilable?
25798 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
25799 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
25800 cat >conftest.$ac_ext <<_ACEOF
25801 /* confdefs.h. */
25802 _ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h. */
25806 $ac_includes_default
25807 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
25808 _ACEOF
25809 rm -f conftest.$ac_objext
25810 if { (ac_try="$ac_compile"
25811 case "(($ac_try" in
25812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813 *) ac_try_echo=$ac_try;;
25814 esac
25815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25816 (eval "$ac_compile") 2>conftest.er1
25817 ac_status=$?
25818 grep -v '^ *+' conftest.er1 >conftest.err
25819 rm -f conftest.er1
25820 cat conftest.err >&5
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); } && {
25823 test -z "$ac_c_werror_flag" ||
25824 test ! -s conftest.err
25825 } && test -s conftest.$ac_objext; then
25826 ac_header_compiler=yes
25827 else
25828 echo "$as_me: failed program was:" >&5
25829 sed 's/^/| /' conftest.$ac_ext >&5
25831 ac_header_compiler=no
25834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25835 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25836 echo "${ECHO_T}$ac_header_compiler" >&6; }
25838 # Is the header present?
25839 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
25840 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
25841 cat >conftest.$ac_ext <<_ACEOF
25842 /* confdefs.h. */
25843 _ACEOF
25844 cat confdefs.h >>conftest.$ac_ext
25845 cat >>conftest.$ac_ext <<_ACEOF
25846 /* end confdefs.h. */
25847 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
25848 _ACEOF
25849 if { (ac_try="$ac_cpp conftest.$ac_ext"
25850 case "(($ac_try" in
25851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25852 *) ac_try_echo=$ac_try;;
25853 esac
25854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25856 ac_status=$?
25857 grep -v '^ *+' conftest.er1 >conftest.err
25858 rm -f conftest.er1
25859 cat conftest.err >&5
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); } >/dev/null && {
25862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25863 test ! -s conftest.err
25864 }; then
25865 ac_header_preproc=yes
25866 else
25867 echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25870 ac_header_preproc=no
25873 rm -f conftest.err conftest.$ac_ext
25874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25875 echo "${ECHO_T}$ac_header_preproc" >&6; }
25877 # So? What about this header?
25878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25879 yes:no: )
25880 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
25881 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25882 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
25883 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
25884 ac_header_preproc=yes
25886 no:yes:* )
25887 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
25888 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
25889 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
25890 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
25891 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
25892 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
25893 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
25894 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
25895 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
25896 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
25897 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
25898 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
25901 esac
25902 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
25903 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
25904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25905 echo $ECHO_N "(cached) $ECHO_C" >&6
25906 else
25907 eval "$as_ac_Header=\$ac_header_preproc"
25909 ac_res=`eval echo '${'$as_ac_Header'}'`
25910 { echo "$as_me:$LINENO: result: $ac_res" >&5
25911 echo "${ECHO_T}$ac_res" >&6; }
25914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25915 RADIUS_HEADER_FOUND=1
25916 else
25917 RADIUS_HEADER_FOUND=0
25922 CPPFLAGS="${saved_cppflags}"
25923 else
25924 if test "xradiusclient-ng.h" != "x" ; then
25925 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25926 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
25927 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
25928 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25929 echo $ECHO_N "(cached) $ECHO_C" >&6
25931 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
25932 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
25933 else
25934 # Is the header compilable?
25935 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
25936 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
25937 cat >conftest.$ac_ext <<_ACEOF
25938 /* confdefs.h. */
25939 _ACEOF
25940 cat confdefs.h >>conftest.$ac_ext
25941 cat >>conftest.$ac_ext <<_ACEOF
25942 /* end confdefs.h. */
25943 $ac_includes_default
25944 #include <radiusclient-ng.h>
25945 _ACEOF
25946 rm -f conftest.$ac_objext
25947 if { (ac_try="$ac_compile"
25948 case "(($ac_try" in
25949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950 *) ac_try_echo=$ac_try;;
25951 esac
25952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953 (eval "$ac_compile") 2>conftest.er1
25954 ac_status=$?
25955 grep -v '^ *+' conftest.er1 >conftest.err
25956 rm -f conftest.er1
25957 cat conftest.err >&5
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); } && {
25960 test -z "$ac_c_werror_flag" ||
25961 test ! -s conftest.err
25962 } && test -s conftest.$ac_objext; then
25963 ac_header_compiler=yes
25964 else
25965 echo "$as_me: failed program was:" >&5
25966 sed 's/^/| /' conftest.$ac_ext >&5
25968 ac_header_compiler=no
25971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25973 echo "${ECHO_T}$ac_header_compiler" >&6; }
25975 # Is the header present?
25976 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
25977 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
25978 cat >conftest.$ac_ext <<_ACEOF
25979 /* confdefs.h. */
25980 _ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h. */
25984 #include <radiusclient-ng.h>
25985 _ACEOF
25986 if { (ac_try="$ac_cpp conftest.$ac_ext"
25987 case "(($ac_try" in
25988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989 *) ac_try_echo=$ac_try;;
25990 esac
25991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25993 ac_status=$?
25994 grep -v '^ *+' conftest.er1 >conftest.err
25995 rm -f conftest.er1
25996 cat conftest.err >&5
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); } >/dev/null && {
25999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26000 test ! -s conftest.err
26001 }; then
26002 ac_header_preproc=yes
26003 else
26004 echo "$as_me: failed program was:" >&5
26005 sed 's/^/| /' conftest.$ac_ext >&5
26007 ac_header_preproc=no
26010 rm -f conftest.err conftest.$ac_ext
26011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26012 echo "${ECHO_T}$ac_header_preproc" >&6; }
26014 # So? What about this header?
26015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26016 yes:no: )
26017 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
26018 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26019 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
26020 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
26021 ac_header_preproc=yes
26023 no:yes:* )
26024 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
26025 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
26026 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
26027 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
26028 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
26029 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
26030 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
26031 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
26032 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
26033 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
26034 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
26035 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
26038 esac
26039 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
26040 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
26041 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
26042 echo $ECHO_N "(cached) $ECHO_C" >&6
26043 else
26044 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
26046 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
26047 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
26050 if test $ac_cv_header_radiusclient_ng_h = yes; then
26051 RADIUS_HEADER_FOUND=1
26052 else
26053 RADIUS_HEADER_FOUND=0
26059 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
26060 if test -n "${RADIUS_MANDATORY}" ;
26061 then
26062 { echo "$as_me:$LINENO: ***" >&5
26063 echo "$as_me: ***" >&6;}
26064 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
26065 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
26066 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
26067 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
26068 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
26069 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
26070 exit 1
26072 RADIUS_LIB=""
26073 RADIUS_INCLUDE=""
26074 PBX_RADIUS=0
26075 else
26076 PBX_RADIUS=1
26078 cat >>confdefs.h <<_ACEOF
26079 #define HAVE_RADIUS 1
26080 _ACEOF
26083 elif test -n "${RADIUS_MANDATORY}";
26084 then
26085 { echo "$as_me:$LINENO: ***" >&5
26086 echo "$as_me: ***" >&6;}
26087 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
26088 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
26089 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26090 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26091 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
26092 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
26093 exit 1
26099 if test "${USE_SPEEX}" != "no"; then
26100 pbxlibdir=""
26101 if test "x${SPEEX_DIR}" != "x"; then
26102 if test -d ${SPEEX_DIR}/lib; then
26103 pbxlibdir="-L${SPEEX_DIR}/lib"
26104 else
26105 pbxlibdir="-L${SPEEX_DIR}"
26108 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
26109 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
26110 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
26111 echo $ECHO_N "(cached) $ECHO_C" >&6
26112 else
26113 ac_check_lib_save_LIBS=$LIBS
26114 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
26115 cat >conftest.$ac_ext <<_ACEOF
26116 /* confdefs.h. */
26117 _ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h. */
26122 /* Override any GCC internal prototype to avoid an error.
26123 Use char because int might match the return type of a GCC
26124 builtin and then its argument prototype would still apply. */
26125 #ifdef __cplusplus
26126 extern "C"
26127 #endif
26128 char speex_encode ();
26130 main ()
26132 return speex_encode ();
26134 return 0;
26136 _ACEOF
26137 rm -f conftest.$ac_objext conftest$ac_exeext
26138 if { (ac_try="$ac_link"
26139 case "(($ac_try" in
26140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26141 *) ac_try_echo=$ac_try;;
26142 esac
26143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26144 (eval "$ac_link") 2>conftest.er1
26145 ac_status=$?
26146 grep -v '^ *+' conftest.er1 >conftest.err
26147 rm -f conftest.er1
26148 cat conftest.err >&5
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); } && {
26151 test -z "$ac_c_werror_flag" ||
26152 test ! -s conftest.err
26153 } && test -s conftest$ac_exeext &&
26154 $as_test_x conftest$ac_exeext; then
26155 ac_cv_lib_speex_speex_encode=yes
26156 else
26157 echo "$as_me: failed program was:" >&5
26158 sed 's/^/| /' conftest.$ac_ext >&5
26160 ac_cv_lib_speex_speex_encode=no
26163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26164 conftest$ac_exeext conftest.$ac_ext
26165 LIBS=$ac_check_lib_save_LIBS
26167 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
26168 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
26169 if test $ac_cv_lib_speex_speex_encode = yes; then
26170 AST_SPEEX_FOUND=yes
26171 else
26172 AST_SPEEX_FOUND=no
26176 if test "${AST_SPEEX_FOUND}" = "yes"; then
26177 SPEEX_LIB="-lspeex -lm"
26178 SPEEX_HEADER_FOUND="1"
26179 if test "x${SPEEX_DIR}" != "x"; then
26180 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
26181 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
26182 saved_cppflags="${CPPFLAGS}"
26183 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
26184 if test "xspeex/speex.h" != "x" ; then
26185 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
26186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26187 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
26188 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
26189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26190 echo $ECHO_N "(cached) $ECHO_C" >&6
26192 ac_res=`eval echo '${'$as_ac_Header'}'`
26193 { echo "$as_me:$LINENO: result: $ac_res" >&5
26194 echo "${ECHO_T}$ac_res" >&6; }
26195 else
26196 # Is the header compilable?
26197 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
26198 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
26199 cat >conftest.$ac_ext <<_ACEOF
26200 /* confdefs.h. */
26201 _ACEOF
26202 cat confdefs.h >>conftest.$ac_ext
26203 cat >>conftest.$ac_ext <<_ACEOF
26204 /* end confdefs.h. */
26205 $ac_includes_default
26206 #include <${SPEEX_DIR}/include/speex/speex.h>
26207 _ACEOF
26208 rm -f conftest.$ac_objext
26209 if { (ac_try="$ac_compile"
26210 case "(($ac_try" in
26211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26212 *) ac_try_echo=$ac_try;;
26213 esac
26214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26215 (eval "$ac_compile") 2>conftest.er1
26216 ac_status=$?
26217 grep -v '^ *+' conftest.er1 >conftest.err
26218 rm -f conftest.er1
26219 cat conftest.err >&5
26220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221 (exit $ac_status); } && {
26222 test -z "$ac_c_werror_flag" ||
26223 test ! -s conftest.err
26224 } && test -s conftest.$ac_objext; then
26225 ac_header_compiler=yes
26226 else
26227 echo "$as_me: failed program was:" >&5
26228 sed 's/^/| /' conftest.$ac_ext >&5
26230 ac_header_compiler=no
26233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26235 echo "${ECHO_T}$ac_header_compiler" >&6; }
26237 # Is the header present?
26238 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
26239 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
26240 cat >conftest.$ac_ext <<_ACEOF
26241 /* confdefs.h. */
26242 _ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h. */
26246 #include <${SPEEX_DIR}/include/speex/speex.h>
26247 _ACEOF
26248 if { (ac_try="$ac_cpp conftest.$ac_ext"
26249 case "(($ac_try" in
26250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26251 *) ac_try_echo=$ac_try;;
26252 esac
26253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26255 ac_status=$?
26256 grep -v '^ *+' conftest.er1 >conftest.err
26257 rm -f conftest.er1
26258 cat conftest.err >&5
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); } >/dev/null && {
26261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26262 test ! -s conftest.err
26263 }; then
26264 ac_header_preproc=yes
26265 else
26266 echo "$as_me: failed program was:" >&5
26267 sed 's/^/| /' conftest.$ac_ext >&5
26269 ac_header_preproc=no
26272 rm -f conftest.err conftest.$ac_ext
26273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26274 echo "${ECHO_T}$ac_header_preproc" >&6; }
26276 # So? What about this header?
26277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26278 yes:no: )
26279 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
26280 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26281 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
26282 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
26283 ac_header_preproc=yes
26285 no:yes:* )
26286 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
26287 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
26288 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
26289 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
26290 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
26291 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
26292 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
26293 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
26294 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
26295 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
26296 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
26297 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
26300 esac
26301 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
26302 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
26303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26304 echo $ECHO_N "(cached) $ECHO_C" >&6
26305 else
26306 eval "$as_ac_Header=\$ac_header_preproc"
26308 ac_res=`eval echo '${'$as_ac_Header'}'`
26309 { echo "$as_me:$LINENO: result: $ac_res" >&5
26310 echo "${ECHO_T}$ac_res" >&6; }
26313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26314 SPEEX_HEADER_FOUND=1
26315 else
26316 SPEEX_HEADER_FOUND=0
26321 CPPFLAGS="${saved_cppflags}"
26322 else
26323 if test "xspeex/speex.h" != "x" ; then
26324 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26325 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26326 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26327 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26328 echo $ECHO_N "(cached) $ECHO_C" >&6
26330 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26331 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26332 else
26333 # Is the header compilable?
26334 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
26335 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
26336 cat >conftest.$ac_ext <<_ACEOF
26337 /* confdefs.h. */
26338 _ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h. */
26342 $ac_includes_default
26343 #include <speex/speex.h>
26344 _ACEOF
26345 rm -f conftest.$ac_objext
26346 if { (ac_try="$ac_compile"
26347 case "(($ac_try" in
26348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26349 *) ac_try_echo=$ac_try;;
26350 esac
26351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26352 (eval "$ac_compile") 2>conftest.er1
26353 ac_status=$?
26354 grep -v '^ *+' conftest.er1 >conftest.err
26355 rm -f conftest.er1
26356 cat conftest.err >&5
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); } && {
26359 test -z "$ac_c_werror_flag" ||
26360 test ! -s conftest.err
26361 } && test -s conftest.$ac_objext; then
26362 ac_header_compiler=yes
26363 else
26364 echo "$as_me: failed program was:" >&5
26365 sed 's/^/| /' conftest.$ac_ext >&5
26367 ac_header_compiler=no
26370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26372 echo "${ECHO_T}$ac_header_compiler" >&6; }
26374 # Is the header present?
26375 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
26376 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
26377 cat >conftest.$ac_ext <<_ACEOF
26378 /* confdefs.h. */
26379 _ACEOF
26380 cat confdefs.h >>conftest.$ac_ext
26381 cat >>conftest.$ac_ext <<_ACEOF
26382 /* end confdefs.h. */
26383 #include <speex/speex.h>
26384 _ACEOF
26385 if { (ac_try="$ac_cpp conftest.$ac_ext"
26386 case "(($ac_try" in
26387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26388 *) ac_try_echo=$ac_try;;
26389 esac
26390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26392 ac_status=$?
26393 grep -v '^ *+' conftest.er1 >conftest.err
26394 rm -f conftest.er1
26395 cat conftest.err >&5
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); } >/dev/null && {
26398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26399 test ! -s conftest.err
26400 }; then
26401 ac_header_preproc=yes
26402 else
26403 echo "$as_me: failed program was:" >&5
26404 sed 's/^/| /' conftest.$ac_ext >&5
26406 ac_header_preproc=no
26409 rm -f conftest.err conftest.$ac_ext
26410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26411 echo "${ECHO_T}$ac_header_preproc" >&6; }
26413 # So? What about this header?
26414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26415 yes:no: )
26416 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
26417 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26418 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
26419 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
26420 ac_header_preproc=yes
26422 no:yes:* )
26423 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
26424 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
26425 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
26426 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
26427 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
26428 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
26429 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
26430 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
26431 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
26432 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
26433 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
26434 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
26437 esac
26438 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26439 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26440 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26441 echo $ECHO_N "(cached) $ECHO_C" >&6
26442 else
26443 ac_cv_header_speex_speex_h=$ac_header_preproc
26445 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26446 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26449 if test $ac_cv_header_speex_speex_h = yes; then
26450 SPEEX_HEADER_FOUND=1
26451 else
26452 SPEEX_HEADER_FOUND=0
26458 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
26459 if test -n "${SPEEX_MANDATORY}" ;
26460 then
26461 { echo "$as_me:$LINENO: ***" >&5
26462 echo "$as_me: ***" >&6;}
26463 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
26464 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
26465 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
26466 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
26467 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
26468 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
26469 exit 1
26471 SPEEX_LIB=""
26472 SPEEX_INCLUDE=""
26473 PBX_SPEEX=0
26474 else
26475 PBX_SPEEX=1
26477 cat >>confdefs.h <<_ACEOF
26478 #define HAVE_SPEEX 1
26479 _ACEOF
26482 elif test -n "${SPEEX_MANDATORY}";
26483 then
26484 { echo "$as_me:$LINENO: ***" >&5
26485 echo "$as_me: ***" >&6;}
26486 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
26487 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
26488 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26489 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26490 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
26491 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
26492 exit 1
26498 if test "${USE_SQLITE}" != "no"; then
26499 pbxlibdir=""
26500 if test "x${SQLITE_DIR}" != "x"; then
26501 if test -d ${SQLITE_DIR}/lib; then
26502 pbxlibdir="-L${SQLITE_DIR}/lib"
26503 else
26504 pbxlibdir="-L${SQLITE_DIR}"
26507 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
26508 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
26509 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
26510 echo $ECHO_N "(cached) $ECHO_C" >&6
26511 else
26512 ac_check_lib_save_LIBS=$LIBS
26513 LIBS="-lsqlite ${pbxlibdir} $LIBS"
26514 cat >conftest.$ac_ext <<_ACEOF
26515 /* confdefs.h. */
26516 _ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h. */
26521 /* Override any GCC internal prototype to avoid an error.
26522 Use char because int might match the return type of a GCC
26523 builtin and then its argument prototype would still apply. */
26524 #ifdef __cplusplus
26525 extern "C"
26526 #endif
26527 char sqlite_exec ();
26529 main ()
26531 return sqlite_exec ();
26533 return 0;
26535 _ACEOF
26536 rm -f conftest.$ac_objext conftest$ac_exeext
26537 if { (ac_try="$ac_link"
26538 case "(($ac_try" in
26539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26540 *) ac_try_echo=$ac_try;;
26541 esac
26542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26543 (eval "$ac_link") 2>conftest.er1
26544 ac_status=$?
26545 grep -v '^ *+' conftest.er1 >conftest.err
26546 rm -f conftest.er1
26547 cat conftest.err >&5
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); } && {
26550 test -z "$ac_c_werror_flag" ||
26551 test ! -s conftest.err
26552 } && test -s conftest$ac_exeext &&
26553 $as_test_x conftest$ac_exeext; then
26554 ac_cv_lib_sqlite_sqlite_exec=yes
26555 else
26556 echo "$as_me: failed program was:" >&5
26557 sed 's/^/| /' conftest.$ac_ext >&5
26559 ac_cv_lib_sqlite_sqlite_exec=no
26562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26563 conftest$ac_exeext conftest.$ac_ext
26564 LIBS=$ac_check_lib_save_LIBS
26566 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
26567 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
26568 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
26569 AST_SQLITE_FOUND=yes
26570 else
26571 AST_SQLITE_FOUND=no
26575 if test "${AST_SQLITE_FOUND}" = "yes"; then
26576 SQLITE_LIB="-lsqlite "
26577 SQLITE_HEADER_FOUND="1"
26578 if test "x${SQLITE_DIR}" != "x"; then
26579 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
26580 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
26581 saved_cppflags="${CPPFLAGS}"
26582 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
26583 if test "xsqlite.h" != "x" ; then
26584 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
26585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26586 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
26587 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
26588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26589 echo $ECHO_N "(cached) $ECHO_C" >&6
26591 ac_res=`eval echo '${'$as_ac_Header'}'`
26592 { echo "$as_me:$LINENO: result: $ac_res" >&5
26593 echo "${ECHO_T}$ac_res" >&6; }
26594 else
26595 # Is the header compilable?
26596 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
26597 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
26598 cat >conftest.$ac_ext <<_ACEOF
26599 /* confdefs.h. */
26600 _ACEOF
26601 cat confdefs.h >>conftest.$ac_ext
26602 cat >>conftest.$ac_ext <<_ACEOF
26603 /* end confdefs.h. */
26604 $ac_includes_default
26605 #include <${SQLITE_DIR}/include/sqlite.h>
26606 _ACEOF
26607 rm -f conftest.$ac_objext
26608 if { (ac_try="$ac_compile"
26609 case "(($ac_try" in
26610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26611 *) ac_try_echo=$ac_try;;
26612 esac
26613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26614 (eval "$ac_compile") 2>conftest.er1
26615 ac_status=$?
26616 grep -v '^ *+' conftest.er1 >conftest.err
26617 rm -f conftest.er1
26618 cat conftest.err >&5
26619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); } && {
26621 test -z "$ac_c_werror_flag" ||
26622 test ! -s conftest.err
26623 } && test -s conftest.$ac_objext; then
26624 ac_header_compiler=yes
26625 else
26626 echo "$as_me: failed program was:" >&5
26627 sed 's/^/| /' conftest.$ac_ext >&5
26629 ac_header_compiler=no
26632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26634 echo "${ECHO_T}$ac_header_compiler" >&6; }
26636 # Is the header present?
26637 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
26638 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
26639 cat >conftest.$ac_ext <<_ACEOF
26640 /* confdefs.h. */
26641 _ACEOF
26642 cat confdefs.h >>conftest.$ac_ext
26643 cat >>conftest.$ac_ext <<_ACEOF
26644 /* end confdefs.h. */
26645 #include <${SQLITE_DIR}/include/sqlite.h>
26646 _ACEOF
26647 if { (ac_try="$ac_cpp conftest.$ac_ext"
26648 case "(($ac_try" in
26649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26650 *) ac_try_echo=$ac_try;;
26651 esac
26652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26654 ac_status=$?
26655 grep -v '^ *+' conftest.er1 >conftest.err
26656 rm -f conftest.er1
26657 cat conftest.err >&5
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); } >/dev/null && {
26660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26661 test ! -s conftest.err
26662 }; then
26663 ac_header_preproc=yes
26664 else
26665 echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26668 ac_header_preproc=no
26671 rm -f conftest.err conftest.$ac_ext
26672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26673 echo "${ECHO_T}$ac_header_preproc" >&6; }
26675 # So? What about this header?
26676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26677 yes:no: )
26678 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
26679 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26680 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
26681 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
26682 ac_header_preproc=yes
26684 no:yes:* )
26685 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
26686 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
26687 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
26688 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
26689 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
26690 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
26691 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
26692 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
26693 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
26694 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
26695 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
26696 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
26699 esac
26700 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
26701 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
26702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26703 echo $ECHO_N "(cached) $ECHO_C" >&6
26704 else
26705 eval "$as_ac_Header=\$ac_header_preproc"
26707 ac_res=`eval echo '${'$as_ac_Header'}'`
26708 { echo "$as_me:$LINENO: result: $ac_res" >&5
26709 echo "${ECHO_T}$ac_res" >&6; }
26712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26713 SQLITE_HEADER_FOUND=1
26714 else
26715 SQLITE_HEADER_FOUND=0
26720 CPPFLAGS="${saved_cppflags}"
26721 else
26722 if test "xsqlite.h" != "x" ; then
26723 if test "${ac_cv_header_sqlite_h+set}" = set; then
26724 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
26725 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
26726 if test "${ac_cv_header_sqlite_h+set}" = set; then
26727 echo $ECHO_N "(cached) $ECHO_C" >&6
26729 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
26730 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
26731 else
26732 # Is the header compilable?
26733 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
26734 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
26735 cat >conftest.$ac_ext <<_ACEOF
26736 /* confdefs.h. */
26737 _ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h. */
26741 $ac_includes_default
26742 #include <sqlite.h>
26743 _ACEOF
26744 rm -f conftest.$ac_objext
26745 if { (ac_try="$ac_compile"
26746 case "(($ac_try" in
26747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26748 *) ac_try_echo=$ac_try;;
26749 esac
26750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751 (eval "$ac_compile") 2>conftest.er1
26752 ac_status=$?
26753 grep -v '^ *+' conftest.er1 >conftest.err
26754 rm -f conftest.er1
26755 cat conftest.err >&5
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); } && {
26758 test -z "$ac_c_werror_flag" ||
26759 test ! -s conftest.err
26760 } && test -s conftest.$ac_objext; then
26761 ac_header_compiler=yes
26762 else
26763 echo "$as_me: failed program was:" >&5
26764 sed 's/^/| /' conftest.$ac_ext >&5
26766 ac_header_compiler=no
26769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26771 echo "${ECHO_T}$ac_header_compiler" >&6; }
26773 # Is the header present?
26774 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
26775 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
26776 cat >conftest.$ac_ext <<_ACEOF
26777 /* confdefs.h. */
26778 _ACEOF
26779 cat confdefs.h >>conftest.$ac_ext
26780 cat >>conftest.$ac_ext <<_ACEOF
26781 /* end confdefs.h. */
26782 #include <sqlite.h>
26783 _ACEOF
26784 if { (ac_try="$ac_cpp conftest.$ac_ext"
26785 case "(($ac_try" in
26786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787 *) ac_try_echo=$ac_try;;
26788 esac
26789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26791 ac_status=$?
26792 grep -v '^ *+' conftest.er1 >conftest.err
26793 rm -f conftest.er1
26794 cat conftest.err >&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); } >/dev/null && {
26797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26798 test ! -s conftest.err
26799 }; then
26800 ac_header_preproc=yes
26801 else
26802 echo "$as_me: failed program was:" >&5
26803 sed 's/^/| /' conftest.$ac_ext >&5
26805 ac_header_preproc=no
26808 rm -f conftest.err conftest.$ac_ext
26809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26810 echo "${ECHO_T}$ac_header_preproc" >&6; }
26812 # So? What about this header?
26813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26814 yes:no: )
26815 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
26816 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26817 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
26818 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
26819 ac_header_preproc=yes
26821 no:yes:* )
26822 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
26823 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
26824 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
26825 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
26826 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
26827 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
26828 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
26829 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
26830 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
26831 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
26832 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
26833 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
26836 esac
26837 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
26838 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
26839 if test "${ac_cv_header_sqlite_h+set}" = set; then
26840 echo $ECHO_N "(cached) $ECHO_C" >&6
26841 else
26842 ac_cv_header_sqlite_h=$ac_header_preproc
26844 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
26845 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
26848 if test $ac_cv_header_sqlite_h = yes; then
26849 SQLITE_HEADER_FOUND=1
26850 else
26851 SQLITE_HEADER_FOUND=0
26857 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
26858 if test -n "${SQLITE_MANDATORY}" ;
26859 then
26860 { echo "$as_me:$LINENO: ***" >&5
26861 echo "$as_me: ***" >&6;}
26862 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
26863 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
26864 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
26865 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
26866 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
26867 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
26868 exit 1
26870 SQLITE_LIB=""
26871 SQLITE_INCLUDE=""
26872 PBX_SQLITE=0
26873 else
26874 PBX_SQLITE=1
26876 cat >>confdefs.h <<_ACEOF
26877 #define HAVE_SQLITE 1
26878 _ACEOF
26881 elif test -n "${SQLITE_MANDATORY}";
26882 then
26883 { echo "$as_me:$LINENO: ***" >&5
26884 echo "$as_me: ***" >&6;}
26885 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
26886 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
26887 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26888 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26889 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
26890 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
26891 exit 1
26897 if test "${USE_OPENSSL}" != "no"; then
26898 pbxlibdir=""
26899 if test "x${OPENSSL_DIR}" != "x"; then
26900 if test -d ${OPENSSL_DIR}/lib; then
26901 pbxlibdir="-L${OPENSSL_DIR}/lib"
26902 else
26903 pbxlibdir="-L${OPENSSL_DIR}"
26906 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
26907 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
26908 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
26909 echo $ECHO_N "(cached) $ECHO_C" >&6
26910 else
26911 ac_check_lib_save_LIBS=$LIBS
26912 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
26913 cat >conftest.$ac_ext <<_ACEOF
26914 /* confdefs.h. */
26915 _ACEOF
26916 cat confdefs.h >>conftest.$ac_ext
26917 cat >>conftest.$ac_ext <<_ACEOF
26918 /* end confdefs.h. */
26920 /* Override any GCC internal prototype to avoid an error.
26921 Use char because int might match the return type of a GCC
26922 builtin and then its argument prototype would still apply. */
26923 #ifdef __cplusplus
26924 extern "C"
26925 #endif
26926 char ssl2_connect ();
26928 main ()
26930 return ssl2_connect ();
26932 return 0;
26934 _ACEOF
26935 rm -f conftest.$ac_objext conftest$ac_exeext
26936 if { (ac_try="$ac_link"
26937 case "(($ac_try" in
26938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26939 *) ac_try_echo=$ac_try;;
26940 esac
26941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26942 (eval "$ac_link") 2>conftest.er1
26943 ac_status=$?
26944 grep -v '^ *+' conftest.er1 >conftest.err
26945 rm -f conftest.er1
26946 cat conftest.err >&5
26947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948 (exit $ac_status); } && {
26949 test -z "$ac_c_werror_flag" ||
26950 test ! -s conftest.err
26951 } && test -s conftest$ac_exeext &&
26952 $as_test_x conftest$ac_exeext; then
26953 ac_cv_lib_ssl_ssl2_connect=yes
26954 else
26955 echo "$as_me: failed program was:" >&5
26956 sed 's/^/| /' conftest.$ac_ext >&5
26958 ac_cv_lib_ssl_ssl2_connect=no
26961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26962 conftest$ac_exeext conftest.$ac_ext
26963 LIBS=$ac_check_lib_save_LIBS
26965 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
26966 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
26967 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
26968 AST_OPENSSL_FOUND=yes
26969 else
26970 AST_OPENSSL_FOUND=no
26974 if test "${AST_OPENSSL_FOUND}" = "yes"; then
26975 OPENSSL_LIB="-lssl -lcrypto"
26976 OPENSSL_HEADER_FOUND="1"
26977 if test "x${OPENSSL_DIR}" != "x"; then
26978 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
26979 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
26980 saved_cppflags="${CPPFLAGS}"
26981 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
26982 if test "xopenssl/ssl.h" != "x" ; then
26983 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
26984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26985 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
26986 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
26987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26988 echo $ECHO_N "(cached) $ECHO_C" >&6
26990 ac_res=`eval echo '${'$as_ac_Header'}'`
26991 { echo "$as_me:$LINENO: result: $ac_res" >&5
26992 echo "${ECHO_T}$ac_res" >&6; }
26993 else
26994 # Is the header compilable?
26995 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
26996 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
26997 cat >conftest.$ac_ext <<_ACEOF
26998 /* confdefs.h. */
26999 _ACEOF
27000 cat confdefs.h >>conftest.$ac_ext
27001 cat >>conftest.$ac_ext <<_ACEOF
27002 /* end confdefs.h. */
27003 $ac_includes_default
27004 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
27005 _ACEOF
27006 rm -f conftest.$ac_objext
27007 if { (ac_try="$ac_compile"
27008 case "(($ac_try" in
27009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010 *) ac_try_echo=$ac_try;;
27011 esac
27012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013 (eval "$ac_compile") 2>conftest.er1
27014 ac_status=$?
27015 grep -v '^ *+' conftest.er1 >conftest.err
27016 rm -f conftest.er1
27017 cat conftest.err >&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); } && {
27020 test -z "$ac_c_werror_flag" ||
27021 test ! -s conftest.err
27022 } && test -s conftest.$ac_objext; then
27023 ac_header_compiler=yes
27024 else
27025 echo "$as_me: failed program was:" >&5
27026 sed 's/^/| /' conftest.$ac_ext >&5
27028 ac_header_compiler=no
27031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27033 echo "${ECHO_T}$ac_header_compiler" >&6; }
27035 # Is the header present?
27036 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
27037 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
27038 cat >conftest.$ac_ext <<_ACEOF
27039 /* confdefs.h. */
27040 _ACEOF
27041 cat confdefs.h >>conftest.$ac_ext
27042 cat >>conftest.$ac_ext <<_ACEOF
27043 /* end confdefs.h. */
27044 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
27045 _ACEOF
27046 if { (ac_try="$ac_cpp conftest.$ac_ext"
27047 case "(($ac_try" in
27048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27049 *) ac_try_echo=$ac_try;;
27050 esac
27051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27053 ac_status=$?
27054 grep -v '^ *+' conftest.er1 >conftest.err
27055 rm -f conftest.er1
27056 cat conftest.err >&5
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); } >/dev/null && {
27059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27060 test ! -s conftest.err
27061 }; then
27062 ac_header_preproc=yes
27063 else
27064 echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.$ac_ext >&5
27067 ac_header_preproc=no
27070 rm -f conftest.err conftest.$ac_ext
27071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27072 echo "${ECHO_T}$ac_header_preproc" >&6; }
27074 # So? What about this header?
27075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27076 yes:no: )
27077 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27078 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27079 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
27080 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
27081 ac_header_preproc=yes
27083 no:yes:* )
27084 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
27085 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
27086 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
27087 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
27088 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
27089 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
27090 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
27091 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27092 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
27093 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
27094 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
27095 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
27098 esac
27099 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
27100 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
27101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27102 echo $ECHO_N "(cached) $ECHO_C" >&6
27103 else
27104 eval "$as_ac_Header=\$ac_header_preproc"
27106 ac_res=`eval echo '${'$as_ac_Header'}'`
27107 { echo "$as_me:$LINENO: result: $ac_res" >&5
27108 echo "${ECHO_T}$ac_res" >&6; }
27111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27112 OPENSSL_HEADER_FOUND=1
27113 else
27114 OPENSSL_HEADER_FOUND=0
27119 CPPFLAGS="${saved_cppflags}"
27120 else
27121 if test "xopenssl/ssl.h" != "x" ; then
27122 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27123 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
27124 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
27125 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27126 echo $ECHO_N "(cached) $ECHO_C" >&6
27128 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
27129 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
27130 else
27131 # Is the header compilable?
27132 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
27133 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
27134 cat >conftest.$ac_ext <<_ACEOF
27135 /* confdefs.h. */
27136 _ACEOF
27137 cat confdefs.h >>conftest.$ac_ext
27138 cat >>conftest.$ac_ext <<_ACEOF
27139 /* end confdefs.h. */
27140 $ac_includes_default
27141 #include <openssl/ssl.h>
27142 _ACEOF
27143 rm -f conftest.$ac_objext
27144 if { (ac_try="$ac_compile"
27145 case "(($ac_try" in
27146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27147 *) ac_try_echo=$ac_try;;
27148 esac
27149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27150 (eval "$ac_compile") 2>conftest.er1
27151 ac_status=$?
27152 grep -v '^ *+' conftest.er1 >conftest.err
27153 rm -f conftest.er1
27154 cat conftest.err >&5
27155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156 (exit $ac_status); } && {
27157 test -z "$ac_c_werror_flag" ||
27158 test ! -s conftest.err
27159 } && test -s conftest.$ac_objext; then
27160 ac_header_compiler=yes
27161 else
27162 echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.$ac_ext >&5
27165 ac_header_compiler=no
27168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27170 echo "${ECHO_T}$ac_header_compiler" >&6; }
27172 # Is the header present?
27173 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
27174 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
27175 cat >conftest.$ac_ext <<_ACEOF
27176 /* confdefs.h. */
27177 _ACEOF
27178 cat confdefs.h >>conftest.$ac_ext
27179 cat >>conftest.$ac_ext <<_ACEOF
27180 /* end confdefs.h. */
27181 #include <openssl/ssl.h>
27182 _ACEOF
27183 if { (ac_try="$ac_cpp conftest.$ac_ext"
27184 case "(($ac_try" in
27185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186 *) ac_try_echo=$ac_try;;
27187 esac
27188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27190 ac_status=$?
27191 grep -v '^ *+' conftest.er1 >conftest.err
27192 rm -f conftest.er1
27193 cat conftest.err >&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); } >/dev/null && {
27196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27197 test ! -s conftest.err
27198 }; then
27199 ac_header_preproc=yes
27200 else
27201 echo "$as_me: failed program was:" >&5
27202 sed 's/^/| /' conftest.$ac_ext >&5
27204 ac_header_preproc=no
27207 rm -f conftest.err conftest.$ac_ext
27208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27209 echo "${ECHO_T}$ac_header_preproc" >&6; }
27211 # So? What about this header?
27212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27213 yes:no: )
27214 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27215 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27216 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
27217 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
27218 ac_header_preproc=yes
27220 no:yes:* )
27221 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
27222 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
27223 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
27224 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
27225 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
27226 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
27227 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
27228 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27229 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
27230 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
27231 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
27232 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
27235 esac
27236 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
27237 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
27238 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27239 echo $ECHO_N "(cached) $ECHO_C" >&6
27240 else
27241 ac_cv_header_openssl_ssl_h=$ac_header_preproc
27243 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
27244 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
27247 if test $ac_cv_header_openssl_ssl_h = yes; then
27248 OPENSSL_HEADER_FOUND=1
27249 else
27250 OPENSSL_HEADER_FOUND=0
27256 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
27257 if test -n "${OPENSSL_MANDATORY}" ;
27258 then
27259 { echo "$as_me:$LINENO: ***" >&5
27260 echo "$as_me: ***" >&6;}
27261 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
27262 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
27263 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
27264 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
27265 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
27266 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
27267 exit 1
27269 OPENSSL_LIB=""
27270 OPENSSL_INCLUDE=""
27271 PBX_OPENSSL=0
27272 else
27273 PBX_OPENSSL=1
27275 cat >>confdefs.h <<_ACEOF
27276 #define HAVE_OPENSSL 1
27277 _ACEOF
27280 elif test -n "${OPENSSL_MANDATORY}";
27281 then
27282 { echo "$as_me:$LINENO: ***" >&5
27283 echo "$as_me: ***" >&6;}
27284 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
27285 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
27286 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27287 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27288 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
27289 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
27290 exit 1
27294 if test "$PBX_OPENSSL" = "1";
27295 then
27297 if test "${USE_OSPTK}" != "no"; then
27298 pbxlibdir=""
27299 if test "x${OSPTK_DIR}" != "x"; then
27300 if test -d ${OSPTK_DIR}/lib; then
27301 pbxlibdir="-L${OSPTK_DIR}/lib"
27302 else
27303 pbxlibdir="-L${OSPTK_DIR}"
27306 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
27307 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
27308 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
27309 echo $ECHO_N "(cached) $ECHO_C" >&6
27310 else
27311 ac_check_lib_save_LIBS=$LIBS
27312 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
27313 cat >conftest.$ac_ext <<_ACEOF
27314 /* confdefs.h. */
27315 _ACEOF
27316 cat confdefs.h >>conftest.$ac_ext
27317 cat >>conftest.$ac_ext <<_ACEOF
27318 /* end confdefs.h. */
27320 /* Override any GCC internal prototype to avoid an error.
27321 Use char because int might match the return type of a GCC
27322 builtin and then its argument prototype would still apply. */
27323 #ifdef __cplusplus
27324 extern "C"
27325 #endif
27326 char OSPPCryptoDecrypt ();
27328 main ()
27330 return OSPPCryptoDecrypt ();
27332 return 0;
27334 _ACEOF
27335 rm -f conftest.$ac_objext conftest$ac_exeext
27336 if { (ac_try="$ac_link"
27337 case "(($ac_try" in
27338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27339 *) ac_try_echo=$ac_try;;
27340 esac
27341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27342 (eval "$ac_link") 2>conftest.er1
27343 ac_status=$?
27344 grep -v '^ *+' conftest.er1 >conftest.err
27345 rm -f conftest.er1
27346 cat conftest.err >&5
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); } && {
27349 test -z "$ac_c_werror_flag" ||
27350 test ! -s conftest.err
27351 } && test -s conftest$ac_exeext &&
27352 $as_test_x conftest$ac_exeext; then
27353 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
27354 else
27355 echo "$as_me: failed program was:" >&5
27356 sed 's/^/| /' conftest.$ac_ext >&5
27358 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
27361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27362 conftest$ac_exeext conftest.$ac_ext
27363 LIBS=$ac_check_lib_save_LIBS
27365 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
27366 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
27367 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
27368 AST_OSPTK_FOUND=yes
27369 else
27370 AST_OSPTK_FOUND=no
27374 if test "${AST_OSPTK_FOUND}" = "yes"; then
27375 OSPTK_LIB="-losptk -lcrypto -lssl"
27376 OSPTK_HEADER_FOUND="1"
27377 if test "x${OSPTK_DIR}" != "x"; then
27378 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
27379 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
27380 saved_cppflags="${CPPFLAGS}"
27381 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
27382 if test "xosp/osp.h" != "x" ; then
27383 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
27384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27385 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
27386 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
27387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27390 ac_res=`eval echo '${'$as_ac_Header'}'`
27391 { echo "$as_me:$LINENO: result: $ac_res" >&5
27392 echo "${ECHO_T}$ac_res" >&6; }
27393 else
27394 # Is the header compilable?
27395 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
27396 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
27397 cat >conftest.$ac_ext <<_ACEOF
27398 /* confdefs.h. */
27399 _ACEOF
27400 cat confdefs.h >>conftest.$ac_ext
27401 cat >>conftest.$ac_ext <<_ACEOF
27402 /* end confdefs.h. */
27403 $ac_includes_default
27404 #include <${OSPTK_DIR}/include/osp/osp.h>
27405 _ACEOF
27406 rm -f conftest.$ac_objext
27407 if { (ac_try="$ac_compile"
27408 case "(($ac_try" in
27409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27410 *) ac_try_echo=$ac_try;;
27411 esac
27412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27413 (eval "$ac_compile") 2>conftest.er1
27414 ac_status=$?
27415 grep -v '^ *+' conftest.er1 >conftest.err
27416 rm -f conftest.er1
27417 cat conftest.err >&5
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); } && {
27420 test -z "$ac_c_werror_flag" ||
27421 test ! -s conftest.err
27422 } && test -s conftest.$ac_objext; then
27423 ac_header_compiler=yes
27424 else
27425 echo "$as_me: failed program was:" >&5
27426 sed 's/^/| /' conftest.$ac_ext >&5
27428 ac_header_compiler=no
27431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27433 echo "${ECHO_T}$ac_header_compiler" >&6; }
27435 # Is the header present?
27436 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
27437 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
27438 cat >conftest.$ac_ext <<_ACEOF
27439 /* confdefs.h. */
27440 _ACEOF
27441 cat confdefs.h >>conftest.$ac_ext
27442 cat >>conftest.$ac_ext <<_ACEOF
27443 /* end confdefs.h. */
27444 #include <${OSPTK_DIR}/include/osp/osp.h>
27445 _ACEOF
27446 if { (ac_try="$ac_cpp conftest.$ac_ext"
27447 case "(($ac_try" in
27448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27449 *) ac_try_echo=$ac_try;;
27450 esac
27451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27453 ac_status=$?
27454 grep -v '^ *+' conftest.er1 >conftest.err
27455 rm -f conftest.er1
27456 cat conftest.err >&5
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } >/dev/null && {
27459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27460 test ! -s conftest.err
27461 }; then
27462 ac_header_preproc=yes
27463 else
27464 echo "$as_me: failed program was:" >&5
27465 sed 's/^/| /' conftest.$ac_ext >&5
27467 ac_header_preproc=no
27470 rm -f conftest.err conftest.$ac_ext
27471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27472 echo "${ECHO_T}$ac_header_preproc" >&6; }
27474 # So? What about this header?
27475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27476 yes:no: )
27477 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
27478 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27479 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
27480 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
27481 ac_header_preproc=yes
27483 no:yes:* )
27484 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
27485 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
27486 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
27487 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
27488 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
27489 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
27490 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
27491 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
27492 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
27493 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
27494 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
27495 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
27498 esac
27499 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
27500 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
27501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27502 echo $ECHO_N "(cached) $ECHO_C" >&6
27503 else
27504 eval "$as_ac_Header=\$ac_header_preproc"
27506 ac_res=`eval echo '${'$as_ac_Header'}'`
27507 { echo "$as_me:$LINENO: result: $ac_res" >&5
27508 echo "${ECHO_T}$ac_res" >&6; }
27511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27512 OSPTK_HEADER_FOUND=1
27513 else
27514 OSPTK_HEADER_FOUND=0
27519 CPPFLAGS="${saved_cppflags}"
27520 else
27521 if test "xosp/osp.h" != "x" ; then
27522 if test "${ac_cv_header_osp_osp_h+set}" = set; then
27523 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
27524 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
27525 if test "${ac_cv_header_osp_osp_h+set}" = set; then
27526 echo $ECHO_N "(cached) $ECHO_C" >&6
27528 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
27529 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
27530 else
27531 # Is the header compilable?
27532 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
27533 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
27534 cat >conftest.$ac_ext <<_ACEOF
27535 /* confdefs.h. */
27536 _ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h. */
27540 $ac_includes_default
27541 #include <osp/osp.h>
27542 _ACEOF
27543 rm -f conftest.$ac_objext
27544 if { (ac_try="$ac_compile"
27545 case "(($ac_try" in
27546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547 *) ac_try_echo=$ac_try;;
27548 esac
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550 (eval "$ac_compile") 2>conftest.er1
27551 ac_status=$?
27552 grep -v '^ *+' conftest.er1 >conftest.err
27553 rm -f conftest.er1
27554 cat conftest.err >&5
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); } && {
27557 test -z "$ac_c_werror_flag" ||
27558 test ! -s conftest.err
27559 } && test -s conftest.$ac_objext; then
27560 ac_header_compiler=yes
27561 else
27562 echo "$as_me: failed program was:" >&5
27563 sed 's/^/| /' conftest.$ac_ext >&5
27565 ac_header_compiler=no
27568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27570 echo "${ECHO_T}$ac_header_compiler" >&6; }
27572 # Is the header present?
27573 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
27574 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
27575 cat >conftest.$ac_ext <<_ACEOF
27576 /* confdefs.h. */
27577 _ACEOF
27578 cat confdefs.h >>conftest.$ac_ext
27579 cat >>conftest.$ac_ext <<_ACEOF
27580 /* end confdefs.h. */
27581 #include <osp/osp.h>
27582 _ACEOF
27583 if { (ac_try="$ac_cpp conftest.$ac_ext"
27584 case "(($ac_try" in
27585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586 *) ac_try_echo=$ac_try;;
27587 esac
27588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27590 ac_status=$?
27591 grep -v '^ *+' conftest.er1 >conftest.err
27592 rm -f conftest.er1
27593 cat conftest.err >&5
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); } >/dev/null && {
27596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27597 test ! -s conftest.err
27598 }; then
27599 ac_header_preproc=yes
27600 else
27601 echo "$as_me: failed program was:" >&5
27602 sed 's/^/| /' conftest.$ac_ext >&5
27604 ac_header_preproc=no
27607 rm -f conftest.err conftest.$ac_ext
27608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27609 echo "${ECHO_T}$ac_header_preproc" >&6; }
27611 # So? What about this header?
27612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27613 yes:no: )
27614 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
27615 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27616 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
27617 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
27618 ac_header_preproc=yes
27620 no:yes:* )
27621 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
27622 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
27623 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
27624 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
27625 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
27626 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
27627 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
27628 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
27629 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
27630 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
27631 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
27632 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
27635 esac
27636 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
27637 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
27638 if test "${ac_cv_header_osp_osp_h+set}" = set; then
27639 echo $ECHO_N "(cached) $ECHO_C" >&6
27640 else
27641 ac_cv_header_osp_osp_h=$ac_header_preproc
27643 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
27644 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
27647 if test $ac_cv_header_osp_osp_h = yes; then
27648 OSPTK_HEADER_FOUND=1
27649 else
27650 OSPTK_HEADER_FOUND=0
27656 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
27657 if test -n "${OSPTK_MANDATORY}" ;
27658 then
27659 { echo "$as_me:$LINENO: ***" >&5
27660 echo "$as_me: ***" >&6;}
27661 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
27662 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
27663 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
27664 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
27665 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
27666 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
27667 exit 1
27669 OSPTK_LIB=""
27670 OSPTK_INCLUDE=""
27671 PBX_OSPTK=0
27672 else
27673 PBX_OSPTK=1
27675 cat >>confdefs.h <<_ACEOF
27676 #define HAVE_OSPTK 1
27677 _ACEOF
27680 elif test -n "${OSPTK_MANDATORY}";
27681 then
27682 { echo "$as_me:$LINENO: ***" >&5
27683 echo "$as_me: ***" >&6;}
27684 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
27685 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
27686 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27687 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27688 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
27689 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
27690 exit 1
27697 if test "${USE_FREETDS}" != "no"; then
27698 pbxlibdir=""
27699 if test "x${FREETDS_DIR}" != "x"; then
27700 if test -d ${FREETDS_DIR}/lib; then
27701 pbxlibdir="-L${FREETDS_DIR}/lib"
27702 else
27703 pbxlibdir="-L${FREETDS_DIR}"
27706 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
27707 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
27708 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
27709 echo $ECHO_N "(cached) $ECHO_C" >&6
27710 else
27711 ac_check_lib_save_LIBS=$LIBS
27712 LIBS="-ltds ${pbxlibdir} $LIBS"
27713 cat >conftest.$ac_ext <<_ACEOF
27714 /* confdefs.h. */
27715 _ACEOF
27716 cat confdefs.h >>conftest.$ac_ext
27717 cat >>conftest.$ac_ext <<_ACEOF
27718 /* end confdefs.h. */
27720 /* Override any GCC internal prototype to avoid an error.
27721 Use char because int might match the return type of a GCC
27722 builtin and then its argument prototype would still apply. */
27723 #ifdef __cplusplus
27724 extern "C"
27725 #endif
27726 char tds_version ();
27728 main ()
27730 return tds_version ();
27732 return 0;
27734 _ACEOF
27735 rm -f conftest.$ac_objext conftest$ac_exeext
27736 if { (ac_try="$ac_link"
27737 case "(($ac_try" in
27738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27739 *) ac_try_echo=$ac_try;;
27740 esac
27741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27742 (eval "$ac_link") 2>conftest.er1
27743 ac_status=$?
27744 grep -v '^ *+' conftest.er1 >conftest.err
27745 rm -f conftest.er1
27746 cat conftest.err >&5
27747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748 (exit $ac_status); } && {
27749 test -z "$ac_c_werror_flag" ||
27750 test ! -s conftest.err
27751 } && test -s conftest$ac_exeext &&
27752 $as_test_x conftest$ac_exeext; then
27753 ac_cv_lib_tds_tds_version=yes
27754 else
27755 echo "$as_me: failed program was:" >&5
27756 sed 's/^/| /' conftest.$ac_ext >&5
27758 ac_cv_lib_tds_tds_version=no
27761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27762 conftest$ac_exeext conftest.$ac_ext
27763 LIBS=$ac_check_lib_save_LIBS
27765 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
27766 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
27767 if test $ac_cv_lib_tds_tds_version = yes; then
27768 AST_FREETDS_FOUND=yes
27769 else
27770 AST_FREETDS_FOUND=no
27774 if test "${AST_FREETDS_FOUND}" = "yes"; then
27775 FREETDS_LIB="-ltds "
27776 FREETDS_HEADER_FOUND="1"
27777 if test "x${FREETDS_DIR}" != "x"; then
27778 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
27779 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
27780 saved_cppflags="${CPPFLAGS}"
27781 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
27782 if test "xtds.h" != "x" ; then
27783 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
27784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27785 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
27786 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
27787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27788 echo $ECHO_N "(cached) $ECHO_C" >&6
27790 ac_res=`eval echo '${'$as_ac_Header'}'`
27791 { echo "$as_me:$LINENO: result: $ac_res" >&5
27792 echo "${ECHO_T}$ac_res" >&6; }
27793 else
27794 # Is the header compilable?
27795 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
27796 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
27797 cat >conftest.$ac_ext <<_ACEOF
27798 /* confdefs.h. */
27799 _ACEOF
27800 cat confdefs.h >>conftest.$ac_ext
27801 cat >>conftest.$ac_ext <<_ACEOF
27802 /* end confdefs.h. */
27803 $ac_includes_default
27804 #include <${FREETDS_DIR}/include/tds.h>
27805 _ACEOF
27806 rm -f conftest.$ac_objext
27807 if { (ac_try="$ac_compile"
27808 case "(($ac_try" in
27809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810 *) ac_try_echo=$ac_try;;
27811 esac
27812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813 (eval "$ac_compile") 2>conftest.er1
27814 ac_status=$?
27815 grep -v '^ *+' conftest.er1 >conftest.err
27816 rm -f conftest.er1
27817 cat conftest.err >&5
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); } && {
27820 test -z "$ac_c_werror_flag" ||
27821 test ! -s conftest.err
27822 } && test -s conftest.$ac_objext; then
27823 ac_header_compiler=yes
27824 else
27825 echo "$as_me: failed program was:" >&5
27826 sed 's/^/| /' conftest.$ac_ext >&5
27828 ac_header_compiler=no
27831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27833 echo "${ECHO_T}$ac_header_compiler" >&6; }
27835 # Is the header present?
27836 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
27837 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
27838 cat >conftest.$ac_ext <<_ACEOF
27839 /* confdefs.h. */
27840 _ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h. */
27844 #include <${FREETDS_DIR}/include/tds.h>
27845 _ACEOF
27846 if { (ac_try="$ac_cpp conftest.$ac_ext"
27847 case "(($ac_try" in
27848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27849 *) ac_try_echo=$ac_try;;
27850 esac
27851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27853 ac_status=$?
27854 grep -v '^ *+' conftest.er1 >conftest.err
27855 rm -f conftest.er1
27856 cat conftest.err >&5
27857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858 (exit $ac_status); } >/dev/null && {
27859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27860 test ! -s conftest.err
27861 }; then
27862 ac_header_preproc=yes
27863 else
27864 echo "$as_me: failed program was:" >&5
27865 sed 's/^/| /' conftest.$ac_ext >&5
27867 ac_header_preproc=no
27870 rm -f conftest.err conftest.$ac_ext
27871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27872 echo "${ECHO_T}$ac_header_preproc" >&6; }
27874 # So? What about this header?
27875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27876 yes:no: )
27877 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
27878 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27879 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
27880 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
27881 ac_header_preproc=yes
27883 no:yes:* )
27884 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
27885 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
27886 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
27887 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
27888 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
27889 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
27890 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
27891 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
27892 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
27893 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
27894 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
27895 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
27898 esac
27899 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
27900 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
27901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27902 echo $ECHO_N "(cached) $ECHO_C" >&6
27903 else
27904 eval "$as_ac_Header=\$ac_header_preproc"
27906 ac_res=`eval echo '${'$as_ac_Header'}'`
27907 { echo "$as_me:$LINENO: result: $ac_res" >&5
27908 echo "${ECHO_T}$ac_res" >&6; }
27911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27912 FREETDS_HEADER_FOUND=1
27913 else
27914 FREETDS_HEADER_FOUND=0
27919 CPPFLAGS="${saved_cppflags}"
27920 else
27921 if test "xtds.h" != "x" ; then
27922 if test "${ac_cv_header_tds_h+set}" = set; then
27923 { echo "$as_me:$LINENO: checking for tds.h" >&5
27924 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
27925 if test "${ac_cv_header_tds_h+set}" = set; then
27926 echo $ECHO_N "(cached) $ECHO_C" >&6
27928 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
27929 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
27930 else
27931 # Is the header compilable?
27932 { echo "$as_me:$LINENO: checking tds.h usability" >&5
27933 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
27934 cat >conftest.$ac_ext <<_ACEOF
27935 /* confdefs.h. */
27936 _ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h. */
27940 $ac_includes_default
27941 #include <tds.h>
27942 _ACEOF
27943 rm -f conftest.$ac_objext
27944 if { (ac_try="$ac_compile"
27945 case "(($ac_try" in
27946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947 *) ac_try_echo=$ac_try;;
27948 esac
27949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950 (eval "$ac_compile") 2>conftest.er1
27951 ac_status=$?
27952 grep -v '^ *+' conftest.er1 >conftest.err
27953 rm -f conftest.er1
27954 cat conftest.err >&5
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); } && {
27957 test -z "$ac_c_werror_flag" ||
27958 test ! -s conftest.err
27959 } && test -s conftest.$ac_objext; then
27960 ac_header_compiler=yes
27961 else
27962 echo "$as_me: failed program was:" >&5
27963 sed 's/^/| /' conftest.$ac_ext >&5
27965 ac_header_compiler=no
27968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27970 echo "${ECHO_T}$ac_header_compiler" >&6; }
27972 # Is the header present?
27973 { echo "$as_me:$LINENO: checking tds.h presence" >&5
27974 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
27975 cat >conftest.$ac_ext <<_ACEOF
27976 /* confdefs.h. */
27977 _ACEOF
27978 cat confdefs.h >>conftest.$ac_ext
27979 cat >>conftest.$ac_ext <<_ACEOF
27980 /* end confdefs.h. */
27981 #include <tds.h>
27982 _ACEOF
27983 if { (ac_try="$ac_cpp conftest.$ac_ext"
27984 case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27987 esac
27988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27990 ac_status=$?
27991 grep -v '^ *+' conftest.er1 >conftest.err
27992 rm -f conftest.er1
27993 cat conftest.err >&5
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); } >/dev/null && {
27996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27997 test ! -s conftest.err
27998 }; then
27999 ac_header_preproc=yes
28000 else
28001 echo "$as_me: failed program was:" >&5
28002 sed 's/^/| /' conftest.$ac_ext >&5
28004 ac_header_preproc=no
28007 rm -f conftest.err conftest.$ac_ext
28008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28009 echo "${ECHO_T}$ac_header_preproc" >&6; }
28011 # So? What about this header?
28012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28013 yes:no: )
28014 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
28015 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28016 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
28017 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
28018 ac_header_preproc=yes
28020 no:yes:* )
28021 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
28022 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
28023 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
28024 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
28025 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
28026 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
28027 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
28028 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
28029 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
28030 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
28031 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
28032 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
28035 esac
28036 { echo "$as_me:$LINENO: checking for tds.h" >&5
28037 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
28038 if test "${ac_cv_header_tds_h+set}" = set; then
28039 echo $ECHO_N "(cached) $ECHO_C" >&6
28040 else
28041 ac_cv_header_tds_h=$ac_header_preproc
28043 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
28044 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
28047 if test $ac_cv_header_tds_h = yes; then
28048 FREETDS_HEADER_FOUND=1
28049 else
28050 FREETDS_HEADER_FOUND=0
28056 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
28057 if test -n "${FREETDS_MANDATORY}" ;
28058 then
28059 { echo "$as_me:$LINENO: ***" >&5
28060 echo "$as_me: ***" >&6;}
28061 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
28062 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
28063 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
28064 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
28065 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
28066 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
28067 exit 1
28069 FREETDS_LIB=""
28070 FREETDS_INCLUDE=""
28071 PBX_FREETDS=0
28072 else
28073 PBX_FREETDS=1
28075 cat >>confdefs.h <<_ACEOF
28076 #define HAVE_FREETDS 1
28077 _ACEOF
28080 elif test -n "${FREETDS_MANDATORY}";
28081 then
28082 { echo "$as_me:$LINENO: ***" >&5
28083 echo "$as_me: ***" >&6;}
28084 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
28085 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
28086 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28087 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28088 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
28089 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
28090 exit 1
28094 if test "${PBX_FREETDS}" != "0";
28095 then
28096 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
28097 *0.64*)
28098 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
28100 *0.63*)
28101 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
28103 *0.62*)
28104 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
28107 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
28109 esac
28113 if test "${USE_TERMCAP}" != "no"; then
28114 pbxlibdir=""
28115 if test "x${TERMCAP_DIR}" != "x"; then
28116 if test -d ${TERMCAP_DIR}/lib; then
28117 pbxlibdir="-L${TERMCAP_DIR}/lib"
28118 else
28119 pbxlibdir="-L${TERMCAP_DIR}"
28122 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
28123 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
28124 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
28125 echo $ECHO_N "(cached) $ECHO_C" >&6
28126 else
28127 ac_check_lib_save_LIBS=$LIBS
28128 LIBS="-ltermcap ${pbxlibdir} $LIBS"
28129 cat >conftest.$ac_ext <<_ACEOF
28130 /* confdefs.h. */
28131 _ACEOF
28132 cat confdefs.h >>conftest.$ac_ext
28133 cat >>conftest.$ac_ext <<_ACEOF
28134 /* end confdefs.h. */
28136 /* Override any GCC internal prototype to avoid an error.
28137 Use char because int might match the return type of a GCC
28138 builtin and then its argument prototype would still apply. */
28139 #ifdef __cplusplus
28140 extern "C"
28141 #endif
28142 char tgetent ();
28144 main ()
28146 return tgetent ();
28148 return 0;
28150 _ACEOF
28151 rm -f conftest.$ac_objext conftest$ac_exeext
28152 if { (ac_try="$ac_link"
28153 case "(($ac_try" in
28154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28155 *) ac_try_echo=$ac_try;;
28156 esac
28157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158 (eval "$ac_link") 2>conftest.er1
28159 ac_status=$?
28160 grep -v '^ *+' conftest.er1 >conftest.err
28161 rm -f conftest.er1
28162 cat conftest.err >&5
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); } && {
28165 test -z "$ac_c_werror_flag" ||
28166 test ! -s conftest.err
28167 } && test -s conftest$ac_exeext &&
28168 $as_test_x conftest$ac_exeext; then
28169 ac_cv_lib_termcap_tgetent=yes
28170 else
28171 echo "$as_me: failed program was:" >&5
28172 sed 's/^/| /' conftest.$ac_ext >&5
28174 ac_cv_lib_termcap_tgetent=no
28177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28178 conftest$ac_exeext conftest.$ac_ext
28179 LIBS=$ac_check_lib_save_LIBS
28181 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
28182 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
28183 if test $ac_cv_lib_termcap_tgetent = yes; then
28184 AST_TERMCAP_FOUND=yes
28185 else
28186 AST_TERMCAP_FOUND=no
28190 if test "${AST_TERMCAP_FOUND}" = "yes"; then
28191 TERMCAP_LIB="-ltermcap "
28192 TERMCAP_HEADER_FOUND="1"
28193 if test "x${TERMCAP_DIR}" != "x"; then
28194 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
28195 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
28196 saved_cppflags="${CPPFLAGS}"
28197 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
28198 if test "x" != "x" ; then
28199 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
28200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28201 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
28202 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
28203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28204 echo $ECHO_N "(cached) $ECHO_C" >&6
28206 ac_res=`eval echo '${'$as_ac_Header'}'`
28207 { echo "$as_me:$LINENO: result: $ac_res" >&5
28208 echo "${ECHO_T}$ac_res" >&6; }
28209 else
28210 # Is the header compilable?
28211 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
28212 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
28213 cat >conftest.$ac_ext <<_ACEOF
28214 /* confdefs.h. */
28215 _ACEOF
28216 cat confdefs.h >>conftest.$ac_ext
28217 cat >>conftest.$ac_ext <<_ACEOF
28218 /* end confdefs.h. */
28219 $ac_includes_default
28220 #include <${TERMCAP_DIR}/include/>
28221 _ACEOF
28222 rm -f conftest.$ac_objext
28223 if { (ac_try="$ac_compile"
28224 case "(($ac_try" in
28225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28226 *) ac_try_echo=$ac_try;;
28227 esac
28228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28229 (eval "$ac_compile") 2>conftest.er1
28230 ac_status=$?
28231 grep -v '^ *+' conftest.er1 >conftest.err
28232 rm -f conftest.er1
28233 cat conftest.err >&5
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); } && {
28236 test -z "$ac_c_werror_flag" ||
28237 test ! -s conftest.err
28238 } && test -s conftest.$ac_objext; then
28239 ac_header_compiler=yes
28240 else
28241 echo "$as_me: failed program was:" >&5
28242 sed 's/^/| /' conftest.$ac_ext >&5
28244 ac_header_compiler=no
28247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28249 echo "${ECHO_T}$ac_header_compiler" >&6; }
28251 # Is the header present?
28252 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
28253 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
28254 cat >conftest.$ac_ext <<_ACEOF
28255 /* confdefs.h. */
28256 _ACEOF
28257 cat confdefs.h >>conftest.$ac_ext
28258 cat >>conftest.$ac_ext <<_ACEOF
28259 /* end confdefs.h. */
28260 #include <${TERMCAP_DIR}/include/>
28261 _ACEOF
28262 if { (ac_try="$ac_cpp conftest.$ac_ext"
28263 case "(($ac_try" in
28264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28265 *) ac_try_echo=$ac_try;;
28266 esac
28267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28269 ac_status=$?
28270 grep -v '^ *+' conftest.er1 >conftest.err
28271 rm -f conftest.er1
28272 cat conftest.err >&5
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); } >/dev/null && {
28275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28276 test ! -s conftest.err
28277 }; then
28278 ac_header_preproc=yes
28279 else
28280 echo "$as_me: failed program was:" >&5
28281 sed 's/^/| /' conftest.$ac_ext >&5
28283 ac_header_preproc=no
28286 rm -f conftest.err conftest.$ac_ext
28287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28288 echo "${ECHO_T}$ac_header_preproc" >&6; }
28290 # So? What about this header?
28291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28292 yes:no: )
28293 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
28294 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
28295 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
28296 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
28297 ac_header_preproc=yes
28299 no:yes:* )
28300 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
28301 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
28302 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
28303 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
28304 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
28305 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
28306 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
28307 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
28308 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
28309 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
28310 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
28311 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
28314 esac
28315 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
28316 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
28317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28318 echo $ECHO_N "(cached) $ECHO_C" >&6
28319 else
28320 eval "$as_ac_Header=\$ac_header_preproc"
28322 ac_res=`eval echo '${'$as_ac_Header'}'`
28323 { echo "$as_me:$LINENO: result: $ac_res" >&5
28324 echo "${ECHO_T}$ac_res" >&6; }
28327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28328 TERMCAP_HEADER_FOUND=1
28329 else
28330 TERMCAP_HEADER_FOUND=0
28335 CPPFLAGS="${saved_cppflags}"
28336 else
28337 if test "x" != "x" ; then
28338 if test "${ac_cv_header_+set}" = set; then
28339 { echo "$as_me:$LINENO: checking for " >&5
28340 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28341 if test "${ac_cv_header_+set}" = set; then
28342 echo $ECHO_N "(cached) $ECHO_C" >&6
28344 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28345 echo "${ECHO_T}$ac_cv_header_" >&6; }
28346 else
28347 # Is the header compilable?
28348 { echo "$as_me:$LINENO: checking usability" >&5
28349 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28350 cat >conftest.$ac_ext <<_ACEOF
28351 /* confdefs.h. */
28352 _ACEOF
28353 cat confdefs.h >>conftest.$ac_ext
28354 cat >>conftest.$ac_ext <<_ACEOF
28355 /* end confdefs.h. */
28356 $ac_includes_default
28357 #include <>
28358 _ACEOF
28359 rm -f conftest.$ac_objext
28360 if { (ac_try="$ac_compile"
28361 case "(($ac_try" in
28362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28363 *) ac_try_echo=$ac_try;;
28364 esac
28365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28366 (eval "$ac_compile") 2>conftest.er1
28367 ac_status=$?
28368 grep -v '^ *+' conftest.er1 >conftest.err
28369 rm -f conftest.er1
28370 cat conftest.err >&5
28371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372 (exit $ac_status); } && {
28373 test -z "$ac_c_werror_flag" ||
28374 test ! -s conftest.err
28375 } && test -s conftest.$ac_objext; then
28376 ac_header_compiler=yes
28377 else
28378 echo "$as_me: failed program was:" >&5
28379 sed 's/^/| /' conftest.$ac_ext >&5
28381 ac_header_compiler=no
28384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28386 echo "${ECHO_T}$ac_header_compiler" >&6; }
28388 # Is the header present?
28389 { echo "$as_me:$LINENO: checking presence" >&5
28390 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28391 cat >conftest.$ac_ext <<_ACEOF
28392 /* confdefs.h. */
28393 _ACEOF
28394 cat confdefs.h >>conftest.$ac_ext
28395 cat >>conftest.$ac_ext <<_ACEOF
28396 /* end confdefs.h. */
28397 #include <>
28398 _ACEOF
28399 if { (ac_try="$ac_cpp conftest.$ac_ext"
28400 case "(($ac_try" in
28401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402 *) ac_try_echo=$ac_try;;
28403 esac
28404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28406 ac_status=$?
28407 grep -v '^ *+' conftest.er1 >conftest.err
28408 rm -f conftest.er1
28409 cat conftest.err >&5
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); } >/dev/null && {
28412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28413 test ! -s conftest.err
28414 }; then
28415 ac_header_preproc=yes
28416 else
28417 echo "$as_me: failed program was:" >&5
28418 sed 's/^/| /' conftest.$ac_ext >&5
28420 ac_header_preproc=no
28423 rm -f conftest.err conftest.$ac_ext
28424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28425 echo "${ECHO_T}$ac_header_preproc" >&6; }
28427 # So? What about this header?
28428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28429 yes:no: )
28430 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28431 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28432 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28433 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28434 ac_header_preproc=yes
28436 no:yes:* )
28437 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28438 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28439 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28440 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28441 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28442 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28443 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28444 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28445 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28446 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28447 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28448 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28451 esac
28452 { echo "$as_me:$LINENO: checking for " >&5
28453 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28454 if test "${ac_cv_header_+set}" = set; then
28455 echo $ECHO_N "(cached) $ECHO_C" >&6
28456 else
28457 ac_cv_header_=$ac_header_preproc
28459 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28460 echo "${ECHO_T}$ac_cv_header_" >&6; }
28463 if test $ac_cv_header_ = yes; then
28464 TERMCAP_HEADER_FOUND=1
28465 else
28466 TERMCAP_HEADER_FOUND=0
28472 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
28473 if test -n "${TERMCAP_MANDATORY}" ;
28474 then
28475 { echo "$as_me:$LINENO: ***" >&5
28476 echo "$as_me: ***" >&6;}
28477 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
28478 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
28479 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
28480 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
28481 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
28482 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
28483 exit 1
28485 TERMCAP_LIB=""
28486 TERMCAP_INCLUDE=""
28487 PBX_TERMCAP=0
28488 else
28489 PBX_TERMCAP=1
28491 cat >>confdefs.h <<_ACEOF
28492 #define HAVE_TERMCAP 1
28493 _ACEOF
28496 elif test -n "${TERMCAP_MANDATORY}";
28497 then
28498 { echo "$as_me:$LINENO: ***" >&5
28499 echo "$as_me: ***" >&6;}
28500 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
28501 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
28502 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28503 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28504 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
28505 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
28506 exit 1
28512 if test "${USE_TINFO}" != "no"; then
28513 pbxlibdir=""
28514 if test "x${TINFO_DIR}" != "x"; then
28515 if test -d ${TINFO_DIR}/lib; then
28516 pbxlibdir="-L${TINFO_DIR}/lib"
28517 else
28518 pbxlibdir="-L${TINFO_DIR}"
28521 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
28522 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
28523 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
28524 echo $ECHO_N "(cached) $ECHO_C" >&6
28525 else
28526 ac_check_lib_save_LIBS=$LIBS
28527 LIBS="-ltinfo ${pbxlibdir} $LIBS"
28528 cat >conftest.$ac_ext <<_ACEOF
28529 /* confdefs.h. */
28530 _ACEOF
28531 cat confdefs.h >>conftest.$ac_ext
28532 cat >>conftest.$ac_ext <<_ACEOF
28533 /* end confdefs.h. */
28535 /* Override any GCC internal prototype to avoid an error.
28536 Use char because int might match the return type of a GCC
28537 builtin and then its argument prototype would still apply. */
28538 #ifdef __cplusplus
28539 extern "C"
28540 #endif
28541 char tgetent ();
28543 main ()
28545 return tgetent ();
28547 return 0;
28549 _ACEOF
28550 rm -f conftest.$ac_objext conftest$ac_exeext
28551 if { (ac_try="$ac_link"
28552 case "(($ac_try" in
28553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28554 *) ac_try_echo=$ac_try;;
28555 esac
28556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28557 (eval "$ac_link") 2>conftest.er1
28558 ac_status=$?
28559 grep -v '^ *+' conftest.er1 >conftest.err
28560 rm -f conftest.er1
28561 cat conftest.err >&5
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); } && {
28564 test -z "$ac_c_werror_flag" ||
28565 test ! -s conftest.err
28566 } && test -s conftest$ac_exeext &&
28567 $as_test_x conftest$ac_exeext; then
28568 ac_cv_lib_tinfo_tgetent=yes
28569 else
28570 echo "$as_me: failed program was:" >&5
28571 sed 's/^/| /' conftest.$ac_ext >&5
28573 ac_cv_lib_tinfo_tgetent=no
28576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28577 conftest$ac_exeext conftest.$ac_ext
28578 LIBS=$ac_check_lib_save_LIBS
28580 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
28581 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
28582 if test $ac_cv_lib_tinfo_tgetent = yes; then
28583 AST_TINFO_FOUND=yes
28584 else
28585 AST_TINFO_FOUND=no
28589 if test "${AST_TINFO_FOUND}" = "yes"; then
28590 TINFO_LIB="-ltinfo "
28591 TINFO_HEADER_FOUND="1"
28592 if test "x${TINFO_DIR}" != "x"; then
28593 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
28594 TINFO_INCLUDE="-I${TINFO_DIR}/include"
28595 saved_cppflags="${CPPFLAGS}"
28596 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
28597 if test "x" != "x" ; then
28598 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
28599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28600 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
28601 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
28602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28603 echo $ECHO_N "(cached) $ECHO_C" >&6
28605 ac_res=`eval echo '${'$as_ac_Header'}'`
28606 { echo "$as_me:$LINENO: result: $ac_res" >&5
28607 echo "${ECHO_T}$ac_res" >&6; }
28608 else
28609 # Is the header compilable?
28610 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
28611 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
28612 cat >conftest.$ac_ext <<_ACEOF
28613 /* confdefs.h. */
28614 _ACEOF
28615 cat confdefs.h >>conftest.$ac_ext
28616 cat >>conftest.$ac_ext <<_ACEOF
28617 /* end confdefs.h. */
28618 $ac_includes_default
28619 #include <${TINFO_DIR}/include/>
28620 _ACEOF
28621 rm -f conftest.$ac_objext
28622 if { (ac_try="$ac_compile"
28623 case "(($ac_try" in
28624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625 *) ac_try_echo=$ac_try;;
28626 esac
28627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628 (eval "$ac_compile") 2>conftest.er1
28629 ac_status=$?
28630 grep -v '^ *+' conftest.er1 >conftest.err
28631 rm -f conftest.er1
28632 cat conftest.err >&5
28633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634 (exit $ac_status); } && {
28635 test -z "$ac_c_werror_flag" ||
28636 test ! -s conftest.err
28637 } && test -s conftest.$ac_objext; then
28638 ac_header_compiler=yes
28639 else
28640 echo "$as_me: failed program was:" >&5
28641 sed 's/^/| /' conftest.$ac_ext >&5
28643 ac_header_compiler=no
28646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28648 echo "${ECHO_T}$ac_header_compiler" >&6; }
28650 # Is the header present?
28651 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
28652 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
28653 cat >conftest.$ac_ext <<_ACEOF
28654 /* confdefs.h. */
28655 _ACEOF
28656 cat confdefs.h >>conftest.$ac_ext
28657 cat >>conftest.$ac_ext <<_ACEOF
28658 /* end confdefs.h. */
28659 #include <${TINFO_DIR}/include/>
28660 _ACEOF
28661 if { (ac_try="$ac_cpp conftest.$ac_ext"
28662 case "(($ac_try" in
28663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664 *) ac_try_echo=$ac_try;;
28665 esac
28666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28668 ac_status=$?
28669 grep -v '^ *+' conftest.er1 >conftest.err
28670 rm -f conftest.er1
28671 cat conftest.err >&5
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); } >/dev/null && {
28674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28675 test ! -s conftest.err
28676 }; then
28677 ac_header_preproc=yes
28678 else
28679 echo "$as_me: failed program was:" >&5
28680 sed 's/^/| /' conftest.$ac_ext >&5
28682 ac_header_preproc=no
28685 rm -f conftest.err conftest.$ac_ext
28686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28687 echo "${ECHO_T}$ac_header_preproc" >&6; }
28689 # So? What about this header?
28690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28691 yes:no: )
28692 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
28693 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
28694 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
28695 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
28696 ac_header_preproc=yes
28698 no:yes:* )
28699 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
28700 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
28701 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
28702 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
28703 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
28704 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
28705 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
28706 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
28707 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
28708 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
28709 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
28710 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
28713 esac
28714 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
28715 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
28716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28717 echo $ECHO_N "(cached) $ECHO_C" >&6
28718 else
28719 eval "$as_ac_Header=\$ac_header_preproc"
28721 ac_res=`eval echo '${'$as_ac_Header'}'`
28722 { echo "$as_me:$LINENO: result: $ac_res" >&5
28723 echo "${ECHO_T}$ac_res" >&6; }
28726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28727 TINFO_HEADER_FOUND=1
28728 else
28729 TINFO_HEADER_FOUND=0
28734 CPPFLAGS="${saved_cppflags}"
28735 else
28736 if test "x" != "x" ; then
28737 if test "${ac_cv_header_+set}" = set; then
28738 { echo "$as_me:$LINENO: checking for " >&5
28739 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28740 if test "${ac_cv_header_+set}" = set; then
28741 echo $ECHO_N "(cached) $ECHO_C" >&6
28743 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28744 echo "${ECHO_T}$ac_cv_header_" >&6; }
28745 else
28746 # Is the header compilable?
28747 { echo "$as_me:$LINENO: checking usability" >&5
28748 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28749 cat >conftest.$ac_ext <<_ACEOF
28750 /* confdefs.h. */
28751 _ACEOF
28752 cat confdefs.h >>conftest.$ac_ext
28753 cat >>conftest.$ac_ext <<_ACEOF
28754 /* end confdefs.h. */
28755 $ac_includes_default
28756 #include <>
28757 _ACEOF
28758 rm -f conftest.$ac_objext
28759 if { (ac_try="$ac_compile"
28760 case "(($ac_try" in
28761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28762 *) ac_try_echo=$ac_try;;
28763 esac
28764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28765 (eval "$ac_compile") 2>conftest.er1
28766 ac_status=$?
28767 grep -v '^ *+' conftest.er1 >conftest.err
28768 rm -f conftest.er1
28769 cat conftest.err >&5
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); } && {
28772 test -z "$ac_c_werror_flag" ||
28773 test ! -s conftest.err
28774 } && test -s conftest.$ac_objext; then
28775 ac_header_compiler=yes
28776 else
28777 echo "$as_me: failed program was:" >&5
28778 sed 's/^/| /' conftest.$ac_ext >&5
28780 ac_header_compiler=no
28783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28785 echo "${ECHO_T}$ac_header_compiler" >&6; }
28787 # Is the header present?
28788 { echo "$as_me:$LINENO: checking presence" >&5
28789 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28790 cat >conftest.$ac_ext <<_ACEOF
28791 /* confdefs.h. */
28792 _ACEOF
28793 cat confdefs.h >>conftest.$ac_ext
28794 cat >>conftest.$ac_ext <<_ACEOF
28795 /* end confdefs.h. */
28796 #include <>
28797 _ACEOF
28798 if { (ac_try="$ac_cpp conftest.$ac_ext"
28799 case "(($ac_try" in
28800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801 *) ac_try_echo=$ac_try;;
28802 esac
28803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28805 ac_status=$?
28806 grep -v '^ *+' conftest.er1 >conftest.err
28807 rm -f conftest.er1
28808 cat conftest.err >&5
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); } >/dev/null && {
28811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28812 test ! -s conftest.err
28813 }; then
28814 ac_header_preproc=yes
28815 else
28816 echo "$as_me: failed program was:" >&5
28817 sed 's/^/| /' conftest.$ac_ext >&5
28819 ac_header_preproc=no
28822 rm -f conftest.err conftest.$ac_ext
28823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28824 echo "${ECHO_T}$ac_header_preproc" >&6; }
28826 # So? What about this header?
28827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28828 yes:no: )
28829 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28830 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28831 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28832 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28833 ac_header_preproc=yes
28835 no:yes:* )
28836 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28837 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28838 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28839 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28840 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28841 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28842 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28843 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28844 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28845 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28846 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28847 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28850 esac
28851 { echo "$as_me:$LINENO: checking for " >&5
28852 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28853 if test "${ac_cv_header_+set}" = set; then
28854 echo $ECHO_N "(cached) $ECHO_C" >&6
28855 else
28856 ac_cv_header_=$ac_header_preproc
28858 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28859 echo "${ECHO_T}$ac_cv_header_" >&6; }
28862 if test $ac_cv_header_ = yes; then
28863 TINFO_HEADER_FOUND=1
28864 else
28865 TINFO_HEADER_FOUND=0
28871 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
28872 if test -n "${TINFO_MANDATORY}" ;
28873 then
28874 { echo "$as_me:$LINENO: ***" >&5
28875 echo "$as_me: ***" >&6;}
28876 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
28877 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
28878 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
28879 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
28880 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
28881 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
28882 exit 1
28884 TINFO_LIB=""
28885 TINFO_INCLUDE=""
28886 PBX_TINFO=0
28887 else
28888 PBX_TINFO=1
28890 cat >>confdefs.h <<_ACEOF
28891 #define HAVE_TINFO 1
28892 _ACEOF
28895 elif test -n "${TINFO_MANDATORY}";
28896 then
28897 { echo "$as_me:$LINENO: ***" >&5
28898 echo "$as_me: ***" >&6;}
28899 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
28900 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
28901 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28902 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28903 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
28904 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
28905 exit 1
28910 if test "${host_os}" != "linux-gnu" ; then
28911 tonezone_extra="-lm"
28915 if test "${USE_TONEZONE}" != "no"; then
28916 pbxlibdir=""
28917 if test "x${TONEZONE_DIR}" != "x"; then
28918 if test -d ${TONEZONE_DIR}/lib; then
28919 pbxlibdir="-L${TONEZONE_DIR}/lib"
28920 else
28921 pbxlibdir="-L${TONEZONE_DIR}"
28924 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
28925 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
28926 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
28927 echo $ECHO_N "(cached) $ECHO_C" >&6
28928 else
28929 ac_check_lib_save_LIBS=$LIBS
28930 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
28931 cat >conftest.$ac_ext <<_ACEOF
28932 /* confdefs.h. */
28933 _ACEOF
28934 cat confdefs.h >>conftest.$ac_ext
28935 cat >>conftest.$ac_ext <<_ACEOF
28936 /* end confdefs.h. */
28938 /* Override any GCC internal prototype to avoid an error.
28939 Use char because int might match the return type of a GCC
28940 builtin and then its argument prototype would still apply. */
28941 #ifdef __cplusplus
28942 extern "C"
28943 #endif
28944 char tone_zone_find ();
28946 main ()
28948 return tone_zone_find ();
28950 return 0;
28952 _ACEOF
28953 rm -f conftest.$ac_objext conftest$ac_exeext
28954 if { (ac_try="$ac_link"
28955 case "(($ac_try" in
28956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957 *) ac_try_echo=$ac_try;;
28958 esac
28959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960 (eval "$ac_link") 2>conftest.er1
28961 ac_status=$?
28962 grep -v '^ *+' conftest.er1 >conftest.err
28963 rm -f conftest.er1
28964 cat conftest.err >&5
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); } && {
28967 test -z "$ac_c_werror_flag" ||
28968 test ! -s conftest.err
28969 } && test -s conftest$ac_exeext &&
28970 $as_test_x conftest$ac_exeext; then
28971 ac_cv_lib_tonezone_tone_zone_find=yes
28972 else
28973 echo "$as_me: failed program was:" >&5
28974 sed 's/^/| /' conftest.$ac_ext >&5
28976 ac_cv_lib_tonezone_tone_zone_find=no
28979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28980 conftest$ac_exeext conftest.$ac_ext
28981 LIBS=$ac_check_lib_save_LIBS
28983 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
28984 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
28985 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
28986 AST_TONEZONE_FOUND=yes
28987 else
28988 AST_TONEZONE_FOUND=no
28992 if test "${AST_TONEZONE_FOUND}" = "yes"; then
28993 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
28994 TONEZONE_HEADER_FOUND="1"
28995 if test "x${TONEZONE_DIR}" != "x"; then
28996 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
28997 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
28998 saved_cppflags="${CPPFLAGS}"
28999 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
29000 if test "xzaptel/tonezone.h" != "x" ; then
29001 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
29002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29003 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
29004 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
29005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29006 echo $ECHO_N "(cached) $ECHO_C" >&6
29008 ac_res=`eval echo '${'$as_ac_Header'}'`
29009 { echo "$as_me:$LINENO: result: $ac_res" >&5
29010 echo "${ECHO_T}$ac_res" >&6; }
29011 else
29012 # Is the header compilable?
29013 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
29014 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
29015 cat >conftest.$ac_ext <<_ACEOF
29016 /* confdefs.h. */
29017 _ACEOF
29018 cat confdefs.h >>conftest.$ac_ext
29019 cat >>conftest.$ac_ext <<_ACEOF
29020 /* end confdefs.h. */
29021 $ac_includes_default
29022 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
29023 _ACEOF
29024 rm -f conftest.$ac_objext
29025 if { (ac_try="$ac_compile"
29026 case "(($ac_try" in
29027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028 *) ac_try_echo=$ac_try;;
29029 esac
29030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29031 (eval "$ac_compile") 2>conftest.er1
29032 ac_status=$?
29033 grep -v '^ *+' conftest.er1 >conftest.err
29034 rm -f conftest.er1
29035 cat conftest.err >&5
29036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 (exit $ac_status); } && {
29038 test -z "$ac_c_werror_flag" ||
29039 test ! -s conftest.err
29040 } && test -s conftest.$ac_objext; then
29041 ac_header_compiler=yes
29042 else
29043 echo "$as_me: failed program was:" >&5
29044 sed 's/^/| /' conftest.$ac_ext >&5
29046 ac_header_compiler=no
29049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29051 echo "${ECHO_T}$ac_header_compiler" >&6; }
29053 # Is the header present?
29054 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
29055 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
29056 cat >conftest.$ac_ext <<_ACEOF
29057 /* confdefs.h. */
29058 _ACEOF
29059 cat confdefs.h >>conftest.$ac_ext
29060 cat >>conftest.$ac_ext <<_ACEOF
29061 /* end confdefs.h. */
29062 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
29063 _ACEOF
29064 if { (ac_try="$ac_cpp conftest.$ac_ext"
29065 case "(($ac_try" in
29066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29067 *) ac_try_echo=$ac_try;;
29068 esac
29069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29071 ac_status=$?
29072 grep -v '^ *+' conftest.er1 >conftest.err
29073 rm -f conftest.er1
29074 cat conftest.err >&5
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); } >/dev/null && {
29077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29078 test ! -s conftest.err
29079 }; then
29080 ac_header_preproc=yes
29081 else
29082 echo "$as_me: failed program was:" >&5
29083 sed 's/^/| /' conftest.$ac_ext >&5
29085 ac_header_preproc=no
29088 rm -f conftest.err conftest.$ac_ext
29089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29090 echo "${ECHO_T}$ac_header_preproc" >&6; }
29092 # So? What about this header?
29093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29094 yes:no: )
29095 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
29096 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29097 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
29098 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
29099 ac_header_preproc=yes
29101 no:yes:* )
29102 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
29103 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
29104 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
29105 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
29106 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
29107 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
29108 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
29109 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
29110 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
29111 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
29112 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
29113 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
29116 esac
29117 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
29118 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
29119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29120 echo $ECHO_N "(cached) $ECHO_C" >&6
29121 else
29122 eval "$as_ac_Header=\$ac_header_preproc"
29124 ac_res=`eval echo '${'$as_ac_Header'}'`
29125 { echo "$as_me:$LINENO: result: $ac_res" >&5
29126 echo "${ECHO_T}$ac_res" >&6; }
29129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29130 TONEZONE_HEADER_FOUND=1
29131 else
29132 TONEZONE_HEADER_FOUND=0
29137 CPPFLAGS="${saved_cppflags}"
29138 else
29139 if test "xzaptel/tonezone.h" != "x" ; then
29140 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
29141 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
29142 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
29143 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
29144 echo $ECHO_N "(cached) $ECHO_C" >&6
29146 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
29147 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
29148 else
29149 # Is the header compilable?
29150 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
29151 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
29152 cat >conftest.$ac_ext <<_ACEOF
29153 /* confdefs.h. */
29154 _ACEOF
29155 cat confdefs.h >>conftest.$ac_ext
29156 cat >>conftest.$ac_ext <<_ACEOF
29157 /* end confdefs.h. */
29158 $ac_includes_default
29159 #include <zaptel/tonezone.h>
29160 _ACEOF
29161 rm -f conftest.$ac_objext
29162 if { (ac_try="$ac_compile"
29163 case "(($ac_try" in
29164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29165 *) ac_try_echo=$ac_try;;
29166 esac
29167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29168 (eval "$ac_compile") 2>conftest.er1
29169 ac_status=$?
29170 grep -v '^ *+' conftest.er1 >conftest.err
29171 rm -f conftest.er1
29172 cat conftest.err >&5
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); } && {
29175 test -z "$ac_c_werror_flag" ||
29176 test ! -s conftest.err
29177 } && test -s conftest.$ac_objext; then
29178 ac_header_compiler=yes
29179 else
29180 echo "$as_me: failed program was:" >&5
29181 sed 's/^/| /' conftest.$ac_ext >&5
29183 ac_header_compiler=no
29186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29188 echo "${ECHO_T}$ac_header_compiler" >&6; }
29190 # Is the header present?
29191 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
29192 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
29193 cat >conftest.$ac_ext <<_ACEOF
29194 /* confdefs.h. */
29195 _ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h. */
29199 #include <zaptel/tonezone.h>
29200 _ACEOF
29201 if { (ac_try="$ac_cpp conftest.$ac_ext"
29202 case "(($ac_try" in
29203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29204 *) ac_try_echo=$ac_try;;
29205 esac
29206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29208 ac_status=$?
29209 grep -v '^ *+' conftest.er1 >conftest.err
29210 rm -f conftest.er1
29211 cat conftest.err >&5
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); } >/dev/null && {
29214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29215 test ! -s conftest.err
29216 }; then
29217 ac_header_preproc=yes
29218 else
29219 echo "$as_me: failed program was:" >&5
29220 sed 's/^/| /' conftest.$ac_ext >&5
29222 ac_header_preproc=no
29225 rm -f conftest.err conftest.$ac_ext
29226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29227 echo "${ECHO_T}$ac_header_preproc" >&6; }
29229 # So? What about this header?
29230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29231 yes:no: )
29232 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
29233 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29234 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
29235 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
29236 ac_header_preproc=yes
29238 no:yes:* )
29239 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
29240 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
29241 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
29242 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
29243 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
29244 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
29245 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
29246 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
29247 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
29248 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
29249 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
29250 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
29253 esac
29254 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
29255 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
29256 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
29257 echo $ECHO_N "(cached) $ECHO_C" >&6
29258 else
29259 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
29261 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
29262 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
29265 if test $ac_cv_header_zaptel_tonezone_h = yes; then
29266 TONEZONE_HEADER_FOUND=1
29267 else
29268 TONEZONE_HEADER_FOUND=0
29274 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
29275 if test -n "${TONEZONE_MANDATORY}" ;
29276 then
29277 { echo "$as_me:$LINENO: ***" >&5
29278 echo "$as_me: ***" >&6;}
29279 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
29280 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
29281 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
29282 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
29283 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
29284 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
29285 exit 1
29287 TONEZONE_LIB=""
29288 TONEZONE_INCLUDE=""
29289 PBX_TONEZONE=0
29290 else
29291 PBX_TONEZONE=1
29293 cat >>confdefs.h <<_ACEOF
29294 #define HAVE_TONEZONE 1
29295 _ACEOF
29298 elif test -n "${TONEZONE_MANDATORY}";
29299 then
29300 { echo "$as_me:$LINENO: ***" >&5
29301 echo "$as_me: ***" >&6;}
29302 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
29303 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
29304 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29305 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29306 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
29307 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
29308 exit 1
29314 if test "${USE_VORBIS}" != "no"; then
29315 pbxlibdir=""
29316 if test "x${VORBIS_DIR}" != "x"; then
29317 if test -d ${VORBIS_DIR}/lib; then
29318 pbxlibdir="-L${VORBIS_DIR}/lib"
29319 else
29320 pbxlibdir="-L${VORBIS_DIR}"
29323 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
29324 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
29325 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
29326 echo $ECHO_N "(cached) $ECHO_C" >&6
29327 else
29328 ac_check_lib_save_LIBS=$LIBS
29329 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
29330 cat >conftest.$ac_ext <<_ACEOF
29331 /* confdefs.h. */
29332 _ACEOF
29333 cat confdefs.h >>conftest.$ac_ext
29334 cat >>conftest.$ac_ext <<_ACEOF
29335 /* end confdefs.h. */
29337 /* Override any GCC internal prototype to avoid an error.
29338 Use char because int might match the return type of a GCC
29339 builtin and then its argument prototype would still apply. */
29340 #ifdef __cplusplus
29341 extern "C"
29342 #endif
29343 char vorbis_info_init ();
29345 main ()
29347 return vorbis_info_init ();
29349 return 0;
29351 _ACEOF
29352 rm -f conftest.$ac_objext conftest$ac_exeext
29353 if { (ac_try="$ac_link"
29354 case "(($ac_try" in
29355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29356 *) ac_try_echo=$ac_try;;
29357 esac
29358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29359 (eval "$ac_link") 2>conftest.er1
29360 ac_status=$?
29361 grep -v '^ *+' conftest.er1 >conftest.err
29362 rm -f conftest.er1
29363 cat conftest.err >&5
29364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365 (exit $ac_status); } && {
29366 test -z "$ac_c_werror_flag" ||
29367 test ! -s conftest.err
29368 } && test -s conftest$ac_exeext &&
29369 $as_test_x conftest$ac_exeext; then
29370 ac_cv_lib_vorbis_vorbis_info_init=yes
29371 else
29372 echo "$as_me: failed program was:" >&5
29373 sed 's/^/| /' conftest.$ac_ext >&5
29375 ac_cv_lib_vorbis_vorbis_info_init=no
29378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29379 conftest$ac_exeext conftest.$ac_ext
29380 LIBS=$ac_check_lib_save_LIBS
29382 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
29383 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
29384 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
29385 AST_VORBIS_FOUND=yes
29386 else
29387 AST_VORBIS_FOUND=no
29391 if test "${AST_VORBIS_FOUND}" = "yes"; then
29392 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
29393 VORBIS_HEADER_FOUND="1"
29394 if test "x${VORBIS_DIR}" != "x"; then
29395 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
29396 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
29397 saved_cppflags="${CPPFLAGS}"
29398 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
29399 if test "xvorbis/codec.h" != "x" ; then
29400 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
29401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29402 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
29403 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
29404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29405 echo $ECHO_N "(cached) $ECHO_C" >&6
29407 ac_res=`eval echo '${'$as_ac_Header'}'`
29408 { echo "$as_me:$LINENO: result: $ac_res" >&5
29409 echo "${ECHO_T}$ac_res" >&6; }
29410 else
29411 # Is the header compilable?
29412 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
29413 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
29414 cat >conftest.$ac_ext <<_ACEOF
29415 /* confdefs.h. */
29416 _ACEOF
29417 cat confdefs.h >>conftest.$ac_ext
29418 cat >>conftest.$ac_ext <<_ACEOF
29419 /* end confdefs.h. */
29420 $ac_includes_default
29421 #include <${VORBIS_DIR}/include/vorbis/codec.h>
29422 _ACEOF
29423 rm -f conftest.$ac_objext
29424 if { (ac_try="$ac_compile"
29425 case "(($ac_try" in
29426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29428 esac
29429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430 (eval "$ac_compile") 2>conftest.er1
29431 ac_status=$?
29432 grep -v '^ *+' conftest.er1 >conftest.err
29433 rm -f conftest.er1
29434 cat conftest.err >&5
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); } && {
29437 test -z "$ac_c_werror_flag" ||
29438 test ! -s conftest.err
29439 } && test -s conftest.$ac_objext; then
29440 ac_header_compiler=yes
29441 else
29442 echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29445 ac_header_compiler=no
29448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29450 echo "${ECHO_T}$ac_header_compiler" >&6; }
29452 # Is the header present?
29453 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
29454 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
29455 cat >conftest.$ac_ext <<_ACEOF
29456 /* confdefs.h. */
29457 _ACEOF
29458 cat confdefs.h >>conftest.$ac_ext
29459 cat >>conftest.$ac_ext <<_ACEOF
29460 /* end confdefs.h. */
29461 #include <${VORBIS_DIR}/include/vorbis/codec.h>
29462 _ACEOF
29463 if { (ac_try="$ac_cpp conftest.$ac_ext"
29464 case "(($ac_try" in
29465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29466 *) ac_try_echo=$ac_try;;
29467 esac
29468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29470 ac_status=$?
29471 grep -v '^ *+' conftest.er1 >conftest.err
29472 rm -f conftest.er1
29473 cat conftest.err >&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); } >/dev/null && {
29476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29477 test ! -s conftest.err
29478 }; then
29479 ac_header_preproc=yes
29480 else
29481 echo "$as_me: failed program was:" >&5
29482 sed 's/^/| /' conftest.$ac_ext >&5
29484 ac_header_preproc=no
29487 rm -f conftest.err conftest.$ac_ext
29488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29489 echo "${ECHO_T}$ac_header_preproc" >&6; }
29491 # So? What about this header?
29492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29493 yes:no: )
29494 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
29495 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29496 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
29497 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
29498 ac_header_preproc=yes
29500 no:yes:* )
29501 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
29502 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
29503 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
29504 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
29505 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
29506 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
29507 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
29508 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
29509 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
29510 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
29511 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
29512 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
29515 esac
29516 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
29517 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
29518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29519 echo $ECHO_N "(cached) $ECHO_C" >&6
29520 else
29521 eval "$as_ac_Header=\$ac_header_preproc"
29523 ac_res=`eval echo '${'$as_ac_Header'}'`
29524 { echo "$as_me:$LINENO: result: $ac_res" >&5
29525 echo "${ECHO_T}$ac_res" >&6; }
29528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29529 VORBIS_HEADER_FOUND=1
29530 else
29531 VORBIS_HEADER_FOUND=0
29536 CPPFLAGS="${saved_cppflags}"
29537 else
29538 if test "xvorbis/codec.h" != "x" ; then
29539 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29540 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29541 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29542 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29543 echo $ECHO_N "(cached) $ECHO_C" >&6
29545 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29546 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29547 else
29548 # Is the header compilable?
29549 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
29550 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
29551 cat >conftest.$ac_ext <<_ACEOF
29552 /* confdefs.h. */
29553 _ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h. */
29557 $ac_includes_default
29558 #include <vorbis/codec.h>
29559 _ACEOF
29560 rm -f conftest.$ac_objext
29561 if { (ac_try="$ac_compile"
29562 case "(($ac_try" in
29563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564 *) ac_try_echo=$ac_try;;
29565 esac
29566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567 (eval "$ac_compile") 2>conftest.er1
29568 ac_status=$?
29569 grep -v '^ *+' conftest.er1 >conftest.err
29570 rm -f conftest.er1
29571 cat conftest.err >&5
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); } && {
29574 test -z "$ac_c_werror_flag" ||
29575 test ! -s conftest.err
29576 } && test -s conftest.$ac_objext; then
29577 ac_header_compiler=yes
29578 else
29579 echo "$as_me: failed program was:" >&5
29580 sed 's/^/| /' conftest.$ac_ext >&5
29582 ac_header_compiler=no
29585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29587 echo "${ECHO_T}$ac_header_compiler" >&6; }
29589 # Is the header present?
29590 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
29591 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
29592 cat >conftest.$ac_ext <<_ACEOF
29593 /* confdefs.h. */
29594 _ACEOF
29595 cat confdefs.h >>conftest.$ac_ext
29596 cat >>conftest.$ac_ext <<_ACEOF
29597 /* end confdefs.h. */
29598 #include <vorbis/codec.h>
29599 _ACEOF
29600 if { (ac_try="$ac_cpp conftest.$ac_ext"
29601 case "(($ac_try" in
29602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603 *) ac_try_echo=$ac_try;;
29604 esac
29605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29607 ac_status=$?
29608 grep -v '^ *+' conftest.er1 >conftest.err
29609 rm -f conftest.er1
29610 cat conftest.err >&5
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); } >/dev/null && {
29613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29614 test ! -s conftest.err
29615 }; then
29616 ac_header_preproc=yes
29617 else
29618 echo "$as_me: failed program was:" >&5
29619 sed 's/^/| /' conftest.$ac_ext >&5
29621 ac_header_preproc=no
29624 rm -f conftest.err conftest.$ac_ext
29625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29626 echo "${ECHO_T}$ac_header_preproc" >&6; }
29628 # So? What about this header?
29629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29630 yes:no: )
29631 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
29632 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29633 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
29634 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
29635 ac_header_preproc=yes
29637 no:yes:* )
29638 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
29639 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
29640 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
29641 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
29642 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
29643 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
29644 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
29645 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
29646 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
29647 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
29648 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
29649 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
29652 esac
29653 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29654 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29655 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29656 echo $ECHO_N "(cached) $ECHO_C" >&6
29657 else
29658 ac_cv_header_vorbis_codec_h=$ac_header_preproc
29660 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29661 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29664 if test $ac_cv_header_vorbis_codec_h = yes; then
29665 VORBIS_HEADER_FOUND=1
29666 else
29667 VORBIS_HEADER_FOUND=0
29673 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
29674 if test -n "${VORBIS_MANDATORY}" ;
29675 then
29676 { echo "$as_me:$LINENO: ***" >&5
29677 echo "$as_me: ***" >&6;}
29678 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
29679 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
29680 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
29681 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
29682 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
29683 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
29684 exit 1
29686 VORBIS_LIB=""
29687 VORBIS_INCLUDE=""
29688 PBX_VORBIS=0
29689 else
29690 PBX_VORBIS=1
29692 cat >>confdefs.h <<_ACEOF
29693 #define HAVE_VORBIS 1
29694 _ACEOF
29697 elif test -n "${VORBIS_MANDATORY}";
29698 then
29699 { echo "$as_me:$LINENO: ***" >&5
29700 echo "$as_me: ***" >&6;}
29701 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
29702 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
29703 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29704 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29705 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
29706 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
29707 exit 1
29712 ac_ext=cpp
29713 ac_cpp='$CXXCPP $CPPFLAGS'
29714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29719 if test "${USE_VPB}" != "no"; then
29720 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
29721 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
29722 saved_libs="${LIBS}"
29723 saved_cppflags="${CPPFLAGS}"
29724 if test "x${VPB_DIR}" != "x"; then
29725 if test -d ${VPB_DIR}/lib; then
29726 vpblibdir=${VPB_DIR}/lib
29727 else
29728 vpblibdir=${VPB_DIR}
29730 LIBS="${LIBS} -L${vpblibdir}"
29731 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
29733 LIBS="${LIBS} -lvpb -lpthread"
29734 cat >conftest.$ac_ext <<_ACEOF
29736 /* confdefs.h. */
29737 _ACEOF
29738 cat confdefs.h >>conftest.$ac_ext
29739 cat >>conftest.$ac_ext <<_ACEOF
29740 /* end confdefs.h. */
29741 #include <vpbapi.h>
29743 main ()
29745 int q = vpb_open(0,0);
29747 return 0;
29750 _ACEOF
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (ac_try="$ac_link"
29753 case "(($ac_try" in
29754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755 *) ac_try_echo=$ac_try;;
29756 esac
29757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758 (eval "$ac_link") 2>conftest.er1
29759 ac_status=$?
29760 grep -v '^ *+' conftest.er1 >conftest.err
29761 rm -f conftest.er1
29762 cat conftest.err >&5
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); } && {
29765 test -z "$ac_cxx_werror_flag" ||
29766 test ! -s conftest.err
29767 } && test -s conftest$ac_exeext &&
29768 $as_test_x conftest$ac_exeext; then
29769 { echo "$as_me:$LINENO: result: yes" >&5
29770 echo "${ECHO_T}yes" >&6; }
29771 ac_cv_lib_vpb_vpb_open="yes"
29773 else
29774 echo "$as_me: failed program was:" >&5
29775 sed 's/^/| /' conftest.$ac_ext >&5
29777 { echo "$as_me:$LINENO: result: no" >&5
29778 echo "${ECHO_T}no" >&6; }
29779 ac_cv_lib_vpb_vpb_open="no"
29784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29785 conftest$ac_exeext conftest.$ac_ext
29786 LIBS="${saved_libs}"
29787 CPPFLAGS="${saved_cppflags}"
29788 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
29789 VPB_LIB="-lvpb"
29790 if test "${VPB_DIR}" != ""; then
29791 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
29792 VPB_INCLUDE="-I${VPB_DIR}/include"
29794 PBX_VPB=1
29796 cat >>confdefs.h <<\_ACEOF
29797 #define HAVE_VPB 1
29798 _ACEOF
29800 elif test -n "${VPB_MANDATORY}"; then
29801 { echo "$as_me:$LINENO: ***" >&5
29802 echo "$as_me: ***" >&6;}
29803 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
29804 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
29805 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29806 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29807 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
29808 echo "$as_me: *** including --without-vpb." >&6;}
29809 exit 1
29813 ac_ext=c
29814 ac_cpp='$CPP $CPPFLAGS'
29815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29821 if test "${USE_ZLIB}" != "no"; then
29822 pbxlibdir=""
29823 if test "x${ZLIB_DIR}" != "x"; then
29824 if test -d ${ZLIB_DIR}/lib; then
29825 pbxlibdir="-L${ZLIB_DIR}/lib"
29826 else
29827 pbxlibdir="-L${ZLIB_DIR}"
29830 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
29831 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
29832 if test "${ac_cv_lib_z_compress+set}" = set; then
29833 echo $ECHO_N "(cached) $ECHO_C" >&6
29834 else
29835 ac_check_lib_save_LIBS=$LIBS
29836 LIBS="-lz ${pbxlibdir} $LIBS"
29837 cat >conftest.$ac_ext <<_ACEOF
29838 /* confdefs.h. */
29839 _ACEOF
29840 cat confdefs.h >>conftest.$ac_ext
29841 cat >>conftest.$ac_ext <<_ACEOF
29842 /* end confdefs.h. */
29844 /* Override any GCC internal prototype to avoid an error.
29845 Use char because int might match the return type of a GCC
29846 builtin and then its argument prototype would still apply. */
29847 #ifdef __cplusplus
29848 extern "C"
29849 #endif
29850 char compress ();
29852 main ()
29854 return compress ();
29856 return 0;
29858 _ACEOF
29859 rm -f conftest.$ac_objext conftest$ac_exeext
29860 if { (ac_try="$ac_link"
29861 case "(($ac_try" in
29862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29863 *) ac_try_echo=$ac_try;;
29864 esac
29865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29866 (eval "$ac_link") 2>conftest.er1
29867 ac_status=$?
29868 grep -v '^ *+' conftest.er1 >conftest.err
29869 rm -f conftest.er1
29870 cat conftest.err >&5
29871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872 (exit $ac_status); } && {
29873 test -z "$ac_c_werror_flag" ||
29874 test ! -s conftest.err
29875 } && test -s conftest$ac_exeext &&
29876 $as_test_x conftest$ac_exeext; then
29877 ac_cv_lib_z_compress=yes
29878 else
29879 echo "$as_me: failed program was:" >&5
29880 sed 's/^/| /' conftest.$ac_ext >&5
29882 ac_cv_lib_z_compress=no
29885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29886 conftest$ac_exeext conftest.$ac_ext
29887 LIBS=$ac_check_lib_save_LIBS
29889 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
29890 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
29891 if test $ac_cv_lib_z_compress = yes; then
29892 AST_ZLIB_FOUND=yes
29893 else
29894 AST_ZLIB_FOUND=no
29898 if test "${AST_ZLIB_FOUND}" = "yes"; then
29899 ZLIB_LIB="-lz "
29900 ZLIB_HEADER_FOUND="1"
29901 if test "x${ZLIB_DIR}" != "x"; then
29902 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
29903 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
29904 saved_cppflags="${CPPFLAGS}"
29905 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
29906 if test "xzlib.h" != "x" ; then
29907 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
29908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29909 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
29910 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
29911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29912 echo $ECHO_N "(cached) $ECHO_C" >&6
29914 ac_res=`eval echo '${'$as_ac_Header'}'`
29915 { echo "$as_me:$LINENO: result: $ac_res" >&5
29916 echo "${ECHO_T}$ac_res" >&6; }
29917 else
29918 # Is the header compilable?
29919 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
29920 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
29921 cat >conftest.$ac_ext <<_ACEOF
29922 /* confdefs.h. */
29923 _ACEOF
29924 cat confdefs.h >>conftest.$ac_ext
29925 cat >>conftest.$ac_ext <<_ACEOF
29926 /* end confdefs.h. */
29927 $ac_includes_default
29928 #include <${ZLIB_DIR}/include/zlib.h>
29929 _ACEOF
29930 rm -f conftest.$ac_objext
29931 if { (ac_try="$ac_compile"
29932 case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29935 esac
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_compile") 2>conftest.er1
29938 ac_status=$?
29939 grep -v '^ *+' conftest.er1 >conftest.err
29940 rm -f conftest.er1
29941 cat conftest.err >&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } && {
29944 test -z "$ac_c_werror_flag" ||
29945 test ! -s conftest.err
29946 } && test -s conftest.$ac_objext; then
29947 ac_header_compiler=yes
29948 else
29949 echo "$as_me: failed program was:" >&5
29950 sed 's/^/| /' conftest.$ac_ext >&5
29952 ac_header_compiler=no
29955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29957 echo "${ECHO_T}$ac_header_compiler" >&6; }
29959 # Is the header present?
29960 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
29961 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
29962 cat >conftest.$ac_ext <<_ACEOF
29963 /* confdefs.h. */
29964 _ACEOF
29965 cat confdefs.h >>conftest.$ac_ext
29966 cat >>conftest.$ac_ext <<_ACEOF
29967 /* end confdefs.h. */
29968 #include <${ZLIB_DIR}/include/zlib.h>
29969 _ACEOF
29970 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
29983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29984 test ! -s conftest.err
29985 }; then
29986 ac_header_preproc=yes
29987 else
29988 echo "$as_me: failed program was:" >&5
29989 sed 's/^/| /' conftest.$ac_ext >&5
29991 ac_header_preproc=no
29994 rm -f conftest.err conftest.$ac_ext
29995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29996 echo "${ECHO_T}$ac_header_preproc" >&6; }
29998 # So? What about this header?
29999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30000 yes:no: )
30001 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30002 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30003 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
30004 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
30005 ac_header_preproc=yes
30007 no:yes:* )
30008 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
30009 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
30010 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
30011 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
30012 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
30013 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
30014 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
30015 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30016 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
30017 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
30018 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
30019 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
30022 esac
30023 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
30024 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
30025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30026 echo $ECHO_N "(cached) $ECHO_C" >&6
30027 else
30028 eval "$as_ac_Header=\$ac_header_preproc"
30030 ac_res=`eval echo '${'$as_ac_Header'}'`
30031 { echo "$as_me:$LINENO: result: $ac_res" >&5
30032 echo "${ECHO_T}$ac_res" >&6; }
30035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30036 ZLIB_HEADER_FOUND=1
30037 else
30038 ZLIB_HEADER_FOUND=0
30043 CPPFLAGS="${saved_cppflags}"
30044 else
30045 if test "xzlib.h" != "x" ; then
30046 if test "${ac_cv_header_zlib_h+set}" = set; then
30047 { echo "$as_me:$LINENO: checking for zlib.h" >&5
30048 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
30049 if test "${ac_cv_header_zlib_h+set}" = set; then
30050 echo $ECHO_N "(cached) $ECHO_C" >&6
30052 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
30053 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
30054 else
30055 # Is the header compilable?
30056 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
30057 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
30058 cat >conftest.$ac_ext <<_ACEOF
30059 /* confdefs.h. */
30060 _ACEOF
30061 cat confdefs.h >>conftest.$ac_ext
30062 cat >>conftest.$ac_ext <<_ACEOF
30063 /* end confdefs.h. */
30064 $ac_includes_default
30065 #include <zlib.h>
30066 _ACEOF
30067 rm -f conftest.$ac_objext
30068 if { (ac_try="$ac_compile"
30069 case "(($ac_try" in
30070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30071 *) ac_try_echo=$ac_try;;
30072 esac
30073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30074 (eval "$ac_compile") 2>conftest.er1
30075 ac_status=$?
30076 grep -v '^ *+' conftest.er1 >conftest.err
30077 rm -f conftest.er1
30078 cat conftest.err >&5
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); } && {
30081 test -z "$ac_c_werror_flag" ||
30082 test ! -s conftest.err
30083 } && test -s conftest.$ac_objext; then
30084 ac_header_compiler=yes
30085 else
30086 echo "$as_me: failed program was:" >&5
30087 sed 's/^/| /' conftest.$ac_ext >&5
30089 ac_header_compiler=no
30092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30094 echo "${ECHO_T}$ac_header_compiler" >&6; }
30096 # Is the header present?
30097 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
30098 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
30099 cat >conftest.$ac_ext <<_ACEOF
30100 /* confdefs.h. */
30101 _ACEOF
30102 cat confdefs.h >>conftest.$ac_ext
30103 cat >>conftest.$ac_ext <<_ACEOF
30104 /* end confdefs.h. */
30105 #include <zlib.h>
30106 _ACEOF
30107 if { (ac_try="$ac_cpp conftest.$ac_ext"
30108 case "(($ac_try" in
30109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30110 *) ac_try_echo=$ac_try;;
30111 esac
30112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30114 ac_status=$?
30115 grep -v '^ *+' conftest.er1 >conftest.err
30116 rm -f conftest.er1
30117 cat conftest.err >&5
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); } >/dev/null && {
30120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30121 test ! -s conftest.err
30122 }; then
30123 ac_header_preproc=yes
30124 else
30125 echo "$as_me: failed program was:" >&5
30126 sed 's/^/| /' conftest.$ac_ext >&5
30128 ac_header_preproc=no
30131 rm -f conftest.err conftest.$ac_ext
30132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30133 echo "${ECHO_T}$ac_header_preproc" >&6; }
30135 # So? What about this header?
30136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30137 yes:no: )
30138 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30139 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30140 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
30141 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
30142 ac_header_preproc=yes
30144 no:yes:* )
30145 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
30146 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
30147 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
30148 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
30149 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
30150 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
30151 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
30152 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30153 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
30154 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
30155 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
30156 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
30159 esac
30160 { echo "$as_me:$LINENO: checking for zlib.h" >&5
30161 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
30162 if test "${ac_cv_header_zlib_h+set}" = set; then
30163 echo $ECHO_N "(cached) $ECHO_C" >&6
30164 else
30165 ac_cv_header_zlib_h=$ac_header_preproc
30167 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
30168 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
30171 if test $ac_cv_header_zlib_h = yes; then
30172 ZLIB_HEADER_FOUND=1
30173 else
30174 ZLIB_HEADER_FOUND=0
30180 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
30181 if test -n "${ZLIB_MANDATORY}" ;
30182 then
30183 { echo "$as_me:$LINENO: ***" >&5
30184 echo "$as_me: ***" >&6;}
30185 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
30186 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
30187 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
30188 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
30189 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
30190 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
30191 exit 1
30193 ZLIB_LIB=""
30194 ZLIB_INCLUDE=""
30195 PBX_ZLIB=0
30196 else
30197 PBX_ZLIB=1
30199 cat >>confdefs.h <<_ACEOF
30200 #define HAVE_ZLIB 1
30201 _ACEOF
30204 elif test -n "${ZLIB_MANDATORY}";
30205 then
30206 { echo "$as_me:$LINENO: ***" >&5
30207 echo "$as_me: ***" >&6;}
30208 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
30209 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
30210 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30211 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30212 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
30213 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
30214 exit 1
30219 if test "${USE_ZAPTEL}" != "no"; then
30220 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
30221 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
30222 saved_cppflags="${CPPFLAGS}"
30223 if test "x${ZAPTEL_DIR}" != "x"; then
30224 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
30226 cat >conftest.$ac_ext <<_ACEOF
30228 /* confdefs.h. */
30229 _ACEOF
30230 cat confdefs.h >>conftest.$ac_ext
30231 cat >>conftest.$ac_ext <<_ACEOF
30232 /* end confdefs.h. */
30233 #include <zaptel/zaptel.h>
30235 main ()
30237 int foo = ZT_DIAL_OP_CANCEL;
30239 return 0;
30242 _ACEOF
30243 rm -f conftest.$ac_objext
30244 if { (ac_try="$ac_compile"
30245 case "(($ac_try" in
30246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247 *) ac_try_echo=$ac_try;;
30248 esac
30249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250 (eval "$ac_compile") 2>conftest.er1
30251 ac_status=$?
30252 grep -v '^ *+' conftest.er1 >conftest.err
30253 rm -f conftest.er1
30254 cat conftest.err >&5
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); } && {
30257 test -z "$ac_c_werror_flag" ||
30258 test ! -s conftest.err
30259 } && test -s conftest.$ac_objext; then
30260 { echo "$as_me:$LINENO: result: yes" >&5
30261 echo "${ECHO_T}yes" >&6; }
30262 ac_cv_zaptel_h="yes"
30264 else
30265 echo "$as_me: failed program was:" >&5
30266 sed 's/^/| /' conftest.$ac_ext >&5
30268 { echo "$as_me:$LINENO: result: no" >&5
30269 echo "${ECHO_T}no" >&6; }
30270 ac_cv_zaptel_h="no"
30275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30276 CPPFLAGS="${saved_cppflags}"
30277 if test "${ac_cv_zaptel_h}" = "yes"; then
30278 if test "${ZAPTEL_DIR}" != ""; then
30279 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
30281 PBX_ZAPTEL=1
30283 cat >>confdefs.h <<\_ACEOF
30284 #define HAVE_ZAPTEL 1
30285 _ACEOF
30287 elif test -n "${ZAPTEL_MANDATORY}";
30288 then
30289 { echo "$as_me:$LINENO: ***" >&5
30290 echo "$as_me: ***" >&6;}
30291 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
30292 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
30293 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30294 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30295 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
30296 echo "$as_me: *** including --without-zaptel." >&6;}
30297 exit 1
30301 if test "${PBX_ZAPTEL}" = 1; then
30302 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
30303 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
30304 saved_cppflags="${CPPFLAGS}"
30305 if test "x${ZAPTEL_DIR}" != "x"; then
30306 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
30308 cat >conftest.$ac_ext <<_ACEOF
30310 /* confdefs.h. */
30311 _ACEOF
30312 cat confdefs.h >>conftest.$ac_ext
30313 cat >>conftest.$ac_ext <<_ACEOF
30314 /* end confdefs.h. */
30315 #include <zaptel/zaptel.h>
30317 main ()
30319 int foo = ZT_EVENT_REMOVED;
30321 return 0;
30324 _ACEOF
30325 rm -f conftest.$ac_objext
30326 if { (ac_try="$ac_compile"
30327 case "(($ac_try" in
30328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30329 *) ac_try_echo=$ac_try;;
30330 esac
30331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30332 (eval "$ac_compile") 2>conftest.er1
30333 ac_status=$?
30334 grep -v '^ *+' conftest.er1 >conftest.err
30335 rm -f conftest.er1
30336 cat conftest.err >&5
30337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338 (exit $ac_status); } && {
30339 test -z "$ac_c_werror_flag" ||
30340 test ! -s conftest.err
30341 } && test -s conftest.$ac_objext; then
30342 { echo "$as_me:$LINENO: result: yes" >&5
30343 echo "${ECHO_T}yes" >&6; }
30344 ac_cv_zaptel_vldtmf="yes"
30346 else
30347 echo "$as_me: failed program was:" >&5
30348 sed 's/^/| /' conftest.$ac_ext >&5
30350 { echo "$as_me:$LINENO: result: no" >&5
30351 echo "${ECHO_T}no" >&6; }
30352 ac_cv_zaptel_vldtmf="no"
30357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30358 CPPFLAGS="${saved_cppflags}"
30359 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
30360 PBX_ZAPTEL_VLDTMF=1
30362 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
30363 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
30364 saved_cppflags="${CPPFLAGS}"
30365 if test "x${ZAPTEL_DIR}" != "x"; then
30366 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
30368 cat >conftest.$ac_ext <<_ACEOF
30370 /* confdefs.h. */
30371 _ACEOF
30372 cat confdefs.h >>conftest.$ac_ext
30373 cat >>conftest.$ac_ext <<_ACEOF
30374 /* end confdefs.h. */
30375 #include <zaptel/zaptel.h>
30377 main ()
30379 int foo = ZT_TCOP_ALLOCATE;
30381 return 0;
30384 _ACEOF
30385 rm -f conftest.$ac_objext
30386 if { (ac_try="$ac_compile"
30387 case "(($ac_try" in
30388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389 *) ac_try_echo=$ac_try;;
30390 esac
30391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392 (eval "$ac_compile") 2>conftest.er1
30393 ac_status=$?
30394 grep -v '^ *+' conftest.er1 >conftest.err
30395 rm -f conftest.er1
30396 cat conftest.err >&5
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } && {
30399 test -z "$ac_c_werror_flag" ||
30400 test ! -s conftest.err
30401 } && test -s conftest.$ac_objext; then
30402 { echo "$as_me:$LINENO: result: yes" >&5
30403 echo "${ECHO_T}yes" >&6; }
30404 ac_cv_zaptel_transcode="yes"
30406 else
30407 echo "$as_me: failed program was:" >&5
30408 sed 's/^/| /' conftest.$ac_ext >&5
30410 { echo "$as_me:$LINENO: result: no" >&5
30411 echo "${ECHO_T}no" >&6; }
30412 ac_cv_zaptel_transcode="no"
30417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30418 CPPFLAGS="${saved_cppflags}"
30419 if test "${ac_cv_zaptel_transcode}" = "yes"; then
30420 PBX_ZAPTEL_TRANSCODE=1
30426 EDITLINE_LIB=""
30427 if test "x$TERMCAP_LIB" != "x" ; then
30428 EDITLINE_LIB="$TERMCAP_LIB"
30429 elif test "x$TINFO_LIB" != "x" ; then
30430 EDITLINE_LIB="$TINFO_LIB"
30431 elif test "x$CURSES_LIB" != "x" ; then
30432 EDITLINE_LIB="$CURSES_LIB"
30433 elif test "x$NCURSES_LIB" != "x" ; then
30434 EDITLINE_LIB="$NCURSES_LIB"
30435 else
30436 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
30437 echo "$as_me: error: *** termcap support not found" >&2;}
30438 { (exit 1); exit 1; }; }
30442 if test "${ac_cv_header_h323_h+set}" = set; then
30443 { echo "$as_me:$LINENO: checking for h323.h" >&5
30444 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30445 if test "${ac_cv_header_h323_h+set}" = set; then
30446 echo $ECHO_N "(cached) $ECHO_C" >&6
30448 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30449 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30450 else
30451 # Is the header compilable?
30452 { echo "$as_me:$LINENO: checking h323.h usability" >&5
30453 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
30454 cat >conftest.$ac_ext <<_ACEOF
30455 /* confdefs.h. */
30456 _ACEOF
30457 cat confdefs.h >>conftest.$ac_ext
30458 cat >>conftest.$ac_ext <<_ACEOF
30459 /* end confdefs.h. */
30460 $ac_includes_default
30461 #include <h323.h>
30462 _ACEOF
30463 rm -f conftest.$ac_objext
30464 if { (ac_try="$ac_compile"
30465 case "(($ac_try" in
30466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30467 *) ac_try_echo=$ac_try;;
30468 esac
30469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30470 (eval "$ac_compile") 2>conftest.er1
30471 ac_status=$?
30472 grep -v '^ *+' conftest.er1 >conftest.err
30473 rm -f conftest.er1
30474 cat conftest.err >&5
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); } && {
30477 test -z "$ac_c_werror_flag" ||
30478 test ! -s conftest.err
30479 } && test -s conftest.$ac_objext; then
30480 ac_header_compiler=yes
30481 else
30482 echo "$as_me: failed program was:" >&5
30483 sed 's/^/| /' conftest.$ac_ext >&5
30485 ac_header_compiler=no
30488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30490 echo "${ECHO_T}$ac_header_compiler" >&6; }
30492 # Is the header present?
30493 { echo "$as_me:$LINENO: checking h323.h presence" >&5
30494 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
30495 cat >conftest.$ac_ext <<_ACEOF
30496 /* confdefs.h. */
30497 _ACEOF
30498 cat confdefs.h >>conftest.$ac_ext
30499 cat >>conftest.$ac_ext <<_ACEOF
30500 /* end confdefs.h. */
30501 #include <h323.h>
30502 _ACEOF
30503 if { (ac_try="$ac_cpp conftest.$ac_ext"
30504 case "(($ac_try" in
30505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30506 *) ac_try_echo=$ac_try;;
30507 esac
30508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30510 ac_status=$?
30511 grep -v '^ *+' conftest.er1 >conftest.err
30512 rm -f conftest.er1
30513 cat conftest.err >&5
30514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30515 (exit $ac_status); } >/dev/null && {
30516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30517 test ! -s conftest.err
30518 }; then
30519 ac_header_preproc=yes
30520 else
30521 echo "$as_me: failed program was:" >&5
30522 sed 's/^/| /' conftest.$ac_ext >&5
30524 ac_header_preproc=no
30527 rm -f conftest.err conftest.$ac_ext
30528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30529 echo "${ECHO_T}$ac_header_preproc" >&6; }
30531 # So? What about this header?
30532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30533 yes:no: )
30534 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
30535 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30536 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
30537 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
30538 ac_header_preproc=yes
30540 no:yes:* )
30541 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
30542 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
30543 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
30544 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
30545 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
30546 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
30547 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
30548 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
30549 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
30550 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
30551 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
30552 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
30555 esac
30556 { echo "$as_me:$LINENO: checking for h323.h" >&5
30557 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30558 if test "${ac_cv_header_h323_h+set}" = set; then
30559 echo $ECHO_N "(cached) $ECHO_C" >&6
30560 else
30561 ac_cv_header_h323_h=$ac_header_preproc
30563 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30564 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30567 if test $ac_cv_header_h323_h = yes; then
30568 PBX_H323=1
30569 else
30570 PBX_H323=0
30576 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
30577 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
30578 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
30579 echo $ECHO_N "(cached) $ECHO_C" >&6
30580 else
30581 cat >conftest.$ac_ext <<_ACEOF
30582 /* confdefs.h. */
30583 _ACEOF
30584 cat confdefs.h >>conftest.$ac_ext
30585 cat >>conftest.$ac_ext <<_ACEOF
30586 /* end confdefs.h. */
30588 #include <linux/version.h>
30589 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
30590 #include <linux/compiler.h>
30591 #endif
30594 #include <linux/ixjuser.h>
30595 _ACEOF
30596 rm -f conftest.$ac_objext
30597 if { (ac_try="$ac_compile"
30598 case "(($ac_try" in
30599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30600 *) ac_try_echo=$ac_try;;
30601 esac
30602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30603 (eval "$ac_compile") 2>conftest.er1
30604 ac_status=$?
30605 grep -v '^ *+' conftest.er1 >conftest.err
30606 rm -f conftest.er1
30607 cat conftest.err >&5
30608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609 (exit $ac_status); } && {
30610 test -z "$ac_c_werror_flag" ||
30611 test ! -s conftest.err
30612 } && test -s conftest.$ac_objext; then
30613 ac_cv_header_linux_ixjuser_h=yes
30614 else
30615 echo "$as_me: failed program was:" >&5
30616 sed 's/^/| /' conftest.$ac_ext >&5
30618 ac_cv_header_linux_ixjuser_h=no
30621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30623 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
30624 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
30625 if test $ac_cv_header_linux_ixjuser_h = yes; then
30626 PBX_IXJUSER=1
30627 else
30628 PBX_IXJUSER=0
30634 PBX_GTK=0
30635 if test -n "$ac_tool_prefix"; then
30636 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
30637 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
30638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30640 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
30641 echo $ECHO_N "(cached) $ECHO_C" >&6
30642 else
30643 if test -n "$GTKCONFIG"; then
30644 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
30645 else
30646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30647 for as_dir in $PATH
30649 IFS=$as_save_IFS
30650 test -z "$as_dir" && as_dir=.
30651 for ac_exec_ext in '' $ac_executable_extensions; do
30652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30653 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
30654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30655 break 2
30657 done
30658 done
30659 IFS=$as_save_IFS
30663 GTKCONFIG=$ac_cv_prog_GTKCONFIG
30664 if test -n "$GTKCONFIG"; then
30665 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
30666 echo "${ECHO_T}$GTKCONFIG" >&6; }
30667 else
30668 { echo "$as_me:$LINENO: result: no" >&5
30669 echo "${ECHO_T}no" >&6; }
30674 if test -z "$ac_cv_prog_GTKCONFIG"; then
30675 ac_ct_GTKCONFIG=$GTKCONFIG
30676 # Extract the first word of "gtk-config", so it can be a program name with args.
30677 set dummy gtk-config; ac_word=$2
30678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30680 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
30681 echo $ECHO_N "(cached) $ECHO_C" >&6
30682 else
30683 if test -n "$ac_ct_GTKCONFIG"; then
30684 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
30685 else
30686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30687 for as_dir in $PATH
30689 IFS=$as_save_IFS
30690 test -z "$as_dir" && as_dir=.
30691 for ac_exec_ext in '' $ac_executable_extensions; do
30692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30693 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
30694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30695 break 2
30697 done
30698 done
30699 IFS=$as_save_IFS
30703 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
30704 if test -n "$ac_ct_GTKCONFIG"; then
30705 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
30706 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
30707 else
30708 { echo "$as_me:$LINENO: result: no" >&5
30709 echo "${ECHO_T}no" >&6; }
30712 if test "x$ac_ct_GTKCONFIG" = x; then
30713 GTKCONFIG="No"
30714 else
30715 case $cross_compiling:$ac_tool_warned in
30716 yes:)
30717 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30718 whose name does not start with the host triplet. If you think this
30719 configuration is useful to you, please write to autoconf@gnu.org." >&5
30720 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30721 whose name does not start with the host triplet. If you think this
30722 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30723 ac_tool_warned=yes ;;
30724 esac
30725 GTKCONFIG=$ac_ct_GTKCONFIG
30727 else
30728 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
30731 if test ! "x${GTKCONFIG}" = xNo; then
30732 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
30733 GTK_LIB=$(${GTKCONFIG} --libs gthread)
30734 PBX_GTK=1
30736 cat >>confdefs.h <<\_ACEOF
30737 #define HAVE_GTK 1
30738 _ACEOF
30745 PBX_GTK2=0
30746 if test -n "$ac_tool_prefix"; then
30747 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30748 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30751 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
30752 echo $ECHO_N "(cached) $ECHO_C" >&6
30753 else
30754 if test -n "$PKGCONFIG"; then
30755 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
30756 else
30757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30758 for as_dir in $PATH
30760 IFS=$as_save_IFS
30761 test -z "$as_dir" && as_dir=.
30762 for ac_exec_ext in '' $ac_executable_extensions; do
30763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30764 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
30765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30766 break 2
30768 done
30769 done
30770 IFS=$as_save_IFS
30774 PKGCONFIG=$ac_cv_prog_PKGCONFIG
30775 if test -n "$PKGCONFIG"; then
30776 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
30777 echo "${ECHO_T}$PKGCONFIG" >&6; }
30778 else
30779 { echo "$as_me:$LINENO: result: no" >&5
30780 echo "${ECHO_T}no" >&6; }
30785 if test -z "$ac_cv_prog_PKGCONFIG"; then
30786 ac_ct_PKGCONFIG=$PKGCONFIG
30787 # Extract the first word of "pkg-config", so it can be a program name with args.
30788 set dummy pkg-config; ac_word=$2
30789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30791 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
30792 echo $ECHO_N "(cached) $ECHO_C" >&6
30793 else
30794 if test -n "$ac_ct_PKGCONFIG"; then
30795 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
30796 else
30797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30798 for as_dir in $PATH
30800 IFS=$as_save_IFS
30801 test -z "$as_dir" && as_dir=.
30802 for ac_exec_ext in '' $ac_executable_extensions; do
30803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30804 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
30805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30806 break 2
30808 done
30809 done
30810 IFS=$as_save_IFS
30814 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
30815 if test -n "$ac_ct_PKGCONFIG"; then
30816 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
30817 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
30818 else
30819 { echo "$as_me:$LINENO: result: no" >&5
30820 echo "${ECHO_T}no" >&6; }
30823 if test "x$ac_ct_PKGCONFIG" = x; then
30824 PKGCONFIG="No"
30825 else
30826 case $cross_compiling:$ac_tool_warned in
30827 yes:)
30828 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30829 whose name does not start with the host triplet. If you think this
30830 configuration is useful to you, please write to autoconf@gnu.org." >&5
30831 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30832 whose name does not start with the host triplet. If you think this
30833 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30834 ac_tool_warned=yes ;;
30835 esac
30836 PKGCONFIG=$ac_ct_PKGCONFIG
30838 else
30839 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
30842 if test ! "x${PKGCONFIG}" = xNo; then
30843 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags)
30844 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
30845 PBX_GTK2=1
30847 cat >>confdefs.h <<\_ACEOF
30848 #define HAVE_GTK2 1
30849 _ACEOF
30856 if test "${USE_CURL}" != "no"; then
30857 if test -n "$ac_tool_prefix"; then
30858 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
30859 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
30860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30862 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
30863 echo $ECHO_N "(cached) $ECHO_C" >&6
30864 else
30865 case $CURL_CONFIG in
30866 [\\/]* | ?:[\\/]*)
30867 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
30870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30871 for as_dir in $PATH
30873 IFS=$as_save_IFS
30874 test -z "$as_dir" && as_dir=.
30875 for ac_exec_ext in '' $ac_executable_extensions; do
30876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30877 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30879 break 2
30881 done
30882 done
30883 IFS=$as_save_IFS
30886 esac
30888 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
30889 if test -n "$CURL_CONFIG"; then
30890 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
30891 echo "${ECHO_T}$CURL_CONFIG" >&6; }
30892 else
30893 { echo "$as_me:$LINENO: result: no" >&5
30894 echo "${ECHO_T}no" >&6; }
30899 if test -z "$ac_cv_path_CURL_CONFIG"; then
30900 ac_pt_CURL_CONFIG=$CURL_CONFIG
30901 # Extract the first word of "curl-config", so it can be a program name with args.
30902 set dummy curl-config; ac_word=$2
30903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30905 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
30906 echo $ECHO_N "(cached) $ECHO_C" >&6
30907 else
30908 case $ac_pt_CURL_CONFIG in
30909 [\\/]* | ?:[\\/]*)
30910 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
30913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30914 for as_dir in $PATH
30916 IFS=$as_save_IFS
30917 test -z "$as_dir" && as_dir=.
30918 for ac_exec_ext in '' $ac_executable_extensions; do
30919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30920 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30922 break 2
30924 done
30925 done
30926 IFS=$as_save_IFS
30929 esac
30931 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
30932 if test -n "$ac_pt_CURL_CONFIG"; then
30933 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
30934 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
30935 else
30936 { echo "$as_me:$LINENO: result: no" >&5
30937 echo "${ECHO_T}no" >&6; }
30940 if test "x$ac_pt_CURL_CONFIG" = x; then
30941 CURL_CONFIG="No"
30942 else
30943 case $cross_compiling:$ac_tool_warned in
30944 yes:)
30945 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30946 whose name does not start with the host triplet. If you think this
30947 configuration is useful to you, please write to autoconf@gnu.org." >&5
30948 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30949 whose name does not start with the host triplet. If you think this
30950 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30951 ac_tool_warned=yes ;;
30952 esac
30953 CURL_CONFIG=$ac_pt_CURL_CONFIG
30955 else
30956 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
30959 if test ! x"${CURL_CONFIG}" = xNo; then
30960 # check for version
30961 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
30962 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
30963 CURL_LIB=$(${CURL_CONFIG} --libs)
30965 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
30966 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
30967 saved_cppflags="${CPPFLAGS}"
30968 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
30969 cat >conftest.$ac_ext <<_ACEOF
30970 /* confdefs.h. */
30971 _ACEOF
30972 cat confdefs.h >>conftest.$ac_ext
30973 cat >>conftest.$ac_ext <<_ACEOF
30974 /* end confdefs.h. */
30975 #include <curl/curl.h>
30977 main ()
30979 curl_version();
30981 return 0;
30984 _ACEOF
30985 rm -f conftest.$ac_objext
30986 if { (ac_try="$ac_compile"
30987 case "(($ac_try" in
30988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30989 *) ac_try_echo=$ac_try;;
30990 esac
30991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30992 (eval "$ac_compile") 2>conftest.er1
30993 ac_status=$?
30994 grep -v '^ *+' conftest.er1 >conftest.err
30995 rm -f conftest.er1
30996 cat conftest.err >&5
30997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998 (exit $ac_status); } && {
30999 test -z "$ac_c_werror_flag" ||
31000 test ! -s conftest.err
31001 } && test -s conftest.$ac_objext; then
31003 { echo "$as_me:$LINENO: result: yes" >&5
31004 echo "${ECHO_T}yes" >&6; }
31005 ac_cv_curl_h="yes"
31007 else
31008 echo "$as_me: failed program was:" >&5
31009 sed 's/^/| /' conftest.$ac_ext >&5
31012 { echo "$as_me:$LINENO: result: no" >&5
31013 echo "${ECHO_T}no" >&6; }
31014 ac_cv_curl_h="no"
31019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31020 CPPFLAGS="${saved_cppflags}"
31021 if test "${ac_cv_curl_h}" = "yes"; then
31022 PBX_CURL=1
31024 cat >>confdefs.h <<\_ACEOF
31025 #define HAVE_CURL 1
31026 _ACEOF
31033 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
31035 cat >confcache <<\_ACEOF
31036 # This file is a shell script that caches the results of configure
31037 # tests run on this system so they can be shared between configure
31038 # scripts and configure runs, see configure's option --config-cache.
31039 # It is not useful on other systems. If it contains results you don't
31040 # want to keep, you may remove or edit it.
31042 # config.status only pays attention to the cache file if you give it
31043 # the --recheck option to rerun configure.
31045 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31046 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31047 # following values.
31049 _ACEOF
31051 # The following way of writing the cache mishandles newlines in values,
31052 # but we know of no workaround that is simple, portable, and efficient.
31053 # So, we kill variables containing newlines.
31054 # Ultrix sh set writes to stderr and can't be redirected directly,
31055 # and sets the high bit in the cache file unless we assign to the vars.
31057 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31058 eval ac_val=\$$ac_var
31059 case $ac_val in #(
31060 *${as_nl}*)
31061 case $ac_var in #(
31062 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
31063 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
31064 esac
31065 case $ac_var in #(
31066 _ | IFS | as_nl) ;; #(
31067 *) $as_unset $ac_var ;;
31068 esac ;;
31069 esac
31070 done
31072 (set) 2>&1 |
31073 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31074 *${as_nl}ac_space=\ *)
31075 # `set' does not quote correctly, so add quotes (double-quote
31076 # substitution turns \\\\ into \\, and sed turns \\ into \).
31077 sed -n \
31078 "s/'/'\\\\''/g;
31079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31080 ;; #(
31082 # `set' quotes correctly as required by POSIX, so do not add quotes.
31083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31085 esac |
31086 sort
31088 sed '
31089 /^ac_cv_env_/b end
31090 t clear
31091 :clear
31092 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31093 t end
31094 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31095 :end' >>confcache
31096 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31097 if test -w "$cache_file"; then
31098 test "x$cache_file" != "x/dev/null" &&
31099 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
31100 echo "$as_me: updating cache $cache_file" >&6;}
31101 cat confcache >$cache_file
31102 else
31103 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31104 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31107 rm -f confcache
31109 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31110 # Let make expand exec_prefix.
31111 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31113 DEFS=-DHAVE_CONFIG_H
31115 ac_libobjs=
31116 ac_ltlibobjs=
31117 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31118 # 1. Remove the extension, and $U if already installed.
31119 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31120 ac_i=`echo "$ac_i" | sed "$ac_script"`
31121 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31122 # will be set to the directory where LIBOBJS objects are built.
31123 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31124 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31125 done
31126 LIBOBJS=$ac_libobjs
31128 LTLIBOBJS=$ac_ltlibobjs
31132 : ${CONFIG_STATUS=./config.status}
31133 ac_clean_files_save=$ac_clean_files
31134 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31135 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31136 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31137 cat >$CONFIG_STATUS <<_ACEOF
31138 #! $SHELL
31139 # Generated by $as_me.
31140 # Run this file to recreate the current configuration.
31141 # Compiler output produced by configure, useful for debugging
31142 # configure, is in config.log if it exists.
31144 debug=false
31145 ac_cs_recheck=false
31146 ac_cs_silent=false
31147 SHELL=\${CONFIG_SHELL-$SHELL}
31148 _ACEOF
31150 cat >>$CONFIG_STATUS <<\_ACEOF
31151 ## --------------------- ##
31152 ## M4sh Initialization. ##
31153 ## --------------------- ##
31155 # Be more Bourne compatible
31156 DUALCASE=1; export DUALCASE # for MKS sh
31157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31158 emulate sh
31159 NULLCMD=:
31160 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31161 # is contrary to our usage. Disable this feature.
31162 alias -g '${1+"$@"}'='"$@"'
31163 setopt NO_GLOB_SUBST
31164 else
31165 case `(set -o) 2>/dev/null` in
31166 *posix*) set -o posix ;;
31167 esac
31174 # PATH needs CR
31175 # Avoid depending upon Character Ranges.
31176 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31177 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31178 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31179 as_cr_digits='0123456789'
31180 as_cr_alnum=$as_cr_Letters$as_cr_digits
31182 # The user is always right.
31183 if test "${PATH_SEPARATOR+set}" != set; then
31184 echo "#! /bin/sh" >conf$$.sh
31185 echo "exit 0" >>conf$$.sh
31186 chmod +x conf$$.sh
31187 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31188 PATH_SEPARATOR=';'
31189 else
31190 PATH_SEPARATOR=:
31192 rm -f conf$$.sh
31195 # Support unset when possible.
31196 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31197 as_unset=unset
31198 else
31199 as_unset=false
31203 # IFS
31204 # We need space, tab and new line, in precisely that order. Quoting is
31205 # there to prevent editors from complaining about space-tab.
31206 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31207 # splitting by setting IFS to empty value.)
31208 as_nl='
31210 IFS=" "" $as_nl"
31212 # Find who we are. Look in the path if we contain no directory separator.
31213 case $0 in
31214 *[\\/]* ) as_myself=$0 ;;
31215 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31216 for as_dir in $PATH
31218 IFS=$as_save_IFS
31219 test -z "$as_dir" && as_dir=.
31220 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31221 done
31222 IFS=$as_save_IFS
31225 esac
31226 # We did not find ourselves, most probably we were run as `sh COMMAND'
31227 # in which case we are not to be found in the path.
31228 if test "x$as_myself" = x; then
31229 as_myself=$0
31231 if test ! -f "$as_myself"; then
31232 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31233 { (exit 1); exit 1; }
31236 # Work around bugs in pre-3.0 UWIN ksh.
31237 for as_var in ENV MAIL MAILPATH
31238 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31239 done
31240 PS1='$ '
31241 PS2='> '
31242 PS4='+ '
31244 # NLS nuisances.
31245 for as_var in \
31246 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31247 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31248 LC_TELEPHONE LC_TIME
31250 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31251 eval $as_var=C; export $as_var
31252 else
31253 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31255 done
31257 # Required to use basename.
31258 if expr a : '\(a\)' >/dev/null 2>&1 &&
31259 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31260 as_expr=expr
31261 else
31262 as_expr=false
31265 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31266 as_basename=basename
31267 else
31268 as_basename=false
31272 # Name of the executable.
31273 as_me=`$as_basename -- "$0" ||
31274 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31275 X"$0" : 'X\(//\)$' \| \
31276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31277 echo X/"$0" |
31278 sed '/^.*\/\([^/][^/]*\)\/*$/{
31279 s//\1/
31282 /^X\/\(\/\/\)$/{
31283 s//\1/
31286 /^X\/\(\/\).*/{
31287 s//\1/
31290 s/.*/./; q'`
31292 # CDPATH.
31293 $as_unset CDPATH
31297 as_lineno_1=$LINENO
31298 as_lineno_2=$LINENO
31299 test "x$as_lineno_1" != "x$as_lineno_2" &&
31300 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31302 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31303 # uniformly replaced by the line number. The first 'sed' inserts a
31304 # line-number line after each line using $LINENO; the second 'sed'
31305 # does the real work. The second script uses 'N' to pair each
31306 # line-number line with the line containing $LINENO, and appends
31307 # trailing '-' during substitution so that $LINENO is not a special
31308 # case at line end.
31309 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31310 # scripts with optimization help from Paolo Bonzini. Blame Lee
31311 # E. McMahon (1931-1989) for sed's syntax. :-)
31312 sed -n '
31314 /[$]LINENO/=
31315 ' <$as_myself |
31316 sed '
31317 s/[$]LINENO.*/&-/
31318 t lineno
31320 :lineno
31322 :loop
31323 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31324 t loop
31325 s/-\n.*//
31326 ' >$as_me.lineno &&
31327 chmod +x "$as_me.lineno" ||
31328 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31329 { (exit 1); exit 1; }; }
31331 # Don't try to exec as it changes $[0], causing all sort of problems
31332 # (the dirname of $[0] is not the place where we might find the
31333 # original and so on. Autoconf is especially sensitive to this).
31334 . "./$as_me.lineno"
31335 # Exit status is that of the last command.
31336 exit
31340 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31341 as_dirname=dirname
31342 else
31343 as_dirname=false
31346 ECHO_C= ECHO_N= ECHO_T=
31347 case `echo -n x` in
31348 -n*)
31349 case `echo 'x\c'` in
31350 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31351 *) ECHO_C='\c';;
31352 esac;;
31354 ECHO_N='-n';;
31355 esac
31357 if expr a : '\(a\)' >/dev/null 2>&1 &&
31358 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31359 as_expr=expr
31360 else
31361 as_expr=false
31364 rm -f conf$$ conf$$.exe conf$$.file
31365 if test -d conf$$.dir; then
31366 rm -f conf$$.dir/conf$$.file
31367 else
31368 rm -f conf$$.dir
31369 mkdir conf$$.dir
31371 echo >conf$$.file
31372 if ln -s conf$$.file conf$$ 2>/dev/null; then
31373 as_ln_s='ln -s'
31374 # ... but there are two gotchas:
31375 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31376 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31377 # In both cases, we have to default to `cp -p'.
31378 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31379 as_ln_s='cp -p'
31380 elif ln conf$$.file conf$$ 2>/dev/null; then
31381 as_ln_s=ln
31382 else
31383 as_ln_s='cp -p'
31385 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31386 rmdir conf$$.dir 2>/dev/null
31388 if mkdir -p . 2>/dev/null; then
31389 as_mkdir_p=:
31390 else
31391 test -d ./-p && rmdir ./-p
31392 as_mkdir_p=false
31395 if test -x / >/dev/null 2>&1; then
31396 as_test_x='test -x'
31397 else
31398 if ls -dL / >/dev/null 2>&1; then
31399 as_ls_L_option=L
31400 else
31401 as_ls_L_option=
31403 as_test_x='
31404 eval sh -c '\''
31405 if test -d "$1"; then
31406 test -d "$1/.";
31407 else
31408 case $1 in
31409 -*)set "./$1";;
31410 esac;
31411 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31412 ???[sx]*):;;*)false;;esac;fi
31413 '\'' sh
31416 as_executable_p=$as_test_x
31418 # Sed expression to map a string onto a valid CPP name.
31419 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31421 # Sed expression to map a string onto a valid variable name.
31422 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31425 exec 6>&1
31427 # Save the log message, to keep $[0] and so on meaningful, and to
31428 # report actual input values of CONFIG_FILES etc. instead of their
31429 # values after options handling.
31430 ac_log="
31431 This file was extended by $as_me, which was
31432 generated by GNU Autoconf 2.61. Invocation command line was
31434 CONFIG_FILES = $CONFIG_FILES
31435 CONFIG_HEADERS = $CONFIG_HEADERS
31436 CONFIG_LINKS = $CONFIG_LINKS
31437 CONFIG_COMMANDS = $CONFIG_COMMANDS
31438 $ $0 $@
31440 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31443 _ACEOF
31445 cat >>$CONFIG_STATUS <<_ACEOF
31446 # Files that config.status was made for.
31447 config_files="$ac_config_files"
31448 config_headers="$ac_config_headers"
31450 _ACEOF
31452 cat >>$CONFIG_STATUS <<\_ACEOF
31453 ac_cs_usage="\
31454 \`$as_me' instantiates files from templates according to the
31455 current configuration.
31457 Usage: $0 [OPTIONS] [FILE]...
31459 -h, --help print this help, then exit
31460 -V, --version print version number and configuration settings, then exit
31461 -q, --quiet do not print progress messages
31462 -d, --debug don't remove temporary files
31463 --recheck update $as_me by reconfiguring in the same conditions
31464 --file=FILE[:TEMPLATE]
31465 instantiate the configuration file FILE
31466 --header=FILE[:TEMPLATE]
31467 instantiate the configuration header FILE
31469 Configuration files:
31470 $config_files
31472 Configuration headers:
31473 $config_headers
31475 Report bugs to <bug-autoconf@gnu.org>."
31477 _ACEOF
31478 cat >>$CONFIG_STATUS <<_ACEOF
31479 ac_cs_version="\\
31480 config.status
31481 configured by $0, generated by GNU Autoconf 2.61,
31482 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31484 Copyright (C) 2006 Free Software Foundation, Inc.
31485 This config.status script is free software; the Free Software Foundation
31486 gives unlimited permission to copy, distribute and modify it."
31488 ac_pwd='$ac_pwd'
31489 srcdir='$srcdir'
31490 INSTALL='$INSTALL'
31491 _ACEOF
31493 cat >>$CONFIG_STATUS <<\_ACEOF
31494 # If no file are specified by the user, then we need to provide default
31495 # value. By we need to know if files were specified by the user.
31496 ac_need_defaults=:
31497 while test $# != 0
31499 case $1 in
31500 --*=*)
31501 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31502 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31503 ac_shift=:
31506 ac_option=$1
31507 ac_optarg=$2
31508 ac_shift=shift
31510 esac
31512 case $ac_option in
31513 # Handling of the options.
31514 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31515 ac_cs_recheck=: ;;
31516 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31517 echo "$ac_cs_version"; exit ;;
31518 --debug | --debu | --deb | --de | --d | -d )
31519 debug=: ;;
31520 --file | --fil | --fi | --f )
31521 $ac_shift
31522 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31523 ac_need_defaults=false;;
31524 --header | --heade | --head | --hea )
31525 $ac_shift
31526 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31527 ac_need_defaults=false;;
31528 --he | --h)
31529 # Conflict between --help and --header
31530 { echo "$as_me: error: ambiguous option: $1
31531 Try \`$0 --help' for more information." >&2
31532 { (exit 1); exit 1; }; };;
31533 --help | --hel | -h )
31534 echo "$ac_cs_usage"; exit ;;
31535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31536 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31537 ac_cs_silent=: ;;
31539 # This is an error.
31540 -*) { echo "$as_me: error: unrecognized option: $1
31541 Try \`$0 --help' for more information." >&2
31542 { (exit 1); exit 1; }; } ;;
31544 *) ac_config_targets="$ac_config_targets $1"
31545 ac_need_defaults=false ;;
31547 esac
31548 shift
31549 done
31551 ac_configure_extra_args=
31553 if $ac_cs_silent; then
31554 exec 6>/dev/null
31555 ac_configure_extra_args="$ac_configure_extra_args --silent"
31558 _ACEOF
31559 cat >>$CONFIG_STATUS <<_ACEOF
31560 if \$ac_cs_recheck; then
31561 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31562 CONFIG_SHELL=$SHELL
31563 export CONFIG_SHELL
31564 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31567 _ACEOF
31568 cat >>$CONFIG_STATUS <<\_ACEOF
31569 exec 5>>config.log
31571 echo
31572 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31573 ## Running $as_me. ##
31574 _ASBOX
31575 echo "$ac_log"
31576 } >&5
31578 _ACEOF
31579 cat >>$CONFIG_STATUS <<_ACEOF
31580 _ACEOF
31582 cat >>$CONFIG_STATUS <<\_ACEOF
31584 # Handling of arguments.
31585 for ac_config_target in $ac_config_targets
31587 case $ac_config_target in
31588 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
31589 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
31590 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
31591 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
31593 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31594 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31595 { (exit 1); exit 1; }; };;
31596 esac
31597 done
31600 # If the user did not use the arguments to specify the items to instantiate,
31601 # then the envvar interface is used. Set only those that are not.
31602 # We use the long form for the default assignment because of an extremely
31603 # bizarre bug on SunOS 4.1.3.
31604 if $ac_need_defaults; then
31605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31609 # Have a temporary directory for convenience. Make it in the build tree
31610 # simply because there is no reason against having it here, and in addition,
31611 # creating and moving files from /tmp can sometimes cause problems.
31612 # Hook for its removal unless debugging.
31613 # Note that there is a small window in which the directory will not be cleaned:
31614 # after its creation but before its name has been assigned to `$tmp'.
31615 $debug ||
31617 tmp=
31618 trap 'exit_status=$?
31619 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31621 trap '{ (exit 1); exit 1; }' 1 2 13 15
31623 # Create a (secure) tmp directory for tmp files.
31626 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31627 test -n "$tmp" && test -d "$tmp"
31628 } ||
31630 tmp=./conf$$-$RANDOM
31631 (umask 077 && mkdir "$tmp")
31632 } ||
31634 echo "$me: cannot create a temporary directory in ." >&2
31635 { (exit 1); exit 1; }
31639 # Set up the sed scripts for CONFIG_FILES section.
31642 # No need to generate the scripts if there are no CONFIG_FILES.
31643 # This happens for instance when ./config.status config.h
31644 if test -n "$CONFIG_FILES"; then
31646 _ACEOF
31650 ac_delim='%!_!# '
31651 for ac_last_try in false false false false false :; do
31652 cat >conf$$subs.sed <<_ACEOF
31653 SHELL!$SHELL$ac_delim
31654 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31655 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31656 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31657 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31658 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31659 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31660 exec_prefix!$exec_prefix$ac_delim
31661 prefix!$prefix$ac_delim
31662 program_transform_name!$program_transform_name$ac_delim
31663 bindir!$bindir$ac_delim
31664 sbindir!$sbindir$ac_delim
31665 libexecdir!$libexecdir$ac_delim
31666 datarootdir!$datarootdir$ac_delim
31667 datadir!$datadir$ac_delim
31668 sysconfdir!$sysconfdir$ac_delim
31669 sharedstatedir!$sharedstatedir$ac_delim
31670 localstatedir!$localstatedir$ac_delim
31671 includedir!$includedir$ac_delim
31672 oldincludedir!$oldincludedir$ac_delim
31673 docdir!$docdir$ac_delim
31674 infodir!$infodir$ac_delim
31675 htmldir!$htmldir$ac_delim
31676 dvidir!$dvidir$ac_delim
31677 pdfdir!$pdfdir$ac_delim
31678 psdir!$psdir$ac_delim
31679 libdir!$libdir$ac_delim
31680 localedir!$localedir$ac_delim
31681 mandir!$mandir$ac_delim
31682 DEFS!$DEFS$ac_delim
31683 ECHO_C!$ECHO_C$ac_delim
31684 ECHO_N!$ECHO_N$ac_delim
31685 ECHO_T!$ECHO_T$ac_delim
31686 LIBS!$LIBS$ac_delim
31687 build_alias!$build_alias$ac_delim
31688 host_alias!$host_alias$ac_delim
31689 target_alias!$target_alias$ac_delim
31690 build!$build$ac_delim
31691 build_cpu!$build_cpu$ac_delim
31692 build_vendor!$build_vendor$ac_delim
31693 build_os!$build_os$ac_delim
31694 host!$host$ac_delim
31695 host_cpu!$host_cpu$ac_delim
31696 host_vendor!$host_vendor$ac_delim
31697 host_os!$host_os$ac_delim
31698 CC!$CC$ac_delim
31699 CFLAGS!$CFLAGS$ac_delim
31700 LDFLAGS!$LDFLAGS$ac_delim
31701 CPPFLAGS!$CPPFLAGS$ac_delim
31702 ac_ct_CC!$ac_ct_CC$ac_delim
31703 EXEEXT!$EXEEXT$ac_delim
31704 OBJEXT!$OBJEXT$ac_delim
31705 CPP!$CPP$ac_delim
31706 GREP!$GREP$ac_delim
31707 EGREP!$EGREP$ac_delim
31708 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
31709 BUILD_CPU!$BUILD_CPU$ac_delim
31710 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
31711 BUILD_OS!$BUILD_OS$ac_delim
31712 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
31713 HOST_CPU!$HOST_CPU$ac_delim
31714 HOST_VENDOR!$HOST_VENDOR$ac_delim
31715 HOST_OS!$HOST_OS$ac_delim
31716 OSARCH!$OSARCH$ac_delim
31717 UNAME!$UNAME$ac_delim
31718 PBX_OSREV!$PBX_OSREV$ac_delim
31719 CXX!$CXX$ac_delim
31720 LD!$LD$ac_delim
31721 RANLIB!$RANLIB$ac_delim
31722 CXXFLAGS!$CXXFLAGS$ac_delim
31723 ac_ct_CXX!$ac_ct_CXX$ac_delim
31724 CXXCPP!$CXXCPP$ac_delim
31725 SED!$SED$ac_delim
31726 AWK!$AWK$ac_delim
31727 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31728 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31729 INSTALL_DATA!$INSTALL_DATA$ac_delim
31730 LN_S!$LN_S$ac_delim
31731 GNU_MAKE!$GNU_MAKE$ac_delim
31732 STRIP!$STRIP$ac_delim
31733 AR!$AR$ac_delim
31734 GNU_LD!$GNU_LD$ac_delim
31735 FIND!$FIND$ac_delim
31736 COMPRESS!$COMPRESS$ac_delim
31737 BASENAME!$BASENAME$ac_delim
31738 ID!$ID$ac_delim
31739 DIRNAME!$DIRNAME$ac_delim
31740 LN!$LN$ac_delim
31741 DOT!$DOT$ac_delim
31742 WGET!$WGET$ac_delim
31743 FETCH!$FETCH$ac_delim
31744 DOWNLOAD!$DOWNLOAD$ac_delim
31745 acx_pthread_config!$acx_pthread_config$ac_delim
31746 PTHREAD_CC!$PTHREAD_CC$ac_delim
31747 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
31748 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
31749 AST_DEVMODE!$AST_DEVMODE$ac_delim
31750 _ACEOF
31752 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31753 break
31754 elif $ac_last_try; then
31755 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31756 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31757 { (exit 1); exit 1; }; }
31758 else
31759 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31761 done
31763 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31764 if test -n "$ac_eof"; then
31765 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31766 ac_eof=`expr $ac_eof + 1`
31769 cat >>$CONFIG_STATUS <<_ACEOF
31770 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31771 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31772 _ACEOF
31773 sed '
31774 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31775 s/^/s,@/; s/!/@,|#_!!_#|/
31778 s/'"$ac_delim"'$/,g/; t
31779 s/$/\\/; p
31780 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31781 ' >>$CONFIG_STATUS <conf$$subs.sed
31782 rm -f conf$$subs.sed
31783 cat >>$CONFIG_STATUS <<_ACEOF
31784 CEOF$ac_eof
31785 _ACEOF
31788 ac_delim='%!_!# '
31789 for ac_last_try in false false false false false :; do
31790 cat >conf$$subs.sed <<_ACEOF
31791 ALSA_LIB!$ALSA_LIB$ac_delim
31792 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
31793 ALSA_DIR!$ALSA_DIR$ac_delim
31794 PBX_ALSA!$PBX_ALSA$ac_delim
31795 CURL_LIB!$CURL_LIB$ac_delim
31796 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
31797 CURL_DIR!$CURL_DIR$ac_delim
31798 PBX_CURL!$PBX_CURL$ac_delim
31799 CURSES_LIB!$CURSES_LIB$ac_delim
31800 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
31801 CURSES_DIR!$CURSES_DIR$ac_delim
31802 PBX_CURSES!$PBX_CURSES$ac_delim
31803 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
31804 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
31805 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
31806 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
31807 GSM_LIB!$GSM_LIB$ac_delim
31808 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
31809 GSM_DIR!$GSM_DIR$ac_delim
31810 PBX_GSM!$PBX_GSM$ac_delim
31811 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
31812 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
31813 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
31814 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
31815 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
31816 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
31817 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
31818 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
31819 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
31820 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
31821 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
31822 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
31823 KDE_LIB!$KDE_LIB$ac_delim
31824 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
31825 KDE_DIR!$KDE_DIR$ac_delim
31826 PBX_KDE!$PBX_KDE$ac_delim
31827 LTDL_LIB!$LTDL_LIB$ac_delim
31828 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
31829 LTDL_DIR!$LTDL_DIR$ac_delim
31830 PBX_LTDL!$PBX_LTDL$ac_delim
31831 MISDN_LIB!$MISDN_LIB$ac_delim
31832 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
31833 MISDN_DIR!$MISDN_DIR$ac_delim
31834 PBX_MISDN!$PBX_MISDN$ac_delim
31835 NBS_LIB!$NBS_LIB$ac_delim
31836 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
31837 NBS_DIR!$NBS_DIR$ac_delim
31838 PBX_NBS!$PBX_NBS$ac_delim
31839 NCURSES_LIB!$NCURSES_LIB$ac_delim
31840 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
31841 NCURSES_DIR!$NCURSES_DIR$ac_delim
31842 PBX_NCURSES!$PBX_NCURSES$ac_delim
31843 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
31844 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
31845 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
31846 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
31847 NEWT_LIB!$NEWT_LIB$ac_delim
31848 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
31849 NEWT_DIR!$NEWT_DIR$ac_delim
31850 PBX_NEWT!$PBX_NEWT$ac_delim
31851 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
31852 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
31853 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
31854 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
31855 OGG_LIB!$OGG_LIB$ac_delim
31856 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
31857 OGG_DIR!$OGG_DIR$ac_delim
31858 PBX_OGG!$PBX_OGG$ac_delim
31859 OSPTK_LIB!$OSPTK_LIB$ac_delim
31860 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
31861 OSPTK_DIR!$OSPTK_DIR$ac_delim
31862 PBX_OSPTK!$PBX_OSPTK$ac_delim
31863 OSS_LIB!$OSS_LIB$ac_delim
31864 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
31865 OSS_DIR!$OSS_DIR$ac_delim
31866 PBX_OSS!$PBX_OSS$ac_delim
31867 POPT_LIB!$POPT_LIB$ac_delim
31868 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
31869 POPT_DIR!$POPT_DIR$ac_delim
31870 PBX_POPT!$PBX_POPT$ac_delim
31871 PGSQL_LIB!$PGSQL_LIB$ac_delim
31872 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
31873 PGSQL_DIR!$PGSQL_DIR$ac_delim
31874 PBX_PGSQL!$PBX_PGSQL$ac_delim
31875 PRI_LIB!$PRI_LIB$ac_delim
31876 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
31877 PRI_DIR!$PRI_DIR$ac_delim
31878 PBX_PRI!$PBX_PRI$ac_delim
31879 PWLIB_LIB!$PWLIB_LIB$ac_delim
31880 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
31881 PWLIB_DIR!$PWLIB_DIR$ac_delim
31882 PBX_PWLIB!$PBX_PWLIB$ac_delim
31883 OPENH323_LIB!$OPENH323_LIB$ac_delim
31884 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
31885 OPENH323_DIR!$OPENH323_DIR$ac_delim
31886 PBX_OPENH323!$PBX_OPENH323$ac_delim
31887 QT_LIB!$QT_LIB$ac_delim
31888 _ACEOF
31890 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31891 break
31892 elif $ac_last_try; then
31893 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31894 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31895 { (exit 1); exit 1; }; }
31896 else
31897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31899 done
31901 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31902 if test -n "$ac_eof"; then
31903 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31904 ac_eof=`expr $ac_eof + 1`
31907 cat >>$CONFIG_STATUS <<_ACEOF
31908 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31910 _ACEOF
31911 sed '
31912 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31913 s/^/s,@/; s/!/@,|#_!!_#|/
31916 s/'"$ac_delim"'$/,g/; t
31917 s/$/\\/; p
31918 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31919 ' >>$CONFIG_STATUS <conf$$subs.sed
31920 rm -f conf$$subs.sed
31921 cat >>$CONFIG_STATUS <<_ACEOF
31922 CEOF$ac_eof
31923 _ACEOF
31926 ac_delim='%!_!# '
31927 for ac_last_try in false false false false false :; do
31928 cat >conf$$subs.sed <<_ACEOF
31929 QT_INCLUDE!$QT_INCLUDE$ac_delim
31930 QT_DIR!$QT_DIR$ac_delim
31931 PBX_QT!$PBX_QT$ac_delim
31932 RADIUS_LIB!$RADIUS_LIB$ac_delim
31933 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
31934 RADIUS_DIR!$RADIUS_DIR$ac_delim
31935 PBX_RADIUS!$PBX_RADIUS$ac_delim
31936 SPEEX_LIB!$SPEEX_LIB$ac_delim
31937 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
31938 SPEEX_DIR!$SPEEX_DIR$ac_delim
31939 PBX_SPEEX!$PBX_SPEEX$ac_delim
31940 SQLITE_LIB!$SQLITE_LIB$ac_delim
31941 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
31942 SQLITE_DIR!$SQLITE_DIR$ac_delim
31943 PBX_SQLITE!$PBX_SQLITE$ac_delim
31944 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
31945 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
31946 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
31947 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
31948 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
31949 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
31950 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
31951 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
31952 FREETDS_LIB!$FREETDS_LIB$ac_delim
31953 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
31954 FREETDS_DIR!$FREETDS_DIR$ac_delim
31955 PBX_FREETDS!$PBX_FREETDS$ac_delim
31956 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
31957 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
31958 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
31959 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
31960 TINFO_LIB!$TINFO_LIB$ac_delim
31961 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
31962 TINFO_DIR!$TINFO_DIR$ac_delim
31963 PBX_TINFO!$PBX_TINFO$ac_delim
31964 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
31965 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
31966 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
31967 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
31968 VORBIS_LIB!$VORBIS_LIB$ac_delim
31969 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
31970 VORBIS_DIR!$VORBIS_DIR$ac_delim
31971 PBX_VORBIS!$PBX_VORBIS$ac_delim
31972 VPB_LIB!$VPB_LIB$ac_delim
31973 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
31974 VPB_DIR!$VPB_DIR$ac_delim
31975 PBX_VPB!$PBX_VPB$ac_delim
31976 ZLIB_LIB!$ZLIB_LIB$ac_delim
31977 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
31978 ZLIB_DIR!$ZLIB_DIR$ac_delim
31979 PBX_ZLIB!$PBX_ZLIB$ac_delim
31980 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
31981 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
31982 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
31983 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
31984 ALLOCA!$ALLOCA$ac_delim
31985 LIBOBJS!$LIBOBJS$ac_delim
31986 POW_LIB!$POW_LIB$ac_delim
31987 GC_CFLAGS!$GC_CFLAGS$ac_delim
31988 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
31989 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
31990 KDEINIT!$KDEINIT$ac_delim
31991 KDEDIR!$KDEDIR$ac_delim
31992 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
31993 PG_CONFIG!$PG_CONFIG$ac_delim
31994 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
31995 PWLIBDIR!$PWLIBDIR$ac_delim
31996 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
31997 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
31998 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
31999 OPENH323DIR!$OPENH323DIR$ac_delim
32000 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
32001 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
32002 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
32003 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
32004 QTMOC!$QTMOC$ac_delim
32005 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
32006 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
32007 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
32008 PBX_H323!$PBX_H323$ac_delim
32009 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
32010 GTKCONFIG!$GTKCONFIG$ac_delim
32011 PBX_GTK!$PBX_GTK$ac_delim
32012 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
32013 GTK_LIB!$GTK_LIB$ac_delim
32014 PKGCONFIG!$PKGCONFIG$ac_delim
32015 PBX_GTK2!$PBX_GTK2$ac_delim
32016 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
32017 GTK2_LIB!$GTK2_LIB$ac_delim
32018 CURL_CONFIG!$CURL_CONFIG$ac_delim
32019 LTLIBOBJS!$LTLIBOBJS$ac_delim
32020 _ACEOF
32022 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
32023 break
32024 elif $ac_last_try; then
32025 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32026 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32027 { (exit 1); exit 1; }; }
32028 else
32029 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32031 done
32033 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32034 if test -n "$ac_eof"; then
32035 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32036 ac_eof=`expr $ac_eof + 1`
32039 cat >>$CONFIG_STATUS <<_ACEOF
32040 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
32041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32042 _ACEOF
32043 sed '
32044 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32045 s/^/s,@/; s/!/@,|#_!!_#|/
32048 s/'"$ac_delim"'$/,g/; t
32049 s/$/\\/; p
32050 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32051 ' >>$CONFIG_STATUS <conf$$subs.sed
32052 rm -f conf$$subs.sed
32053 cat >>$CONFIG_STATUS <<_ACEOF
32054 :end
32055 s/|#_!!_#|//g
32056 CEOF$ac_eof
32057 _ACEOF
32060 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32061 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32062 # trailing colons and then remove the whole line if VPATH becomes empty
32063 # (actually we leave an empty line to preserve line numbers).
32064 if test "x$srcdir" = x.; then
32065 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32066 s/:*\$(srcdir):*/:/
32067 s/:*\${srcdir}:*/:/
32068 s/:*@srcdir@:*/:/
32069 s/^\([^=]*=[ ]*\):*/\1/
32070 s/:*$//
32071 s/^[^=]*=[ ]*$//
32075 cat >>$CONFIG_STATUS <<\_ACEOF
32076 fi # test -n "$CONFIG_FILES"
32079 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
32081 case $ac_tag in
32082 :[FHLC]) ac_mode=$ac_tag; continue;;
32083 esac
32084 case $ac_mode$ac_tag in
32085 :[FHL]*:*);;
32086 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32087 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32088 { (exit 1); exit 1; }; };;
32089 :[FH]-) ac_tag=-:-;;
32090 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32091 esac
32092 ac_save_IFS=$IFS
32093 IFS=:
32094 set x $ac_tag
32095 IFS=$ac_save_IFS
32096 shift
32097 ac_file=$1
32098 shift
32100 case $ac_mode in
32101 :L) ac_source=$1;;
32102 :[FH])
32103 ac_file_inputs=
32104 for ac_f
32106 case $ac_f in
32107 -) ac_f="$tmp/stdin";;
32108 *) # Look for the file first in the build tree, then in the source tree
32109 # (if the path is not absolute). The absolute path cannot be DOS-style,
32110 # because $ac_f cannot contain `:'.
32111 test -f "$ac_f" ||
32112 case $ac_f in
32113 [\\/$]*) false;;
32114 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32115 esac ||
32116 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32117 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32118 { (exit 1); exit 1; }; };;
32119 esac
32120 ac_file_inputs="$ac_file_inputs $ac_f"
32121 done
32123 # Let's still pretend it is `configure' which instantiates (i.e., don't
32124 # use $as_me), people would be surprised to read:
32125 # /* config.h. Generated by config.status. */
32126 configure_input="Generated from "`IFS=:
32127 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
32128 if test x"$ac_file" != x-; then
32129 configure_input="$ac_file. $configure_input"
32130 { echo "$as_me:$LINENO: creating $ac_file" >&5
32131 echo "$as_me: creating $ac_file" >&6;}
32134 case $ac_tag in
32135 *:-:* | *:-) cat >"$tmp/stdin";;
32136 esac
32138 esac
32140 ac_dir=`$as_dirname -- "$ac_file" ||
32141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32142 X"$ac_file" : 'X\(//\)[^/]' \| \
32143 X"$ac_file" : 'X\(//\)$' \| \
32144 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32145 echo X"$ac_file" |
32146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32147 s//\1/
32150 /^X\(\/\/\)[^/].*/{
32151 s//\1/
32154 /^X\(\/\/\)$/{
32155 s//\1/
32158 /^X\(\/\).*/{
32159 s//\1/
32162 s/.*/./; q'`
32163 { as_dir="$ac_dir"
32164 case $as_dir in #(
32165 -*) as_dir=./$as_dir;;
32166 esac
32167 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32168 as_dirs=
32169 while :; do
32170 case $as_dir in #(
32171 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32172 *) as_qdir=$as_dir;;
32173 esac
32174 as_dirs="'$as_qdir' $as_dirs"
32175 as_dir=`$as_dirname -- "$as_dir" ||
32176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32177 X"$as_dir" : 'X\(//\)[^/]' \| \
32178 X"$as_dir" : 'X\(//\)$' \| \
32179 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32180 echo X"$as_dir" |
32181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32182 s//\1/
32185 /^X\(\/\/\)[^/].*/{
32186 s//\1/
32189 /^X\(\/\/\)$/{
32190 s//\1/
32193 /^X\(\/\).*/{
32194 s//\1/
32197 s/.*/./; q'`
32198 test -d "$as_dir" && break
32199 done
32200 test -z "$as_dirs" || eval "mkdir $as_dirs"
32201 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32202 echo "$as_me: error: cannot create directory $as_dir" >&2;}
32203 { (exit 1); exit 1; }; }; }
32204 ac_builddir=.
32206 case "$ac_dir" in
32207 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32209 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32210 # A ".." for each directory in $ac_dir_suffix.
32211 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
32212 case $ac_top_builddir_sub in
32213 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32214 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32215 esac ;;
32216 esac
32217 ac_abs_top_builddir=$ac_pwd
32218 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32219 # for backward compatibility:
32220 ac_top_builddir=$ac_top_build_prefix
32222 case $srcdir in
32223 .) # We are building in place.
32224 ac_srcdir=.
32225 ac_top_srcdir=$ac_top_builddir_sub
32226 ac_abs_top_srcdir=$ac_pwd ;;
32227 [\\/]* | ?:[\\/]* ) # Absolute name.
32228 ac_srcdir=$srcdir$ac_dir_suffix;
32229 ac_top_srcdir=$srcdir
32230 ac_abs_top_srcdir=$srcdir ;;
32231 *) # Relative name.
32232 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32233 ac_top_srcdir=$ac_top_build_prefix$srcdir
32234 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32235 esac
32236 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32239 case $ac_mode in
32242 # CONFIG_FILE
32245 case $INSTALL in
32246 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32247 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32248 esac
32249 _ACEOF
32251 cat >>$CONFIG_STATUS <<\_ACEOF
32252 # If the template does not know about datarootdir, expand it.
32253 # FIXME: This hack should be removed a few years after 2.60.
32254 ac_datarootdir_hack=; ac_datarootdir_seen=
32256 case `sed -n '/datarootdir/ {
32260 /@datadir@/p
32261 /@docdir@/p
32262 /@infodir@/p
32263 /@localedir@/p
32264 /@mandir@/p
32265 ' $ac_file_inputs` in
32266 *datarootdir*) ac_datarootdir_seen=yes;;
32267 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32268 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32269 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32270 _ACEOF
32271 cat >>$CONFIG_STATUS <<_ACEOF
32272 ac_datarootdir_hack='
32273 s&@datadir@&$datadir&g
32274 s&@docdir@&$docdir&g
32275 s&@infodir@&$infodir&g
32276 s&@localedir@&$localedir&g
32277 s&@mandir@&$mandir&g
32278 s&\\\${datarootdir}&$datarootdir&g' ;;
32279 esac
32280 _ACEOF
32282 # Neutralize VPATH when `$srcdir' = `.'.
32283 # Shell code in configure.ac might set extrasub.
32284 # FIXME: do we really want to maintain this feature?
32285 cat >>$CONFIG_STATUS <<_ACEOF
32286 sed "$ac_vpsub
32287 $extrasub
32288 _ACEOF
32289 cat >>$CONFIG_STATUS <<\_ACEOF
32291 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32292 s&@configure_input@&$configure_input&;t t
32293 s&@top_builddir@&$ac_top_builddir_sub&;t t
32294 s&@srcdir@&$ac_srcdir&;t t
32295 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32296 s&@top_srcdir@&$ac_top_srcdir&;t t
32297 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32298 s&@builddir@&$ac_builddir&;t t
32299 s&@abs_builddir@&$ac_abs_builddir&;t t
32300 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32301 s&@INSTALL@&$ac_INSTALL&;t t
32302 $ac_datarootdir_hack
32303 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
32305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32306 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32308 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32309 which seems to be undefined. Please make sure it is defined." >&5
32310 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32311 which seems to be undefined. Please make sure it is defined." >&2;}
32313 rm -f "$tmp/stdin"
32314 case $ac_file in
32315 -) cat "$tmp/out"; rm -f "$tmp/out";;
32316 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
32317 esac
32321 # CONFIG_HEADER
32323 _ACEOF
32325 # Transform confdefs.h into a sed script `conftest.defines', that
32326 # substitutes the proper values into config.h.in to produce config.h.
32327 rm -f conftest.defines conftest.tail
32328 # First, append a space to every undef/define line, to ease matching.
32329 echo 's/$/ /' >conftest.defines
32330 # Then, protect against being on the right side of a sed subst, or in
32331 # an unquoted here document, in config.status. If some macros were
32332 # called several times there might be several #defines for the same
32333 # symbol, which is useless. But do not sort them, since the last
32334 # AC_DEFINE must be honored.
32335 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32336 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
32337 # NAME is the cpp macro being defined, VALUE is the value it is being given.
32338 # PARAMS is the parameter list in the macro definition--in most cases, it's
32339 # just an empty string.
32340 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
32341 ac_dB='\\)[ (].*,\\1define\\2'
32342 ac_dC=' '
32343 ac_dD=' ,'
32345 uniq confdefs.h |
32346 sed -n '
32347 t rset
32348 :rset
32349 s/^[ ]*#[ ]*define[ ][ ]*//
32350 t ok
32353 s/[\\&,]/\\&/g
32354 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
32355 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
32356 ' >>conftest.defines
32358 # Remove the space that was appended to ease matching.
32359 # Then replace #undef with comments. This is necessary, for
32360 # example, in the case of _POSIX_SOURCE, which is predefined and required
32361 # on some systems where configure will not decide to define it.
32362 # (The regexp can be short, since the line contains either #define or #undef.)
32363 echo 's/ $//
32364 s,^[ #]*u.*,/* & */,' >>conftest.defines
32366 # Break up conftest.defines:
32367 ac_max_sed_lines=50
32369 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
32370 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
32371 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
32372 # et cetera.
32373 ac_in='$ac_file_inputs'
32374 ac_out='"$tmp/out1"'
32375 ac_nxt='"$tmp/out2"'
32377 while :
32379 # Write a here document:
32380 cat >>$CONFIG_STATUS <<_ACEOF
32381 # First, check the format of the line:
32382 cat >"\$tmp/defines.sed" <<\\CEOF
32383 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
32384 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
32386 :def
32387 _ACEOF
32388 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
32389 echo 'CEOF
32390 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
32391 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
32392 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
32393 grep . conftest.tail >/dev/null || break
32394 rm -f conftest.defines
32395 mv conftest.tail conftest.defines
32396 done
32397 rm -f conftest.defines conftest.tail
32399 echo "ac_result=$ac_in" >>$CONFIG_STATUS
32400 cat >>$CONFIG_STATUS <<\_ACEOF
32401 if test x"$ac_file" != x-; then
32402 echo "/* $configure_input */" >"$tmp/config.h"
32403 cat "$ac_result" >>"$tmp/config.h"
32404 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
32405 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32406 echo "$as_me: $ac_file is unchanged" >&6;}
32407 else
32408 rm -f $ac_file
32409 mv "$tmp/config.h" $ac_file
32411 else
32412 echo "/* $configure_input */"
32413 cat "$ac_result"
32415 rm -f "$tmp/out12"
32419 esac
32421 done # for ac_tag
32424 { (exit 0); exit 0; }
32425 _ACEOF
32426 chmod +x $CONFIG_STATUS
32427 ac_clean_files=$ac_clean_files_save
32430 # configure is writing to config.log, and then calls config.status.
32431 # config.status does its own redirection, appending to config.log.
32432 # Unfortunately, on DOS this fails, as config.log is still kept open
32433 # by configure, so config.status won't be able to write to it; its
32434 # output is simply discarded. So we exec the FD to /dev/null,
32435 # effectively closing config.log, so it can be properly (re)opened and
32436 # appended to by config.status. When coming back to configure, we
32437 # need to make the FD available again.
32438 if test "$no_create" != yes; then
32439 ac_cs_success=:
32440 ac_config_status_args=
32441 test "$silent" = yes &&
32442 ac_config_status_args="$ac_config_status_args --quiet"
32443 exec 5>/dev/null
32444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32445 exec 5>>config.log
32446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32447 # would make configure fail if this is the last instruction.
32448 $ac_cs_success || { (exit 1); exit 1; }
32452 if test "x${silent}" != "xyes" ; then
32453 echo
32454 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
32455 echo " .\$7\$7.. .7\$\$7:. "
32456 echo " .\$\$:. ,\$7.7 "
32457 echo " .\$7. 7\$\$\$\$ .\$\$77 "
32458 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
32459 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
32460 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
32461 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
32462 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
32463 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
32464 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
32465 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
32466 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
32467 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
32468 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
32469 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
32470 echo " \$\$\$\$\$ \$\$\$ "
32471 echo " \$\$\$\$7. \$\$ (TM) "
32472 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
32473 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
32474 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
32475 echo
32478 { echo "$as_me:$LINENO: Package configured for: " >&5
32479 echo "$as_me: Package configured for: " >&6;}
32480 { echo "$as_me:$LINENO: OS type : $host_os" >&5
32481 echo "$as_me: OS type : $host_os" >&6;}
32482 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
32483 echo "$as_me: Host CPU : $host_cpu" >&6;}
32484 if test "${cross_compiling}" = "yes"; then
32485 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
32486 echo "$as_me: Cross Compilation = YES" >&6;}