create the IAX2 processing threads as background threads so they will use smaller...
[asterisk-bristuff.git] / configure
blob24de57fd6a0101232c6420a52779f6dc3da88943
1 #! /bin/sh
2 # From configure.ac Revision: 49022 .
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
692 CXXFLAGS
693 ac_ct_CXX
694 CXXCPP
697 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 LN_S
701 GNU_MAKE
702 GNU_LD
703 FIND
704 COMPRESS
705 BASENAME
707 DIRNAME
710 STRIP
711 WGET
712 FETCH
713 DOWNLOAD
714 AST_DEVMODE
715 ALSA_LIB
716 ALSA_INCLUDE
717 PBX_ALSA
718 CURL_LIB
719 CURL_INCLUDE
720 PBX_CURL
721 CURSES_LIB
722 CURSES_INCLUDE
723 PBX_CURSES
724 GNUTLS_LIB
725 GNUTLS_INCLUDE
726 PBX_GNUTLS
727 GSM_LIB
728 GSM_INCLUDE
729 PBX_GSM
730 IKSEMEL_LIB
731 IKSEMEL_INCLUDE
732 PBX_IKSEMEL
733 IMAP_TK_LIB
734 IMAP_TK_INCLUDE
735 PBX_IMAP_TK
736 ISDNNET_LIB
737 ISDNNET_INCLUDE
738 PBX_ISDNNET
739 KDE_LIB
740 KDE_INCLUDE
741 PBX_KDE
742 MISDN_LIB
743 MISDN_INCLUDE
744 PBX_MISDN
745 NBS_LIB
746 NBS_INCLUDE
747 PBX_NBS
748 NCURSES_LIB
749 NCURSES_INCLUDE
750 PBX_NCURSES
751 NETSNMP_LIB
752 NETSNMP_INCLUDE
753 PBX_NETSNMP
754 NEWT_LIB
755 NEWT_INCLUDE
756 PBX_NEWT
757 UNIXODBC_LIB
758 UNIXODBC_INCLUDE
759 PBX_UNIXODBC
760 OGG_LIB
761 OGG_INCLUDE
762 PBX_OGG
763 OSPTK_LIB
764 OSPTK_INCLUDE
765 PBX_OSPTK
766 OSS_LIB
767 OSS_INCLUDE
768 PBX_OSS
769 POPT_LIB
770 POPT_INCLUDE
771 PBX_POPT
772 PGSQL_LIB
773 PGSQL_INCLUDE
774 PBX_PGSQL
775 PRI_LIB
776 PRI_INCLUDE
777 PBX_PRI
778 PWLIB_LIB
779 PWLIB_INCLUDE
780 PBX_PWLIB
781 OPENH323_LIB
782 OPENH323_INCLUDE
783 PBX_OPENH323
784 QT_LIB
785 QT_INCLUDE
786 PBX_QT
787 RADIUS_LIB
788 RADIUS_INCLUDE
789 PBX_RADIUS
790 SPEEX_LIB
791 SPEEX_INCLUDE
792 PBX_SPEEX
793 SQLITE_LIB
794 SQLITE_INCLUDE
795 PBX_SQLITE
796 SUPPSERV_LIB
797 SUPPSERV_INCLUDE
798 PBX_SUPPSERV
799 OPENSSL_LIB
800 OPENSSL_INCLUDE
801 PBX_OPENSSL
802 FREETDS_LIB
803 FREETDS_INCLUDE
804 PBX_FREETDS
805 TERMCAP_LIB
806 TERMCAP_INCLUDE
807 PBX_TERMCAP
808 TINFO_LIB
809 TINFO_INCLUDE
810 PBX_TINFO
811 TONEZONE_LIB
812 TONEZONE_INCLUDE
813 PBX_TONEZONE
814 VORBIS_LIB
815 VORBIS_INCLUDE
816 PBX_VORBIS
817 VPB_LIB
818 VPB_INCLUDE
819 PBX_VPB
820 ZLIB_LIB
821 ZLIB_INCLUDE
822 PBX_ZLIB
823 ZAPTEL_LIB
824 ZAPTEL_INCLUDE
825 PBX_ZAPTEL
826 ALLOCA
827 LIBOBJS
828 POW_LIB
829 GC_CFLAGS
830 GC_LDFLAGS
831 GSM_INTERNAL
832 KDEINIT
833 KDEDIR
834 NETSNMP_CONFIG
835 PG_CONFIG
836 PTLIB_CONFIG
837 PWLIBDIR
838 PWLIB_INCDIR
839 PWLIB_LIBDIR
840 PWLIB_PLATFORM
841 OPENH323DIR
842 OPENH323_INCDIR
843 OPENH323_LIBDIR
844 OPENH323_SUFFIX
845 OPENH323_BUILD
846 QTMOC
847 PBX_ZAPTEL_VLDTMF
848 PBX_ZAPTEL_TRANSCODE
849 EDITLINE_LIB
850 PBX_H323
851 PBX_IXJUSER
852 GTKCONFIG
853 PBX_GTK
854 GTK_INCLUDE
855 GTK_LIB
856 CURL
857 LTLIBOBJS'
858 ac_subst_files=''
859 ac_precious_vars='build_alias
860 host_alias
861 target_alias
863 CFLAGS
864 LDFLAGS
865 LIBS
866 CPPFLAGS
869 CXXFLAGS
871 CXXCPP'
874 # Initialize some variables set by options.
875 ac_init_help=
876 ac_init_version=false
877 # The variables have the same names as the options, with
878 # dashes changed to underlines.
879 cache_file=/dev/null
880 exec_prefix=NONE
881 no_create=
882 no_recursion=
883 prefix=NONE
884 program_prefix=NONE
885 program_suffix=NONE
886 program_transform_name=s,x,x,
887 silent=
888 site=
889 srcdir=
890 verbose=
891 x_includes=NONE
892 x_libraries=NONE
894 # Installation directory options.
895 # These are left unexpanded so users can "make install exec_prefix=/foo"
896 # and all the variables that are supposed to be based on exec_prefix
897 # by default will actually change.
898 # Use braces instead of parens because sh, perl, etc. also accept them.
899 # (The list follows the same order as the GNU Coding Standards.)
900 bindir='${exec_prefix}/bin'
901 sbindir='${exec_prefix}/sbin'
902 libexecdir='${exec_prefix}/libexec'
903 datarootdir='${prefix}/share'
904 datadir='${datarootdir}'
905 sysconfdir='${prefix}/etc'
906 sharedstatedir='${prefix}/com'
907 localstatedir='${prefix}/var'
908 includedir='${prefix}/include'
909 oldincludedir='/usr/include'
910 docdir='${datarootdir}/doc/${PACKAGE}'
911 infodir='${datarootdir}/info'
912 htmldir='${docdir}'
913 dvidir='${docdir}'
914 pdfdir='${docdir}'
915 psdir='${docdir}'
916 libdir='${exec_prefix}/lib'
917 localedir='${datarootdir}/locale'
918 mandir='${datarootdir}/man'
920 ac_prev=
921 ac_dashdash=
922 for ac_option
924 # If the previous option needs an argument, assign it.
925 if test -n "$ac_prev"; then
926 eval $ac_prev=\$ac_option
927 ac_prev=
928 continue
931 case $ac_option in
932 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 *) ac_optarg=yes ;;
934 esac
936 # Accept the important Cygnus configure options, so we can diagnose typos.
938 case $ac_dashdash$ac_option in
940 ac_dashdash=yes ;;
942 -bindir | --bindir | --bindi | --bind | --bin | --bi)
943 ac_prev=bindir ;;
944 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
945 bindir=$ac_optarg ;;
947 -build | --build | --buil | --bui | --bu)
948 ac_prev=build_alias ;;
949 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
950 build_alias=$ac_optarg ;;
952 -cache-file | --cache-file | --cache-fil | --cache-fi \
953 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
954 ac_prev=cache_file ;;
955 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
956 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
957 cache_file=$ac_optarg ;;
959 --config-cache | -C)
960 cache_file=config.cache ;;
962 -datadir | --datadir | --datadi | --datad)
963 ac_prev=datadir ;;
964 -datadir=* | --datadir=* | --datadi=* | --datad=*)
965 datadir=$ac_optarg ;;
967 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
968 | --dataroo | --dataro | --datar)
969 ac_prev=datarootdir ;;
970 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
971 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
972 datarootdir=$ac_optarg ;;
974 -disable-* | --disable-*)
975 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
978 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
979 { (exit 1); exit 1; }; }
980 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
981 eval enable_$ac_feature=no ;;
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
993 -enable-* | --enable-*)
994 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
997 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
998 { (exit 1); exit 1; }; }
999 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1000 eval enable_$ac_feature=\$ac_optarg ;;
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004 | --exec | --exe | --ex)
1005 ac_prev=exec_prefix ;;
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008 | --exec=* | --exe=* | --ex=*)
1009 exec_prefix=$ac_optarg ;;
1011 -gas | --gas | --ga | --g)
1012 # Obsolete; use --with-gas.
1013 with_gas=yes ;;
1015 -help | --help | --hel | --he | -h)
1016 ac_init_help=long ;;
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018 ac_init_help=recursive ;;
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020 ac_init_help=short ;;
1022 -host | --host | --hos | --ho)
1023 ac_prev=host_alias ;;
1024 -host=* | --host=* | --hos=* | --ho=*)
1025 host_alias=$ac_optarg ;;
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 ac_prev=htmldir ;;
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 | --ht=*)
1031 htmldir=$ac_optarg ;;
1033 -includedir | --includedir | --includedi | --included | --include \
1034 | --includ | --inclu | --incl | --inc)
1035 ac_prev=includedir ;;
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
1038 includedir=$ac_optarg ;;
1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 ac_prev=infodir ;;
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043 infodir=$ac_optarg ;;
1045 -libdir | --libdir | --libdi | --libd)
1046 ac_prev=libdir ;;
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048 libdir=$ac_optarg ;;
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051 | --libexe | --libex | --libe)
1052 ac_prev=libexecdir ;;
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054 | --libexe=* | --libex=* | --libe=*)
1055 libexecdir=$ac_optarg ;;
1057 -localedir | --localedir | --localedi | --localed | --locale)
1058 ac_prev=localedir ;;
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060 localedir=$ac_optarg ;;
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
1063 | --localstate | --localstat | --localsta | --localst | --locals)
1064 ac_prev=localstatedir ;;
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067 localstatedir=$ac_optarg ;;
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 ac_prev=mandir ;;
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072 mandir=$ac_optarg ;;
1074 -nfp | --nfp | --nf)
1075 # Obsolete; use --without-fp.
1076 with_fp=no ;;
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079 | --no-cr | --no-c | -n)
1080 no_create=yes ;;
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 no_recursion=yes ;;
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088 | --oldin | --oldi | --old | --ol | --o)
1089 ac_prev=oldincludedir ;;
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093 oldincludedir=$ac_optarg ;;
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 ac_prev=prefix ;;
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098 prefix=$ac_optarg ;;
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101 | --program-pre | --program-pr | --program-p)
1102 ac_prev=program_prefix ;;
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105 program_prefix=$ac_optarg ;;
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108 | --program-suf | --program-su | --program-s)
1109 ac_prev=program_suffix ;;
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112 program_suffix=$ac_optarg ;;
1114 -program-transform-name | --program-transform-name \
1115 | --program-transform-nam | --program-transform-na \
1116 | --program-transform-n | --program-transform- \
1117 | --program-transform | --program-transfor \
1118 | --program-transfo | --program-transf \
1119 | --program-trans | --program-tran \
1120 | --progr-tra | --program-tr | --program-t)
1121 ac_prev=program_transform_name ;;
1122 -program-transform-name=* | --program-transform-name=* \
1123 | --program-transform-nam=* | --program-transform-na=* \
1124 | --program-transform-n=* | --program-transform-=* \
1125 | --program-transform=* | --program-transfor=* \
1126 | --program-transfo=* | --program-transf=* \
1127 | --program-trans=* | --program-tran=* \
1128 | --progr-tra=* | --program-tr=* | --program-t=*)
1129 program_transform_name=$ac_optarg ;;
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 ac_prev=pdfdir ;;
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134 pdfdir=$ac_optarg ;;
1136 -psdir | --psdir | --psdi | --psd | --ps)
1137 ac_prev=psdir ;;
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 psdir=$ac_optarg ;;
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142 | -silent | --silent | --silen | --sile | --sil)
1143 silent=yes ;;
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 ac_prev=sbindir ;;
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 | --sbi=* | --sb=*)
1149 sbindir=$ac_optarg ;;
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1154 | --sha | --sh)
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 | --sha=* | --sh=*)
1160 sharedstatedir=$ac_optarg ;;
1162 -site | --site | --sit)
1163 ac_prev=site ;;
1164 -site=* | --site=* | --sit=*)
1165 site=$ac_optarg ;;
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 ac_prev=srcdir ;;
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 verbose=yes ;;
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1190 -with-* | --with-*)
1191 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 { echo "$as_me: error: invalid package name: $ac_package" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1197 eval with_$ac_package=\$ac_optarg ;;
1199 -without-* | --without-*)
1200 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 { echo "$as_me: error: invalid package name: $ac_package" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1206 eval with_$ac_package=no ;;
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1226 -*) { echo "$as_me: error: unrecognized option: $ac_option
1227 Try \`$0 --help' for more information." >&2
1228 { (exit 1); exit 1; }; }
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1236 { (exit 1); exit 1; }; }
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248 esac
1249 done
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 { echo "$as_me: error: missing argument to $ac_option" >&2
1254 { (exit 1); exit 1; }; }
1257 # Be sure to have absolute directory names.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1269 { (exit 1); exit 1; }; }
1270 done
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293 test "$silent" = yes && exec 6>/dev/null
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 { echo "$as_me: error: Working directory cannot be determined" >&2
1300 { (exit 1); exit 1; }; }
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 { echo "$as_me: error: pwd does not report name of working directory" >&2
1303 { (exit 1); exit 1; }; }
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$0" ||
1311 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$0" : 'X\(//\)[^/]' \| \
1313 X"$0" : 'X\(//\)$' \| \
1314 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1315 echo X"$0" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1324 /^X\(\/\/\)$/{
1325 s//\1/
1328 /^X\(\/\).*/{
1329 s//\1/
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1337 else
1338 ac_srcdir_defaulted=no
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1343 { (exit 1); exit 1; }; }
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1348 { (exit 1); exit 1; }; }
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374 \`configure' configures this package to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1383 Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1429 cat <<\_ACEOF
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1437 if test -n "$ac_init_help"; then
1439 cat <<\_ACEOF
1441 Optional Features:
1442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1444 --enable-dev-mode Turn on developer mode
1445 --disable-largefile omit support for large files
1447 Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1451 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1452 --with-curl=PATH use cURL files in PATH
1453 --with-curses=PATH use curses files in PATH
1454 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1455 PATH
1456 --with-gsm=PATH use GSM files in PATH , or 'internal'
1457 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1458 --with-imap=PATH use UW IMAP Toolkit files in PATH
1459 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1460 --with-kde=PATH use KDE files in PATH
1461 --with-misdn=PATH use mISDN User Library files in PATH
1462 --with-nbs=PATH use Network Broadcast Sound files in PATH
1463 --with-ncurses=PATH use ncurses files in PATH
1464 --with-netsnmp=PATH use Net-SNMP files in PATH
1465 --with-newt=PATH use newt files in PATH
1466 --with-odbc=PATH use unixODBC files in PATH
1467 --with-ogg=PATH use OGG files in PATH
1468 --with-osptk=PATH use OSP Toolkit files in PATH
1469 --with-oss=PATH use Open Sound System files in PATH
1470 --with-popt=PATH use popt files in PATH
1471 --with-postgres=PATH use PostgreSQL files in PATH
1472 --with-pri=PATH use ISDN PRI files in PATH
1473 --with-pwlib=PATH use PWlib files in PATH
1474 --with-h323=PATH use OpenH323 files in PATH
1475 --with-qt=PATH use Qt files in PATH
1476 --with-radius=PATH use Radius Client files in PATH
1477 --with-speex=PATH use Speex files in PATH
1478 --with-sqlite=PATH use SQLite files in PATH
1479 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1480 --with-ssl=PATH use OpenSSL files in PATH
1481 --with-tds=PATH use FreeTDS files in PATH
1482 --with-termcap=PATH use Termcap files in PATH
1483 --with-tinfo=PATH use Term Info files in PATH
1484 --with-tonezone=PATH use tonezone files in PATH
1485 --with-vorbis=PATH use Vorbis files in PATH
1486 --with-vpb=PATH use Voicetronix API files in PATH
1487 --with-z=PATH use zlib files in PATH
1488 --with-zaptel=PATH use Zaptel files in PATH
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 CPP C preprocessor
1499 CXX C++ compiler command
1500 CXXFLAGS C++ compiler flags
1501 CXXCPP C++ preprocessor
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1506 _ACEOF
1507 ac_status=$?
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" || continue
1514 ac_builddir=.
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1532 case $srcdir in
1533 .) # We are building in place.
1534 ac_srcdir=.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1541 *) # Relative name.
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1556 else
1557 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 fi || ac_status=$?
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1560 done
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565 cat <<\_ACEOF
1566 configure
1567 generated by GNU Autoconf 2.61
1569 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1570 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1574 "Asterisk"
1575 _ACEOF
1576 exit
1578 cat >config.log <<_ACEOF
1579 This file contains any messages produced by compilers while
1580 running configure, to aid debugging if configure makes a mistake.
1582 It was created by $as_me, which was
1583 generated by GNU Autoconf 2.61. Invocation command line was
1585 $ $0 $@
1587 _ACEOF
1588 exec 5>>config.log
1590 cat <<_ASUNAME
1591 ## --------- ##
1592 ## Platform. ##
1593 ## --------- ##
1595 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1601 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1604 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1605 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1606 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1607 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1608 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1609 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1610 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1612 _ASUNAME
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 echo "PATH: $as_dir"
1620 done
1621 IFS=$as_save_IFS
1623 } >&5
1625 cat >&5 <<_ACEOF
1628 ## ----------- ##
1629 ## Core tests. ##
1630 ## ----------- ##
1632 _ACEOF
1635 # Keep a trace of the command line.
1636 # Strip out --no-create and --no-recursion so they do not pile up.
1637 # Strip out --silent because we don't want to record it for future runs.
1638 # Also quote any args containing shell meta-characters.
1639 # Make two passes to allow for proper duplicate-argument suppression.
1640 ac_configure_args=
1641 ac_configure_args0=
1642 ac_configure_args1=
1643 ac_must_keep_next=false
1644 for ac_pass in 1 2
1646 for ac_arg
1648 case $ac_arg in
1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651 | -silent | --silent | --silen | --sile | --sil)
1652 continue ;;
1653 *\'*)
1654 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655 esac
1656 case $ac_pass in
1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660 if test $ac_must_keep_next = true; then
1661 ac_must_keep_next=false # Got value, back to normal.
1662 else
1663 case $ac_arg in
1664 *=* | --config-cache | -C | -disable-* | --disable-* \
1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667 | -with-* | --with-* | -without-* | --without-* | --x)
1668 case "$ac_configure_args0 " in
1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 esac
1672 -* ) ac_must_keep_next=true ;;
1673 esac
1675 ac_configure_args="$ac_configure_args '$ac_arg'"
1677 esac
1678 done
1679 done
1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683 # When interrupted or exit'd, cleanup temporary files, and complete
1684 # config.log. We remove comments because anyway the quotes in there
1685 # would cause problems or look ugly.
1686 # WARNING: Use '\'' to represent an apostrophe within the trap.
1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688 trap 'exit_status=$?
1689 # Save into config.log some information that might help in debugging.
1691 echo
1693 cat <<\_ASBOX
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1697 _ASBOX
1698 echo
1699 # The following way of writing the cache mishandles newlines in values,
1701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702 eval ac_val=\$$ac_var
1703 case $ac_val in #(
1704 *${as_nl}*)
1705 case $ac_var in #(
1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708 esac
1709 case $ac_var in #(
1710 _ | IFS | as_nl) ;; #(
1711 *) $as_unset $ac_var ;;
1712 esac ;;
1713 esac
1714 done
1715 (set) 2>&1 |
1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
1718 sed -n \
1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 ;; #(
1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725 esac |
1726 sort
1728 echo
1730 cat <<\_ASBOX
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1734 _ASBOX
1735 echo
1736 for ac_var in $ac_subst_vars
1738 eval ac_val=\$$ac_var
1739 case $ac_val in
1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741 esac
1742 echo "$ac_var='\''$ac_val'\''"
1743 done | sort
1744 echo
1746 if test -n "$ac_subst_files"; then
1747 cat <<\_ASBOX
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1751 _ASBOX
1752 echo
1753 for ac_var in $ac_subst_files
1755 eval ac_val=\$$ac_var
1756 case $ac_val in
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758 esac
1759 echo "$ac_var='\''$ac_val'\''"
1760 done | sort
1761 echo
1764 if test -s confdefs.h; then
1765 cat <<\_ASBOX
1766 ## ----------- ##
1767 ## confdefs.h. ##
1768 ## ----------- ##
1769 _ASBOX
1770 echo
1771 cat confdefs.h
1772 echo
1774 test "$ac_signal" != 0 &&
1775 echo "$as_me: caught signal $ac_signal"
1776 echo "$as_me: exit $exit_status"
1777 } >&5
1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780 exit $exit_status
1782 for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784 done
1785 ac_signal=0
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1790 # Predefined preprocessor variables.
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 _ACEOF
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 _ACEOF
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 _ACEOF
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 _ACEOF
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 _ACEOF
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer explicitly selected file to automatically selected ones.
1819 if test -n "$CONFIG_SITE"; then
1820 set x "$CONFIG_SITE"
1821 elif test "x$prefix" != xNONE; then
1822 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1823 else
1824 set x "$ac_default_prefix/share/config.site" \
1825 "$ac_default_prefix/etc/config.site"
1827 shift
1828 for ac_site_file
1830 if test -r "$ac_site_file"; then
1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832 echo "$as_me: loading site script $ac_site_file" >&6;}
1833 sed 's/^/| /' "$ac_site_file" >&5
1834 . "$ac_site_file"
1836 done
1838 if test -r "$cache_file"; then
1839 # Some versions of bash will fail to source /dev/null (special
1840 # files actually), so we avoid doing that.
1841 if test -f "$cache_file"; then
1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843 echo "$as_me: loading cache $cache_file" >&6;}
1844 case $cache_file in
1845 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846 *) . "./$cache_file";;
1847 esac
1849 else
1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851 echo "$as_me: creating cache $cache_file" >&6;}
1852 >$cache_file
1855 ac_header_list="$ac_header_list sys/time.h"
1856 ac_header_list="$ac_header_list unistd.h"
1857 ac_func_list="$ac_func_list alarm"
1858 ac_header_list="$ac_header_list utime.h"
1859 # Check that the precious variables saved in the cache have kept the same
1860 # value.
1861 ac_cache_corrupted=false
1862 for ac_var in $ac_precious_vars; do
1863 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1864 eval ac_new_set=\$ac_env_${ac_var}_set
1865 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1866 eval ac_new_val=\$ac_env_${ac_var}_value
1867 case $ac_old_set,$ac_new_set in
1868 set,)
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1872 ,set)
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1876 ,);;
1878 if test "x$ac_old_val" != "x$ac_new_val"; then
1879 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1880 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1881 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1882 echo "$as_me: former value: $ac_old_val" >&2;}
1883 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1884 echo "$as_me: current value: $ac_new_val" >&2;}
1885 ac_cache_corrupted=:
1886 fi;;
1887 esac
1888 # Pass precious variables to config.status.
1889 if test "$ac_new_set" = set; then
1890 case $ac_new_val in
1891 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1892 *) ac_arg=$ac_var=$ac_new_val ;;
1893 esac
1894 case " $ac_configure_args " in
1895 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1896 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1897 esac
1899 done
1900 if $ac_cache_corrupted; then
1901 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1902 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1903 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1904 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1905 { (exit 1); exit 1; }; }
1924 ac_ext=c
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 # cross-compile macros
1933 ac_aux_dir=
1934 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1935 if test -f "$ac_dir/install-sh"; then
1936 ac_aux_dir=$ac_dir
1937 ac_install_sh="$ac_aux_dir/install-sh -c"
1938 break
1939 elif test -f "$ac_dir/install.sh"; then
1940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/install.sh -c"
1942 break
1943 elif test -f "$ac_dir/shtool"; then
1944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/shtool install -c"
1946 break
1948 done
1949 if test -z "$ac_aux_dir"; then
1950 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1951 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1952 { (exit 1); exit 1; }; }
1955 # These three variables are undocumented and unsupported,
1956 # and are intended to be withdrawn in a future Autoconf release.
1957 # They can cause serious problems if a builder's source tree is in a directory
1958 # whose full name contains unusual characters.
1959 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1960 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1961 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1964 # Make sure we can run config.sub.
1965 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1966 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1967 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1968 { (exit 1); exit 1; }; }
1970 { echo "$as_me:$LINENO: checking build system type" >&5
1971 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1972 if test "${ac_cv_build+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 ac_build_alias=$build_alias
1976 test "x$ac_build_alias" = x &&
1977 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1978 test "x$ac_build_alias" = x &&
1979 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1980 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1981 { (exit 1); exit 1; }; }
1982 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1983 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1984 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1985 { (exit 1); exit 1; }; }
1988 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1989 echo "${ECHO_T}$ac_cv_build" >&6; }
1990 case $ac_cv_build in
1991 *-*-*) ;;
1992 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1993 echo "$as_me: error: invalid value of canonical build" >&2;}
1994 { (exit 1); exit 1; }; };;
1995 esac
1996 build=$ac_cv_build
1997 ac_save_IFS=$IFS; IFS='-'
1998 set x $ac_cv_build
1999 shift
2000 build_cpu=$1
2001 build_vendor=$2
2002 shift; shift
2003 # Remember, the first character of IFS is used to create $*,
2004 # except with old shells:
2005 build_os=$*
2006 IFS=$ac_save_IFS
2007 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2010 { echo "$as_me:$LINENO: checking host system type" >&5
2011 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2012 if test "${ac_cv_host+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015 if test "x$host_alias" = x; then
2016 ac_cv_host=$ac_cv_build
2017 else
2018 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2019 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2020 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2021 { (exit 1); exit 1; }; }
2025 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2026 echo "${ECHO_T}$ac_cv_host" >&6; }
2027 case $ac_cv_host in
2028 *-*-*) ;;
2029 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2030 echo "$as_me: error: invalid value of canonical host" >&2;}
2031 { (exit 1); exit 1; }; };;
2032 esac
2033 host=$ac_cv_host
2034 ac_save_IFS=$IFS; IFS='-'
2035 set x $ac_cv_host
2036 shift
2037 host_cpu=$1
2038 host_vendor=$2
2039 shift; shift
2040 # Remember, the first character of IFS is used to create $*,
2041 # except with old shells:
2042 host_os=$*
2043 IFS=$ac_save_IFS
2044 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2048 # check existence of the package
2051 # specify output header file
2052 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2059 cat >>confdefs.h <<\_ACEOF
2060 #define _GNU_SOURCE 1
2061 _ACEOF
2064 ac_ext=c
2065 ac_cpp='$CPP $CPPFLAGS'
2066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2069 if test -n "$ac_tool_prefix"; then
2070 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2071 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2074 if test "${ac_cv_prog_CC+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077 if test -n "$CC"; then
2078 ac_cv_prog_CC="$CC" # Let the user override the test.
2079 else
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2083 IFS=$as_save_IFS
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
2086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2087 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 break 2
2091 done
2092 done
2093 IFS=$as_save_IFS
2097 CC=$ac_cv_prog_CC
2098 if test -n "$CC"; then
2099 { echo "$as_me:$LINENO: result: $CC" >&5
2100 echo "${ECHO_T}$CC" >&6; }
2101 else
2102 { echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6; }
2108 if test -z "$ac_cv_prog_CC"; then
2109 ac_ct_CC=$CC
2110 # Extract the first word of "gcc", so it can be a program name with args.
2111 set dummy gcc; ac_word=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 if test -n "$ac_ct_CC"; then
2118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_ac_ct_CC="gcc"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2131 done
2132 done
2133 IFS=$as_save_IFS
2137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138 if test -n "$ac_ct_CC"; then
2139 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140 echo "${ECHO_T}$ac_ct_CC" >&6; }
2141 else
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2146 if test "x$ac_ct_CC" = x; then
2147 CC=""
2148 else
2149 case $cross_compiling:$ac_tool_warned in
2150 yes:)
2151 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2152 whose name does not start with the host triplet. If you think this
2153 configuration is useful to you, please write to autoconf@gnu.org." >&5
2154 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2155 whose name does not start with the host triplet. If you think this
2156 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2157 ac_tool_warned=yes ;;
2158 esac
2159 CC=$ac_ct_CC
2161 else
2162 CC="$ac_cv_prog_CC"
2165 if test -z "$CC"; then
2166 if test -n "$ac_tool_prefix"; then
2167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2168 set dummy ${ac_tool_prefix}cc; ac_word=$2
2169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 ac_cv_prog_CC="${ac_tool_prefix}cc"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 break 2
2188 done
2189 done
2190 IFS=$as_save_IFS
2194 CC=$ac_cv_prog_CC
2195 if test -n "$CC"; then
2196 { echo "$as_me:$LINENO: result: $CC" >&5
2197 echo "${ECHO_T}$CC" >&6; }
2198 else
2199 { echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6; }
2206 if test -z "$CC"; then
2207 # Extract the first word of "cc", so it can be a program name with args.
2208 set dummy cc; ac_word=$2
2209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2211 if test "${ac_cv_prog_CC+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214 if test -n "$CC"; then
2215 ac_cv_prog_CC="$CC" # Let the user override the test.
2216 else
2217 ac_prog_rejected=no
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2226 ac_prog_rejected=yes
2227 continue
2229 ac_cv_prog_CC="cc"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 break 2
2233 done
2234 done
2235 IFS=$as_save_IFS
2237 if test $ac_prog_rejected = yes; then
2238 # We found a bogon in the path, so make sure we never use it.
2239 set dummy $ac_cv_prog_CC
2240 shift
2241 if test $# != 0; then
2242 # We chose a different compiler from the bogus one.
2243 # However, it has the same basename, so the bogon will be chosen
2244 # first if we set CC to just the basename; use the full file name.
2245 shift
2246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2251 CC=$ac_cv_prog_CC
2252 if test -n "$CC"; then
2253 { echo "$as_me:$LINENO: result: $CC" >&5
2254 echo "${ECHO_T}$CC" >&6; }
2255 else
2256 { echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6; }
2262 if test -z "$CC"; then
2263 if test -n "$ac_tool_prefix"; then
2264 for ac_prog in cl.exe
2266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 break 2
2287 done
2288 done
2289 IFS=$as_save_IFS
2293 CC=$ac_cv_prog_CC
2294 if test -n "$CC"; then
2295 { echo "$as_me:$LINENO: result: $CC" >&5
2296 echo "${ECHO_T}$CC" >&6; }
2297 else
2298 { echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6; }
2303 test -n "$CC" && break
2304 done
2306 if test -z "$CC"; then
2307 ac_ct_CC=$CC
2308 for ac_prog in cl.exe
2310 # Extract the first word of "$ac_prog", so it can be a program name with args.
2311 set dummy $ac_prog; ac_word=$2
2312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317 if test -n "$ac_ct_CC"; then
2318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327 ac_cv_prog_ac_ct_CC="$ac_prog"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 break 2
2331 done
2332 done
2333 IFS=$as_save_IFS
2337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2338 if test -n "$ac_ct_CC"; then
2339 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2340 echo "${ECHO_T}$ac_ct_CC" >&6; }
2341 else
2342 { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2347 test -n "$ac_ct_CC" && break
2348 done
2350 if test "x$ac_ct_CC" = x; then
2351 CC=""
2352 else
2353 case $cross_compiling:$ac_tool_warned in
2354 yes:)
2355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2356 whose name does not start with the host triplet. If you think this
2357 configuration is useful to you, please write to autoconf@gnu.org." >&5
2358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2359 whose name does not start with the host triplet. If you think this
2360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2361 ac_tool_warned=yes ;;
2362 esac
2363 CC=$ac_ct_CC
2370 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: no acceptable C compiler found in \$PATH
2373 See \`config.log' for more details." >&2;}
2374 { (exit 1); exit 1; }; }
2376 # Provide some information about the compiler.
2377 echo "$as_me:$LINENO: checking for C compiler version" >&5
2378 ac_compiler=`set X $ac_compile; echo $2`
2379 { (ac_try="$ac_compiler --version >&5"
2380 case "(($ac_try" in
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2383 esac
2384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385 (eval "$ac_compiler --version >&5") 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }
2389 { (ac_try="$ac_compiler -v >&5"
2390 case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2393 esac
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_compiler -v >&5") 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }
2399 { (ac_try="$ac_compiler -V >&5"
2400 case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2403 esac
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_compiler -V >&5") 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }
2410 cat >conftest.$ac_ext <<_ACEOF
2411 /* confdefs.h. */
2412 _ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h. */
2418 main ()
2422 return 0;
2424 _ACEOF
2425 ac_clean_files_save=$ac_clean_files
2426 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2427 # Try to create an executable without -o first, disregard a.out.
2428 # It will help us diagnose broken compilers, and finding out an intuition
2429 # of exeext.
2430 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2431 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2432 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2434 # List of possible output files, starting from the most likely.
2435 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2436 # only as a last resort. b.out is created by i960 compilers.
2437 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2439 # The IRIX 6 linker writes into existing files which may not be
2440 # executable, retaining their permissions. Remove them first so a
2441 # subsequent execution test works.
2442 ac_rmfiles=
2443 for ac_file in $ac_files
2445 case $ac_file in
2446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2447 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2448 esac
2449 done
2450 rm -f $ac_rmfiles
2452 if { (ac_try="$ac_link_default"
2453 case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456 esac
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_link_default") 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; then
2462 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2463 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2464 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2465 # so that the user can short-circuit this test for compilers unknown to
2466 # Autoconf.
2467 for ac_file in $ac_files ''
2469 test -f "$ac_file" || continue
2470 case $ac_file in
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2473 [ab].out )
2474 # We found the default executable, but exeext='' is most
2475 # certainly right.
2476 break;;
2477 *.* )
2478 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2479 then :; else
2480 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2482 # We set ac_cv_exeext here because the later test for it is not
2483 # safe: cross compilers may not add the suffix if given an `-o'
2484 # argument, so we may need to know it at that point already.
2485 # Even if this section looks crufty: it has the advantage of
2486 # actually working.
2487 break;;
2489 break;;
2490 esac
2491 done
2492 test "$ac_cv_exeext" = no && ac_cv_exeext=
2494 else
2495 ac_file=''
2498 { echo "$as_me:$LINENO: result: $ac_file" >&5
2499 echo "${ECHO_T}$ac_file" >&6; }
2500 if test -z "$ac_file"; then
2501 echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2504 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2505 See \`config.log' for more details." >&5
2506 echo "$as_me: error: C compiler cannot create executables
2507 See \`config.log' for more details." >&2;}
2508 { (exit 77); exit 77; }; }
2511 ac_exeext=$ac_cv_exeext
2513 # Check that the compiler produces executables we can run. If not, either
2514 # the compiler is broken, or we cross compile.
2515 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2516 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2517 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2518 # If not cross compiling, check that we can run a simple program.
2519 if test "$cross_compiling" != yes; then
2520 if { ac_try='./$ac_file'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2530 cross_compiling=no
2531 else
2532 if test "$cross_compiling" = maybe; then
2533 cross_compiling=yes
2534 else
2535 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2536 If you meant to cross compile, use \`--host'.
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: cannot run C compiled programs.
2539 If you meant to cross compile, use \`--host'.
2540 See \`config.log' for more details." >&2;}
2541 { (exit 1); exit 1; }; }
2545 { echo "$as_me:$LINENO: result: yes" >&5
2546 echo "${ECHO_T}yes" >&6; }
2548 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2549 ac_clean_files=$ac_clean_files_save
2550 # Check that the compiler produces executables we can run. If not, either
2551 # the compiler is broken, or we cross compile.
2552 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2553 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2554 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2555 echo "${ECHO_T}$cross_compiling" >&6; }
2557 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2558 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2559 if { (ac_try="$ac_link"
2560 case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_link") 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; then
2569 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2570 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2571 # work properly (i.e., refer to `conftest.exe'), while it won't with
2572 # `rm'.
2573 for ac_file in conftest.exe conftest conftest.*; do
2574 test -f "$ac_file" || continue
2575 case $ac_file in
2576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2577 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2578 break;;
2579 * ) break;;
2580 esac
2581 done
2582 else
2583 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2584 See \`config.log' for more details." >&5
2585 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2586 See \`config.log' for more details." >&2;}
2587 { (exit 1); exit 1; }; }
2590 rm -f conftest$ac_cv_exeext
2591 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2592 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2594 rm -f conftest.$ac_ext
2595 EXEEXT=$ac_cv_exeext
2596 ac_exeext=$EXEEXT
2597 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2598 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2599 if test "${ac_cv_objext+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602 cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h. */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2610 main ()
2614 return 0;
2616 _ACEOF
2617 rm -f conftest.o conftest.obj
2618 if { (ac_try="$ac_compile"
2619 case "(($ac_try" in
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2622 esac
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624 (eval "$ac_compile") 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; then
2628 for ac_file in conftest.o conftest.obj conftest.*; do
2629 test -f "$ac_file" || continue;
2630 case $ac_file in
2631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2632 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2633 break;;
2634 esac
2635 done
2636 else
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2640 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2641 See \`config.log' for more details." >&5
2642 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2643 See \`config.log' for more details." >&2;}
2644 { (exit 1); exit 1; }; }
2647 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2649 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2650 echo "${ECHO_T}$ac_cv_objext" >&6; }
2651 OBJEXT=$ac_cv_objext
2652 ac_objext=$OBJEXT
2653 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2654 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2655 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 cat >conftest.$ac_ext <<_ACEOF
2659 /* confdefs.h. */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2666 main ()
2668 #ifndef __GNUC__
2669 choke me
2670 #endif
2673 return 0;
2675 _ACEOF
2676 rm -f conftest.$ac_objext
2677 if { (ac_try="$ac_compile"
2678 case "(($ac_try" in
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2681 esac
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_compile") 2>conftest.er1
2684 ac_status=$?
2685 grep -v '^ *+' conftest.er1 >conftest.err
2686 rm -f conftest.er1
2687 cat conftest.err >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } && {
2690 test -z "$ac_c_werror_flag" ||
2691 test ! -s conftest.err
2692 } && test -s conftest.$ac_objext; then
2693 ac_compiler_gnu=yes
2694 else
2695 echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2698 ac_compiler_gnu=no
2701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2705 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2706 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2707 GCC=`test $ac_compiler_gnu = yes && echo yes`
2708 ac_test_CFLAGS=${CFLAGS+set}
2709 ac_save_CFLAGS=$CFLAGS
2710 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2711 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2712 if test "${ac_cv_prog_cc_g+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715 ac_save_c_werror_flag=$ac_c_werror_flag
2716 ac_c_werror_flag=yes
2717 ac_cv_prog_cc_g=no
2718 CFLAGS="-g"
2719 cat >conftest.$ac_ext <<_ACEOF
2720 /* confdefs.h. */
2721 _ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h. */
2727 main ()
2731 return 0;
2733 _ACEOF
2734 rm -f conftest.$ac_objext
2735 if { (ac_try="$ac_compile"
2736 case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compile") 2>conftest.er1
2742 ac_status=$?
2743 grep -v '^ *+' conftest.er1 >conftest.err
2744 rm -f conftest.er1
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } && {
2748 test -z "$ac_c_werror_flag" ||
2749 test ! -s conftest.err
2750 } && test -s conftest.$ac_objext; then
2751 ac_cv_prog_cc_g=yes
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 CFLAGS=""
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h. */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2765 main ()
2769 return 0;
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (ac_try="$ac_compile"
2774 case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_compile") 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } && {
2786 test -z "$ac_c_werror_flag" ||
2787 test ! -s conftest.err
2788 } && test -s conftest.$ac_objext; then
2790 else
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2794 ac_c_werror_flag=$ac_save_c_werror_flag
2795 CFLAGS="-g"
2796 cat >conftest.$ac_ext <<_ACEOF
2797 /* confdefs.h. */
2798 _ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h. */
2804 main ()
2808 return 0;
2810 _ACEOF
2811 rm -f conftest.$ac_objext
2812 if { (ac_try="$ac_compile"
2813 case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_compile") 2>conftest.er1
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } && {
2825 test -z "$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest.$ac_objext; then
2828 ac_cv_prog_cc_g=yes
2829 else
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 ac_c_werror_flag=$ac_save_c_werror_flag
2845 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2846 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2847 if test "$ac_test_CFLAGS" = set; then
2848 CFLAGS=$ac_save_CFLAGS
2849 elif test $ac_cv_prog_cc_g = yes; then
2850 if test "$GCC" = yes; then
2851 CFLAGS="-g -O2"
2852 else
2853 CFLAGS="-g"
2855 else
2856 if test "$GCC" = yes; then
2857 CFLAGS="-O2"
2858 else
2859 CFLAGS=
2862 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2863 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_cc_c89+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 ac_cv_prog_cc_c89=no
2868 ac_save_CC=$CC
2869 cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h. */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2875 #include <stdarg.h>
2876 #include <stdio.h>
2877 #include <sys/types.h>
2878 #include <sys/stat.h>
2879 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2880 struct buf { int x; };
2881 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2882 static char *e (p, i)
2883 char **p;
2884 int i;
2886 return p[i];
2888 static char *f (char * (*g) (char **, int), char **p, ...)
2890 char *s;
2891 va_list v;
2892 va_start (v,p);
2893 s = g (p, va_arg (v,int));
2894 va_end (v);
2895 return s;
2898 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2899 function prototypes and stuff, but not '\xHH' hex character constants.
2900 These don't provoke an error unfortunately, instead are silently treated
2901 as 'x'. The following induces an error, until -std is added to get
2902 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2903 array size at least. It's necessary to write '\x00'==0 to get something
2904 that's true only with -std. */
2905 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2907 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2908 inside strings and character constants. */
2909 #define FOO(x) 'x'
2910 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2912 int test (int i, double x);
2913 struct s1 {int (*f) (int a);};
2914 struct s2 {int (*f) (double a);};
2915 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2916 int argc;
2917 char **argv;
2919 main ()
2921 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2923 return 0;
2925 _ACEOF
2926 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2927 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2929 CC="$ac_save_CC $ac_arg"
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2932 case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } && {
2944 test -z "$ac_c_werror_flag" ||
2945 test ! -s conftest.err
2946 } && test -s conftest.$ac_objext; then
2947 ac_cv_prog_cc_c89=$ac_arg
2948 else
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2955 rm -f core conftest.err conftest.$ac_objext
2956 test "x$ac_cv_prog_cc_c89" != "xno" && break
2957 done
2958 rm -f conftest.$ac_ext
2959 CC=$ac_save_CC
2962 # AC_CACHE_VAL
2963 case "x$ac_cv_prog_cc_c89" in
2965 { echo "$as_me:$LINENO: result: none needed" >&5
2966 echo "${ECHO_T}none needed" >&6; } ;;
2967 xno)
2968 { echo "$as_me:$LINENO: result: unsupported" >&5
2969 echo "${ECHO_T}unsupported" >&6; } ;;
2971 CC="$CC $ac_cv_prog_cc_c89"
2972 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2973 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2974 esac
2977 ac_ext=c
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 ac_ext=c
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2990 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2991 # On Suns, sometimes $CPP names a directory.
2992 if test -n "$CPP" && test -d "$CPP"; then
2993 CPP=
2995 if test -z "$CPP"; then
2996 if test "${ac_cv_prog_CPP+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999 # Double quotes because CPP needs to be expanded
3000 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3002 ac_preproc_ok=false
3003 for ac_c_preproc_warn_flag in '' yes
3005 # Use a header file that comes with gcc, so configuring glibc
3006 # with a fresh cross-compiler works.
3007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3008 # <limits.h> exists even on freestanding compilers.
3009 # On the NeXT, cc -E runs the code through the compiler's parser,
3010 # not just through cpp. "Syntax error" is here to catch this case.
3011 cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017 #ifdef __STDC__
3018 # include <limits.h>
3019 #else
3020 # include <assert.h>
3021 #endif
3022 Syntax error
3023 _ACEOF
3024 if { (ac_try="$ac_cpp conftest.$ac_ext"
3025 case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } >/dev/null && {
3037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3039 }; then
3041 else
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 # Broken: fails on valid input.
3046 continue
3049 rm -f conftest.err conftest.$ac_ext
3051 # OK, works on sane cases. Now check whether nonexistent headers
3052 # can be detected and how.
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3060 _ACEOF
3061 if { (ac_try="$ac_cpp conftest.$ac_ext"
3062 case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } >/dev/null && {
3074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3075 test ! -s conftest.err
3076 }; then
3077 # Broken: success on invalid input.
3078 continue
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 # Passes both tests.
3084 ac_preproc_ok=:
3085 break
3088 rm -f conftest.err conftest.$ac_ext
3090 done
3091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3092 rm -f conftest.err conftest.$ac_ext
3093 if $ac_preproc_ok; then
3094 break
3097 done
3098 ac_cv_prog_CPP=$CPP
3101 CPP=$ac_cv_prog_CPP
3102 else
3103 ac_cv_prog_CPP=$CPP
3105 { echo "$as_me:$LINENO: result: $CPP" >&5
3106 echo "${ECHO_T}$CPP" >&6; }
3107 ac_preproc_ok=false
3108 for ac_c_preproc_warn_flag in '' yes
3110 # Use a header file that comes with gcc, so configuring glibc
3111 # with a fresh cross-compiler works.
3112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113 # <limits.h> exists even on freestanding compilers.
3114 # On the NeXT, cc -E runs the code through the compiler's parser,
3115 # not just through cpp. "Syntax error" is here to catch this case.
3116 cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h. */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3122 #ifdef __STDC__
3123 # include <limits.h>
3124 #else
3125 # include <assert.h>
3126 #endif
3127 Syntax error
3128 _ACEOF
3129 if { (ac_try="$ac_cpp conftest.$ac_ext"
3130 case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } >/dev/null && {
3142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3144 }; then
3146 else
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 # Broken: fails on valid input.
3151 continue
3154 rm -f conftest.err conftest.$ac_ext
3156 # OK, works on sane cases. Now check whether nonexistent headers
3157 # can be detected and how.
3158 cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h. */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3164 #include <ac_nonexistent.h>
3165 _ACEOF
3166 if { (ac_try="$ac_cpp conftest.$ac_ext"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } >/dev/null && {
3179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3180 test ! -s conftest.err
3181 }; then
3182 # Broken: success on invalid input.
3183 continue
3184 else
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3188 # Passes both tests.
3189 ac_preproc_ok=:
3190 break
3193 rm -f conftest.err conftest.$ac_ext
3195 done
3196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3197 rm -f conftest.err conftest.$ac_ext
3198 if $ac_preproc_ok; then
3200 else
3201 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3202 See \`config.log' for more details." >&5
3203 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3204 See \`config.log' for more details." >&2;}
3205 { (exit 1); exit 1; }; }
3208 ac_ext=c
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3216 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3217 if test "${ac_cv_path_GREP+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 # Extract the first word of "grep ggrep" to use in msg output
3221 if test -z "$GREP"; then
3222 set dummy grep ggrep; ac_prog_name=$2
3223 if test "${ac_cv_path_GREP+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 ac_path_GREP_found=false
3227 # Loop through the user's path and test for each of PROGNAME-LIST
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_prog in grep ggrep; do
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3236 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3237 # Check for GNU ac_path_GREP and select it if it is found.
3238 # Check for GNU $ac_path_GREP
3239 case `"$ac_path_GREP" --version 2>&1` in
3240 *GNU*)
3241 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3243 ac_count=0
3244 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3245 while :
3247 cat "conftest.in" "conftest.in" >"conftest.tmp"
3248 mv "conftest.tmp" "conftest.in"
3249 cp "conftest.in" "conftest.nl"
3250 echo 'GREP' >> "conftest.nl"
3251 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3253 ac_count=`expr $ac_count + 1`
3254 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3255 # Best one so far, save it but keep looking for a better one
3256 ac_cv_path_GREP="$ac_path_GREP"
3257 ac_path_GREP_max=$ac_count
3259 # 10*(2^10) chars as input seems more than enough
3260 test $ac_count -gt 10 && break
3261 done
3262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3263 esac
3266 $ac_path_GREP_found && break 3
3267 done
3268 done
3270 done
3271 IFS=$as_save_IFS
3276 GREP="$ac_cv_path_GREP"
3277 if test -z "$GREP"; then
3278 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3279 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3280 { (exit 1); exit 1; }; }
3283 else
3284 ac_cv_path_GREP=$GREP
3289 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3290 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3291 GREP="$ac_cv_path_GREP"
3294 { echo "$as_me:$LINENO: checking for egrep" >&5
3295 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3296 if test "${ac_cv_path_EGREP+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3300 then ac_cv_path_EGREP="$GREP -E"
3301 else
3302 # Extract the first word of "egrep" to use in msg output
3303 if test -z "$EGREP"; then
3304 set dummy egrep; ac_prog_name=$2
3305 if test "${ac_cv_path_EGREP+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 ac_path_EGREP_found=false
3309 # Loop through the user's path and test for each of PROGNAME-LIST
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_prog in egrep; do
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3318 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3319 # Check for GNU ac_path_EGREP and select it if it is found.
3320 # Check for GNU $ac_path_EGREP
3321 case `"$ac_path_EGREP" --version 2>&1` in
3322 *GNU*)
3323 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3325 ac_count=0
3326 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3327 while :
3329 cat "conftest.in" "conftest.in" >"conftest.tmp"
3330 mv "conftest.tmp" "conftest.in"
3331 cp "conftest.in" "conftest.nl"
3332 echo 'EGREP' >> "conftest.nl"
3333 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3335 ac_count=`expr $ac_count + 1`
3336 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3337 # Best one so far, save it but keep looking for a better one
3338 ac_cv_path_EGREP="$ac_path_EGREP"
3339 ac_path_EGREP_max=$ac_count
3341 # 10*(2^10) chars as input seems more than enough
3342 test $ac_count -gt 10 && break
3343 done
3344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3345 esac
3348 $ac_path_EGREP_found && break 3
3349 done
3350 done
3352 done
3353 IFS=$as_save_IFS
3358 EGREP="$ac_cv_path_EGREP"
3359 if test -z "$EGREP"; then
3360 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3361 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3362 { (exit 1); exit 1; }; }
3365 else
3366 ac_cv_path_EGREP=$EGREP
3372 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3373 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3374 EGREP="$ac_cv_path_EGREP"
3378 { echo "$as_me:$LINENO: checking for AIX" >&5
3379 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3380 cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 #ifdef _AIX
3388 #endif
3390 _ACEOF
3391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3392 $EGREP "yes" >/dev/null 2>&1; then
3393 { echo "$as_me:$LINENO: result: yes" >&5
3394 echo "${ECHO_T}yes" >&6; }
3395 cat >>confdefs.h <<\_ACEOF
3396 #define _ALL_SOURCE 1
3397 _ACEOF
3399 else
3400 { echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6; }
3403 rm -f conftest*
3406 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3407 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3408 if test "${ac_cv_header_stdc+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h. */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3417 #include <stdlib.h>
3418 #include <stdarg.h>
3419 #include <string.h>
3420 #include <float.h>
3423 main ()
3427 return 0;
3429 _ACEOF
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest.$ac_objext; then
3447 ac_cv_header_stdc=yes
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 ac_cv_header_stdc=no
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 if test $ac_cv_header_stdc = yes; then
3458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3459 cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3465 #include <string.h>
3467 _ACEOF
3468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3469 $EGREP "memchr" >/dev/null 2>&1; then
3471 else
3472 ac_cv_header_stdc=no
3474 rm -f conftest*
3478 if test $ac_cv_header_stdc = yes; then
3479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 #include <stdlib.h>
3488 _ACEOF
3489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3490 $EGREP "free" >/dev/null 2>&1; then
3492 else
3493 ac_cv_header_stdc=no
3495 rm -f conftest*
3499 if test $ac_cv_header_stdc = yes; then
3500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3501 if test "$cross_compiling" = yes; then
3503 else
3504 cat >conftest.$ac_ext <<_ACEOF
3505 /* confdefs.h. */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 #include <ctype.h>
3511 #include <stdlib.h>
3512 #if ((' ' & 0x0FF) == 0x020)
3513 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3514 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3515 #else
3516 # define ISLOWER(c) \
3517 (('a' <= (c) && (c) <= 'i') \
3518 || ('j' <= (c) && (c) <= 'r') \
3519 || ('s' <= (c) && (c) <= 'z'))
3520 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3521 #endif
3523 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3525 main ()
3527 int i;
3528 for (i = 0; i < 256; i++)
3529 if (XOR (islower (i), ISLOWER (i))
3530 || toupper (i) != TOUPPER (i))
3531 return 2;
3532 return 0;
3534 _ACEOF
3535 rm -f conftest$ac_exeext
3536 if { (ac_try="$ac_link"
3537 case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_link") 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3546 { (case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_try") 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3556 else
3557 echo "$as_me: program exited with status $ac_status" >&5
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 ( exit $ac_status )
3562 ac_cv_header_stdc=no
3564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3570 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3571 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3572 if test $ac_cv_header_stdc = yes; then
3574 cat >>confdefs.h <<\_ACEOF
3575 #define STDC_HEADERS 1
3576 _ACEOF
3580 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3590 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3591 inttypes.h stdint.h unistd.h
3593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 $ac_includes_default
3607 #include <$ac_header>
3608 _ACEOF
3609 rm -f conftest.$ac_objext
3610 if { (ac_try="$ac_compile"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_compile") 2>conftest.er1
3617 ac_status=$?
3618 grep -v '^ *+' conftest.er1 >conftest.err
3619 rm -f conftest.er1
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } && {
3623 test -z "$ac_c_werror_flag" ||
3624 test ! -s conftest.err
3625 } && test -s conftest.$ac_objext; then
3626 eval "$as_ac_Header=yes"
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 eval "$as_ac_Header=no"
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 ac_res=`eval echo '${'$as_ac_Header'}'`
3637 { echo "$as_me:$LINENO: result: $ac_res" >&5
3638 echo "${ECHO_T}$ac_res" >&6; }
3639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3640 cat >>confdefs.h <<_ACEOF
3641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3642 _ACEOF
3646 done
3649 if test "${ac_cv_header_minix_config_h+set}" = set; then
3650 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3651 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3652 if test "${ac_cv_header_minix_config_h+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3656 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3657 else
3658 # Is the header compilable?
3659 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3660 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h. */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 $ac_includes_default
3668 #include <minix/config.h>
3669 _ACEOF
3670 rm -f conftest.$ac_objext
3671 if { (ac_try="$ac_compile"
3672 case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675 esac
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_compile") 2>conftest.er1
3678 ac_status=$?
3679 grep -v '^ *+' conftest.er1 >conftest.err
3680 rm -f conftest.er1
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } && {
3684 test -z "$ac_c_werror_flag" ||
3685 test ! -s conftest.err
3686 } && test -s conftest.$ac_objext; then
3687 ac_header_compiler=yes
3688 else
3689 echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3692 ac_header_compiler=no
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3697 echo "${ECHO_T}$ac_header_compiler" >&6; }
3699 # Is the header present?
3700 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3701 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3702 cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h. */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3708 #include <minix/config.h>
3709 _ACEOF
3710 if { (ac_try="$ac_cpp conftest.$ac_ext"
3711 case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } >/dev/null && {
3723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 }; then
3726 ac_header_preproc=yes
3727 else
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 ac_header_preproc=no
3734 rm -f conftest.err conftest.$ac_ext
3735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3736 echo "${ECHO_T}$ac_header_preproc" >&6; }
3738 # So? What about this header?
3739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3740 yes:no: )
3741 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3742 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3743 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3744 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3745 ac_header_preproc=yes
3747 no:yes:* )
3748 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3749 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3751 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3752 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3753 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3754 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3755 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3756 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3757 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3758 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3759 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3762 esac
3763 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3764 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3765 if test "${ac_cv_header_minix_config_h+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 ac_cv_header_minix_config_h=$ac_header_preproc
3770 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3771 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3774 if test $ac_cv_header_minix_config_h = yes; then
3775 MINIX=yes
3776 else
3777 MINIX=
3781 if test "$MINIX" = yes; then
3783 cat >>confdefs.h <<\_ACEOF
3784 #define _POSIX_SOURCE 1
3785 _ACEOF
3788 cat >>confdefs.h <<\_ACEOF
3789 #define _POSIX_1_SOURCE 2
3790 _ACEOF
3793 cat >>confdefs.h <<\_ACEOF
3794 #define _MINIX 1
3795 _ACEOF
3809 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3810 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3811 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h. */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3821 # define __EXTENSIONS__ 1
3822 $ac_includes_default
3824 main ()
3828 return 0;
3830 _ACEOF
3831 rm -f conftest.$ac_objext
3832 if { (ac_try="$ac_compile"
3833 case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836 esac
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3839 ac_status=$?
3840 grep -v '^ *+' conftest.er1 >conftest.err
3841 rm -f conftest.er1
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } && {
3845 test -z "$ac_c_werror_flag" ||
3846 test ! -s conftest.err
3847 } && test -s conftest.$ac_objext; then
3848 ac_cv_safe_to_define___extensions__=yes
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 ac_cv_safe_to_define___extensions__=no
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3859 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3860 test $ac_cv_safe_to_define___extensions__ = yes &&
3861 cat >>confdefs.h <<\_ACEOF
3862 #define __EXTENSIONS__ 1
3863 _ACEOF
3865 cat >>confdefs.h <<\_ACEOF
3866 #define _POSIX_PTHREAD_SEMANTICS 1
3867 _ACEOF
3869 cat >>confdefs.h <<\_ACEOF
3870 #define _TANDEM_SOURCE 1
3871 _ACEOF
3875 case "${host_os}" in
3876 freebsd*)
3877 ac_default_prefix=/usr/local
3878 CPPFLAGS=-I/usr/local/include
3879 LDFLAGS=-L/usr/local/lib
3882 ac_default_prefix=/usr
3883 if test ${sysconfdir} = '${prefix}/etc'; then
3884 sysconfdir=/etc
3886 if test ${mandir} = '${prefix}/man'; then
3887 mandir=/usr/share/man
3890 esac
3892 if test ${localstatedir} = '${prefix}/var'; then
3893 localstatedir=/var
3896 BUILD_PLATFORM=${build}
3897 BUILD_CPU=${build_cpu}
3898 BUILD_VENDOR=${build_vendor}
3899 BUILD_OS=${build_os}
3906 HOST_PLATFORM=${host}
3907 HOST_CPU=${host_cpu}
3908 HOST_VENDOR=${host_vendor}
3909 HOST_OS=${host_os}
3916 case "${host_os}" in
3917 freebsd*)
3918 OSARCH=FreeBSD
3920 netbsd*)
3921 OSARCH=NetBSD
3923 openbsd*)
3924 OSARCH=OpenBSD
3926 solaris*)
3927 OSARCH=SunOS
3930 OSARCH=${HOST_OS}
3932 esac
3936 # check for uname
3937 if test -n "$ac_tool_prefix"; then
3938 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
3939 set dummy ${ac_tool_prefix}uname; ac_word=$2
3940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3942 if test "${ac_cv_path_UNAME+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 case $UNAME in
3946 [\\/]* | ?:[\\/]*)
3947 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3957 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 break 2
3961 done
3962 done
3963 IFS=$as_save_IFS
3966 esac
3968 UNAME=$ac_cv_path_UNAME
3969 if test -n "$UNAME"; then
3970 { echo "$as_me:$LINENO: result: $UNAME" >&5
3971 echo "${ECHO_T}$UNAME" >&6; }
3972 else
3973 { echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6; }
3979 if test -z "$ac_cv_path_UNAME"; then
3980 ac_pt_UNAME=$UNAME
3981 # Extract the first word of "uname", so it can be a program name with args.
3982 set dummy uname; ac_word=$2
3983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3985 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 case $ac_pt_UNAME in
3989 [\\/]* | ?:[\\/]*)
3990 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4004 done
4005 done
4006 IFS=$as_save_IFS
4009 esac
4011 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4012 if test -n "$ac_pt_UNAME"; then
4013 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4014 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4015 else
4016 { echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6; }
4020 if test "x$ac_pt_UNAME" = x; then
4021 UNAME="No"
4022 else
4023 case $cross_compiling:$ac_tool_warned in
4024 yes:)
4025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4026 whose name does not start with the host triplet. If you think this
4027 configuration is useful to you, please write to autoconf@gnu.org." >&5
4028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4029 whose name does not start with the host triplet. If you think this
4030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4031 ac_tool_warned=yes ;;
4032 esac
4033 UNAME=$ac_pt_UNAME
4035 else
4036 UNAME="$ac_cv_path_UNAME"
4039 if test ! x"${UNAME}" = xNo; then
4040 PBX_OSREV=$(${UNAME} -r)
4050 # cross-compile checks
4051 if test "${cross_compiling}" = "yes";
4052 then
4053 if test -n "$ac_tool_prefix"; then
4054 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4055 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4058 if test "${ac_cv_prog_CC+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 if test -n "$CC"; then
4062 ac_cv_prog_CC="$CC" # Let the user override the test.
4063 else
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4071 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 break 2
4075 done
4076 done
4077 IFS=$as_save_IFS
4081 CC=$ac_cv_prog_CC
4082 if test -n "$CC"; then
4083 { echo "$as_me:$LINENO: result: $CC" >&5
4084 echo "${ECHO_T}$CC" >&6; }
4085 else
4086 { echo "$as_me:$LINENO: result: no" >&5
4087 echo "${ECHO_T}no" >&6; }
4092 if test -z "$ac_cv_prog_CC"; then
4093 ac_ct_CC=$CC
4094 # Extract the first word of "gcc", so it can be a program name with args.
4095 set dummy gcc; ac_word=$2
4096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101 if test -n "$ac_ct_CC"; then
4102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111 ac_cv_prog_ac_ct_CC="gcc"
4112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2
4115 done
4116 done
4117 IFS=$as_save_IFS
4121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4122 if test -n "$ac_ct_CC"; then
4123 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4124 echo "${ECHO_T}$ac_ct_CC" >&6; }
4125 else
4126 { echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6; }
4130 if test "x$ac_ct_CC" = x; then
4131 CC=":"
4132 else
4133 case $cross_compiling:$ac_tool_warned in
4134 yes:)
4135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4136 whose name does not start with the host triplet. If you think this
4137 configuration is useful to you, please write to autoconf@gnu.org." >&5
4138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4139 whose name does not start with the host triplet. If you think this
4140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4141 ac_tool_warned=yes ;;
4142 esac
4143 CC=$ac_ct_CC
4145 else
4146 CC="$ac_cv_prog_CC"
4149 if test -n "$ac_tool_prefix"; then
4150 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4151 set dummy ${ac_tool_prefix}g++; ac_word=$2
4152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4154 if test "${ac_cv_prog_CXX+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157 if test -n "$CXX"; then
4158 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4167 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 break 2
4171 done
4172 done
4173 IFS=$as_save_IFS
4177 CXX=$ac_cv_prog_CXX
4178 if test -n "$CXX"; then
4179 { echo "$as_me:$LINENO: result: $CXX" >&5
4180 echo "${ECHO_T}$CXX" >&6; }
4181 else
4182 { echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6; }
4188 if test -z "$ac_cv_prog_CXX"; then
4189 ac_ct_CXX=$CXX
4190 # Extract the first word of "g++", so it can be a program name with args.
4191 set dummy g++; ac_word=$2
4192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4194 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 if test -n "$ac_ct_CXX"; then
4198 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_ac_ct_CXX="g++"
4208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4211 done
4212 done
4213 IFS=$as_save_IFS
4217 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4218 if test -n "$ac_ct_CXX"; then
4219 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4220 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4221 else
4222 { echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6; }
4226 if test "x$ac_ct_CXX" = x; then
4227 CXX=":"
4228 else
4229 case $cross_compiling:$ac_tool_warned in
4230 yes:)
4231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4232 whose name does not start with the host triplet. If you think this
4233 configuration is useful to you, please write to autoconf@gnu.org." >&5
4234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4235 whose name does not start with the host triplet. If you think this
4236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4237 ac_tool_warned=yes ;;
4238 esac
4239 CXX=$ac_ct_CXX
4241 else
4242 CXX="$ac_cv_prog_CXX"
4245 if test -n "$ac_tool_prefix"; then
4246 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4247 set dummy ${ac_tool_prefix}ld; ac_word=$2
4248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4250 if test "${ac_cv_prog_LD+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253 if test -n "$LD"; then
4254 ac_cv_prog_LD="$LD" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263 ac_cv_prog_LD="${ac_tool_prefix}ld"
4264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 break 2
4267 done
4268 done
4269 IFS=$as_save_IFS
4273 LD=$ac_cv_prog_LD
4274 if test -n "$LD"; then
4275 { echo "$as_me:$LINENO: result: $LD" >&5
4276 echo "${ECHO_T}$LD" >&6; }
4277 else
4278 { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4284 if test -z "$ac_cv_prog_LD"; then
4285 ac_ct_LD=$LD
4286 # Extract the first word of "ld", so it can be a program name with args.
4287 set dummy ld; ac_word=$2
4288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4290 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 if test -n "$ac_ct_LD"; then
4294 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_ac_ct_LD="ld"
4304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4307 done
4308 done
4309 IFS=$as_save_IFS
4313 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4314 if test -n "$ac_ct_LD"; then
4315 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4316 echo "${ECHO_T}$ac_ct_LD" >&6; }
4317 else
4318 { echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6; }
4322 if test "x$ac_ct_LD" = x; then
4323 LD=":"
4324 else
4325 case $cross_compiling:$ac_tool_warned in
4326 yes:)
4327 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4328 whose name does not start with the host triplet. If you think this
4329 configuration is useful to you, please write to autoconf@gnu.org." >&5
4330 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4331 whose name does not start with the host triplet. If you think this
4332 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4333 ac_tool_warned=yes ;;
4334 esac
4335 LD=$ac_ct_LD
4337 else
4338 LD="$ac_cv_prog_LD"
4341 if test -n "$ac_tool_prefix"; then
4342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_prog_RANLIB+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349 if test -n "$RANLIB"; then
4350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4363 done
4364 done
4365 IFS=$as_save_IFS
4369 RANLIB=$ac_cv_prog_RANLIB
4370 if test -n "$RANLIB"; then
4371 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4372 echo "${ECHO_T}$RANLIB" >&6; }
4373 else
4374 { echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6; }
4380 if test -z "$ac_cv_prog_RANLIB"; then
4381 ac_ct_RANLIB=$RANLIB
4382 # Extract the first word of "ranlib", so it can be a program name with args.
4383 set dummy ranlib; ac_word=$2
4384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4386 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389 if test -n "$ac_ct_RANLIB"; then
4390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_prog_ac_ct_RANLIB="ranlib"
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4403 done
4404 done
4405 IFS=$as_save_IFS
4409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4410 if test -n "$ac_ct_RANLIB"; then
4411 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4412 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4413 else
4414 { echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6; }
4418 if test "x$ac_ct_RANLIB" = x; then
4419 RANLIB=":"
4420 else
4421 case $cross_compiling:$ac_tool_warned in
4422 yes:)
4423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4424 whose name does not start with the host triplet. If you think this
4425 configuration is useful to you, please write to autoconf@gnu.org." >&5
4426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4427 whose name does not start with the host triplet. If you think this
4428 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4429 ac_tool_warned=yes ;;
4430 esac
4431 RANLIB=$ac_ct_RANLIB
4433 else
4434 RANLIB="$ac_cv_prog_RANLIB"
4437 if test -n "$ac_tool_prefix"; then
4438 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4439 set dummy ${ac_tool_prefix}ar; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_prog_AR+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 if test -n "$AR"; then
4446 ac_cv_prog_AR="$AR" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_AR="${ac_tool_prefix}ar"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4459 done
4460 done
4461 IFS=$as_save_IFS
4465 AR=$ac_cv_prog_AR
4466 if test -n "$AR"; then
4467 { echo "$as_me:$LINENO: result: $AR" >&5
4468 echo "${ECHO_T}$AR" >&6; }
4469 else
4470 { echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6; }
4476 if test -z "$ac_cv_prog_AR"; then
4477 ac_ct_AR=$AR
4478 # Extract the first word of "ar", so it can be a program name with args.
4479 set dummy ar; ac_word=$2
4480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4482 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 if test -n "$ac_ct_AR"; then
4486 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495 ac_cv_prog_ac_ct_AR="ar"
4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 break 2
4499 done
4500 done
4501 IFS=$as_save_IFS
4505 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4506 if test -n "$ac_ct_AR"; then
4507 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4508 echo "${ECHO_T}$ac_ct_AR" >&6; }
4509 else
4510 { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4514 if test "x$ac_ct_AR" = x; then
4515 AR=":"
4516 else
4517 case $cross_compiling:$ac_tool_warned in
4518 yes:)
4519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4520 whose name does not start with the host triplet. If you think this
4521 configuration is useful to you, please write to autoconf@gnu.org." >&5
4522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4523 whose name does not start with the host triplet. If you think this
4524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4525 ac_tool_warned=yes ;;
4526 esac
4527 AR=$ac_ct_AR
4529 else
4530 AR="$ac_cv_prog_AR"
4535 # Checks for programs.
4536 ac_ext=c
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541 if test -n "$ac_tool_prefix"; then
4542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4546 if test "${ac_cv_prog_CC+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 if test -n "$CC"; then
4550 ac_cv_prog_CC="$CC" # Let the user override the test.
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4563 done
4564 done
4565 IFS=$as_save_IFS
4569 CC=$ac_cv_prog_CC
4570 if test -n "$CC"; then
4571 { echo "$as_me:$LINENO: result: $CC" >&5
4572 echo "${ECHO_T}$CC" >&6; }
4573 else
4574 { echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6; }
4580 if test -z "$ac_cv_prog_CC"; then
4581 ac_ct_CC=$CC
4582 # Extract the first word of "gcc", so it can be a program name with args.
4583 set dummy gcc; ac_word=$2
4584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589 if test -n "$ac_ct_CC"; then
4590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4591 else
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_prog_ac_ct_CC="gcc"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4603 done
4604 done
4605 IFS=$as_save_IFS
4609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4610 if test -n "$ac_ct_CC"; then
4611 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4612 echo "${ECHO_T}$ac_ct_CC" >&6; }
4613 else
4614 { echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6; }
4618 if test "x$ac_ct_CC" = x; then
4619 CC=""
4620 else
4621 case $cross_compiling:$ac_tool_warned in
4622 yes:)
4623 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4624 whose name does not start with the host triplet. If you think this
4625 configuration is useful to you, please write to autoconf@gnu.org." >&5
4626 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4627 whose name does not start with the host triplet. If you think this
4628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4629 ac_tool_warned=yes ;;
4630 esac
4631 CC=$ac_ct_CC
4633 else
4634 CC="$ac_cv_prog_CC"
4637 if test -z "$CC"; then
4638 if test -n "$ac_tool_prefix"; then
4639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4640 set dummy ${ac_tool_prefix}cc; ac_word=$2
4641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643 if test "${ac_cv_prog_CC+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646 if test -n "$CC"; then
4647 ac_cv_prog_CC="$CC" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_CC="${ac_tool_prefix}cc"
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4666 CC=$ac_cv_prog_CC
4667 if test -n "$CC"; then
4668 { echo "$as_me:$LINENO: result: $CC" >&5
4669 echo "${ECHO_T}$CC" >&6; }
4670 else
4671 { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4678 if test -z "$CC"; then
4679 # Extract the first word of "cc", so it can be a program name with args.
4680 set dummy cc; ac_word=$2
4681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4683 if test "${ac_cv_prog_CC+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686 if test -n "$CC"; then
4687 ac_cv_prog_CC="$CC" # Let the user override the test.
4688 else
4689 ac_prog_rejected=no
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4698 ac_prog_rejected=yes
4699 continue
4701 ac_cv_prog_CC="cc"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4705 done
4706 done
4707 IFS=$as_save_IFS
4709 if test $ac_prog_rejected = yes; then
4710 # We found a bogon in the path, so make sure we never use it.
4711 set dummy $ac_cv_prog_CC
4712 shift
4713 if test $# != 0; then
4714 # We chose a different compiler from the bogus one.
4715 # However, it has the same basename, so the bogon will be chosen
4716 # first if we set CC to just the basename; use the full file name.
4717 shift
4718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4723 CC=$ac_cv_prog_CC
4724 if test -n "$CC"; then
4725 { echo "$as_me:$LINENO: result: $CC" >&5
4726 echo "${ECHO_T}$CC" >&6; }
4727 else
4728 { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4734 if test -z "$CC"; then
4735 if test -n "$ac_tool_prefix"; then
4736 for ac_prog in cl.exe
4738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_prog_CC+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745 if test -n "$CC"; then
4746 ac_cv_prog_CC="$CC" # Let the user override the test.
4747 else
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4759 done
4760 done
4761 IFS=$as_save_IFS
4765 CC=$ac_cv_prog_CC
4766 if test -n "$CC"; then
4767 { echo "$as_me:$LINENO: result: $CC" >&5
4768 echo "${ECHO_T}$CC" >&6; }
4769 else
4770 { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4775 test -n "$CC" && break
4776 done
4778 if test -z "$CC"; then
4779 ac_ct_CC=$CC
4780 for ac_prog in cl.exe
4782 # Extract the first word of "$ac_prog", so it can be a program name with args.
4783 set dummy $ac_prog; ac_word=$2
4784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789 if test -n "$ac_ct_CC"; then
4790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_ac_ct_CC="$ac_prog"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4803 done
4804 done
4805 IFS=$as_save_IFS
4809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4810 if test -n "$ac_ct_CC"; then
4811 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4812 echo "${ECHO_T}$ac_ct_CC" >&6; }
4813 else
4814 { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4819 test -n "$ac_ct_CC" && break
4820 done
4822 if test "x$ac_ct_CC" = x; then
4823 CC=""
4824 else
4825 case $cross_compiling:$ac_tool_warned in
4826 yes:)
4827 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4828 whose name does not start with the host triplet. If you think this
4829 configuration is useful to you, please write to autoconf@gnu.org." >&5
4830 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4831 whose name does not start with the host triplet. If you think this
4832 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4833 ac_tool_warned=yes ;;
4834 esac
4835 CC=$ac_ct_CC
4842 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4843 See \`config.log' for more details." >&5
4844 echo "$as_me: error: no acceptable C compiler found in \$PATH
4845 See \`config.log' for more details." >&2;}
4846 { (exit 1); exit 1; }; }
4848 # Provide some information about the compiler.
4849 echo "$as_me:$LINENO: checking for C compiler version" >&5
4850 ac_compiler=`set X $ac_compile; echo $2`
4851 { (ac_try="$ac_compiler --version >&5"
4852 case "(($ac_try" in
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4855 esac
4856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4857 (eval "$ac_compiler --version >&5") 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }
4861 { (ac_try="$ac_compiler -v >&5"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_compiler -v >&5") 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }
4871 { (ac_try="$ac_compiler -V >&5"
4872 case "(($ac_try" in
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4875 esac
4876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4877 (eval "$ac_compiler -V >&5") 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }
4882 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4883 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4884 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887 cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h. */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4895 main ()
4897 #ifndef __GNUC__
4898 choke me
4899 #endif
4902 return 0;
4904 _ACEOF
4905 rm -f conftest.$ac_objext
4906 if { (ac_try="$ac_compile"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_compile") 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } && {
4919 test -z "$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4921 } && test -s conftest.$ac_objext; then
4922 ac_compiler_gnu=yes
4923 else
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4927 ac_compiler_gnu=no
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4934 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4935 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4936 GCC=`test $ac_compiler_gnu = yes && echo yes`
4937 ac_test_CFLAGS=${CFLAGS+set}
4938 ac_save_CFLAGS=$CFLAGS
4939 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4940 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4941 if test "${ac_cv_prog_cc_g+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944 ac_save_c_werror_flag=$ac_c_werror_flag
4945 ac_c_werror_flag=yes
4946 ac_cv_prog_cc_g=no
4947 CFLAGS="-g"
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4956 main ()
4960 return 0;
4962 _ACEOF
4963 rm -f conftest.$ac_objext
4964 if { (ac_try="$ac_compile"
4965 case "(($ac_try" in
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4968 esac
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_compile") 2>conftest.er1
4971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } && {
4977 test -z "$ac_c_werror_flag" ||
4978 test ! -s conftest.err
4979 } && test -s conftest.$ac_objext; then
4980 ac_cv_prog_cc_g=yes
4981 else
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 CFLAGS=""
4986 cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h. */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4994 main ()
4998 return 0;
5000 _ACEOF
5001 rm -f conftest.$ac_objext
5002 if { (ac_try="$ac_compile"
5003 case "(($ac_try" in
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5006 esac
5007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5008 (eval "$ac_compile") 2>conftest.er1
5009 ac_status=$?
5010 grep -v '^ *+' conftest.er1 >conftest.err
5011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } && {
5015 test -z "$ac_c_werror_flag" ||
5016 test ! -s conftest.err
5017 } && test -s conftest.$ac_objext; then
5019 else
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 ac_c_werror_flag=$ac_save_c_werror_flag
5024 CFLAGS="-g"
5025 cat >conftest.$ac_ext <<_ACEOF
5026 /* confdefs.h. */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5033 main ()
5037 return 0;
5039 _ACEOF
5040 rm -f conftest.$ac_objext
5041 if { (ac_try="$ac_compile"
5042 case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045 esac
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_compile") 2>conftest.er1
5048 ac_status=$?
5049 grep -v '^ *+' conftest.er1 >conftest.err
5050 rm -f conftest.er1
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && {
5054 test -z "$ac_c_werror_flag" ||
5055 test ! -s conftest.err
5056 } && test -s conftest.$ac_objext; then
5057 ac_cv_prog_cc_g=yes
5058 else
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072 ac_c_werror_flag=$ac_save_c_werror_flag
5074 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5075 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5076 if test "$ac_test_CFLAGS" = set; then
5077 CFLAGS=$ac_save_CFLAGS
5078 elif test $ac_cv_prog_cc_g = yes; then
5079 if test "$GCC" = yes; then
5080 CFLAGS="-g -O2"
5081 else
5082 CFLAGS="-g"
5084 else
5085 if test "$GCC" = yes; then
5086 CFLAGS="-O2"
5087 else
5088 CFLAGS=
5091 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5092 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5093 if test "${ac_cv_prog_cc_c89+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096 ac_cv_prog_cc_c89=no
5097 ac_save_CC=$CC
5098 cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h. */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 #include <stdarg.h>
5105 #include <stdio.h>
5106 #include <sys/types.h>
5107 #include <sys/stat.h>
5108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5109 struct buf { int x; };
5110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5111 static char *e (p, i)
5112 char **p;
5113 int i;
5115 return p[i];
5117 static char *f (char * (*g) (char **, int), char **p, ...)
5119 char *s;
5120 va_list v;
5121 va_start (v,p);
5122 s = g (p, va_arg (v,int));
5123 va_end (v);
5124 return s;
5127 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5128 function prototypes and stuff, but not '\xHH' hex character constants.
5129 These don't provoke an error unfortunately, instead are silently treated
5130 as 'x'. The following induces an error, until -std is added to get
5131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5132 array size at least. It's necessary to write '\x00'==0 to get something
5133 that's true only with -std. */
5134 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5136 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5137 inside strings and character constants. */
5138 #define FOO(x) 'x'
5139 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5141 int test (int i, double x);
5142 struct s1 {int (*f) (int a);};
5143 struct s2 {int (*f) (double a);};
5144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5145 int argc;
5146 char **argv;
5148 main ()
5150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5152 return 0;
5154 _ACEOF
5155 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5156 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5158 CC="$ac_save_CC $ac_arg"
5159 rm -f conftest.$ac_objext
5160 if { (ac_try="$ac_compile"
5161 case "(($ac_try" in
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5164 esac
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_compile") 2>conftest.er1
5167 ac_status=$?
5168 grep -v '^ *+' conftest.er1 >conftest.err
5169 rm -f conftest.er1
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } && {
5173 test -z "$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5175 } && test -s conftest.$ac_objext; then
5176 ac_cv_prog_cc_c89=$ac_arg
5177 else
5178 echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5184 rm -f core conftest.err conftest.$ac_objext
5185 test "x$ac_cv_prog_cc_c89" != "xno" && break
5186 done
5187 rm -f conftest.$ac_ext
5188 CC=$ac_save_CC
5191 # AC_CACHE_VAL
5192 case "x$ac_cv_prog_cc_c89" in
5194 { echo "$as_me:$LINENO: result: none needed" >&5
5195 echo "${ECHO_T}none needed" >&6; } ;;
5196 xno)
5197 { echo "$as_me:$LINENO: result: unsupported" >&5
5198 echo "${ECHO_T}unsupported" >&6; } ;;
5200 CC="$CC $ac_cv_prog_cc_c89"
5201 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5202 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5203 esac
5206 ac_ext=c
5207 ac_cpp='$CPP $CPPFLAGS'
5208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5212 ac_ext=cpp
5213 ac_cpp='$CXXCPP $CPPFLAGS'
5214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5217 if test -z "$CXX"; then
5218 if test -n "$CCC"; then
5219 CXX=$CCC
5220 else
5221 if test -n "$ac_tool_prefix"; then
5222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5228 if test "${ac_cv_prog_CXX+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 if test -n "$CXX"; then
5232 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5245 done
5246 done
5247 IFS=$as_save_IFS
5251 CXX=$ac_cv_prog_CXX
5252 if test -n "$CXX"; then
5253 { echo "$as_me:$LINENO: result: $CXX" >&5
5254 echo "${ECHO_T}$CXX" >&6; }
5255 else
5256 { echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6; }
5261 test -n "$CXX" && break
5262 done
5264 if test -z "$CXX"; then
5265 ac_ct_CXX=$CXX
5266 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5268 # Extract the first word of "$ac_prog", so it can be a program name with args.
5269 set dummy $ac_prog; ac_word=$2
5270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5272 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275 if test -n "$ac_ct_CXX"; then
5276 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_prog_ac_ct_CXX="$ac_prog"
5286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5289 done
5290 done
5291 IFS=$as_save_IFS
5295 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5296 if test -n "$ac_ct_CXX"; then
5297 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5298 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5299 else
5300 { echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6; }
5305 test -n "$ac_ct_CXX" && break
5306 done
5308 if test "x$ac_ct_CXX" = x; then
5309 CXX="g++"
5310 else
5311 case $cross_compiling:$ac_tool_warned in
5312 yes:)
5313 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5314 whose name does not start with the host triplet. If you think this
5315 configuration is useful to you, please write to autoconf@gnu.org." >&5
5316 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5317 whose name does not start with the host triplet. If you think this
5318 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5319 ac_tool_warned=yes ;;
5320 esac
5321 CXX=$ac_ct_CXX
5327 # Provide some information about the compiler.
5328 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5329 ac_compiler=`set X $ac_compile; echo $2`
5330 { (ac_try="$ac_compiler --version >&5"
5331 case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334 esac
5335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compiler --version >&5") 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }
5340 { (ac_try="$ac_compiler -v >&5"
5341 case "(($ac_try" in
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5344 esac
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compiler -v >&5") 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }
5350 { (ac_try="$ac_compiler -V >&5"
5351 case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354 esac
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_compiler -V >&5") 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }
5361 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5362 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5363 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366 cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h. */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5374 main ()
5376 #ifndef __GNUC__
5377 choke me
5378 #endif
5381 return 0;
5383 _ACEOF
5384 rm -f conftest.$ac_objext
5385 if { (ac_try="$ac_compile"
5386 case "(($ac_try" in
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5389 esac
5390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391 (eval "$ac_compile") 2>conftest.er1
5392 ac_status=$?
5393 grep -v '^ *+' conftest.er1 >conftest.err
5394 rm -f conftest.er1
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } && {
5398 test -z "$ac_cxx_werror_flag" ||
5399 test ! -s conftest.err
5400 } && test -s conftest.$ac_objext; then
5401 ac_compiler_gnu=yes
5402 else
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5406 ac_compiler_gnu=no
5409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5413 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5414 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5415 GXX=`test $ac_compiler_gnu = yes && echo yes`
5416 ac_test_CXXFLAGS=${CXXFLAGS+set}
5417 ac_save_CXXFLAGS=$CXXFLAGS
5418 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5419 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5420 if test "${ac_cv_prog_cxx_g+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5424 ac_cxx_werror_flag=yes
5425 ac_cv_prog_cxx_g=no
5426 CXXFLAGS="-g"
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5435 main ()
5439 return 0;
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (ac_try="$ac_compile"
5444 case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compile") 2>conftest.er1
5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && {
5456 test -z "$ac_cxx_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest.$ac_objext; then
5459 ac_cv_prog_cxx_g=yes
5460 else
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 CXXFLAGS=""
5465 cat >conftest.$ac_ext <<_ACEOF
5466 /* confdefs.h. */
5467 _ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5473 main ()
5477 return 0;
5479 _ACEOF
5480 rm -f conftest.$ac_objext
5481 if { (ac_try="$ac_compile"
5482 case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485 esac
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487 (eval "$ac_compile") 2>conftest.er1
5488 ac_status=$?
5489 grep -v '^ *+' conftest.er1 >conftest.err
5490 rm -f conftest.er1
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } && {
5494 test -z "$ac_cxx_werror_flag" ||
5495 test ! -s conftest.err
5496 } && test -s conftest.$ac_objext; then
5498 else
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5502 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5503 CXXFLAGS="-g"
5504 cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h. */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5512 main ()
5516 return 0;
5518 _ACEOF
5519 rm -f conftest.$ac_objext
5520 if { (ac_try="$ac_compile"
5521 case "(($ac_try" in
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5524 esac
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_compile") 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && {
5533 test -z "$ac_cxx_werror_flag" ||
5534 test ! -s conftest.err
5535 } && test -s conftest.$ac_objext; then
5536 ac_cv_prog_cxx_g=yes
5537 else
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5553 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5554 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5555 if test "$ac_test_CXXFLAGS" = set; then
5556 CXXFLAGS=$ac_save_CXXFLAGS
5557 elif test $ac_cv_prog_cxx_g = yes; then
5558 if test "$GXX" = yes; then
5559 CXXFLAGS="-g -O2"
5560 else
5561 CXXFLAGS="-g"
5563 else
5564 if test "$GXX" = yes; then
5565 CXXFLAGS="-O2"
5566 else
5567 CXXFLAGS=
5570 ac_ext=c
5571 ac_cpp='$CPP $CPPFLAGS'
5572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5576 ac_ext=c
5577 ac_cpp='$CPP $CPPFLAGS'
5578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5581 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5582 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5583 # On Suns, sometimes $CPP names a directory.
5584 if test -n "$CPP" && test -d "$CPP"; then
5585 CPP=
5587 if test -z "$CPP"; then
5588 if test "${ac_cv_prog_CPP+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591 # Double quotes because CPP needs to be expanded
5592 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5594 ac_preproc_ok=false
5595 for ac_c_preproc_warn_flag in '' yes
5597 # Use a header file that comes with gcc, so configuring glibc
5598 # with a fresh cross-compiler works.
5599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5600 # <limits.h> exists even on freestanding compilers.
5601 # On the NeXT, cc -E runs the code through the compiler's parser,
5602 # not just through cpp. "Syntax error" is here to catch this case.
5603 cat >conftest.$ac_ext <<_ACEOF
5604 /* confdefs.h. */
5605 _ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5609 #ifdef __STDC__
5610 # include <limits.h>
5611 #else
5612 # include <assert.h>
5613 #endif
5614 Syntax error
5615 _ACEOF
5616 if { (ac_try="$ac_cpp conftest.$ac_ext"
5617 case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5623 ac_status=$?
5624 grep -v '^ *+' conftest.er1 >conftest.err
5625 rm -f conftest.er1
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } >/dev/null && {
5629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5630 test ! -s conftest.err
5631 }; then
5633 else
5634 echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5637 # Broken: fails on valid input.
5638 continue
5641 rm -f conftest.err conftest.$ac_ext
5643 # OK, works on sane cases. Now check whether nonexistent headers
5644 # can be detected and how.
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h. */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 #include <ac_nonexistent.h>
5652 _ACEOF
5653 if { (ac_try="$ac_cpp conftest.$ac_ext"
5654 case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657 esac
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5660 ac_status=$?
5661 grep -v '^ *+' conftest.er1 >conftest.err
5662 rm -f conftest.er1
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } >/dev/null && {
5666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5668 }; then
5669 # Broken: success on invalid input.
5670 continue
5671 else
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5675 # Passes both tests.
5676 ac_preproc_ok=:
5677 break
5680 rm -f conftest.err conftest.$ac_ext
5682 done
5683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5684 rm -f conftest.err conftest.$ac_ext
5685 if $ac_preproc_ok; then
5686 break
5689 done
5690 ac_cv_prog_CPP=$CPP
5693 CPP=$ac_cv_prog_CPP
5694 else
5695 ac_cv_prog_CPP=$CPP
5697 { echo "$as_me:$LINENO: result: $CPP" >&5
5698 echo "${ECHO_T}$CPP" >&6; }
5699 ac_preproc_ok=false
5700 for ac_c_preproc_warn_flag in '' yes
5702 # Use a header file that comes with gcc, so configuring glibc
5703 # with a fresh cross-compiler works.
5704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5705 # <limits.h> exists even on freestanding compilers.
5706 # On the NeXT, cc -E runs the code through the compiler's parser,
5707 # not just through cpp. "Syntax error" is here to catch this case.
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #ifdef __STDC__
5715 # include <limits.h>
5716 #else
5717 # include <assert.h>
5718 #endif
5719 Syntax error
5720 _ACEOF
5721 if { (ac_try="$ac_cpp conftest.$ac_ext"
5722 case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725 esac
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5728 ac_status=$?
5729 grep -v '^ *+' conftest.er1 >conftest.err
5730 rm -f conftest.er1
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } >/dev/null && {
5734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5735 test ! -s conftest.err
5736 }; then
5738 else
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 # Broken: fails on valid input.
5743 continue
5746 rm -f conftest.err conftest.$ac_ext
5748 # OK, works on sane cases. Now check whether nonexistent headers
5749 # can be detected and how.
5750 cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h. */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 #include <ac_nonexistent.h>
5757 _ACEOF
5758 if { (ac_try="$ac_cpp conftest.$ac_ext"
5759 case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762 esac
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5765 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } >/dev/null && {
5771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5772 test ! -s conftest.err
5773 }; then
5774 # Broken: success on invalid input.
5775 continue
5776 else
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5780 # Passes both tests.
5781 ac_preproc_ok=:
5782 break
5785 rm -f conftest.err conftest.$ac_ext
5787 done
5788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5789 rm -f conftest.err conftest.$ac_ext
5790 if $ac_preproc_ok; then
5792 else
5793 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5794 See \`config.log' for more details." >&5
5795 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5796 See \`config.log' for more details." >&2;}
5797 { (exit 1); exit 1; }; }
5800 ac_ext=c
5801 ac_cpp='$CPP $CPPFLAGS'
5802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5806 ac_ext=cpp
5807 ac_cpp='$CXXCPP $CPPFLAGS'
5808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5811 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5812 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5813 if test -z "$CXXCPP"; then
5814 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817 # Double quotes because CXXCPP needs to be expanded
5818 for CXXCPP in "$CXX -E" "/lib/cpp"
5820 ac_preproc_ok=false
5821 for ac_cxx_preproc_warn_flag in '' yes
5823 # Use a header file that comes with gcc, so configuring glibc
5824 # with a fresh cross-compiler works.
5825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5826 # <limits.h> exists even on freestanding compilers.
5827 # On the NeXT, cc -E runs the code through the compiler's parser,
5828 # not just through cpp. "Syntax error" is here to catch this case.
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 #ifdef __STDC__
5836 # include <limits.h>
5837 #else
5838 # include <assert.h>
5839 #endif
5840 Syntax error
5841 _ACEOF
5842 if { (ac_try="$ac_cpp conftest.$ac_ext"
5843 case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5846 esac
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } >/dev/null && {
5855 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5856 test ! -s conftest.err
5857 }; then
5859 else
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 # Broken: fails on valid input.
5864 continue
5867 rm -f conftest.err conftest.$ac_ext
5869 # OK, works on sane cases. Now check whether nonexistent headers
5870 # can be detected and how.
5871 cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h. */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 #include <ac_nonexistent.h>
5878 _ACEOF
5879 if { (ac_try="$ac_cpp conftest.$ac_ext"
5880 case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883 esac
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } >/dev/null && {
5892 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5893 test ! -s conftest.err
5894 }; then
5895 # Broken: success on invalid input.
5896 continue
5897 else
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5901 # Passes both tests.
5902 ac_preproc_ok=:
5903 break
5906 rm -f conftest.err conftest.$ac_ext
5908 done
5909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5910 rm -f conftest.err conftest.$ac_ext
5911 if $ac_preproc_ok; then
5912 break
5915 done
5916 ac_cv_prog_CXXCPP=$CXXCPP
5919 CXXCPP=$ac_cv_prog_CXXCPP
5920 else
5921 ac_cv_prog_CXXCPP=$CXXCPP
5923 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5924 echo "${ECHO_T}$CXXCPP" >&6; }
5925 ac_preproc_ok=false
5926 for ac_cxx_preproc_warn_flag in '' yes
5928 # Use a header file that comes with gcc, so configuring glibc
5929 # with a fresh cross-compiler works.
5930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5931 # <limits.h> exists even on freestanding compilers.
5932 # On the NeXT, cc -E runs the code through the compiler's parser,
5933 # not just through cpp. "Syntax error" is here to catch this case.
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #ifdef __STDC__
5941 # include <limits.h>
5942 #else
5943 # include <assert.h>
5944 #endif
5945 Syntax error
5946 _ACEOF
5947 if { (ac_try="$ac_cpp conftest.$ac_ext"
5948 case "(($ac_try" in
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5951 esac
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } >/dev/null && {
5960 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5961 test ! -s conftest.err
5962 }; then
5964 else
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5968 # Broken: fails on valid input.
5969 continue
5972 rm -f conftest.err conftest.$ac_ext
5974 # OK, works on sane cases. Now check whether nonexistent headers
5975 # can be detected and how.
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <ac_nonexistent.h>
5983 _ACEOF
5984 if { (ac_try="$ac_cpp conftest.$ac_ext"
5985 case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5991 ac_status=$?
5992 grep -v '^ *+' conftest.er1 >conftest.err
5993 rm -f conftest.er1
5994 cat conftest.err >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } >/dev/null && {
5997 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5998 test ! -s conftest.err
5999 }; then
6000 # Broken: success on invalid input.
6001 continue
6002 else
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6006 # Passes both tests.
6007 ac_preproc_ok=:
6008 break
6011 rm -f conftest.err conftest.$ac_ext
6013 done
6014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6015 rm -f conftest.err conftest.$ac_ext
6016 if $ac_preproc_ok; then
6018 else
6019 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6020 See \`config.log' for more details." >&5
6021 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6022 See \`config.log' for more details." >&2;}
6023 { (exit 1); exit 1; }; }
6026 ac_ext=c
6027 ac_cpp='$CPP $CPPFLAGS'
6028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6032 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6033 # the developers regenerating the configure script don't have to install libtool.
6034 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6035 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6036 if test "${ac_cv_path_SED+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6040 for ac_i in 1 2 3 4 5 6 7; do
6041 ac_script="$ac_script$as_nl$ac_script"
6042 done
6043 echo "$ac_script" | sed 99q >conftest.sed
6044 $as_unset ac_script || ac_script=
6045 # Extract the first word of "sed gsed" to use in msg output
6046 if test -z "$SED"; then
6047 set dummy sed gsed; ac_prog_name=$2
6048 if test "${ac_cv_path_SED+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051 ac_path_SED_found=false
6052 # Loop through the user's path and test for each of PROGNAME-LIST
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_prog in sed gsed; do
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6061 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6062 # Check for GNU ac_path_SED and select it if it is found.
6063 # Check for GNU $ac_path_SED
6064 case `"$ac_path_SED" --version 2>&1` in
6065 *GNU*)
6066 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6068 ac_count=0
6069 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6070 while :
6072 cat "conftest.in" "conftest.in" >"conftest.tmp"
6073 mv "conftest.tmp" "conftest.in"
6074 cp "conftest.in" "conftest.nl"
6075 echo '' >> "conftest.nl"
6076 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6078 ac_count=`expr $ac_count + 1`
6079 if test $ac_count -gt ${ac_path_SED_max-0}; then
6080 # Best one so far, save it but keep looking for a better one
6081 ac_cv_path_SED="$ac_path_SED"
6082 ac_path_SED_max=$ac_count
6084 # 10*(2^10) chars as input seems more than enough
6085 test $ac_count -gt 10 && break
6086 done
6087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6088 esac
6091 $ac_path_SED_found && break 3
6092 done
6093 done
6095 done
6096 IFS=$as_save_IFS
6101 SED="$ac_cv_path_SED"
6102 if test -z "$SED"; then
6103 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6104 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6105 { (exit 1); exit 1; }; }
6108 else
6109 ac_cv_path_SED=$SED
6113 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6114 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6115 SED="$ac_cv_path_SED"
6116 rm -f conftest.sed
6118 { echo "$as_me:$LINENO: checking for egrep" >&5
6119 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6120 if test "${ac_cv_prog_egrep+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6124 then ac_cv_prog_egrep='grep -E'
6125 else ac_cv_prog_egrep='egrep'
6128 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6129 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6130 EGREP=$ac_cv_prog_egrep
6134 # Check whether --with-gnu-ld was given.
6135 if test "${with_gnu_ld+set}" = set; then
6136 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6137 else
6138 with_gnu_ld=no
6141 ac_prog=ld
6142 if test "$GCC" = yes; then
6143 # Check if gcc -print-prog-name=ld gives a path.
6144 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6145 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6146 case $host in
6147 *-*-mingw*)
6148 # gcc leaves a trailing carriage return which upsets mingw
6149 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6151 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6152 esac
6153 case $ac_prog in
6154 # Accept absolute paths.
6155 [\\/]* | ?:[\\/]*)
6156 re_direlt='/[^/][^/]*/\.\./'
6157 # Canonicalize the pathname of ld
6158 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6159 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6160 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6161 done
6162 test -z "$LD" && LD="$ac_prog"
6165 # If it fails, then pretend we aren't using GCC.
6166 ac_prog=ld
6169 # If it is relative, then search for the first ld in PATH.
6170 with_gnu_ld=unknown
6172 esac
6173 elif test "$with_gnu_ld" = yes; then
6174 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6175 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6176 else
6177 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6178 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6180 if test "${lt_cv_path_LD+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183 if test -z "$LD"; then
6184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6185 for ac_dir in $PATH; do
6186 IFS="$lt_save_ifs"
6187 test -z "$ac_dir" && ac_dir=.
6188 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6189 lt_cv_path_LD="$ac_dir/$ac_prog"
6190 # Check to see if the program is GNU ld. I'd rather use --version,
6191 # but apparently some variants of GNU ld only accept -v.
6192 # Break only if it was the GNU/non-GNU ld that we prefer.
6193 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6194 *GNU* | *'with BFD'*)
6195 test "$with_gnu_ld" != no && break
6198 test "$with_gnu_ld" != yes && break
6200 esac
6202 done
6203 IFS="$lt_save_ifs"
6204 else
6205 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6209 LD="$lt_cv_path_LD"
6210 if test -n "$LD"; then
6211 { echo "$as_me:$LINENO: result: $LD" >&5
6212 echo "${ECHO_T}$LD" >&6; }
6213 else
6214 { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6217 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6218 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6219 { (exit 1); exit 1; }; }
6220 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6221 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6222 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6226 case `$LD -v 2>&1 </dev/null` in
6227 *GNU* | *'with BFD'*)
6228 lt_cv_prog_gnu_ld=yes
6231 lt_cv_prog_gnu_ld=no
6233 esac
6235 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6236 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6237 with_gnu_ld=$lt_cv_prog_gnu_ld
6240 for ac_prog in gawk mawk nawk awk
6242 # Extract the first word of "$ac_prog", so it can be a program name with args.
6243 set dummy $ac_prog; ac_word=$2
6244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6246 if test "${ac_cv_prog_AWK+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249 if test -n "$AWK"; then
6250 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6259 ac_cv_prog_AWK="$ac_prog"
6260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6263 done
6264 done
6265 IFS=$as_save_IFS
6269 AWK=$ac_cv_prog_AWK
6270 if test -n "$AWK"; then
6271 { echo "$as_me:$LINENO: result: $AWK" >&5
6272 echo "${ECHO_T}$AWK" >&6; }
6273 else
6274 { echo "$as_me:$LINENO: result: no" >&5
6275 echo "${ECHO_T}no" >&6; }
6279 test -n "$AWK" && break
6280 done
6282 # Find a good install program. We prefer a C program (faster),
6283 # so one script is as good as another. But avoid the broken or
6284 # incompatible versions:
6285 # SysV /etc/install, /usr/sbin/install
6286 # SunOS /usr/etc/install
6287 # IRIX /sbin/install
6288 # AIX /bin/install
6289 # AmigaOS /C/install, which installs bootblocks on floppy discs
6290 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6291 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6292 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6293 # OS/2's system install, which has a completely different semantic
6294 # ./install, which can be erroneously created by make from ./install.sh.
6295 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6296 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6297 if test -z "$INSTALL"; then
6298 if test "${ac_cv_path_install+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 # Account for people who put trailing slashes in PATH elements.
6307 case $as_dir/ in
6308 ./ | .// | /cC/* | \
6309 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6310 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6311 /usr/ucb/* ) ;;
6313 # OSF1 and SCO ODT 3.0 have their own names for install.
6314 # Don't use installbsd from OSF since it installs stuff as root
6315 # by default.
6316 for ac_prog in ginstall scoinst install; do
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6319 if test $ac_prog = install &&
6320 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6321 # AIX install. It has an incompatible calling convention.
6323 elif test $ac_prog = install &&
6324 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6325 # program-specific install script used by HP pwplus--don't use.
6327 else
6328 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6329 break 3
6332 done
6333 done
6335 esac
6336 done
6337 IFS=$as_save_IFS
6341 if test "${ac_cv_path_install+set}" = set; then
6342 INSTALL=$ac_cv_path_install
6343 else
6344 # As a last resort, use the slow shell script. Don't cache a
6345 # value for INSTALL within a source directory, because that will
6346 # break other packages using the cache if that directory is
6347 # removed, or if the value is a relative name.
6348 INSTALL=$ac_install_sh
6351 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6352 echo "${ECHO_T}$INSTALL" >&6; }
6354 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6355 # It thinks the first close brace ends the variable substitution.
6356 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6358 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6360 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6362 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6363 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6364 LN_S=$as_ln_s
6365 if test "$LN_S" = "ln -s"; then
6366 { echo "$as_me:$LINENO: result: yes" >&5
6367 echo "${ECHO_T}yes" >&6; }
6368 else
6369 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6370 echo "${ECHO_T}no, using $LN_S" >&6; }
6373 if test -n "$ac_tool_prefix"; then
6374 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6375 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_prog_RANLIB+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 if test -n "$RANLIB"; then
6382 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6383 else
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6387 IFS=$as_save_IFS
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 break 2
6395 done
6396 done
6397 IFS=$as_save_IFS
6401 RANLIB=$ac_cv_prog_RANLIB
6402 if test -n "$RANLIB"; then
6403 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6404 echo "${ECHO_T}$RANLIB" >&6; }
6405 else
6406 { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6412 if test -z "$ac_cv_prog_RANLIB"; then
6413 ac_ct_RANLIB=$RANLIB
6414 # Extract the first word of "ranlib", so it can be a program name with args.
6415 set dummy ranlib; ac_word=$2
6416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6418 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421 if test -n "$ac_ct_RANLIB"; then
6422 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6423 else
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_prog_ac_ct_RANLIB="ranlib"
6432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6435 done
6436 done
6437 IFS=$as_save_IFS
6441 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6442 if test -n "$ac_ct_RANLIB"; then
6443 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6444 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6445 else
6446 { echo "$as_me:$LINENO: result: no" >&5
6447 echo "${ECHO_T}no" >&6; }
6450 if test "x$ac_ct_RANLIB" = x; then
6451 RANLIB=":"
6452 else
6453 case $cross_compiling:$ac_tool_warned in
6454 yes:)
6455 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6456 whose name does not start with the host triplet. If you think this
6457 configuration is useful to you, please write to autoconf@gnu.org." >&5
6458 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6459 whose name does not start with the host triplet. If you think this
6460 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6461 ac_tool_warned=yes ;;
6462 esac
6463 RANLIB=$ac_ct_RANLIB
6465 else
6466 RANLIB="$ac_cv_prog_RANLIB"
6469 { echo "$as_me:$LINENO: checking for GNU make" >&5
6470 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6471 if test "${GNU_MAKE+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474 GNU_MAKE='Not Found' ;
6475 GNU_MAKE_VERSION_MAJOR=0 ;
6476 GNU_MAKE_VERSION_MINOR=0 ;
6477 for a in make gmake gnumake ; do
6478 if test -z "$a" ; then continue ; fi ;
6479 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6480 GNU_MAKE=$a ;
6481 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6482 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6483 break;
6485 done ;
6488 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6489 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6490 if test "x$GNU_MAKE" = "xNot Found" ; then
6491 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6492 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6493 { (exit 1); exit 1; }; }
6494 exit 1
6499 GNU_LD=0
6500 if test "x$with_gnu_ld" = "xyes" ; then
6501 GNU_LD=1
6505 # Extract the first word of "grep", so it can be a program name with args.
6506 set dummy grep; ac_word=$2
6507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6509 if test "${ac_cv_path_GREP+set}" = set; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 else
6512 case $GREP in
6513 [\\/]* | ?:[\\/]*)
6514 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6528 done
6529 done
6530 IFS=$as_save_IFS
6532 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6534 esac
6536 GREP=$ac_cv_path_GREP
6537 if test -n "$GREP"; then
6538 { echo "$as_me:$LINENO: result: $GREP" >&5
6539 echo "${ECHO_T}$GREP" >&6; }
6540 else
6541 { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6546 # Extract the first word of "ar", so it can be a program name with args.
6547 set dummy ar; ac_word=$2
6548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6550 if test "${ac_cv_path_AR+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553 case $AR in
6554 [\\/]* | ?:[\\/]*)
6555 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6569 done
6570 done
6571 IFS=$as_save_IFS
6573 test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
6575 esac
6577 AR=$ac_cv_path_AR
6578 if test -n "$AR"; then
6579 { echo "$as_me:$LINENO: result: $AR" >&5
6580 echo "${ECHO_T}$AR" >&6; }
6581 else
6582 { echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6; }
6587 # Extract the first word of "find", so it can be a program name with args.
6588 set dummy find; ac_word=$2
6589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6591 if test "${ac_cv_path_FIND+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594 case $FIND in
6595 [\\/]* | ?:[\\/]*)
6596 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6610 done
6611 done
6612 IFS=$as_save_IFS
6614 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6616 esac
6618 FIND=$ac_cv_path_FIND
6619 if test -n "$FIND"; then
6620 { echo "$as_me:$LINENO: result: $FIND" >&5
6621 echo "${ECHO_T}$FIND" >&6; }
6622 else
6623 { echo "$as_me:$LINENO: result: no" >&5
6624 echo "${ECHO_T}no" >&6; }
6628 # Extract the first word of "compress", so it can be a program name with args.
6629 set dummy compress; ac_word=$2
6630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6632 if test "${ac_cv_path_COMPRESS+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635 case $COMPRESS in
6636 [\\/]* | ?:[\\/]*)
6637 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6651 done
6652 done
6653 IFS=$as_save_IFS
6655 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6657 esac
6659 COMPRESS=$ac_cv_path_COMPRESS
6660 if test -n "$COMPRESS"; then
6661 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6662 echo "${ECHO_T}$COMPRESS" >&6; }
6663 else
6664 { echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6; }
6669 # Extract the first word of "basename", so it can be a program name with args.
6670 set dummy basename; ac_word=$2
6671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673 if test "${ac_cv_path_BASENAME+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676 case $BASENAME in
6677 [\\/]* | ?:[\\/]*)
6678 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6692 done
6693 done
6694 IFS=$as_save_IFS
6696 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6698 esac
6700 BASENAME=$ac_cv_path_BASENAME
6701 if test -n "$BASENAME"; then
6702 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6703 echo "${ECHO_T}$BASENAME" >&6; }
6704 else
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6710 # Extract the first word of "id", so it can be a program name with args.
6711 set dummy id; ac_word=$2
6712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6714 if test "${ac_cv_path_ID+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 case $ID in
6718 [\\/]* | ?:[\\/]*)
6719 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6733 done
6734 done
6735 IFS=$as_save_IFS
6737 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6739 esac
6741 ID=$ac_cv_path_ID
6742 if test -n "$ID"; then
6743 { echo "$as_me:$LINENO: result: $ID" >&5
6744 echo "${ECHO_T}$ID" >&6; }
6745 else
6746 { echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6; }
6751 # Extract the first word of "dirname", so it can be a program name with args.
6752 set dummy dirname; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_path_DIRNAME+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 case $DIRNAME in
6759 [\\/]* | ?:[\\/]*)
6760 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6774 done
6775 done
6776 IFS=$as_save_IFS
6778 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
6780 esac
6782 DIRNAME=$ac_cv_path_DIRNAME
6783 if test -n "$DIRNAME"; then
6784 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6785 echo "${ECHO_T}$DIRNAME" >&6; }
6786 else
6787 { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6792 # Extract the first word of "sh", so it can be a program name with args.
6793 set dummy sh; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_path_SHELL+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 case $SHELL in
6800 [\\/]* | ?:[\\/]*)
6801 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6815 done
6816 done
6817 IFS=$as_save_IFS
6819 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
6821 esac
6823 SHELL=$ac_cv_path_SHELL
6824 if test -n "$SHELL"; then
6825 { echo "$as_me:$LINENO: result: $SHELL" >&5
6826 echo "${ECHO_T}$SHELL" >&6; }
6827 else
6828 { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6833 # Extract the first word of "ln", so it can be a program name with args.
6834 set dummy ln; ac_word=$2
6835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837 if test "${ac_cv_path_LN+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840 case $LN in
6841 [\\/]* | ?:[\\/]*)
6842 ac_cv_path_LN="$LN" # Let the user override the test with a path.
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
6853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6856 done
6857 done
6858 IFS=$as_save_IFS
6860 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
6862 esac
6864 LN=$ac_cv_path_LN
6865 if test -n "$LN"; then
6866 { echo "$as_me:$LINENO: result: $LN" >&5
6867 echo "${ECHO_T}$LN" >&6; }
6868 else
6869 { echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6; }
6874 # Extract the first word of "dot", so it can be a program name with args.
6875 set dummy dot; ac_word=$2
6876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6878 if test "${ac_cv_path_DOT+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 case $DOT in
6882 [\\/]* | ?:[\\/]*)
6883 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6897 done
6898 done
6899 IFS=$as_save_IFS
6901 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
6903 esac
6905 DOT=$ac_cv_path_DOT
6906 if test -n "$DOT"; then
6907 { echo "$as_me:$LINENO: result: $DOT" >&5
6908 echo "${ECHO_T}$DOT" >&6; }
6909 else
6910 { echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6; }
6915 # Extract the first word of "strip", so it can be a program name with args.
6916 set dummy strip; ac_word=$2
6917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6919 if test "${ac_cv_path_STRIP+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922 case $STRIP in
6923 [\\/]* | ?:[\\/]*)
6924 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6934 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6938 done
6939 done
6940 IFS=$as_save_IFS
6942 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP=":"
6944 esac
6946 STRIP=$ac_cv_path_STRIP
6947 if test -n "$STRIP"; then
6948 { echo "$as_me:$LINENO: result: $STRIP" >&5
6949 echo "${ECHO_T}$STRIP" >&6; }
6950 else
6951 { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6956 # Extract the first word of "wget", so it can be a program name with args.
6957 set dummy wget; ac_word=$2
6958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6960 if test "${ac_cv_path_WGET+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 case $WGET in
6964 [\\/]* | ?:[\\/]*)
6965 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
6976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6979 done
6980 done
6981 IFS=$as_save_IFS
6983 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
6985 esac
6987 WGET=$ac_cv_path_WGET
6988 if test -n "$WGET"; then
6989 { echo "$as_me:$LINENO: result: $WGET" >&5
6990 echo "${ECHO_T}$WGET" >&6; }
6991 else
6992 { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6997 if test "${WGET}" != ":" ; then
6998 DOWNLOAD=${WGET}
6999 else
7000 # Extract the first word of "fetch", so it can be a program name with args.
7001 set dummy fetch; ac_word=$2
7002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004 if test "${ac_cv_path_FETCH+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 case $FETCH in
7008 [\\/]* | ?:[\\/]*)
7009 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7023 done
7024 done
7025 IFS=$as_save_IFS
7027 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7029 esac
7031 FETCH=$ac_cv_path_FETCH
7032 if test -n "$FETCH"; then
7033 { echo "$as_me:$LINENO: result: $FETCH" >&5
7034 echo "${ECHO_T}$FETCH" >&6; }
7035 else
7036 { echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6; }
7041 DOWNLOAD=${FETCH}
7045 ac_ext=c
7046 ac_cpp='$CPP $CPPFLAGS'
7047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7052 # Check whether --enable-dev-mode was given.
7053 if test "${enable_dev_mode+set}" = set; then
7054 enableval=$enable_dev_mode; case "${enableval}" in
7055 y|ye|yes) AST_DEVMODE=yes ;;
7056 n|no) AST_DEVMODE=no ;;
7057 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7058 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7059 { (exit 1); exit 1; }; } ;;
7060 esac
7065 # package option names should be in alphabetical order
7066 # by the --with option name, to make things easier for the users :-)
7069 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7070 ALSA_OPTION="asound"
7072 # Check whether --with-asound was given.
7073 if test "${with_asound+set}" = set; then
7074 withval=$with_asound;
7075 case ${withval} in
7076 n|no)
7077 USE_ALSA=no
7079 y|ye|yes)
7080 ALSA_MANDATORY="yes"
7083 ALSA_DIR="${withval}"
7084 ALSA_MANDATORY="yes"
7086 esac
7090 PBX_ALSA=0
7096 CURL_DESCRIP="cURL"
7097 CURL_OPTION="curl"
7099 # Check whether --with-curl was given.
7100 if test "${with_curl+set}" = set; then
7101 withval=$with_curl;
7102 case ${withval} in
7103 n|no)
7104 USE_CURL=no
7106 y|ye|yes)
7107 CURL_MANDATORY="yes"
7110 CURL_DIR="${withval}"
7111 CURL_MANDATORY="yes"
7113 esac
7117 PBX_CURL=0
7123 CURSES_DESCRIP="curses"
7124 CURSES_OPTION="curses"
7126 # Check whether --with-curses was given.
7127 if test "${with_curses+set}" = set; then
7128 withval=$with_curses;
7129 case ${withval} in
7130 n|no)
7131 USE_CURSES=no
7133 y|ye|yes)
7134 CURSES_MANDATORY="yes"
7137 CURSES_DIR="${withval}"
7138 CURSES_MANDATORY="yes"
7140 esac
7144 PBX_CURSES=0
7150 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7151 GNUTLS_OPTION="gnutls"
7153 # Check whether --with-gnutls was given.
7154 if test "${with_gnutls+set}" = set; then
7155 withval=$with_gnutls;
7156 case ${withval} in
7157 n|no)
7158 USE_GNUTLS=no
7160 y|ye|yes)
7161 GNUTLS_MANDATORY="yes"
7164 GNUTLS_DIR="${withval}"
7165 GNUTLS_MANDATORY="yes"
7167 esac
7171 PBX_GNUTLS=0
7177 GSM_DESCRIP="GSM"
7178 GSM_OPTION="gsm"
7180 # Check whether --with-gsm was given.
7181 if test "${with_gsm+set}" = set; then
7182 withval=$with_gsm;
7183 case ${withval} in
7184 n|no)
7185 USE_GSM=no
7187 y|ye|yes)
7188 GSM_MANDATORY="yes"
7191 GSM_DIR="${withval}"
7192 GSM_MANDATORY="yes"
7194 esac
7198 PBX_GSM=0
7204 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7205 IKSEMEL_OPTION="iksemel"
7207 # Check whether --with-iksemel was given.
7208 if test "${with_iksemel+set}" = set; then
7209 withval=$with_iksemel;
7210 case ${withval} in
7211 n|no)
7212 USE_IKSEMEL=no
7214 y|ye|yes)
7215 IKSEMEL_MANDATORY="yes"
7218 IKSEMEL_DIR="${withval}"
7219 IKSEMEL_MANDATORY="yes"
7221 esac
7225 PBX_IKSEMEL=0
7231 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7232 IMAP_TK_OPTION="imap"
7234 # Check whether --with-imap was given.
7235 if test "${with_imap+set}" = set; then
7236 withval=$with_imap;
7237 case ${withval} in
7238 n|no)
7239 USE_IMAP_TK=no
7241 y|ye|yes)
7242 IMAP_TK_MANDATORY="yes"
7245 IMAP_TK_DIR="${withval}"
7246 IMAP_TK_MANDATORY="yes"
7248 esac
7252 PBX_IMAP_TK=0
7258 ISDNNET_DESCRIP="ISDN4Linux Library"
7259 ISDNNET_OPTION="isdnnet"
7261 # Check whether --with-isdnnet was given.
7262 if test "${with_isdnnet+set}" = set; then
7263 withval=$with_isdnnet;
7264 case ${withval} in
7265 n|no)
7266 USE_ISDNNET=no
7268 y|ye|yes)
7269 ISDNNET_MANDATORY="yes"
7272 ISDNNET_DIR="${withval}"
7273 ISDNNET_MANDATORY="yes"
7275 esac
7279 PBX_ISDNNET=0
7285 KDE_DESCRIP="KDE"
7286 KDE_OPTION="kde"
7288 # Check whether --with-kde was given.
7289 if test "${with_kde+set}" = set; then
7290 withval=$with_kde;
7291 case ${withval} in
7292 n|no)
7293 USE_KDE=no
7295 y|ye|yes)
7296 KDE_MANDATORY="yes"
7299 KDE_DIR="${withval}"
7300 KDE_MANDATORY="yes"
7302 esac
7306 PBX_KDE=0
7312 MISDN_DESCRIP="mISDN User Library"
7313 MISDN_OPTION="misdn"
7315 # Check whether --with-misdn was given.
7316 if test "${with_misdn+set}" = set; then
7317 withval=$with_misdn;
7318 case ${withval} in
7319 n|no)
7320 USE_MISDN=no
7322 y|ye|yes)
7323 MISDN_MANDATORY="yes"
7326 MISDN_DIR="${withval}"
7327 MISDN_MANDATORY="yes"
7329 esac
7333 PBX_MISDN=0
7339 NBS_DESCRIP="Network Broadcast Sound"
7340 NBS_OPTION="nbs"
7342 # Check whether --with-nbs was given.
7343 if test "${with_nbs+set}" = set; then
7344 withval=$with_nbs;
7345 case ${withval} in
7346 n|no)
7347 USE_NBS=no
7349 y|ye|yes)
7350 NBS_MANDATORY="yes"
7353 NBS_DIR="${withval}"
7354 NBS_MANDATORY="yes"
7356 esac
7360 PBX_NBS=0
7366 NCURSES_DESCRIP="ncurses"
7367 NCURSES_OPTION="ncurses"
7369 # Check whether --with-ncurses was given.
7370 if test "${with_ncurses+set}" = set; then
7371 withval=$with_ncurses;
7372 case ${withval} in
7373 n|no)
7374 USE_NCURSES=no
7376 y|ye|yes)
7377 NCURSES_MANDATORY="yes"
7380 NCURSES_DIR="${withval}"
7381 NCURSES_MANDATORY="yes"
7383 esac
7387 PBX_NCURSES=0
7393 NETSNMP_DESCRIP="Net-SNMP"
7394 NETSNMP_OPTION="netsnmp"
7396 # Check whether --with-netsnmp was given.
7397 if test "${with_netsnmp+set}" = set; then
7398 withval=$with_netsnmp;
7399 case ${withval} in
7400 n|no)
7401 USE_NETSNMP=no
7403 y|ye|yes)
7404 NETSNMP_MANDATORY="yes"
7407 NETSNMP_DIR="${withval}"
7408 NETSNMP_MANDATORY="yes"
7410 esac
7414 PBX_NETSNMP=0
7420 NEWT_DESCRIP="newt"
7421 NEWT_OPTION="newt"
7423 # Check whether --with-newt was given.
7424 if test "${with_newt+set}" = set; then
7425 withval=$with_newt;
7426 case ${withval} in
7427 n|no)
7428 USE_NEWT=no
7430 y|ye|yes)
7431 NEWT_MANDATORY="yes"
7434 NEWT_DIR="${withval}"
7435 NEWT_MANDATORY="yes"
7437 esac
7441 PBX_NEWT=0
7447 UNIXODBC_DESCRIP="unixODBC"
7448 UNIXODBC_OPTION="odbc"
7450 # Check whether --with-odbc was given.
7451 if test "${with_odbc+set}" = set; then
7452 withval=$with_odbc;
7453 case ${withval} in
7454 n|no)
7455 USE_UNIXODBC=no
7457 y|ye|yes)
7458 UNIXODBC_MANDATORY="yes"
7461 UNIXODBC_DIR="${withval}"
7462 UNIXODBC_MANDATORY="yes"
7464 esac
7468 PBX_UNIXODBC=0
7474 OGG_DESCRIP="OGG"
7475 OGG_OPTION="ogg"
7477 # Check whether --with-ogg was given.
7478 if test "${with_ogg+set}" = set; then
7479 withval=$with_ogg;
7480 case ${withval} in
7481 n|no)
7482 USE_OGG=no
7484 y|ye|yes)
7485 OGG_MANDATORY="yes"
7488 OGG_DIR="${withval}"
7489 OGG_MANDATORY="yes"
7491 esac
7495 PBX_OGG=0
7501 OSPTK_DESCRIP="OSP Toolkit"
7502 OSPTK_OPTION="osptk"
7504 # Check whether --with-osptk was given.
7505 if test "${with_osptk+set}" = set; then
7506 withval=$with_osptk;
7507 case ${withval} in
7508 n|no)
7509 USE_OSPTK=no
7511 y|ye|yes)
7512 OSPTK_MANDATORY="yes"
7515 OSPTK_DIR="${withval}"
7516 OSPTK_MANDATORY="yes"
7518 esac
7522 PBX_OSPTK=0
7528 OSS_DESCRIP="Open Sound System"
7529 OSS_OPTION="oss"
7531 # Check whether --with-oss was given.
7532 if test "${with_oss+set}" = set; then
7533 withval=$with_oss;
7534 case ${withval} in
7535 n|no)
7536 USE_OSS=no
7538 y|ye|yes)
7539 OSS_MANDATORY="yes"
7542 OSS_DIR="${withval}"
7543 OSS_MANDATORY="yes"
7545 esac
7549 PBX_OSS=0
7555 POPT_DESCRIP="popt"
7556 POPT_OPTION="popt"
7558 # Check whether --with-popt was given.
7559 if test "${with_popt+set}" = set; then
7560 withval=$with_popt;
7561 case ${withval} in
7562 n|no)
7563 USE_POPT=no
7565 y|ye|yes)
7566 POPT_MANDATORY="yes"
7569 POPT_DIR="${withval}"
7570 POPT_MANDATORY="yes"
7572 esac
7576 PBX_POPT=0
7582 PGSQL_DESCRIP="PostgreSQL"
7583 PGSQL_OPTION="postgres"
7585 # Check whether --with-postgres was given.
7586 if test "${with_postgres+set}" = set; then
7587 withval=$with_postgres;
7588 case ${withval} in
7589 n|no)
7590 USE_PGSQL=no
7592 y|ye|yes)
7593 PGSQL_MANDATORY="yes"
7596 PGSQL_DIR="${withval}"
7597 PGSQL_MANDATORY="yes"
7599 esac
7603 PBX_PGSQL=0
7609 PRI_DESCRIP="ISDN PRI"
7610 PRI_OPTION="pri"
7612 # Check whether --with-pri was given.
7613 if test "${with_pri+set}" = set; then
7614 withval=$with_pri;
7615 case ${withval} in
7616 n|no)
7617 USE_PRI=no
7619 y|ye|yes)
7620 PRI_MANDATORY="yes"
7623 PRI_DIR="${withval}"
7624 PRI_MANDATORY="yes"
7626 esac
7630 PBX_PRI=0
7636 PWLIB_DESCRIP="PWlib"
7637 PWLIB_OPTION="pwlib"
7639 # Check whether --with-pwlib was given.
7640 if test "${with_pwlib+set}" = set; then
7641 withval=$with_pwlib;
7642 case ${withval} in
7643 n|no)
7644 USE_PWLIB=no
7646 y|ye|yes)
7647 PWLIB_MANDATORY="yes"
7650 PWLIB_DIR="${withval}"
7651 PWLIB_MANDATORY="yes"
7653 esac
7657 PBX_PWLIB=0
7663 OPENH323_DESCRIP="OpenH323"
7664 OPENH323_OPTION="h323"
7666 # Check whether --with-h323 was given.
7667 if test "${with_h323+set}" = set; then
7668 withval=$with_h323;
7669 case ${withval} in
7670 n|no)
7671 USE_OPENH323=no
7673 y|ye|yes)
7674 OPENH323_MANDATORY="yes"
7677 OPENH323_DIR="${withval}"
7678 OPENH323_MANDATORY="yes"
7680 esac
7684 PBX_OPENH323=0
7690 QT_DESCRIP="Qt"
7691 QT_OPTION="qt"
7693 # Check whether --with-qt was given.
7694 if test "${with_qt+set}" = set; then
7695 withval=$with_qt;
7696 case ${withval} in
7697 n|no)
7698 USE_QT=no
7700 y|ye|yes)
7701 QT_MANDATORY="yes"
7704 QT_DIR="${withval}"
7705 QT_MANDATORY="yes"
7707 esac
7711 PBX_QT=0
7717 RADIUS_DESCRIP="Radius Client"
7718 RADIUS_OPTION="radius"
7720 # Check whether --with-radius was given.
7721 if test "${with_radius+set}" = set; then
7722 withval=$with_radius;
7723 case ${withval} in
7724 n|no)
7725 USE_RADIUS=no
7727 y|ye|yes)
7728 RADIUS_MANDATORY="yes"
7731 RADIUS_DIR="${withval}"
7732 RADIUS_MANDATORY="yes"
7734 esac
7738 PBX_RADIUS=0
7744 SPEEX_DESCRIP="Speex"
7745 SPEEX_OPTION="speex"
7747 # Check whether --with-speex was given.
7748 if test "${with_speex+set}" = set; then
7749 withval=$with_speex;
7750 case ${withval} in
7751 n|no)
7752 USE_SPEEX=no
7754 y|ye|yes)
7755 SPEEX_MANDATORY="yes"
7758 SPEEX_DIR="${withval}"
7759 SPEEX_MANDATORY="yes"
7761 esac
7765 PBX_SPEEX=0
7771 SQLITE_DESCRIP="SQLite"
7772 SQLITE_OPTION="sqlite"
7774 # Check whether --with-sqlite was given.
7775 if test "${with_sqlite+set}" = set; then
7776 withval=$with_sqlite;
7777 case ${withval} in
7778 n|no)
7779 USE_SQLITE=no
7781 y|ye|yes)
7782 SQLITE_MANDATORY="yes"
7785 SQLITE_DIR="${withval}"
7786 SQLITE_MANDATORY="yes"
7788 esac
7792 PBX_SQLITE=0
7798 SUPPSERV_DESCRIP="mISDN Supplemental Services"
7799 SUPPSERV_OPTION="suppserv"
7801 # Check whether --with-suppserv was given.
7802 if test "${with_suppserv+set}" = set; then
7803 withval=$with_suppserv;
7804 case ${withval} in
7805 n|no)
7806 USE_SUPPSERV=no
7808 y|ye|yes)
7809 SUPPSERV_MANDATORY="yes"
7812 SUPPSERV_DIR="${withval}"
7813 SUPPSERV_MANDATORY="yes"
7815 esac
7819 PBX_SUPPSERV=0
7825 OPENSSL_DESCRIP="OpenSSL"
7826 OPENSSL_OPTION="ssl"
7828 # Check whether --with-ssl was given.
7829 if test "${with_ssl+set}" = set; then
7830 withval=$with_ssl;
7831 case ${withval} in
7832 n|no)
7833 USE_OPENSSL=no
7835 y|ye|yes)
7836 OPENSSL_MANDATORY="yes"
7839 OPENSSL_DIR="${withval}"
7840 OPENSSL_MANDATORY="yes"
7842 esac
7846 PBX_OPENSSL=0
7852 FREETDS_DESCRIP="FreeTDS"
7853 FREETDS_OPTION="tds"
7855 # Check whether --with-tds was given.
7856 if test "${with_tds+set}" = set; then
7857 withval=$with_tds;
7858 case ${withval} in
7859 n|no)
7860 USE_FREETDS=no
7862 y|ye|yes)
7863 FREETDS_MANDATORY="yes"
7866 FREETDS_DIR="${withval}"
7867 FREETDS_MANDATORY="yes"
7869 esac
7873 PBX_FREETDS=0
7879 TERMCAP_DESCRIP="Termcap"
7880 TERMCAP_OPTION="termcap"
7882 # Check whether --with-termcap was given.
7883 if test "${with_termcap+set}" = set; then
7884 withval=$with_termcap;
7885 case ${withval} in
7886 n|no)
7887 USE_TERMCAP=no
7889 y|ye|yes)
7890 TERMCAP_MANDATORY="yes"
7893 TERMCAP_DIR="${withval}"
7894 TERMCAP_MANDATORY="yes"
7896 esac
7900 PBX_TERMCAP=0
7906 TINFO_DESCRIP="Term Info"
7907 TINFO_OPTION="tinfo"
7909 # Check whether --with-tinfo was given.
7910 if test "${with_tinfo+set}" = set; then
7911 withval=$with_tinfo;
7912 case ${withval} in
7913 n|no)
7914 USE_TINFO=no
7916 y|ye|yes)
7917 TINFO_MANDATORY="yes"
7920 TINFO_DIR="${withval}"
7921 TINFO_MANDATORY="yes"
7923 esac
7927 PBX_TINFO=0
7933 TONEZONE_DESCRIP="tonezone"
7934 TONEZONE_OPTION="tonezone"
7936 # Check whether --with-tonezone was given.
7937 if test "${with_tonezone+set}" = set; then
7938 withval=$with_tonezone;
7939 case ${withval} in
7940 n|no)
7941 USE_TONEZONE=no
7943 y|ye|yes)
7944 TONEZONE_MANDATORY="yes"
7947 TONEZONE_DIR="${withval}"
7948 TONEZONE_MANDATORY="yes"
7950 esac
7954 PBX_TONEZONE=0
7960 VORBIS_DESCRIP="Vorbis"
7961 VORBIS_OPTION="vorbis"
7963 # Check whether --with-vorbis was given.
7964 if test "${with_vorbis+set}" = set; then
7965 withval=$with_vorbis;
7966 case ${withval} in
7967 n|no)
7968 USE_VORBIS=no
7970 y|ye|yes)
7971 VORBIS_MANDATORY="yes"
7974 VORBIS_DIR="${withval}"
7975 VORBIS_MANDATORY="yes"
7977 esac
7981 PBX_VORBIS=0
7987 VPB_DESCRIP="Voicetronix API"
7988 VPB_OPTION="vpb"
7990 # Check whether --with-vpb was given.
7991 if test "${with_vpb+set}" = set; then
7992 withval=$with_vpb;
7993 case ${withval} in
7994 n|no)
7995 USE_VPB=no
7997 y|ye|yes)
7998 VPB_MANDATORY="yes"
8001 VPB_DIR="${withval}"
8002 VPB_MANDATORY="yes"
8004 esac
8008 PBX_VPB=0
8014 ZLIB_DESCRIP="zlib"
8015 ZLIB_OPTION="z"
8017 # Check whether --with-z was given.
8018 if test "${with_z+set}" = set; then
8019 withval=$with_z;
8020 case ${withval} in
8021 n|no)
8022 USE_ZLIB=no
8024 y|ye|yes)
8025 ZLIB_MANDATORY="yes"
8028 ZLIB_DIR="${withval}"
8029 ZLIB_MANDATORY="yes"
8031 esac
8035 PBX_ZLIB=0
8041 ZAPTEL_DESCRIP="Zaptel"
8042 ZAPTEL_OPTION="zaptel"
8044 # Check whether --with-zaptel was given.
8045 if test "${with_zaptel+set}" = set; then
8046 withval=$with_zaptel;
8047 case ${withval} in
8048 n|no)
8049 USE_ZAPTEL=no
8051 y|ye|yes)
8052 ZAPTEL_MANDATORY="yes"
8055 ZAPTEL_DIR="${withval}"
8056 ZAPTEL_MANDATORY="yes"
8058 esac
8062 PBX_ZAPTEL=0
8068 # check for basic system features and functionality before
8069 # checking for package libraries
8071 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8072 # for constant arguments. Useless!
8073 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8074 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8075 if test "${ac_cv_working_alloca_h+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078 cat >conftest.$ac_ext <<_ACEOF
8079 /* confdefs.h. */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8084 #include <alloca.h>
8086 main ()
8088 char *p = (char *) alloca (2 * sizeof (int));
8089 if (p) return 0;
8091 return 0;
8093 _ACEOF
8094 rm -f conftest.$ac_objext conftest$ac_exeext
8095 if { (ac_try="$ac_link"
8096 case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8099 esac
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_link") 2>conftest.er1
8102 ac_status=$?
8103 grep -v '^ *+' conftest.er1 >conftest.err
8104 rm -f conftest.er1
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } && {
8108 test -z "$ac_c_werror_flag" ||
8109 test ! -s conftest.err
8110 } && test -s conftest$ac_exeext &&
8111 $as_test_x conftest$ac_exeext; then
8112 ac_cv_working_alloca_h=yes
8113 else
8114 echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8117 ac_cv_working_alloca_h=no
8120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8121 conftest$ac_exeext conftest.$ac_ext
8123 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8124 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8125 if test $ac_cv_working_alloca_h = yes; then
8127 cat >>confdefs.h <<\_ACEOF
8128 #define HAVE_ALLOCA_H 1
8129 _ACEOF
8133 { echo "$as_me:$LINENO: checking for alloca" >&5
8134 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8135 if test "${ac_cv_func_alloca_works+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138 cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h. */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8144 #ifdef __GNUC__
8145 # define alloca __builtin_alloca
8146 #else
8147 # ifdef _MSC_VER
8148 # include <malloc.h>
8149 # define alloca _alloca
8150 # else
8151 # ifdef HAVE_ALLOCA_H
8152 # include <alloca.h>
8153 # else
8154 # ifdef _AIX
8155 #pragma alloca
8156 # else
8157 # ifndef alloca /* predefined by HP cc +Olibcalls */
8158 char *alloca ();
8159 # endif
8160 # endif
8161 # endif
8162 # endif
8163 #endif
8166 main ()
8168 char *p = (char *) alloca (1);
8169 if (p) return 0;
8171 return 0;
8173 _ACEOF
8174 rm -f conftest.$ac_objext conftest$ac_exeext
8175 if { (ac_try="$ac_link"
8176 case "(($ac_try" in
8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178 *) ac_try_echo=$ac_try;;
8179 esac
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181 (eval "$ac_link") 2>conftest.er1
8182 ac_status=$?
8183 grep -v '^ *+' conftest.er1 >conftest.err
8184 rm -f conftest.er1
8185 cat conftest.err >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } && {
8188 test -z "$ac_c_werror_flag" ||
8189 test ! -s conftest.err
8190 } && test -s conftest$ac_exeext &&
8191 $as_test_x conftest$ac_exeext; then
8192 ac_cv_func_alloca_works=yes
8193 else
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8197 ac_cv_func_alloca_works=no
8200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8201 conftest$ac_exeext conftest.$ac_ext
8203 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8204 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8206 if test $ac_cv_func_alloca_works = yes; then
8208 cat >>confdefs.h <<\_ACEOF
8209 #define HAVE_ALLOCA 1
8210 _ACEOF
8212 else
8213 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8214 # that cause trouble. Some versions do not even contain alloca or
8215 # contain a buggy version. If you still want to use their alloca,
8216 # use ar to extract alloca.o from them instead of compiling alloca.c.
8218 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8220 cat >>confdefs.h <<\_ACEOF
8221 #define C_ALLOCA 1
8222 _ACEOF
8225 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8226 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8227 if test "${ac_cv_os_cray+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230 cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 #if defined CRAY && ! defined CRAY2
8237 webecray
8238 #else
8239 wenotbecray
8240 #endif
8242 _ACEOF
8243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244 $EGREP "webecray" >/dev/null 2>&1; then
8245 ac_cv_os_cray=yes
8246 else
8247 ac_cv_os_cray=no
8249 rm -f conftest*
8252 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8253 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8254 if test $ac_cv_os_cray = yes; then
8255 for ac_func in _getb67 GETB67 getb67; do
8256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262 cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h. */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8270 #define $ac_func innocuous_$ac_func
8272 /* System header to define __stub macros and hopefully few prototypes,
8273 which can conflict with char $ac_func (); below.
8274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8275 <limits.h> exists even on freestanding compilers. */
8277 #ifdef __STDC__
8278 # include <limits.h>
8279 #else
8280 # include <assert.h>
8281 #endif
8283 #undef $ac_func
8285 /* Override any GCC internal prototype to avoid an error.
8286 Use char because int might match the return type of a GCC
8287 builtin and then its argument prototype would still apply. */
8288 #ifdef __cplusplus
8289 extern "C"
8290 #endif
8291 char $ac_func ();
8292 /* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
8295 #if defined __stub_$ac_func || defined __stub___$ac_func
8296 choke me
8297 #endif
8300 main ()
8302 return $ac_func ();
8304 return 0;
8306 _ACEOF
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (ac_try="$ac_link"
8309 case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8312 esac
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_link") 2>conftest.er1
8315 ac_status=$?
8316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest$ac_exeext &&
8324 $as_test_x conftest$ac_exeext; then
8325 eval "$as_ac_var=yes"
8326 else
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8330 eval "$as_ac_var=no"
8333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8334 conftest$ac_exeext conftest.$ac_ext
8336 ac_res=`eval echo '${'$as_ac_var'}'`
8337 { echo "$as_me:$LINENO: result: $ac_res" >&5
8338 echo "${ECHO_T}$ac_res" >&6; }
8339 if test `eval echo '${'$as_ac_var'}'` = yes; then
8341 cat >>confdefs.h <<_ACEOF
8342 #define CRAY_STACKSEG_END $ac_func
8343 _ACEOF
8345 break
8348 done
8351 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8352 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8353 if test "${ac_cv_c_stack_direction+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356 if test "$cross_compiling" = yes; then
8357 ac_cv_c_stack_direction=0
8358 else
8359 cat >conftest.$ac_ext <<_ACEOF
8360 /* confdefs.h. */
8361 _ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365 $ac_includes_default
8367 find_stack_direction ()
8369 static char *addr = 0;
8370 auto char dummy;
8371 if (addr == 0)
8373 addr = &dummy;
8374 return find_stack_direction ();
8376 else
8377 return (&dummy > addr) ? 1 : -1;
8381 main ()
8383 return find_stack_direction () < 0;
8385 _ACEOF
8386 rm -f conftest$ac_exeext
8387 if { (ac_try="$ac_link"
8388 case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8391 esac
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_link") 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8397 { (case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8400 esac
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_try") 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 ac_cv_c_stack_direction=1
8407 else
8408 echo "$as_me: program exited with status $ac_status" >&5
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 ( exit $ac_status )
8413 ac_cv_c_stack_direction=-1
8415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8420 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8421 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8423 cat >>confdefs.h <<_ACEOF
8424 #define STACK_DIRECTION $ac_cv_c_stack_direction
8425 _ACEOF
8435 ac_header_dirent=no
8436 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8437 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8438 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8439 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 else
8443 cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h. */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 #include <sys/types.h>
8450 #include <$ac_hdr>
8453 main ()
8455 if ((DIR *) 0)
8456 return 0;
8458 return 0;
8460 _ACEOF
8461 rm -f conftest.$ac_objext
8462 if { (ac_try="$ac_compile"
8463 case "(($ac_try" in
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8466 esac
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_compile") 2>conftest.er1
8469 ac_status=$?
8470 grep -v '^ *+' conftest.er1 >conftest.err
8471 rm -f conftest.er1
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } && {
8475 test -z "$ac_c_werror_flag" ||
8476 test ! -s conftest.err
8477 } && test -s conftest.$ac_objext; then
8478 eval "$as_ac_Header=yes"
8479 else
8480 echo "$as_me: failed program was:" >&5
8481 sed 's/^/| /' conftest.$ac_ext >&5
8483 eval "$as_ac_Header=no"
8486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 ac_res=`eval echo '${'$as_ac_Header'}'`
8489 { echo "$as_me:$LINENO: result: $ac_res" >&5
8490 echo "${ECHO_T}$ac_res" >&6; }
8491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8492 cat >>confdefs.h <<_ACEOF
8493 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8494 _ACEOF
8496 ac_header_dirent=$ac_hdr; break
8499 done
8500 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8501 if test $ac_header_dirent = dirent.h; then
8502 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8503 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8504 if test "${ac_cv_search_opendir+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507 ac_func_search_save_LIBS=$LIBS
8508 cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h. */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8515 /* Override any GCC internal prototype to avoid an error.
8516 Use char because int might match the return type of a GCC
8517 builtin and then its argument prototype would still apply. */
8518 #ifdef __cplusplus
8519 extern "C"
8520 #endif
8521 char opendir ();
8523 main ()
8525 return opendir ();
8527 return 0;
8529 _ACEOF
8530 for ac_lib in '' dir; do
8531 if test -z "$ac_lib"; then
8532 ac_res="none required"
8533 else
8534 ac_res=-l$ac_lib
8535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8537 rm -f conftest.$ac_objext conftest$ac_exeext
8538 if { (ac_try="$ac_link"
8539 case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_link") 2>conftest.er1
8545 ac_status=$?
8546 grep -v '^ *+' conftest.er1 >conftest.err
8547 rm -f conftest.er1
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } && {
8551 test -z "$ac_c_werror_flag" ||
8552 test ! -s conftest.err
8553 } && test -s conftest$ac_exeext &&
8554 $as_test_x conftest$ac_exeext; then
8555 ac_cv_search_opendir=$ac_res
8556 else
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8564 conftest$ac_exeext
8565 if test "${ac_cv_search_opendir+set}" = set; then
8566 break
8568 done
8569 if test "${ac_cv_search_opendir+set}" = set; then
8571 else
8572 ac_cv_search_opendir=no
8574 rm conftest.$ac_ext
8575 LIBS=$ac_func_search_save_LIBS
8577 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8578 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8579 ac_res=$ac_cv_search_opendir
8580 if test "$ac_res" != no; then
8581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8585 else
8586 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8587 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8588 if test "${ac_cv_search_opendir+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591 ac_func_search_save_LIBS=$LIBS
8592 cat >conftest.$ac_ext <<_ACEOF
8593 /* confdefs.h. */
8594 _ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8599 /* Override any GCC internal prototype to avoid an error.
8600 Use char because int might match the return type of a GCC
8601 builtin and then its argument prototype would still apply. */
8602 #ifdef __cplusplus
8603 extern "C"
8604 #endif
8605 char opendir ();
8607 main ()
8609 return opendir ();
8611 return 0;
8613 _ACEOF
8614 for ac_lib in '' x; do
8615 if test -z "$ac_lib"; then
8616 ac_res="none required"
8617 else
8618 ac_res=-l$ac_lib
8619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8621 rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (ac_try="$ac_link"
8623 case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8626 esac
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_link") 2>conftest.er1
8629 ac_status=$?
8630 grep -v '^ *+' conftest.er1 >conftest.err
8631 rm -f conftest.er1
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } && {
8635 test -z "$ac_c_werror_flag" ||
8636 test ! -s conftest.err
8637 } && test -s conftest$ac_exeext &&
8638 $as_test_x conftest$ac_exeext; then
8639 ac_cv_search_opendir=$ac_res
8640 else
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8648 conftest$ac_exeext
8649 if test "${ac_cv_search_opendir+set}" = set; then
8650 break
8652 done
8653 if test "${ac_cv_search_opendir+set}" = set; then
8655 else
8656 ac_cv_search_opendir=no
8658 rm conftest.$ac_ext
8659 LIBS=$ac_func_search_save_LIBS
8661 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8662 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8663 ac_res=$ac_cv_search_opendir
8664 if test "$ac_res" != no; then
8665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8671 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8672 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8673 if test "${ac_cv_header_stdc+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676 cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h. */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8682 #include <stdlib.h>
8683 #include <stdarg.h>
8684 #include <string.h>
8685 #include <float.h>
8688 main ()
8692 return 0;
8694 _ACEOF
8695 rm -f conftest.$ac_objext
8696 if { (ac_try="$ac_compile"
8697 case "(($ac_try" in
8698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699 *) ac_try_echo=$ac_try;;
8700 esac
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702 (eval "$ac_compile") 2>conftest.er1
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } && {
8709 test -z "$ac_c_werror_flag" ||
8710 test ! -s conftest.err
8711 } && test -s conftest.$ac_objext; then
8712 ac_cv_header_stdc=yes
8713 else
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_cv_header_stdc=no
8720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 if test $ac_cv_header_stdc = yes; then
8723 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8724 cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h. */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 #include <string.h>
8732 _ACEOF
8733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8734 $EGREP "memchr" >/dev/null 2>&1; then
8736 else
8737 ac_cv_header_stdc=no
8739 rm -f conftest*
8743 if test $ac_cv_header_stdc = yes; then
8744 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h. */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 #include <stdlib.h>
8753 _ACEOF
8754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8755 $EGREP "free" >/dev/null 2>&1; then
8757 else
8758 ac_cv_header_stdc=no
8760 rm -f conftest*
8764 if test $ac_cv_header_stdc = yes; then
8765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8766 if test "$cross_compiling" = yes; then
8768 else
8769 cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h. */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 #include <ctype.h>
8776 #include <stdlib.h>
8777 #if ((' ' & 0x0FF) == 0x020)
8778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8780 #else
8781 # define ISLOWER(c) \
8782 (('a' <= (c) && (c) <= 'i') \
8783 || ('j' <= (c) && (c) <= 'r') \
8784 || ('s' <= (c) && (c) <= 'z'))
8785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8786 #endif
8788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8790 main ()
8792 int i;
8793 for (i = 0; i < 256; i++)
8794 if (XOR (islower (i), ISLOWER (i))
8795 || toupper (i) != TOUPPER (i))
8796 return 2;
8797 return 0;
8799 _ACEOF
8800 rm -f conftest$ac_exeext
8801 if { (ac_try="$ac_link"
8802 case "(($ac_try" in
8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8805 esac
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807 (eval "$ac_link") 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8811 { (case "(($ac_try" in
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8814 esac
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_try") 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8821 else
8822 echo "$as_me: program exited with status $ac_status" >&5
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8826 ( exit $ac_status )
8827 ac_cv_header_stdc=no
8829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8835 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8836 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8837 if test $ac_cv_header_stdc = yes; then
8839 cat >>confdefs.h <<\_ACEOF
8840 #define STDC_HEADERS 1
8841 _ACEOF
8845 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8846 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8847 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8848 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 else
8850 cat >conftest.$ac_ext <<_ACEOF
8851 /* confdefs.h. */
8852 _ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8856 #include <sys/types.h>
8857 #include <sys/wait.h>
8858 #ifndef WEXITSTATUS
8859 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8860 #endif
8861 #ifndef WIFEXITED
8862 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8863 #endif
8866 main ()
8868 int s;
8869 wait (&s);
8870 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8872 return 0;
8874 _ACEOF
8875 rm -f conftest.$ac_objext
8876 if { (ac_try="$ac_compile"
8877 case "(($ac_try" in
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8880 esac
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_compile") 2>conftest.er1
8883 ac_status=$?
8884 grep -v '^ *+' conftest.er1 >conftest.err
8885 rm -f conftest.er1
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && {
8889 test -z "$ac_c_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest.$ac_objext; then
8892 ac_cv_header_sys_wait_h=yes
8893 else
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 ac_cv_header_sys_wait_h=no
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8903 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8904 if test $ac_cv_header_sys_wait_h = yes; then
8906 cat >>confdefs.h <<\_ACEOF
8907 #define HAVE_SYS_WAIT_H 1
8908 _ACEOF
8935 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
8937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 ac_res=`eval echo '${'$as_ac_Header'}'`
8945 { echo "$as_me:$LINENO: result: $ac_res" >&5
8946 echo "${ECHO_T}$ac_res" >&6; }
8947 else
8948 # Is the header compilable?
8949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8951 cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h. */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 $ac_includes_default
8958 #include <$ac_header>
8959 _ACEOF
8960 rm -f conftest.$ac_objext
8961 if { (ac_try="$ac_compile"
8962 case "(($ac_try" in
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8965 esac
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_compile") 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } && {
8974 test -z "$ac_c_werror_flag" ||
8975 test ! -s conftest.err
8976 } && test -s conftest.$ac_objext; then
8977 ac_header_compiler=yes
8978 else
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8982 ac_header_compiler=no
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8987 echo "${ECHO_T}$ac_header_compiler" >&6; }
8989 # Is the header present?
8990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8992 cat >conftest.$ac_ext <<_ACEOF
8993 /* confdefs.h. */
8994 _ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8998 #include <$ac_header>
8999 _ACEOF
9000 if { (ac_try="$ac_cpp conftest.$ac_ext"
9001 case "(($ac_try" in
9002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9004 esac
9005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } >/dev/null && {
9013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 }; then
9016 ac_header_preproc=yes
9017 else
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 ac_header_preproc=no
9024 rm -f conftest.err conftest.$ac_ext
9025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9026 echo "${ECHO_T}$ac_header_preproc" >&6; }
9028 # So? What about this header?
9029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9030 yes:no: )
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9035 ac_header_preproc=yes
9037 no:yes:* )
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9052 esac
9053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058 eval "$as_ac_Header=\$ac_header_preproc"
9060 ac_res=`eval echo '${'$as_ac_Header'}'`
9061 { echo "$as_me:$LINENO: result: $ac_res" >&5
9062 echo "${ECHO_T}$ac_res" >&6; }
9065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9066 cat >>confdefs.h <<_ACEOF
9067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9068 _ACEOF
9072 done
9075 # Check whether --enable-largefile was given.
9076 if test "${enable_largefile+set}" = set; then
9077 enableval=$enable_largefile;
9080 if test "$enable_largefile" != no; then
9082 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9083 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9084 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087 ac_cv_sys_largefile_CC=no
9088 if test "$GCC" != yes; then
9089 ac_save_CC=$CC
9090 while :; do
9091 # IRIX 6.2 and later do not support large files by default,
9092 # so use the C compiler's -n32 option if that helps.
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 #include <sys/types.h>
9100 /* Check that off_t can represent 2**63 - 1 correctly.
9101 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9102 since some C++ compilers masquerading as C compilers
9103 incorrectly reject 9223372036854775807. */
9104 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9105 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9106 && LARGE_OFF_T % 2147483647 == 1)
9107 ? 1 : -1];
9109 main ()
9113 return 0;
9115 _ACEOF
9116 rm -f conftest.$ac_objext
9117 if { (ac_try="$ac_compile"
9118 case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9121 esac
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_compile") 2>conftest.er1
9124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest.$ac_objext; then
9133 break
9134 else
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9141 rm -f core conftest.err conftest.$ac_objext
9142 CC="$CC -n32"
9143 rm -f conftest.$ac_objext
9144 if { (ac_try="$ac_compile"
9145 case "(($ac_try" in
9146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9148 esac
9149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150 (eval "$ac_compile") 2>conftest.er1
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } && {
9157 test -z "$ac_c_werror_flag" ||
9158 test ! -s conftest.err
9159 } && test -s conftest.$ac_objext; then
9160 ac_cv_sys_largefile_CC=' -n32'; break
9161 else
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9168 rm -f core conftest.err conftest.$ac_objext
9169 break
9170 done
9171 CC=$ac_save_CC
9172 rm -f conftest.$ac_ext
9175 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9176 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9177 if test "$ac_cv_sys_largefile_CC" != no; then
9178 CC=$CC$ac_cv_sys_largefile_CC
9181 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9182 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9183 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186 while :; do
9187 cat >conftest.$ac_ext <<_ACEOF
9188 /* confdefs.h. */
9189 _ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9193 #include <sys/types.h>
9194 /* Check that off_t can represent 2**63 - 1 correctly.
9195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9196 since some C++ compilers masquerading as C compilers
9197 incorrectly reject 9223372036854775807. */
9198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9200 && LARGE_OFF_T % 2147483647 == 1)
9201 ? 1 : -1];
9203 main ()
9207 return 0;
9209 _ACEOF
9210 rm -f conftest.$ac_objext
9211 if { (ac_try="$ac_compile"
9212 case "(($ac_try" in
9213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9215 esac
9216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217 (eval "$ac_compile") 2>conftest.er1
9218 ac_status=$?
9219 grep -v '^ *+' conftest.er1 >conftest.err
9220 rm -f conftest.er1
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } && {
9224 test -z "$ac_c_werror_flag" ||
9225 test ! -s conftest.err
9226 } && test -s conftest.$ac_objext; then
9227 ac_cv_sys_file_offset_bits=no; break
9228 else
9229 echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 cat >conftest.$ac_ext <<_ACEOF
9237 /* confdefs.h. */
9238 _ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h. */
9242 #define _FILE_OFFSET_BITS 64
9243 #include <sys/types.h>
9244 /* Check that off_t can represent 2**63 - 1 correctly.
9245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9246 since some C++ compilers masquerading as C compilers
9247 incorrectly reject 9223372036854775807. */
9248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9250 && LARGE_OFF_T % 2147483647 == 1)
9251 ? 1 : -1];
9253 main ()
9257 return 0;
9259 _ACEOF
9260 rm -f conftest.$ac_objext
9261 if { (ac_try="$ac_compile"
9262 case "(($ac_try" in
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9265 esac
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_compile") 2>conftest.er1
9268 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err
9270 rm -f conftest.er1
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest.$ac_objext; then
9277 ac_cv_sys_file_offset_bits=64; break
9278 else
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286 ac_cv_sys_file_offset_bits=unknown
9287 break
9288 done
9290 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9291 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9292 case $ac_cv_sys_file_offset_bits in #(
9293 no | unknown) ;;
9295 cat >>confdefs.h <<_ACEOF
9296 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9297 _ACEOF
9299 esac
9300 rm -f conftest*
9301 if test $ac_cv_sys_file_offset_bits = unknown; then
9302 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9303 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9304 if test "${ac_cv_sys_large_files+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 else
9307 while :; do
9308 cat >conftest.$ac_ext <<_ACEOF
9309 /* confdefs.h. */
9310 _ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h. */
9314 #include <sys/types.h>
9315 /* Check that off_t can represent 2**63 - 1 correctly.
9316 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9317 since some C++ compilers masquerading as C compilers
9318 incorrectly reject 9223372036854775807. */
9319 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9320 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9321 && LARGE_OFF_T % 2147483647 == 1)
9322 ? 1 : -1];
9324 main ()
9328 return 0;
9330 _ACEOF
9331 rm -f conftest.$ac_objext
9332 if { (ac_try="$ac_compile"
9333 case "(($ac_try" in
9334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9335 *) ac_try_echo=$ac_try;;
9336 esac
9337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9338 (eval "$ac_compile") 2>conftest.er1
9339 ac_status=$?
9340 grep -v '^ *+' conftest.er1 >conftest.err
9341 rm -f conftest.er1
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } && {
9345 test -z "$ac_c_werror_flag" ||
9346 test ! -s conftest.err
9347 } && test -s conftest.$ac_objext; then
9348 ac_cv_sys_large_files=no; break
9349 else
9350 echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357 cat >conftest.$ac_ext <<_ACEOF
9358 /* confdefs.h. */
9359 _ACEOF
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h. */
9363 #define _LARGE_FILES 1
9364 #include <sys/types.h>
9365 /* Check that off_t can represent 2**63 - 1 correctly.
9366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9367 since some C++ compilers masquerading as C compilers
9368 incorrectly reject 9223372036854775807. */
9369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9371 && LARGE_OFF_T % 2147483647 == 1)
9372 ? 1 : -1];
9374 main ()
9378 return 0;
9380 _ACEOF
9381 rm -f conftest.$ac_objext
9382 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
9389 ac_status=$?
9390 grep -v '^ *+' conftest.er1 >conftest.err
9391 rm -f conftest.er1
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && {
9395 test -z "$ac_c_werror_flag" ||
9396 test ! -s conftest.err
9397 } && test -s conftest.$ac_objext; then
9398 ac_cv_sys_large_files=1; break
9399 else
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9407 ac_cv_sys_large_files=unknown
9408 break
9409 done
9411 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9412 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
9413 case $ac_cv_sys_large_files in #(
9414 no | unknown) ;;
9416 cat >>confdefs.h <<_ACEOF
9417 #define _LARGE_FILES $ac_cv_sys_large_files
9418 _ACEOF
9420 esac
9421 rm -f conftest*
9426 # Checks for typedefs, structures, and compiler characteristics.
9427 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9428 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
9429 if test "${ac_cv_header_stdbool_h+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h. */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9439 #include <stdbool.h>
9440 #ifndef bool
9441 "error: bool is not defined"
9442 #endif
9443 #ifndef false
9444 "error: false is not defined"
9445 #endif
9446 #if false
9447 "error: false is not 0"
9448 #endif
9449 #ifndef true
9450 "error: true is not defined"
9451 #endif
9452 #if true != 1
9453 "error: true is not 1"
9454 #endif
9455 #ifndef __bool_true_false_are_defined
9456 "error: __bool_true_false_are_defined is not defined"
9457 #endif
9459 struct s { _Bool s: 1; _Bool t; } s;
9461 char a[true == 1 ? 1 : -1];
9462 char b[false == 0 ? 1 : -1];
9463 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9464 char d[(bool) 0.5 == true ? 1 : -1];
9465 bool e = &s;
9466 char f[(_Bool) 0.0 == false ? 1 : -1];
9467 char g[true];
9468 char h[sizeof (_Bool)];
9469 char i[sizeof s.t];
9470 enum { j = false, k = true, l = false * true, m = true * 256 };
9471 _Bool n[m];
9472 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9473 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9474 # if defined __xlc__ || defined __GNUC__
9475 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9476 reported by James Lemley on 2005-10-05; see
9477 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9478 This test is not quite right, since xlc is allowed to
9479 reject this program, as the initializer for xlcbug is
9480 not one of the forms that C requires support for.
9481 However, doing the test right would require a runtime
9482 test, and that would make cross-compilation harder.
9483 Let us hope that IBM fixes the xlc bug, and also adds
9484 support for this kind of constant expression. In the
9485 meantime, this test will reject xlc, which is OK, since
9486 our stdbool.h substitute should suffice. We also test
9487 this with GCC, where it should work, to detect more
9488 quickly whether someone messes up the test in the
9489 future. */
9490 char digs[] = "0123456789";
9491 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9492 # endif
9493 /* Catch a bug in an HP-UX C compiler. See
9494 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9495 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9497 _Bool q = true;
9498 _Bool *pq = &q;
9501 main ()
9504 *pq |= q;
9505 *pq |= ! q;
9506 /* Refer to every declared value, to avoid compiler optimizations. */
9507 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9508 + !m + !n + !o + !p + !q + !pq);
9511 return 0;
9513 _ACEOF
9514 rm -f conftest.$ac_objext
9515 if { (ac_try="$ac_compile"
9516 case "(($ac_try" in
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9519 esac
9520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521 (eval "$ac_compile") 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } && {
9528 test -z "$ac_c_werror_flag" ||
9529 test ! -s conftest.err
9530 } && test -s conftest.$ac_objext; then
9531 ac_cv_header_stdbool_h=yes
9532 else
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9536 ac_cv_header_stdbool_h=no
9539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9541 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9542 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
9543 { echo "$as_me:$LINENO: checking for _Bool" >&5
9544 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
9545 if test "${ac_cv_type__Bool+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h. */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 $ac_includes_default
9555 typedef _Bool ac__type_new_;
9557 main ()
9559 if ((ac__type_new_ *) 0)
9560 return 0;
9561 if (sizeof (ac__type_new_))
9562 return 0;
9564 return 0;
9566 _ACEOF
9567 rm -f conftest.$ac_objext
9568 if { (ac_try="$ac_compile"
9569 case "(($ac_try" in
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9572 esac
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_compile") 2>conftest.er1
9575 ac_status=$?
9576 grep -v '^ *+' conftest.er1 >conftest.err
9577 rm -f conftest.er1
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest.$ac_objext; then
9584 ac_cv_type__Bool=yes
9585 else
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 ac_cv_type__Bool=no
9592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9595 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
9596 if test $ac_cv_type__Bool = yes; then
9598 cat >>confdefs.h <<_ACEOF
9599 #define HAVE__BOOL 1
9600 _ACEOF
9605 if test $ac_cv_header_stdbool_h = yes; then
9607 cat >>confdefs.h <<\_ACEOF
9608 #define HAVE_STDBOOL_H 1
9609 _ACEOF
9613 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9614 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9615 if test "${ac_cv_c_const+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h. */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9626 main ()
9628 /* FIXME: Include the comments suggested by Paul. */
9629 #ifndef __cplusplus
9630 /* Ultrix mips cc rejects this. */
9631 typedef int charset[2];
9632 const charset cs;
9633 /* SunOS 4.1.1 cc rejects this. */
9634 char const *const *pcpcc;
9635 char **ppc;
9636 /* NEC SVR4.0.2 mips cc rejects this. */
9637 struct point {int x, y;};
9638 static struct point const zero = {0,0};
9639 /* AIX XL C 1.02.0.0 rejects this.
9640 It does not let you subtract one const X* pointer from another in
9641 an arm of an if-expression whose if-part is not a constant
9642 expression */
9643 const char *g = "string";
9644 pcpcc = &g + (g ? g-g : 0);
9645 /* HPUX 7.0 cc rejects these. */
9646 ++pcpcc;
9647 ppc = (char**) pcpcc;
9648 pcpcc = (char const *const *) ppc;
9649 { /* SCO 3.2v4 cc rejects this. */
9650 char *t;
9651 char const *s = 0 ? (char *) 0 : (char const *) 0;
9653 *t++ = 0;
9654 if (s) return 0;
9656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9657 int x[] = {25, 17};
9658 const int *foo = &x[0];
9659 ++foo;
9661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9662 typedef const int *iptr;
9663 iptr p = 0;
9664 ++p;
9666 { /* AIX XL C 1.02.0.0 rejects this saying
9667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9668 struct s { int j; const int *ap[3]; };
9669 struct s *b; b->j = 5;
9671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9672 const int foo = 10;
9673 if (!foo) return 0;
9675 return !cs[0] && !zero.x;
9676 #endif
9679 return 0;
9681 _ACEOF
9682 rm -f conftest.$ac_objext
9683 if { (ac_try="$ac_compile"
9684 case "(($ac_try" in
9685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9686 *) ac_try_echo=$ac_try;;
9687 esac
9688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9689 (eval "$ac_compile") 2>conftest.er1
9690 ac_status=$?
9691 grep -v '^ *+' conftest.er1 >conftest.err
9692 rm -f conftest.er1
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } && {
9696 test -z "$ac_c_werror_flag" ||
9697 test ! -s conftest.err
9698 } && test -s conftest.$ac_objext; then
9699 ac_cv_c_const=yes
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_cv_c_const=no
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9710 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9711 if test $ac_cv_c_const = no; then
9713 cat >>confdefs.h <<\_ACEOF
9714 #define const
9715 _ACEOF
9719 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9720 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
9721 if test "${ac_cv_type_uid_t+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h. */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 #include <sys/types.h>
9732 _ACEOF
9733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9734 $EGREP "uid_t" >/dev/null 2>&1; then
9735 ac_cv_type_uid_t=yes
9736 else
9737 ac_cv_type_uid_t=no
9739 rm -f conftest*
9742 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9743 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
9744 if test $ac_cv_type_uid_t = no; then
9746 cat >>confdefs.h <<\_ACEOF
9747 #define uid_t int
9748 _ACEOF
9751 cat >>confdefs.h <<\_ACEOF
9752 #define gid_t int
9753 _ACEOF
9757 { echo "$as_me:$LINENO: checking for inline" >&5
9758 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
9759 if test "${ac_cv_c_inline+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762 ac_cv_c_inline=no
9763 for ac_kw in inline __inline__ __inline; do
9764 cat >conftest.$ac_ext <<_ACEOF
9765 /* confdefs.h. */
9766 _ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9770 #ifndef __cplusplus
9771 typedef int foo_t;
9772 static $ac_kw foo_t static_foo () {return 0; }
9773 $ac_kw foo_t foo () {return 0; }
9774 #endif
9776 _ACEOF
9777 rm -f conftest.$ac_objext
9778 if { (ac_try="$ac_compile"
9779 case "(($ac_try" in
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9782 esac
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_compile") 2>conftest.er1
9785 ac_status=$?
9786 grep -v '^ *+' conftest.er1 >conftest.err
9787 rm -f conftest.er1
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } && {
9791 test -z "$ac_c_werror_flag" ||
9792 test ! -s conftest.err
9793 } && test -s conftest.$ac_objext; then
9794 ac_cv_c_inline=$ac_kw
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 test "$ac_cv_c_inline" != no && break
9804 done
9807 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9808 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
9811 case $ac_cv_c_inline in
9812 inline | yes) ;;
9814 case $ac_cv_c_inline in
9815 no) ac_val=;;
9816 *) ac_val=$ac_cv_c_inline;;
9817 esac
9818 cat >>confdefs.h <<_ACEOF
9819 #ifndef __cplusplus
9820 #define inline $ac_val
9821 #endif
9822 _ACEOF
9824 esac
9826 { echo "$as_me:$LINENO: checking for mode_t" >&5
9827 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
9828 if test "${ac_cv_type_mode_t+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831 cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h. */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9837 $ac_includes_default
9838 typedef mode_t ac__type_new_;
9840 main ()
9842 if ((ac__type_new_ *) 0)
9843 return 0;
9844 if (sizeof (ac__type_new_))
9845 return 0;
9847 return 0;
9849 _ACEOF
9850 rm -f conftest.$ac_objext
9851 if { (ac_try="$ac_compile"
9852 case "(($ac_try" in
9853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854 *) ac_try_echo=$ac_try;;
9855 esac
9856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857 (eval "$ac_compile") 2>conftest.er1
9858 ac_status=$?
9859 grep -v '^ *+' conftest.er1 >conftest.err
9860 rm -f conftest.er1
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } && {
9864 test -z "$ac_c_werror_flag" ||
9865 test ! -s conftest.err
9866 } && test -s conftest.$ac_objext; then
9867 ac_cv_type_mode_t=yes
9868 else
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9872 ac_cv_type_mode_t=no
9875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9877 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
9878 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
9879 if test $ac_cv_type_mode_t = yes; then
9881 else
9883 cat >>confdefs.h <<_ACEOF
9884 #define mode_t int
9885 _ACEOF
9889 { echo "$as_me:$LINENO: checking for off_t" >&5
9890 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9891 if test "${ac_cv_type_off_t+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894 cat >conftest.$ac_ext <<_ACEOF
9895 /* confdefs.h. */
9896 _ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9900 $ac_includes_default
9901 typedef off_t ac__type_new_;
9903 main ()
9905 if ((ac__type_new_ *) 0)
9906 return 0;
9907 if (sizeof (ac__type_new_))
9908 return 0;
9910 return 0;
9912 _ACEOF
9913 rm -f conftest.$ac_objext
9914 if { (ac_try="$ac_compile"
9915 case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918 esac
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_compile") 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } && {
9927 test -z "$ac_c_werror_flag" ||
9928 test ! -s conftest.err
9929 } && test -s conftest.$ac_objext; then
9930 ac_cv_type_off_t=yes
9931 else
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9935 ac_cv_type_off_t=no
9938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9940 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9941 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9942 if test $ac_cv_type_off_t = yes; then
9944 else
9946 cat >>confdefs.h <<_ACEOF
9947 #define off_t long int
9948 _ACEOF
9952 { echo "$as_me:$LINENO: checking for pid_t" >&5
9953 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9954 if test "${ac_cv_type_pid_t+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h. */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 $ac_includes_default
9964 typedef pid_t ac__type_new_;
9966 main ()
9968 if ((ac__type_new_ *) 0)
9969 return 0;
9970 if (sizeof (ac__type_new_))
9971 return 0;
9973 return 0;
9975 _ACEOF
9976 rm -f conftest.$ac_objext
9977 if { (ac_try="$ac_compile"
9978 case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981 esac
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_compile") 2>conftest.er1
9984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } && {
9990 test -z "$ac_c_werror_flag" ||
9991 test ! -s conftest.err
9992 } && test -s conftest.$ac_objext; then
9993 ac_cv_type_pid_t=yes
9994 else
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9998 ac_cv_type_pid_t=no
10001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10003 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10004 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10005 if test $ac_cv_type_pid_t = yes; then
10007 else
10009 cat >>confdefs.h <<_ACEOF
10010 #define pid_t int
10011 _ACEOF
10015 { echo "$as_me:$LINENO: checking for size_t" >&5
10016 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10017 if test "${ac_cv_type_size_t+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020 cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h. */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10026 $ac_includes_default
10027 typedef size_t ac__type_new_;
10029 main ()
10031 if ((ac__type_new_ *) 0)
10032 return 0;
10033 if (sizeof (ac__type_new_))
10034 return 0;
10036 return 0;
10038 _ACEOF
10039 rm -f conftest.$ac_objext
10040 if { (ac_try="$ac_compile"
10041 case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044 esac
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_compile") 2>conftest.er1
10047 ac_status=$?
10048 grep -v '^ *+' conftest.er1 >conftest.err
10049 rm -f conftest.er1
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } && {
10053 test -z "$ac_c_werror_flag" ||
10054 test ! -s conftest.err
10055 } && test -s conftest.$ac_objext; then
10056 ac_cv_type_size_t=yes
10057 else
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10061 ac_cv_type_size_t=no
10064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10066 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10067 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10068 if test $ac_cv_type_size_t = yes; then
10070 else
10072 cat >>confdefs.h <<_ACEOF
10073 #define size_t unsigned int
10074 _ACEOF
10078 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10079 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10080 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 else
10083 cat >conftest.$ac_ext <<_ACEOF
10084 /* confdefs.h. */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 $ac_includes_default
10091 main ()
10093 static struct stat ac_aggr;
10094 if (ac_aggr.st_blksize)
10095 return 0;
10097 return 0;
10099 _ACEOF
10100 rm -f conftest.$ac_objext
10101 if { (ac_try="$ac_compile"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10105 esac
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_compile") 2>conftest.er1
10108 ac_status=$?
10109 grep -v '^ *+' conftest.er1 >conftest.err
10110 rm -f conftest.er1
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && {
10114 test -z "$ac_c_werror_flag" ||
10115 test ! -s conftest.err
10116 } && test -s conftest.$ac_objext; then
10117 ac_cv_member_struct_stat_st_blksize=yes
10118 else
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h. */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 $ac_includes_default
10130 main ()
10132 static struct stat ac_aggr;
10133 if (sizeof ac_aggr.st_blksize)
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_member_struct_stat_st_blksize=yes
10157 else
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ac_cv_member_struct_stat_st_blksize=no
10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10169 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10170 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10171 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10173 cat >>confdefs.h <<_ACEOF
10174 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10175 _ACEOF
10180 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10181 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10182 if test "${ac_cv_header_time+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 else
10185 cat >conftest.$ac_ext <<_ACEOF
10186 /* confdefs.h. */
10187 _ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191 #include <sys/types.h>
10192 #include <sys/time.h>
10193 #include <time.h>
10196 main ()
10198 if ((struct tm *) 0)
10199 return 0;
10201 return 0;
10203 _ACEOF
10204 rm -f conftest.$ac_objext
10205 if { (ac_try="$ac_compile"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10209 esac
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_compile") 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && {
10218 test -z "$ac_c_werror_flag" ||
10219 test ! -s conftest.err
10220 } && test -s conftest.$ac_objext; then
10221 ac_cv_header_time=yes
10222 else
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ac_cv_header_time=no
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10231 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10232 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10233 if test $ac_cv_header_time = yes; then
10235 cat >>confdefs.h <<\_ACEOF
10236 #define TIME_WITH_SYS_TIME 1
10237 _ACEOF
10241 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10242 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
10243 if test "${ac_cv_struct_tm+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h. */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include <sys/types.h>
10253 #include <time.h>
10256 main ()
10258 struct tm tm;
10259 int *p = &tm.tm_sec;
10260 return !p;
10262 return 0;
10264 _ACEOF
10265 rm -f conftest.$ac_objext
10266 if { (ac_try="$ac_compile"
10267 case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10270 esac
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_compile") 2>conftest.er1
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && {
10279 test -z "$ac_c_werror_flag" ||
10280 test ! -s conftest.err
10281 } && test -s conftest.$ac_objext; then
10282 ac_cv_struct_tm=time.h
10283 else
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 ac_cv_struct_tm=sys/time.h
10290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10292 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10293 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10294 if test $ac_cv_struct_tm = sys/time.h; then
10296 cat >>confdefs.h <<\_ACEOF
10297 #define TM_IN_SYS_TIME 1
10298 _ACEOF
10302 { echo "$as_me:$LINENO: checking for working volatile" >&5
10303 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
10304 if test "${ac_cv_c_volatile+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307 cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h. */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10315 main ()
10318 volatile int x;
10319 int * volatile y = (int *) 0;
10320 return !x && !y;
10322 return 0;
10324 _ACEOF
10325 rm -f conftest.$ac_objext
10326 if { (ac_try="$ac_compile"
10327 case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330 esac
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_compile") 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && {
10339 test -z "$ac_c_werror_flag" ||
10340 test ! -s conftest.err
10341 } && test -s conftest.$ac_objext; then
10342 ac_cv_c_volatile=yes
10343 else
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10347 ac_cv_c_volatile=no
10350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10352 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10353 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
10354 if test $ac_cv_c_volatile = no; then
10356 cat >>confdefs.h <<\_ACEOF
10357 #define volatile
10358 _ACEOF
10362 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10363 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10364 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h. */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 $ac_includes_default
10374 typedef ptrdiff_t ac__type_new_;
10376 main ()
10378 if ((ac__type_new_ *) 0)
10379 return 0;
10380 if (sizeof (ac__type_new_))
10381 return 0;
10383 return 0;
10385 _ACEOF
10386 rm -f conftest.$ac_objext
10387 if { (ac_try="$ac_compile"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_compile") 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest.$ac_objext; then
10403 ac_cv_type_ptrdiff_t=yes
10404 else
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 ac_cv_type_ptrdiff_t=no
10411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10413 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10414 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10415 if test $ac_cv_type_ptrdiff_t = yes; then
10417 cat >>confdefs.h <<_ACEOF
10418 #define HAVE_PTRDIFF_T 1
10419 _ACEOF
10425 # Checks for library functions.
10427 for ac_header in unistd.h
10429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 ac_res=`eval echo '${'$as_ac_Header'}'`
10437 { echo "$as_me:$LINENO: result: $ac_res" >&5
10438 echo "${ECHO_T}$ac_res" >&6; }
10439 else
10440 # Is the header compilable?
10441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10443 cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h. */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10449 $ac_includes_default
10450 #include <$ac_header>
10451 _ACEOF
10452 rm -f conftest.$ac_objext
10453 if { (ac_try="$ac_compile"
10454 case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_compile") 2>conftest.er1
10460 ac_status=$?
10461 grep -v '^ *+' conftest.er1 >conftest.err
10462 rm -f conftest.er1
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest.$ac_objext; then
10469 ac_header_compiler=yes
10470 else
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ac_header_compiler=no
10477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10479 echo "${ECHO_T}$ac_header_compiler" >&6; }
10481 # Is the header present?
10482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10484 cat >conftest.$ac_ext <<_ACEOF
10485 /* confdefs.h. */
10486 _ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10490 #include <$ac_header>
10491 _ACEOF
10492 if { (ac_try="$ac_cpp conftest.$ac_ext"
10493 case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10496 esac
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } >/dev/null && {
10505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10506 test ! -s conftest.err
10507 }; then
10508 ac_header_preproc=yes
10509 else
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10513 ac_header_preproc=no
10516 rm -f conftest.err conftest.$ac_ext
10517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10518 echo "${ECHO_T}$ac_header_preproc" >&6; }
10520 # So? What about this header?
10521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10522 yes:no: )
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10527 ac_header_preproc=yes
10529 no:yes:* )
10530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10544 esac
10545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10549 else
10550 eval "$as_ac_Header=\$ac_header_preproc"
10552 ac_res=`eval echo '${'$as_ac_Header'}'`
10553 { echo "$as_me:$LINENO: result: $ac_res" >&5
10554 echo "${ECHO_T}$ac_res" >&6; }
10557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10558 cat >>confdefs.h <<_ACEOF
10559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10560 _ACEOF
10564 done
10566 { echo "$as_me:$LINENO: checking for working chown" >&5
10567 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
10568 if test "${ac_cv_func_chown_works+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571 if test "$cross_compiling" = yes; then
10572 ac_cv_func_chown_works=no
10573 else
10574 cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h. */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10580 $ac_includes_default
10581 #include <fcntl.h>
10584 main ()
10586 char *f = "conftest.chown";
10587 struct stat before, after;
10589 if (creat (f, 0600) < 0)
10590 return 1;
10591 if (stat (f, &before) < 0)
10592 return 1;
10593 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
10594 return 1;
10595 if (stat (f, &after) < 0)
10596 return 1;
10597 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
10600 return 0;
10602 _ACEOF
10603 rm -f conftest$ac_exeext
10604 if { (ac_try="$ac_link"
10605 case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10608 esac
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610 (eval "$ac_link") 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10614 { (case "(($ac_try" in
10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10616 *) ac_try_echo=$ac_try;;
10617 esac
10618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10619 (eval "$ac_try") 2>&5
10620 ac_status=$?
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_cv_func_chown_works=yes
10624 else
10625 echo "$as_me: program exited with status $ac_status" >&5
10626 echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10629 ( exit $ac_status )
10630 ac_cv_func_chown_works=no
10632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10636 rm -f conftest.chown
10639 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
10640 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
10641 if test $ac_cv_func_chown_works = yes; then
10643 cat >>confdefs.h <<\_ACEOF
10644 #define HAVE_CHOWN 1
10645 _ACEOF
10649 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10650 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
10651 if test "${ac_cv_func_closedir_void+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654 if test "$cross_compiling" = yes; then
10655 ac_cv_func_closedir_void=yes
10656 else
10657 cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h. */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10663 $ac_includes_default
10664 #include <$ac_header_dirent>
10665 #ifndef __cplusplus
10666 int closedir ();
10667 #endif
10670 main ()
10672 return closedir (opendir (".")) != 0;
10674 return 0;
10676 _ACEOF
10677 rm -f conftest$ac_exeext
10678 if { (ac_try="$ac_link"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10682 esac
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_link") 2>&5
10685 ac_status=$?
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10688 { (case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691 esac
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_try") 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; }; then
10697 ac_cv_func_closedir_void=no
10698 else
10699 echo "$as_me: program exited with status $ac_status" >&5
10700 echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10703 ( exit $ac_status )
10704 ac_cv_func_closedir_void=yes
10706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10711 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10712 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
10713 if test $ac_cv_func_closedir_void = yes; then
10715 cat >>confdefs.h <<\_ACEOF
10716 #define CLOSEDIR_VOID 1
10717 _ACEOF
10721 { echo "$as_me:$LINENO: checking for error_at_line" >&5
10722 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
10723 if test "${ac_cv_lib_error_at_line+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726 cat >conftest.$ac_ext <<_ACEOF
10727 /* confdefs.h. */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10732 #include <error.h>
10734 main ()
10736 error_at_line (0, 0, "", 0, "an error occurred");
10738 return 0;
10740 _ACEOF
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10746 esac
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_link") 2>conftest.er1
10749 ac_status=$?
10750 grep -v '^ *+' conftest.er1 >conftest.err
10751 rm -f conftest.er1
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } && {
10755 test -z "$ac_c_werror_flag" ||
10756 test ! -s conftest.err
10757 } && test -s conftest$ac_exeext &&
10758 $as_test_x conftest$ac_exeext; then
10759 ac_cv_lib_error_at_line=yes
10760 else
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 ac_cv_lib_error_at_line=no
10767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10768 conftest$ac_exeext conftest.$ac_ext
10770 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
10771 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
10772 if test $ac_cv_lib_error_at_line = no; then
10773 case " $LIBOBJS " in
10774 *" error.$ac_objext "* ) ;;
10775 *) LIBOBJS="$LIBOBJS error.$ac_objext"
10777 esac
10782 for ac_header in vfork.h
10784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 ac_res=`eval echo '${'$as_ac_Header'}'`
10792 { echo "$as_me:$LINENO: result: $ac_res" >&5
10793 echo "${ECHO_T}$ac_res" >&6; }
10794 else
10795 # Is the header compilable?
10796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10798 cat >conftest.$ac_ext <<_ACEOF
10799 /* confdefs.h. */
10800 _ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h. */
10804 $ac_includes_default
10805 #include <$ac_header>
10806 _ACEOF
10807 rm -f conftest.$ac_objext
10808 if { (ac_try="$ac_compile"
10809 case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10812 esac
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_compile") 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } && {
10821 test -z "$ac_c_werror_flag" ||
10822 test ! -s conftest.err
10823 } && test -s conftest.$ac_objext; then
10824 ac_header_compiler=yes
10825 else
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10829 ac_header_compiler=no
10832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10834 echo "${ECHO_T}$ac_header_compiler" >&6; }
10836 # Is the header present?
10837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10839 cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h. */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10845 #include <$ac_header>
10846 _ACEOF
10847 if { (ac_try="$ac_cpp conftest.$ac_ext"
10848 case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10854 ac_status=$?
10855 grep -v '^ *+' conftest.er1 >conftest.err
10856 rm -f conftest.er1
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } >/dev/null && {
10860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10861 test ! -s conftest.err
10862 }; then
10863 ac_header_preproc=yes
10864 else
10865 echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10868 ac_header_preproc=no
10871 rm -f conftest.err conftest.$ac_ext
10872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10873 echo "${ECHO_T}$ac_header_preproc" >&6; }
10875 # So? What about this header?
10876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10877 yes:no: )
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10882 ac_header_preproc=yes
10884 no:yes:* )
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10899 esac
10900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905 eval "$as_ac_Header=\$ac_header_preproc"
10907 ac_res=`eval echo '${'$as_ac_Header'}'`
10908 { echo "$as_me:$LINENO: result: $ac_res" >&5
10909 echo "${ECHO_T}$ac_res" >&6; }
10912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10913 cat >>confdefs.h <<_ACEOF
10914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10915 _ACEOF
10919 done
10923 for ac_func in fork vfork
10925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10929 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 else
10931 cat >conftest.$ac_ext <<_ACEOF
10932 /* confdefs.h. */
10933 _ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10939 #define $ac_func innocuous_$ac_func
10941 /* System header to define __stub macros and hopefully few prototypes,
10942 which can conflict with char $ac_func (); below.
10943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10944 <limits.h> exists even on freestanding compilers. */
10946 #ifdef __STDC__
10947 # include <limits.h>
10948 #else
10949 # include <assert.h>
10950 #endif
10952 #undef $ac_func
10954 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10957 #ifdef __cplusplus
10958 extern "C"
10959 #endif
10960 char $ac_func ();
10961 /* The GNU C library defines this for functions which it implements
10962 to always fail with ENOSYS. Some functions are actually named
10963 something starting with __ and the normal name is an alias. */
10964 #if defined __stub_$ac_func || defined __stub___$ac_func
10965 choke me
10966 #endif
10969 main ()
10971 return $ac_func ();
10973 return 0;
10975 _ACEOF
10976 rm -f conftest.$ac_objext conftest$ac_exeext
10977 if { (ac_try="$ac_link"
10978 case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10981 esac
10982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983 (eval "$ac_link") 2>conftest.er1
10984 ac_status=$?
10985 grep -v '^ *+' conftest.er1 >conftest.err
10986 rm -f conftest.er1
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } && {
10990 test -z "$ac_c_werror_flag" ||
10991 test ! -s conftest.err
10992 } && test -s conftest$ac_exeext &&
10993 $as_test_x conftest$ac_exeext; then
10994 eval "$as_ac_var=yes"
10995 else
10996 echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10999 eval "$as_ac_var=no"
11002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11003 conftest$ac_exeext conftest.$ac_ext
11005 ac_res=`eval echo '${'$as_ac_var'}'`
11006 { echo "$as_me:$LINENO: result: $ac_res" >&5
11007 echo "${ECHO_T}$ac_res" >&6; }
11008 if test `eval echo '${'$as_ac_var'}'` = yes; then
11009 cat >>confdefs.h <<_ACEOF
11010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11011 _ACEOF
11014 done
11016 if test "x$ac_cv_func_fork" = xyes; then
11017 { echo "$as_me:$LINENO: checking for working fork" >&5
11018 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11019 if test "${ac_cv_func_fork_works+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
11022 if test "$cross_compiling" = yes; then
11023 ac_cv_func_fork_works=cross
11024 else
11025 cat >conftest.$ac_ext <<_ACEOF
11026 /* confdefs.h. */
11027 _ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11031 $ac_includes_default
11033 main ()
11036 /* By Ruediger Kuhlmann. */
11037 return fork () < 0;
11040 return 0;
11042 _ACEOF
11043 rm -f conftest$ac_exeext
11044 if { (ac_try="$ac_link"
11045 case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11048 esac
11049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_link") 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11054 { (case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057 esac
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_try") 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 ac_cv_func_fork_works=yes
11064 else
11065 echo "$as_me: program exited with status $ac_status" >&5
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 ( exit $ac_status )
11070 ac_cv_func_fork_works=no
11072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11077 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11078 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11080 else
11081 ac_cv_func_fork_works=$ac_cv_func_fork
11083 if test "x$ac_cv_func_fork_works" = xcross; then
11084 case $host in
11085 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
11086 # Override, as these systems have only a dummy fork() stub
11087 ac_cv_func_fork_works=no
11090 ac_cv_func_fork_works=yes
11092 esac
11093 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11094 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11096 ac_cv_func_vfork_works=$ac_cv_func_vfork
11097 if test "x$ac_cv_func_vfork" = xyes; then
11098 { echo "$as_me:$LINENO: checking for working vfork" >&5
11099 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11100 if test "${ac_cv_func_vfork_works+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103 if test "$cross_compiling" = yes; then
11104 ac_cv_func_vfork_works=cross
11105 else
11106 cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h. */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11112 /* Thanks to Paul Eggert for this test. */
11113 $ac_includes_default
11114 #include <sys/wait.h>
11115 #ifdef HAVE_VFORK_H
11116 # include <vfork.h>
11117 #endif
11118 /* On some sparc systems, changes by the child to local and incoming
11119 argument registers are propagated back to the parent. The compiler
11120 is told about this with #include <vfork.h>, but some compilers
11121 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11122 static variable whose address is put into a register that is
11123 clobbered by the vfork. */
11124 static void
11125 #ifdef __cplusplus
11126 sparc_address_test (int arg)
11127 # else
11128 sparc_address_test (arg) int arg;
11129 #endif
11131 static pid_t child;
11132 if (!child) {
11133 child = vfork ();
11134 if (child < 0) {
11135 perror ("vfork");
11136 _exit(2);
11138 if (!child) {
11139 arg = getpid();
11140 write(-1, "", 0);
11141 _exit (arg);
11147 main ()
11149 pid_t parent = getpid ();
11150 pid_t child;
11152 sparc_address_test (0);
11154 child = vfork ();
11156 if (child == 0) {
11157 /* Here is another test for sparc vfork register problems. This
11158 test uses lots of local variables, at least as many local
11159 variables as main has allocated so far including compiler
11160 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11161 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11162 reuse the register of parent for one of the local variables,
11163 since it will think that parent can't possibly be used any more
11164 in this routine. Assigning to the local variable will thus
11165 munge parent in the parent process. */
11166 pid_t
11167 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11168 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11169 /* Convince the compiler that p..p7 are live; otherwise, it might
11170 use the same hardware register for all 8 local variables. */
11171 if (p != p1 || p != p2 || p != p3 || p != p4
11172 || p != p5 || p != p6 || p != p7)
11173 _exit(1);
11175 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11176 from child file descriptors. If the child closes a descriptor
11177 before it execs or exits, this munges the parent's descriptor
11178 as well. Test for this by closing stdout in the child. */
11179 _exit(close(fileno(stdout)) != 0);
11180 } else {
11181 int status;
11182 struct stat st;
11184 while (wait(&status) != child)
11186 return (
11187 /* Was there some problem with vforking? */
11188 child < 0
11190 /* Did the child fail? (This shouldn't happen.) */
11191 || status
11193 /* Did the vfork/compiler bug occur? */
11194 || parent != getpid()
11196 /* Did the file descriptor bug occur? */
11197 || fstat(fileno(stdout), &st) != 0
11201 _ACEOF
11202 rm -f conftest$ac_exeext
11203 if { (ac_try="$ac_link"
11204 case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11207 esac
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_link") 2>&5
11210 ac_status=$?
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11213 { (case "(($ac_try" in
11214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215 *) ac_try_echo=$ac_try;;
11216 esac
11217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11218 (eval "$ac_try") 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 ac_cv_func_vfork_works=yes
11223 else
11224 echo "$as_me: program exited with status $ac_status" >&5
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11228 ( exit $ac_status )
11229 ac_cv_func_vfork_works=no
11231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11236 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11237 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11240 if test "x$ac_cv_func_fork_works" = xcross; then
11241 ac_cv_func_vfork_works=$ac_cv_func_vfork
11242 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11243 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11246 if test "x$ac_cv_func_vfork_works" = xyes; then
11248 cat >>confdefs.h <<\_ACEOF
11249 #define HAVE_WORKING_VFORK 1
11250 _ACEOF
11252 else
11254 cat >>confdefs.h <<\_ACEOF
11255 #define vfork fork
11256 _ACEOF
11259 if test "x$ac_cv_func_fork_works" = xyes; then
11261 cat >>confdefs.h <<\_ACEOF
11262 #define HAVE_WORKING_FORK 1
11263 _ACEOF
11267 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11268 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
11269 if test "${ac_cv_sys_largefile_source+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272 while :; do
11273 cat >conftest.$ac_ext <<_ACEOF
11274 /* confdefs.h. */
11275 _ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 #include <sys/types.h> /* for off_t */
11280 #include <stdio.h>
11282 main ()
11284 int (*fp) (FILE *, off_t, int) = fseeko;
11285 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11287 return 0;
11289 _ACEOF
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (ac_try="$ac_link"
11292 case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11295 esac
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_link") 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } && {
11304 test -z "$ac_c_werror_flag" ||
11305 test ! -s conftest.err
11306 } && test -s conftest$ac_exeext &&
11307 $as_test_x conftest$ac_exeext; then
11308 ac_cv_sys_largefile_source=no; break
11309 else
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11317 conftest$ac_exeext conftest.$ac_ext
11318 cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h. */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 #define _LARGEFILE_SOURCE 1
11325 #include <sys/types.h> /* for off_t */
11326 #include <stdio.h>
11328 main ()
11330 int (*fp) (FILE *, off_t, int) = fseeko;
11331 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11333 return 0;
11335 _ACEOF
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (ac_try="$ac_link"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_link") 2>conftest.er1
11344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } && {
11350 test -z "$ac_c_werror_flag" ||
11351 test ! -s conftest.err
11352 } && test -s conftest$ac_exeext &&
11353 $as_test_x conftest$ac_exeext; then
11354 ac_cv_sys_largefile_source=1; break
11355 else
11356 echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11363 conftest$ac_exeext conftest.$ac_ext
11364 ac_cv_sys_largefile_source=unknown
11365 break
11366 done
11368 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11369 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
11370 case $ac_cv_sys_largefile_source in #(
11371 no | unknown) ;;
11373 cat >>confdefs.h <<_ACEOF
11374 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11375 _ACEOF
11377 esac
11378 rm -f conftest*
11380 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11381 # in glibc 2.1.3, but that breaks too many other things.
11382 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11383 if test $ac_cv_sys_largefile_source != unknown; then
11385 cat >>confdefs.h <<\_ACEOF
11386 #define HAVE_FSEEKO 1
11387 _ACEOF
11391 if test $ac_cv_c_compiler_gnu = yes; then
11392 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11393 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11394 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11396 else
11397 ac_pattern="Autoconf.*'x'"
11398 cat >conftest.$ac_ext <<_ACEOF
11399 /* confdefs.h. */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11404 #include <sgtty.h>
11405 Autoconf TIOCGETP
11406 _ACEOF
11407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11408 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11409 ac_cv_prog_gcc_traditional=yes
11410 else
11411 ac_cv_prog_gcc_traditional=no
11413 rm -f conftest*
11416 if test $ac_cv_prog_gcc_traditional = no; then
11417 cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h. */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 #include <termio.h>
11424 Autoconf TCGETA
11425 _ACEOF
11426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11427 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11428 ac_cv_prog_gcc_traditional=yes
11430 rm -f conftest*
11434 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11435 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11436 if test $ac_cv_prog_gcc_traditional = yes; then
11437 CC="$CC -traditional"
11441 # XXX: these are commented out until we determine whether it matters if our malloc()
11442 # acts exactly like glibc's or not
11443 # AC_FUNC_MALLOC
11444 # AC_FUNC_REALLOC
11445 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11446 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11447 if test "${ac_cv_func_memcmp_working+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450 if test "$cross_compiling" = yes; then
11451 ac_cv_func_memcmp_working=no
11452 else
11453 cat >conftest.$ac_ext <<_ACEOF
11454 /* confdefs.h. */
11455 _ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11459 $ac_includes_default
11461 main ()
11464 /* Some versions of memcmp are not 8-bit clean. */
11465 char c0 = '\100', c1 = '\200', c2 = '\201';
11466 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11467 return 1;
11469 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11470 or more and with at least one buffer not starting on a 4-byte boundary.
11471 William Lewis provided this test program. */
11473 char foo[21];
11474 char bar[21];
11475 int i;
11476 for (i = 0; i < 4; i++)
11478 char *a = foo + i;
11479 char *b = bar + i;
11480 strcpy (a, "--------01111111");
11481 strcpy (b, "--------10000000");
11482 if (memcmp (a, b, 16) >= 0)
11483 return 1;
11485 return 0;
11489 return 0;
11491 _ACEOF
11492 rm -f conftest$ac_exeext
11493 if { (ac_try="$ac_link"
11494 case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11497 esac
11498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499 (eval "$ac_link") 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11503 { (case "(($ac_try" in
11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11506 esac
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508 (eval "$ac_try") 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 ac_cv_func_memcmp_working=yes
11513 else
11514 echo "$as_me: program exited with status $ac_status" >&5
11515 echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11518 ( exit $ac_status )
11519 ac_cv_func_memcmp_working=no
11521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11526 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11527 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11528 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11529 *" memcmp.$ac_objext "* ) ;;
11530 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11532 esac
11539 for ac_header in $ac_header_list
11541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 ac_res=`eval echo '${'$as_ac_Header'}'`
11549 { echo "$as_me:$LINENO: result: $ac_res" >&5
11550 echo "${ECHO_T}$ac_res" >&6; }
11551 else
11552 # Is the header compilable?
11553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11555 cat >conftest.$ac_ext <<_ACEOF
11556 /* confdefs.h. */
11557 _ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 $ac_includes_default
11562 #include <$ac_header>
11563 _ACEOF
11564 rm -f conftest.$ac_objext
11565 if { (ac_try="$ac_compile"
11566 case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11569 esac
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_compile") 2>conftest.er1
11572 ac_status=$?
11573 grep -v '^ *+' conftest.er1 >conftest.err
11574 rm -f conftest.er1
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && {
11578 test -z "$ac_c_werror_flag" ||
11579 test ! -s conftest.err
11580 } && test -s conftest.$ac_objext; then
11581 ac_header_compiler=yes
11582 else
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11586 ac_header_compiler=no
11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11591 echo "${ECHO_T}$ac_header_compiler" >&6; }
11593 # Is the header present?
11594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11596 cat >conftest.$ac_ext <<_ACEOF
11597 /* confdefs.h. */
11598 _ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h. */
11602 #include <$ac_header>
11603 _ACEOF
11604 if { (ac_try="$ac_cpp conftest.$ac_ext"
11605 case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11608 esac
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11611 ac_status=$?
11612 grep -v '^ *+' conftest.er1 >conftest.err
11613 rm -f conftest.er1
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } >/dev/null && {
11617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11618 test ! -s conftest.err
11619 }; then
11620 ac_header_preproc=yes
11621 else
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11625 ac_header_preproc=no
11628 rm -f conftest.err conftest.$ac_ext
11629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11630 echo "${ECHO_T}$ac_header_preproc" >&6; }
11632 # So? What about this header?
11633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11634 yes:no: )
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11639 ac_header_preproc=yes
11641 no:yes:* )
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11656 esac
11657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 else
11662 eval "$as_ac_Header=\$ac_header_preproc"
11664 ac_res=`eval echo '${'$as_ac_Header'}'`
11665 { echo "$as_me:$LINENO: result: $ac_res" >&5
11666 echo "${ECHO_T}$ac_res" >&6; }
11669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11670 cat >>confdefs.h <<_ACEOF
11671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11672 _ACEOF
11676 done
11686 for ac_func in $ac_func_list
11688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11689 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 else
11694 cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h. */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11702 #define $ac_func innocuous_$ac_func
11704 /* System header to define __stub macros and hopefully few prototypes,
11705 which can conflict with char $ac_func (); below.
11706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11707 <limits.h> exists even on freestanding compilers. */
11709 #ifdef __STDC__
11710 # include <limits.h>
11711 #else
11712 # include <assert.h>
11713 #endif
11715 #undef $ac_func
11717 /* Override any GCC internal prototype to avoid an error.
11718 Use char because int might match the return type of a GCC
11719 builtin and then its argument prototype would still apply. */
11720 #ifdef __cplusplus
11721 extern "C"
11722 #endif
11723 char $ac_func ();
11724 /* The GNU C library defines this for functions which it implements
11725 to always fail with ENOSYS. Some functions are actually named
11726 something starting with __ and the normal name is an alias. */
11727 #if defined __stub_$ac_func || defined __stub___$ac_func
11728 choke me
11729 #endif
11732 main ()
11734 return $ac_func ();
11736 return 0;
11738 _ACEOF
11739 rm -f conftest.$ac_objext conftest$ac_exeext
11740 if { (ac_try="$ac_link"
11741 case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11744 esac
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746 (eval "$ac_link") 2>conftest.er1
11747 ac_status=$?
11748 grep -v '^ *+' conftest.er1 >conftest.err
11749 rm -f conftest.er1
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } && {
11753 test -z "$ac_c_werror_flag" ||
11754 test ! -s conftest.err
11755 } && test -s conftest$ac_exeext &&
11756 $as_test_x conftest$ac_exeext; then
11757 eval "$as_ac_var=yes"
11758 else
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11762 eval "$as_ac_var=no"
11765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11766 conftest$ac_exeext conftest.$ac_ext
11768 ac_res=`eval echo '${'$as_ac_var'}'`
11769 { echo "$as_me:$LINENO: result: $ac_res" >&5
11770 echo "${ECHO_T}$ac_res" >&6; }
11771 if test `eval echo '${'$as_ac_var'}'` = yes; then
11772 cat >>confdefs.h <<_ACEOF
11773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11774 _ACEOF
11777 done
11795 { echo "$as_me:$LINENO: checking for working mktime" >&5
11796 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
11797 if test "${ac_cv_func_working_mktime+set}" = set; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800 if test "$cross_compiling" = yes; then
11801 ac_cv_func_working_mktime=no
11802 else
11803 cat >conftest.$ac_ext <<_ACEOF
11804 /* confdefs.h. */
11805 _ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11809 /* Test program from Paul Eggert and Tony Leneis. */
11810 #ifdef TIME_WITH_SYS_TIME
11811 # include <sys/time.h>
11812 # include <time.h>
11813 #else
11814 # ifdef HAVE_SYS_TIME_H
11815 # include <sys/time.h>
11816 # else
11817 # include <time.h>
11818 # endif
11819 #endif
11821 #include <stdlib.h>
11823 #ifdef HAVE_UNISTD_H
11824 # include <unistd.h>
11825 #endif
11827 #ifndef HAVE_ALARM
11828 # define alarm(X) /* empty */
11829 #endif
11831 /* Work around redefinition to rpl_putenv by other config tests. */
11832 #undef putenv
11834 static time_t time_t_max;
11835 static time_t time_t_min;
11837 /* Values we'll use to set the TZ environment variable. */
11838 static char *tz_strings[] = {
11839 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11840 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11842 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11844 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11845 Based on a problem report from Andreas Jaeger. */
11846 static int
11847 spring_forward_gap ()
11849 /* glibc (up to about 1998-10-07) failed this test. */
11850 struct tm tm;
11852 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11853 instead of "TZ=America/Vancouver" in order to detect the bug even
11854 on systems that don't support the Olson extension, or don't have the
11855 full zoneinfo tables installed. */
11856 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11858 tm.tm_year = 98;
11859 tm.tm_mon = 3;
11860 tm.tm_mday = 5;
11861 tm.tm_hour = 2;
11862 tm.tm_min = 0;
11863 tm.tm_sec = 0;
11864 tm.tm_isdst = -1;
11865 return mktime (&tm) != (time_t) -1;
11868 static int
11869 mktime_test1 (now)
11870 time_t now;
11872 struct tm *lt;
11873 return ! (lt = localtime (&now)) || mktime (lt) == now;
11876 static int
11877 mktime_test (now)
11878 time_t now;
11880 return (mktime_test1 (now)
11881 && mktime_test1 ((time_t) (time_t_max - now))
11882 && mktime_test1 ((time_t) (time_t_min + now)));
11885 static int
11886 irix_6_4_bug ()
11888 /* Based on code from Ariel Faigon. */
11889 struct tm tm;
11890 tm.tm_year = 96;
11891 tm.tm_mon = 3;
11892 tm.tm_mday = 0;
11893 tm.tm_hour = 0;
11894 tm.tm_min = 0;
11895 tm.tm_sec = 0;
11896 tm.tm_isdst = -1;
11897 mktime (&tm);
11898 return tm.tm_mon == 2 && tm.tm_mday == 31;
11901 static int
11902 bigtime_test (j)
11903 int j;
11905 struct tm tm;
11906 time_t now;
11907 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11908 now = mktime (&tm);
11909 if (now != (time_t) -1)
11911 struct tm *lt = localtime (&now);
11912 if (! (lt
11913 && lt->tm_year == tm.tm_year
11914 && lt->tm_mon == tm.tm_mon
11915 && lt->tm_mday == tm.tm_mday
11916 && lt->tm_hour == tm.tm_hour
11917 && lt->tm_min == tm.tm_min
11918 && lt->tm_sec == tm.tm_sec
11919 && lt->tm_yday == tm.tm_yday
11920 && lt->tm_wday == tm.tm_wday
11921 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11922 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11923 return 0;
11925 return 1;
11928 static int
11929 year_2050_test ()
11931 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11932 ignoring leap seconds. */
11933 unsigned long int answer = 2527315200UL;
11935 struct tm tm;
11936 time_t t;
11937 tm.tm_year = 2050 - 1900;
11938 tm.tm_mon = 2 - 1;
11939 tm.tm_mday = 1;
11940 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11941 tm.tm_isdst = -1;
11943 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11944 instead of "TZ=America/Vancouver" in order to detect the bug even
11945 on systems that don't support the Olson extension, or don't have the
11946 full zoneinfo tables installed. */
11947 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11949 t = mktime (&tm);
11951 /* Check that the result is either a failure, or close enough
11952 to the correct answer that we can assume the discrepancy is
11953 due to leap seconds. */
11954 return (t == (time_t) -1
11955 || (0 < t && answer - 120 <= t && t <= answer + 120));
11959 main ()
11961 time_t t, delta;
11962 int i, j;
11964 /* This test makes some buggy mktime implementations loop.
11965 Give up after 60 seconds; a mktime slower than that
11966 isn't worth using anyway. */
11967 alarm (60);
11969 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11970 continue;
11971 time_t_max--;
11972 if ((time_t) -1 < 0)
11973 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11974 continue;
11975 delta = time_t_max / 997; /* a suitable prime number */
11976 for (i = 0; i < N_STRINGS; i++)
11978 if (tz_strings[i])
11979 putenv (tz_strings[i]);
11981 for (t = 0; t <= time_t_max - delta; t += delta)
11982 if (! mktime_test (t))
11983 return 1;
11984 if (! (mktime_test ((time_t) 1)
11985 && mktime_test ((time_t) (60 * 60))
11986 && mktime_test ((time_t) (60 * 60 * 24))))
11987 return 1;
11989 for (j = 1; 0 < j; j *= 2)
11990 if (! bigtime_test (j))
11991 return 1;
11992 if (! bigtime_test (j - 1))
11993 return 1;
11995 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11997 _ACEOF
11998 rm -f conftest$ac_exeext
11999 if { (ac_try="$ac_link"
12000 case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12003 esac
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_link") 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12009 { (case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12012 esac
12013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014 (eval "$ac_try") 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12018 ac_cv_func_working_mktime=yes
12019 else
12020 echo "$as_me: program exited with status $ac_status" >&5
12021 echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.$ac_ext >&5
12024 ( exit $ac_status )
12025 ac_cv_func_working_mktime=no
12027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12032 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12033 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
12034 if test $ac_cv_func_working_mktime = no; then
12035 case " $LIBOBJS " in
12036 *" mktime.$ac_objext "* ) ;;
12037 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12039 esac
12045 for ac_header in stdlib.h unistd.h
12047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 ac_res=`eval echo '${'$as_ac_Header'}'`
12055 { echo "$as_me:$LINENO: result: $ac_res" >&5
12056 echo "${ECHO_T}$ac_res" >&6; }
12057 else
12058 # Is the header compilable?
12059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12061 cat >conftest.$ac_ext <<_ACEOF
12062 /* confdefs.h. */
12063 _ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12067 $ac_includes_default
12068 #include <$ac_header>
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (ac_try="$ac_compile"
12072 case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075 esac
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_compile") 2>conftest.er1
12078 ac_status=$?
12079 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } && {
12084 test -z "$ac_c_werror_flag" ||
12085 test ! -s conftest.err
12086 } && test -s conftest.$ac_objext; then
12087 ac_header_compiler=yes
12088 else
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12092 ac_header_compiler=no
12095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12097 echo "${ECHO_T}$ac_header_compiler" >&6; }
12099 # Is the header present?
12100 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12102 cat >conftest.$ac_ext <<_ACEOF
12103 /* confdefs.h. */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 #include <$ac_header>
12109 _ACEOF
12110 if { (ac_try="$ac_cpp conftest.$ac_ext"
12111 case "(($ac_try" in
12112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12114 esac
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12117 ac_status=$?
12118 grep -v '^ *+' conftest.er1 >conftest.err
12119 rm -f conftest.er1
12120 cat conftest.err >&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } >/dev/null && {
12123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12124 test ! -s conftest.err
12125 }; then
12126 ac_header_preproc=yes
12127 else
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 ac_header_preproc=no
12134 rm -f conftest.err conftest.$ac_ext
12135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12136 echo "${ECHO_T}$ac_header_preproc" >&6; }
12138 # So? What about this header?
12139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12140 yes:no: )
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12145 ac_header_preproc=yes
12147 no:yes:* )
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12162 esac
12163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168 eval "$as_ac_Header=\$ac_header_preproc"
12170 ac_res=`eval echo '${'$as_ac_Header'}'`
12171 { echo "$as_me:$LINENO: result: $ac_res" >&5
12172 echo "${ECHO_T}$ac_res" >&6; }
12175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12176 cat >>confdefs.h <<_ACEOF
12177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12178 _ACEOF
12182 done
12185 for ac_func in getpagesize
12187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193 cat >conftest.$ac_ext <<_ACEOF
12194 /* confdefs.h. */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12201 #define $ac_func innocuous_$ac_func
12203 /* System header to define __stub macros and hopefully few prototypes,
12204 which can conflict with char $ac_func (); below.
12205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12206 <limits.h> exists even on freestanding compilers. */
12208 #ifdef __STDC__
12209 # include <limits.h>
12210 #else
12211 # include <assert.h>
12212 #endif
12214 #undef $ac_func
12216 /* Override any GCC internal prototype to avoid an error.
12217 Use char because int might match the return type of a GCC
12218 builtin and then its argument prototype would still apply. */
12219 #ifdef __cplusplus
12220 extern "C"
12221 #endif
12222 char $ac_func ();
12223 /* The GNU C library defines this for functions which it implements
12224 to always fail with ENOSYS. Some functions are actually named
12225 something starting with __ and the normal name is an alias. */
12226 #if defined __stub_$ac_func || defined __stub___$ac_func
12227 choke me
12228 #endif
12231 main ()
12233 return $ac_func ();
12235 return 0;
12237 _ACEOF
12238 rm -f conftest.$ac_objext conftest$ac_exeext
12239 if { (ac_try="$ac_link"
12240 case "(($ac_try" in
12241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242 *) ac_try_echo=$ac_try;;
12243 esac
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_link") 2>conftest.er1
12246 ac_status=$?
12247 grep -v '^ *+' conftest.er1 >conftest.err
12248 rm -f conftest.er1
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } && {
12252 test -z "$ac_c_werror_flag" ||
12253 test ! -s conftest.err
12254 } && test -s conftest$ac_exeext &&
12255 $as_test_x conftest$ac_exeext; then
12256 eval "$as_ac_var=yes"
12257 else
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12261 eval "$as_ac_var=no"
12264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12265 conftest$ac_exeext conftest.$ac_ext
12267 ac_res=`eval echo '${'$as_ac_var'}'`
12268 { echo "$as_me:$LINENO: result: $ac_res" >&5
12269 echo "${ECHO_T}$ac_res" >&6; }
12270 if test `eval echo '${'$as_ac_var'}'` = yes; then
12271 cat >>confdefs.h <<_ACEOF
12272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12273 _ACEOF
12276 done
12278 { echo "$as_me:$LINENO: checking for working mmap" >&5
12279 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12280 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 else
12283 if test "$cross_compiling" = yes; then
12284 ac_cv_func_mmap_fixed_mapped=no
12285 else
12286 cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h. */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 $ac_includes_default
12293 /* malloc might have been renamed as rpl_malloc. */
12294 #undef malloc
12296 /* Thanks to Mike Haertel and Jim Avera for this test.
12297 Here is a matrix of mmap possibilities:
12298 mmap private not fixed
12299 mmap private fixed at somewhere currently unmapped
12300 mmap private fixed at somewhere already mapped
12301 mmap shared not fixed
12302 mmap shared fixed at somewhere currently unmapped
12303 mmap shared fixed at somewhere already mapped
12304 For private mappings, we should verify that changes cannot be read()
12305 back from the file, nor mmap's back from the file at a different
12306 address. (There have been systems where private was not correctly
12307 implemented like the infamous i386 svr4.0, and systems where the
12308 VM page cache was not coherent with the file system buffer cache
12309 like early versions of FreeBSD and possibly contemporary NetBSD.)
12310 For shared mappings, we should conversely verify that changes get
12311 propagated back to all the places they're supposed to be.
12313 Grep wants private fixed already mapped.
12314 The main things grep needs to know about mmap are:
12315 * does it exist and is it safe to write into the mmap'd area
12316 * how to use it (BSD variants) */
12318 #include <fcntl.h>
12319 #include <sys/mman.h>
12321 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12322 char *malloc ();
12323 #endif
12325 /* This mess was copied from the GNU getpagesize.h. */
12326 #ifndef HAVE_GETPAGESIZE
12327 /* Assume that all systems that can run configure have sys/param.h. */
12328 # ifndef HAVE_SYS_PARAM_H
12329 # define HAVE_SYS_PARAM_H 1
12330 # endif
12332 # ifdef _SC_PAGESIZE
12333 # define getpagesize() sysconf(_SC_PAGESIZE)
12334 # else /* no _SC_PAGESIZE */
12335 # ifdef HAVE_SYS_PARAM_H
12336 # include <sys/param.h>
12337 # ifdef EXEC_PAGESIZE
12338 # define getpagesize() EXEC_PAGESIZE
12339 # else /* no EXEC_PAGESIZE */
12340 # ifdef NBPG
12341 # define getpagesize() NBPG * CLSIZE
12342 # ifndef CLSIZE
12343 # define CLSIZE 1
12344 # endif /* no CLSIZE */
12345 # else /* no NBPG */
12346 # ifdef NBPC
12347 # define getpagesize() NBPC
12348 # else /* no NBPC */
12349 # ifdef PAGESIZE
12350 # define getpagesize() PAGESIZE
12351 # endif /* PAGESIZE */
12352 # endif /* no NBPC */
12353 # endif /* no NBPG */
12354 # endif /* no EXEC_PAGESIZE */
12355 # else /* no HAVE_SYS_PARAM_H */
12356 # define getpagesize() 8192 /* punt totally */
12357 # endif /* no HAVE_SYS_PARAM_H */
12358 # endif /* no _SC_PAGESIZE */
12360 #endif /* no HAVE_GETPAGESIZE */
12363 main ()
12365 char *data, *data2, *data3;
12366 int i, pagesize;
12367 int fd;
12369 pagesize = getpagesize ();
12371 /* First, make a file with some known garbage in it. */
12372 data = (char *) malloc (pagesize);
12373 if (!data)
12374 return 1;
12375 for (i = 0; i < pagesize; ++i)
12376 *(data + i) = rand ();
12377 umask (0);
12378 fd = creat ("conftest.mmap", 0600);
12379 if (fd < 0)
12380 return 1;
12381 if (write (fd, data, pagesize) != pagesize)
12382 return 1;
12383 close (fd);
12385 /* Next, try to mmap the file at a fixed address which already has
12386 something else allocated at it. If we can, also make sure that
12387 we see the same garbage. */
12388 fd = open ("conftest.mmap", O_RDWR);
12389 if (fd < 0)
12390 return 1;
12391 data2 = (char *) malloc (2 * pagesize);
12392 if (!data2)
12393 return 1;
12394 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12395 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12396 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12397 return 1;
12398 for (i = 0; i < pagesize; ++i)
12399 if (*(data + i) != *(data2 + i))
12400 return 1;
12402 /* Finally, make sure that changes to the mapped area do not
12403 percolate back to the file as seen by read(). (This is a bug on
12404 some variants of i386 svr4.0.) */
12405 for (i = 0; i < pagesize; ++i)
12406 *(data2 + i) = *(data2 + i) + 1;
12407 data3 = (char *) malloc (pagesize);
12408 if (!data3)
12409 return 1;
12410 if (read (fd, data3, pagesize) != pagesize)
12411 return 1;
12412 for (i = 0; i < pagesize; ++i)
12413 if (*(data + i) != *(data3 + i))
12414 return 1;
12415 close (fd);
12416 return 0;
12418 _ACEOF
12419 rm -f conftest$ac_exeext
12420 if { (ac_try="$ac_link"
12421 case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12424 esac
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_link") 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12430 { (case "(($ac_try" in
12431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432 *) ac_try_echo=$ac_try;;
12433 esac
12434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435 (eval "$ac_try") 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 ac_cv_func_mmap_fixed_mapped=yes
12440 else
12441 echo "$as_me: program exited with status $ac_status" >&5
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12445 ( exit $ac_status )
12446 ac_cv_func_mmap_fixed_mapped=no
12448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12453 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12454 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12455 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12457 cat >>confdefs.h <<\_ACEOF
12458 #define HAVE_MMAP 1
12459 _ACEOF
12462 rm -f conftest.mmap
12466 for ac_header in sys/select.h sys/socket.h
12468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 ac_res=`eval echo '${'$as_ac_Header'}'`
12476 { echo "$as_me:$LINENO: result: $ac_res" >&5
12477 echo "${ECHO_T}$ac_res" >&6; }
12478 else
12479 # Is the header compilable?
12480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12482 cat >conftest.$ac_ext <<_ACEOF
12483 /* confdefs.h. */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 $ac_includes_default
12489 #include <$ac_header>
12490 _ACEOF
12491 rm -f conftest.$ac_objext
12492 if { (ac_try="$ac_compile"
12493 case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12496 esac
12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498 (eval "$ac_compile") 2>conftest.er1
12499 ac_status=$?
12500 grep -v '^ *+' conftest.er1 >conftest.err
12501 rm -f conftest.er1
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } && {
12505 test -z "$ac_c_werror_flag" ||
12506 test ! -s conftest.err
12507 } && test -s conftest.$ac_objext; then
12508 ac_header_compiler=yes
12509 else
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12513 ac_header_compiler=no
12516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12518 echo "${ECHO_T}$ac_header_compiler" >&6; }
12520 # Is the header present?
12521 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h. */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 #include <$ac_header>
12530 _ACEOF
12531 if { (ac_try="$ac_cpp conftest.$ac_ext"
12532 case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12535 esac
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } >/dev/null && {
12544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12545 test ! -s conftest.err
12546 }; then
12547 ac_header_preproc=yes
12548 else
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 ac_header_preproc=no
12555 rm -f conftest.err conftest.$ac_ext
12556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12557 echo "${ECHO_T}$ac_header_preproc" >&6; }
12559 # So? What about this header?
12560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12561 yes:no: )
12562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12566 ac_header_preproc=yes
12568 no:yes:* )
12569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12583 esac
12584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 else
12589 eval "$as_ac_Header=\$ac_header_preproc"
12591 ac_res=`eval echo '${'$as_ac_Header'}'`
12592 { echo "$as_me:$LINENO: result: $ac_res" >&5
12593 echo "${ECHO_T}$ac_res" >&6; }
12596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12597 cat >>confdefs.h <<_ACEOF
12598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12599 _ACEOF
12603 done
12605 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12606 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12607 if test "${ac_cv_func_select_args+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 else
12610 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12611 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12612 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12613 cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h. */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 $ac_includes_default
12620 #ifdef HAVE_SYS_SELECT_H
12621 # include <sys/select.h>
12622 #endif
12623 #ifdef HAVE_SYS_SOCKET_H
12624 # include <sys/socket.h>
12625 #endif
12628 main ()
12630 extern int select ($ac_arg1,
12631 $ac_arg234, $ac_arg234, $ac_arg234,
12632 $ac_arg5);
12634 return 0;
12636 _ACEOF
12637 rm -f conftest.$ac_objext
12638 if { (ac_try="$ac_compile"
12639 case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12642 esac
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_compile") 2>conftest.er1
12645 ac_status=$?
12646 grep -v '^ *+' conftest.er1 >conftest.err
12647 rm -f conftest.er1
12648 cat conftest.err >&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } && {
12651 test -z "$ac_c_werror_flag" ||
12652 test ! -s conftest.err
12653 } && test -s conftest.$ac_objext; then
12654 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12655 else
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12663 done
12664 done
12665 done
12666 # Provide a safe default value.
12667 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12670 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12671 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12672 ac_save_IFS=$IFS; IFS=','
12673 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12674 IFS=$ac_save_IFS
12675 shift
12677 cat >>confdefs.h <<_ACEOF
12678 #define SELECT_TYPE_ARG1 $1
12679 _ACEOF
12682 cat >>confdefs.h <<_ACEOF
12683 #define SELECT_TYPE_ARG234 ($2)
12684 _ACEOF
12687 cat >>confdefs.h <<_ACEOF
12688 #define SELECT_TYPE_ARG5 ($3)
12689 _ACEOF
12691 rm -f conftest*
12693 { echo "$as_me:$LINENO: checking for function prototypes" >&5
12694 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
12695 if test "$ac_cv_prog_cc_c89" != no; then
12696 { echo "$as_me:$LINENO: result: yes" >&5
12697 echo "${ECHO_T}yes" >&6; }
12699 cat >>confdefs.h <<\_ACEOF
12700 #define PROTOTYPES 1
12701 _ACEOF
12704 cat >>confdefs.h <<\_ACEOF
12705 #define __PROTOTYPES 1
12706 _ACEOF
12708 else
12709 { echo "$as_me:$LINENO: result: no" >&5
12710 echo "${ECHO_T}no" >&6; }
12713 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12714 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
12715 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 else
12718 ac_cv_func_setvbuf_reversed=no
12719 cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h. */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 #include <stdio.h>
12726 # ifdef PROTOTYPES
12727 int (setvbuf) (FILE *, int, char *, size_t);
12728 # endif
12730 main ()
12732 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12734 return 0;
12736 _ACEOF
12737 rm -f conftest.$ac_objext conftest$ac_exeext
12738 if { (ac_try="$ac_link"
12739 case "(($ac_try" in
12740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741 *) ac_try_echo=$ac_try;;
12742 esac
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744 (eval "$ac_link") 2>conftest.er1
12745 ac_status=$?
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } && {
12751 test -z "$ac_c_werror_flag" ||
12752 test ! -s conftest.err
12753 } && test -s conftest$ac_exeext &&
12754 $as_test_x conftest$ac_exeext; then
12755 cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h. */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12761 #include <stdio.h>
12762 # ifdef PROTOTYPES
12763 int (setvbuf) (FILE *, int, char *, size_t);
12764 # endif
12766 main ()
12768 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12770 return 0;
12772 _ACEOF
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (ac_try="$ac_link"
12775 case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_link") 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } && {
12787 test -z "$ac_c_werror_flag" ||
12788 test ! -s conftest.err
12789 } && test -s conftest$ac_exeext &&
12790 $as_test_x conftest$ac_exeext; then
12791 # It compiles and links either way, so it must not be declared
12792 # with a prototype and most likely this is a K&R C compiler.
12793 # Try running it.
12794 if test "$cross_compiling" = yes; then
12795 : # Assume setvbuf is not reversed when cross-compiling.
12796 else
12797 cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h. */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 $ac_includes_default
12805 main ()
12807 /* This call has the arguments reversed.
12808 A reversed system may check and see that the address of buf
12809 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12810 char buf;
12811 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12812 return 1;
12813 putchar ('\r');
12814 return 0; /* Non-reversed systems SEGV here. */
12816 return 0;
12818 _ACEOF
12819 rm -f conftest$ac_exeext
12820 if { (ac_try="$ac_link"
12821 case "(($ac_try" in
12822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12823 *) ac_try_echo=$ac_try;;
12824 esac
12825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12826 (eval "$ac_link") 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12830 { (case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12833 esac
12834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_try") 2>&5
12836 ac_status=$?
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12839 ac_cv_func_setvbuf_reversed=yes
12840 else
12841 echo "$as_me: program exited with status $ac_status" >&5
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12850 ac_cv_func_setvbuf_reversed=yes
12851 else
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12859 conftest$ac_exeext conftest.$ac_ext
12860 else
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12868 conftest$ac_exeext conftest.$ac_ext
12870 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12871 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
12872 if test $ac_cv_func_setvbuf_reversed = yes; then
12874 cat >>confdefs.h <<\_ACEOF
12875 #define SETVBUF_REVERSED 1
12876 _ACEOF
12880 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12881 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
12882 if test "${ac_cv_type_signal+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 else
12885 cat >conftest.$ac_ext <<_ACEOF
12886 /* confdefs.h. */
12887 _ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891 #include <sys/types.h>
12892 #include <signal.h>
12895 main ()
12897 return *(signal (0, 0)) (0) == 1;
12899 return 0;
12901 _ACEOF
12902 rm -f conftest.$ac_objext
12903 if { (ac_try="$ac_compile"
12904 case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12907 esac
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_compile") 2>conftest.er1
12910 ac_status=$?
12911 grep -v '^ *+' conftest.er1 >conftest.err
12912 rm -f conftest.er1
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } && {
12916 test -z "$ac_c_werror_flag" ||
12917 test ! -s conftest.err
12918 } && test -s conftest.$ac_objext; then
12919 ac_cv_type_signal=int
12920 else
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 ac_cv_type_signal=void
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12930 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
12932 cat >>confdefs.h <<_ACEOF
12933 #define RETSIGTYPE $ac_cv_type_signal
12934 _ACEOF
12937 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12938 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12939 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942 rm -f conftest.sym conftest.file
12943 echo >conftest.file
12944 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12945 if test "$cross_compiling" = yes; then
12946 ac_cv_func_lstat_dereferences_slashed_symlink=no
12947 else
12948 cat >conftest.$ac_ext <<_ACEOF
12949 /* confdefs.h. */
12950 _ACEOF
12951 cat confdefs.h >>conftest.$ac_ext
12952 cat >>conftest.$ac_ext <<_ACEOF
12953 /* end confdefs.h. */
12954 $ac_includes_default
12956 main ()
12958 struct stat sbuf;
12959 /* Linux will dereference the symlink and fail.
12960 That is better in the sense that it means we will not
12961 have to compile and use the lstat wrapper. */
12962 return lstat ("conftest.sym/", &sbuf) == 0;
12964 return 0;
12966 _ACEOF
12967 rm -f conftest$ac_exeext
12968 if { (ac_try="$ac_link"
12969 case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12972 esac
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_link") 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12978 { (case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12981 esac
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_try") 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12988 else
12989 echo "$as_me: program exited with status $ac_status" >&5
12990 echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12993 ( exit $ac_status )
12994 ac_cv_func_lstat_dereferences_slashed_symlink=no
12996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13000 else
13001 # If the `ln -s' command failed, then we probably don't even
13002 # have an lstat function.
13003 ac_cv_func_lstat_dereferences_slashed_symlink=no
13005 rm -f conftest.sym conftest.file
13008 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13009 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13011 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13013 cat >>confdefs.h <<_ACEOF
13014 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13015 _ACEOF
13018 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13019 case " $LIBOBJS " in
13020 *" lstat.$ac_objext "* ) ;;
13021 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13023 esac
13027 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13028 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13029 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032 if test "$cross_compiling" = yes; then
13033 ac_cv_func_stat_empty_string_bug=yes
13034 else
13035 cat >conftest.$ac_ext <<_ACEOF
13036 /* confdefs.h. */
13037 _ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13041 $ac_includes_default
13043 main ()
13045 struct stat sbuf;
13046 return stat ("", &sbuf) == 0;
13048 return 0;
13050 _ACEOF
13051 rm -f conftest$ac_exeext
13052 if { (ac_try="$ac_link"
13053 case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13056 esac
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058 (eval "$ac_link") 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13062 { (case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13065 esac
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_try") 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_cv_func_stat_empty_string_bug=no
13072 else
13073 echo "$as_me: program exited with status $ac_status" >&5
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13077 ( exit $ac_status )
13078 ac_cv_func_stat_empty_string_bug=yes
13080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13085 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13086 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13087 if test $ac_cv_func_stat_empty_string_bug = yes; then
13088 case " $LIBOBJS " in
13089 *" stat.$ac_objext "* ) ;;
13090 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13092 esac
13095 cat >>confdefs.h <<_ACEOF
13096 #define HAVE_STAT_EMPTY_STRING_BUG 1
13097 _ACEOF
13101 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13102 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13103 if test "${ac_cv_func_strcoll_works+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13105 else
13106 if test "$cross_compiling" = yes; then
13107 ac_cv_func_strcoll_works=no
13108 else
13109 cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h. */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13115 $ac_includes_default
13117 main ()
13119 return (strcoll ("abc", "def") >= 0 ||
13120 strcoll ("ABC", "DEF") >= 0 ||
13121 strcoll ("123", "456") >= 0)
13123 return 0;
13125 _ACEOF
13126 rm -f conftest$ac_exeext
13127 if { (ac_try="$ac_link"
13128 case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131 esac
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_link") 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13137 { (case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13140 esac
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142 (eval "$ac_try") 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; }; then
13146 ac_cv_func_strcoll_works=yes
13147 else
13148 echo "$as_me: program exited with status $ac_status" >&5
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 ( exit $ac_status )
13153 ac_cv_func_strcoll_works=no
13155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13160 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13161 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13162 if test $ac_cv_func_strcoll_works = yes; then
13164 cat >>confdefs.h <<\_ACEOF
13165 #define HAVE_STRCOLL 1
13166 _ACEOF
13171 for ac_func in strftime
13173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 else
13179 cat >conftest.$ac_ext <<_ACEOF
13180 /* confdefs.h. */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13187 #define $ac_func innocuous_$ac_func
13189 /* System header to define __stub macros and hopefully few prototypes,
13190 which can conflict with char $ac_func (); below.
13191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13192 <limits.h> exists even on freestanding compilers. */
13194 #ifdef __STDC__
13195 # include <limits.h>
13196 #else
13197 # include <assert.h>
13198 #endif
13200 #undef $ac_func
13202 /* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13205 #ifdef __cplusplus
13206 extern "C"
13207 #endif
13208 char $ac_func ();
13209 /* The GNU C library defines this for functions which it implements
13210 to always fail with ENOSYS. Some functions are actually named
13211 something starting with __ and the normal name is an alias. */
13212 #if defined __stub_$ac_func || defined __stub___$ac_func
13213 choke me
13214 #endif
13217 main ()
13219 return $ac_func ();
13221 return 0;
13223 _ACEOF
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (ac_try="$ac_link"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13229 esac
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_link") 2>conftest.er1
13232 ac_status=$?
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } && {
13238 test -z "$ac_c_werror_flag" ||
13239 test ! -s conftest.err
13240 } && test -s conftest$ac_exeext &&
13241 $as_test_x conftest$ac_exeext; then
13242 eval "$as_ac_var=yes"
13243 else
13244 echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13247 eval "$as_ac_var=no"
13250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13251 conftest$ac_exeext conftest.$ac_ext
13253 ac_res=`eval echo '${'$as_ac_var'}'`
13254 { echo "$as_me:$LINENO: result: $ac_res" >&5
13255 echo "${ECHO_T}$ac_res" >&6; }
13256 if test `eval echo '${'$as_ac_var'}'` = yes; then
13257 cat >>confdefs.h <<_ACEOF
13258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13259 _ACEOF
13261 else
13262 # strftime is in -lintl on SCO UNIX.
13263 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13264 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13265 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13267 else
13268 ac_check_lib_save_LIBS=$LIBS
13269 LIBS="-lintl $LIBS"
13270 cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h. */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13277 /* Override any GCC internal prototype to avoid an error.
13278 Use char because int might match the return type of a GCC
13279 builtin and then its argument prototype would still apply. */
13280 #ifdef __cplusplus
13281 extern "C"
13282 #endif
13283 char strftime ();
13285 main ()
13287 return strftime ();
13289 return 0;
13291 _ACEOF
13292 rm -f conftest.$ac_objext conftest$ac_exeext
13293 if { (ac_try="$ac_link"
13294 case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13297 esac
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_link") 2>conftest.er1
13300 ac_status=$?
13301 grep -v '^ *+' conftest.er1 >conftest.err
13302 rm -f conftest.er1
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } && {
13306 test -z "$ac_c_werror_flag" ||
13307 test ! -s conftest.err
13308 } && test -s conftest$ac_exeext &&
13309 $as_test_x conftest$ac_exeext; then
13310 ac_cv_lib_intl_strftime=yes
13311 else
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13315 ac_cv_lib_intl_strftime=no
13318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13319 conftest$ac_exeext conftest.$ac_ext
13320 LIBS=$ac_check_lib_save_LIBS
13322 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13323 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13324 if test $ac_cv_lib_intl_strftime = yes; then
13325 cat >>confdefs.h <<\_ACEOF
13326 #define HAVE_STRFTIME 1
13327 _ACEOF
13329 LIBS="-lintl $LIBS"
13333 done
13335 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13336 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13337 if test "${ac_cv_func_strnlen_working+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 else
13340 if test "$cross_compiling" = yes; then
13341 ac_cv_func_strnlen_working=no
13342 else
13343 cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h. */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 $ac_includes_default
13351 main ()
13354 #define S "foobar"
13355 #define S_LEN (sizeof S - 1)
13357 /* At least one implementation is buggy: that of AIX 4.3 would
13358 give strnlen (S, 1) == 3. */
13360 int i;
13361 for (i = 0; i < S_LEN + 1; ++i)
13363 int expected = i <= S_LEN ? i : S_LEN;
13364 if (strnlen (S, i) != expected)
13365 return 1;
13367 return 0;
13370 return 0;
13372 _ACEOF
13373 rm -f conftest$ac_exeext
13374 if { (ac_try="$ac_link"
13375 case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13378 esac
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_link") 2>&5
13381 ac_status=$?
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13384 { (case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13387 esac
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_try") 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 ac_cv_func_strnlen_working=yes
13394 else
13395 echo "$as_me: program exited with status $ac_status" >&5
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13399 ( exit $ac_status )
13400 ac_cv_func_strnlen_working=no
13402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13407 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13408 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13409 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13410 *" strnlen.$ac_objext "* ) ;;
13411 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13413 esac
13416 { echo "$as_me:$LINENO: checking for working strtod" >&5
13417 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13418 if test "${ac_cv_func_strtod+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 else
13421 if test "$cross_compiling" = yes; then
13422 ac_cv_func_strtod=no
13423 else
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h. */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13431 $ac_includes_default
13432 #ifndef strtod
13433 double strtod ();
13434 #endif
13436 main()
13439 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13440 char *string = " +69";
13441 char *term;
13442 double value;
13443 value = strtod (string, &term);
13444 if (value != 69 || term != (string + 4))
13445 return 1;
13449 /* Under Solaris 2.4, strtod returns the wrong value for the
13450 terminating character under some conditions. */
13451 char *string = "NaN";
13452 char *term;
13453 strtod (string, &term);
13454 if (term != string && *(term - 1) == 0)
13455 return 1;
13457 return 0;
13460 _ACEOF
13461 rm -f conftest$ac_exeext
13462 if { (ac_try="$ac_link"
13463 case "(($ac_try" in
13464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465 *) ac_try_echo=$ac_try;;
13466 esac
13467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468 (eval "$ac_link") 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13472 { (case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475 esac
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_try") 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }; then
13481 ac_cv_func_strtod=yes
13482 else
13483 echo "$as_me: program exited with status $ac_status" >&5
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13487 ( exit $ac_status )
13488 ac_cv_func_strtod=no
13490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13495 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13496 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13497 if test $ac_cv_func_strtod = no; then
13498 case " $LIBOBJS " in
13499 *" strtod.$ac_objext "* ) ;;
13500 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13502 esac
13504 { echo "$as_me:$LINENO: checking for pow" >&5
13505 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13506 if test "${ac_cv_func_pow+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 cat >conftest.$ac_ext <<_ACEOF
13510 /* confdefs.h. */
13511 _ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13515 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13517 #define pow innocuous_pow
13519 /* System header to define __stub macros and hopefully few prototypes,
13520 which can conflict with char pow (); below.
13521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13522 <limits.h> exists even on freestanding compilers. */
13524 #ifdef __STDC__
13525 # include <limits.h>
13526 #else
13527 # include <assert.h>
13528 #endif
13530 #undef pow
13532 /* Override any GCC internal prototype to avoid an error.
13533 Use char because int might match the return type of a GCC
13534 builtin and then its argument prototype would still apply. */
13535 #ifdef __cplusplus
13536 extern "C"
13537 #endif
13538 char pow ();
13539 /* The GNU C library defines this for functions which it implements
13540 to always fail with ENOSYS. Some functions are actually named
13541 something starting with __ and the normal name is an alias. */
13542 #if defined __stub_pow || defined __stub___pow
13543 choke me
13544 #endif
13547 main ()
13549 return pow ();
13551 return 0;
13553 _ACEOF
13554 rm -f conftest.$ac_objext conftest$ac_exeext
13555 if { (ac_try="$ac_link"
13556 case "(($ac_try" in
13557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558 *) ac_try_echo=$ac_try;;
13559 esac
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561 (eval "$ac_link") 2>conftest.er1
13562 ac_status=$?
13563 grep -v '^ *+' conftest.er1 >conftest.err
13564 rm -f conftest.er1
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } && {
13568 test -z "$ac_c_werror_flag" ||
13569 test ! -s conftest.err
13570 } && test -s conftest$ac_exeext &&
13571 $as_test_x conftest$ac_exeext; then
13572 ac_cv_func_pow=yes
13573 else
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13577 ac_cv_func_pow=no
13580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13581 conftest$ac_exeext conftest.$ac_ext
13583 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13584 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13586 if test $ac_cv_func_pow = no; then
13587 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13588 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13589 if test "${ac_cv_lib_m_pow+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 else
13592 ac_check_lib_save_LIBS=$LIBS
13593 LIBS="-lm $LIBS"
13594 cat >conftest.$ac_ext <<_ACEOF
13595 /* confdefs.h. */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13601 /* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13604 #ifdef __cplusplus
13605 extern "C"
13606 #endif
13607 char pow ();
13609 main ()
13611 return pow ();
13613 return 0;
13615 _ACEOF
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (ac_try="$ac_link"
13618 case "(($ac_try" in
13619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620 *) ac_try_echo=$ac_try;;
13621 esac
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623 (eval "$ac_link") 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } && {
13630 test -z "$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13632 } && test -s conftest$ac_exeext &&
13633 $as_test_x conftest$ac_exeext; then
13634 ac_cv_lib_m_pow=yes
13635 else
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13639 ac_cv_lib_m_pow=no
13642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13643 conftest$ac_exeext conftest.$ac_ext
13644 LIBS=$ac_check_lib_save_LIBS
13646 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13647 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13648 if test $ac_cv_lib_m_pow = yes; then
13649 POW_LIB=-lm
13650 else
13651 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13652 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13667 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
13668 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
13669 if test "${ac_cv_func_utime_null+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672 rm -f conftest.data; >conftest.data
13673 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
13674 if test "$cross_compiling" = yes; then
13675 ac_cv_func_utime_null=no
13676 else
13677 cat >conftest.$ac_ext <<_ACEOF
13678 /* confdefs.h. */
13679 _ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h. */
13683 $ac_includes_default
13684 #ifdef HAVE_UTIME_H
13685 # include <utime.h>
13686 #endif
13688 main ()
13690 struct stat s, t;
13691 return ! (stat ("conftest.data", &s) == 0
13692 && utime ("conftest.data", 0) == 0
13693 && stat ("conftest.data", &t) == 0
13694 && t.st_mtime >= s.st_mtime
13695 && t.st_mtime - s.st_mtime < 120);
13697 return 0;
13699 _ACEOF
13700 rm -f conftest$ac_exeext
13701 if { (ac_try="$ac_link"
13702 case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13705 esac
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_link") 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13711 { (case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13714 esac
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_try") 2>&5
13717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; }; then
13720 ac_cv_func_utime_null=yes
13721 else
13722 echo "$as_me: program exited with status $ac_status" >&5
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13726 ( exit $ac_status )
13727 ac_cv_func_utime_null=no
13729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13734 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
13735 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
13736 if test $ac_cv_func_utime_null = yes; then
13738 cat >>confdefs.h <<\_ACEOF
13739 #define HAVE_UTIME_NULL 1
13740 _ACEOF
13743 rm -f conftest.data
13746 for ac_func in vprintf
13748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 else
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h. */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13762 #define $ac_func innocuous_$ac_func
13764 /* System header to define __stub macros and hopefully few prototypes,
13765 which can conflict with char $ac_func (); below.
13766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13767 <limits.h> exists even on freestanding compilers. */
13769 #ifdef __STDC__
13770 # include <limits.h>
13771 #else
13772 # include <assert.h>
13773 #endif
13775 #undef $ac_func
13777 /* Override any GCC internal prototype to avoid an error.
13778 Use char because int might match the return type of a GCC
13779 builtin and then its argument prototype would still apply. */
13780 #ifdef __cplusplus
13781 extern "C"
13782 #endif
13783 char $ac_func ();
13784 /* The GNU C library defines this for functions which it implements
13785 to always fail with ENOSYS. Some functions are actually named
13786 something starting with __ and the normal name is an alias. */
13787 #if defined __stub_$ac_func || defined __stub___$ac_func
13788 choke me
13789 #endif
13792 main ()
13794 return $ac_func ();
13796 return 0;
13798 _ACEOF
13799 rm -f conftest.$ac_objext conftest$ac_exeext
13800 if { (ac_try="$ac_link"
13801 case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13804 esac
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_link") 2>conftest.er1
13807 ac_status=$?
13808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } && {
13813 test -z "$ac_c_werror_flag" ||
13814 test ! -s conftest.err
13815 } && test -s conftest$ac_exeext &&
13816 $as_test_x conftest$ac_exeext; then
13817 eval "$as_ac_var=yes"
13818 else
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13822 eval "$as_ac_var=no"
13825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13826 conftest$ac_exeext conftest.$ac_ext
13828 ac_res=`eval echo '${'$as_ac_var'}'`
13829 { echo "$as_me:$LINENO: result: $ac_res" >&5
13830 echo "${ECHO_T}$ac_res" >&6; }
13831 if test `eval echo '${'$as_ac_var'}'` = yes; then
13832 cat >>confdefs.h <<_ACEOF
13833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13834 _ACEOF
13836 { echo "$as_me:$LINENO: checking for _doprnt" >&5
13837 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
13838 if test "${ac_cv_func__doprnt+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 else
13841 cat >conftest.$ac_ext <<_ACEOF
13842 /* confdefs.h. */
13843 _ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13847 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13849 #define _doprnt innocuous__doprnt
13851 /* System header to define __stub macros and hopefully few prototypes,
13852 which can conflict with char _doprnt (); below.
13853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13854 <limits.h> exists even on freestanding compilers. */
13856 #ifdef __STDC__
13857 # include <limits.h>
13858 #else
13859 # include <assert.h>
13860 #endif
13862 #undef _doprnt
13864 /* Override any GCC internal prototype to avoid an error.
13865 Use char because int might match the return type of a GCC
13866 builtin and then its argument prototype would still apply. */
13867 #ifdef __cplusplus
13868 extern "C"
13869 #endif
13870 char _doprnt ();
13871 /* The GNU C library defines this for functions which it implements
13872 to always fail with ENOSYS. Some functions are actually named
13873 something starting with __ and the normal name is an alias. */
13874 #if defined __stub__doprnt || defined __stub____doprnt
13875 choke me
13876 #endif
13879 main ()
13881 return _doprnt ();
13883 return 0;
13885 _ACEOF
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (ac_try="$ac_link"
13888 case "(($ac_try" in
13889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13891 esac
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893 (eval "$ac_link") 2>conftest.er1
13894 ac_status=$?
13895 grep -v '^ *+' conftest.er1 >conftest.err
13896 rm -f conftest.er1
13897 cat conftest.err >&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } && {
13900 test -z "$ac_c_werror_flag" ||
13901 test ! -s conftest.err
13902 } && test -s conftest$ac_exeext &&
13903 $as_test_x conftest$ac_exeext; then
13904 ac_cv_func__doprnt=yes
13905 else
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13909 ac_cv_func__doprnt=no
13912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13913 conftest$ac_exeext conftest.$ac_ext
13915 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13916 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13917 if test $ac_cv_func__doprnt = yes; then
13919 cat >>confdefs.h <<\_ACEOF
13920 #define HAVE_DOPRNT 1
13921 _ACEOF
13926 done
13976 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 strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
13978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13983 else
13984 cat >conftest.$ac_ext <<_ACEOF
13985 /* confdefs.h. */
13986 _ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h. */
13990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13992 #define $ac_func innocuous_$ac_func
13994 /* System header to define __stub macros and hopefully few prototypes,
13995 which can conflict with char $ac_func (); below.
13996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13997 <limits.h> exists even on freestanding compilers. */
13999 #ifdef __STDC__
14000 # include <limits.h>
14001 #else
14002 # include <assert.h>
14003 #endif
14005 #undef $ac_func
14007 /* Override any GCC internal prototype to avoid an error.
14008 Use char because int might match the return type of a GCC
14009 builtin and then its argument prototype would still apply. */
14010 #ifdef __cplusplus
14011 extern "C"
14012 #endif
14013 char $ac_func ();
14014 /* The GNU C library defines this for functions which it implements
14015 to always fail with ENOSYS. Some functions are actually named
14016 something starting with __ and the normal name is an alias. */
14017 #if defined __stub_$ac_func || defined __stub___$ac_func
14018 choke me
14019 #endif
14022 main ()
14024 return $ac_func ();
14026 return 0;
14028 _ACEOF
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if { (ac_try="$ac_link"
14031 case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_link") 2>conftest.er1
14037 ac_status=$?
14038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && {
14043 test -z "$ac_c_werror_flag" ||
14044 test ! -s conftest.err
14045 } && test -s conftest$ac_exeext &&
14046 $as_test_x conftest$ac_exeext; then
14047 eval "$as_ac_var=yes"
14048 else
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 eval "$as_ac_var=no"
14055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14056 conftest$ac_exeext conftest.$ac_ext
14058 ac_res=`eval echo '${'$as_ac_var'}'`
14059 { echo "$as_me:$LINENO: result: $ac_res" >&5
14060 echo "${ECHO_T}$ac_res" >&6; }
14061 if test `eval echo '${'$as_ac_var'}'` = yes; then
14062 cat >>confdefs.h <<_ACEOF
14063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14064 _ACEOF
14067 done
14070 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14071 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14072 cat >conftest.$ac_ext <<_ACEOF
14073 /* confdefs.h. */
14074 _ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include <pthread.h>
14080 main ()
14082 int foo = PTHREAD_RWLOCK_INITIALIZER;
14084 return 0;
14086 _ACEOF
14087 rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (ac_try="$ac_link"
14089 case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14092 esac
14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_link") 2>conftest.er1
14095 ac_status=$?
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } && {
14101 test -z "$ac_c_werror_flag" ||
14102 test ! -s conftest.err
14103 } && test -s conftest$ac_exeext &&
14104 $as_test_x conftest$ac_exeext; then
14105 { echo "$as_me:$LINENO: result: yes" >&5
14106 echo "${ECHO_T}yes" >&6; }
14108 cat >>confdefs.h <<\_ACEOF
14109 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14110 _ACEOF
14112 else
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 { echo "$as_me:$LINENO: result: no" >&5
14117 echo "${ECHO_T}no" >&6; }
14121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14122 conftest$ac_exeext conftest.$ac_ext
14124 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14125 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14126 cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h. */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14132 #include <pthread.h>
14134 main ()
14136 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14138 return 0;
14140 _ACEOF
14141 rm -f conftest.$ac_objext conftest$ac_exeext
14142 if { (ac_try="$ac_link"
14143 case "(($ac_try" in
14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14146 esac
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148 (eval "$ac_link") 2>conftest.er1
14149 ac_status=$?
14150 grep -v '^ *+' conftest.er1 >conftest.err
14151 rm -f conftest.er1
14152 cat conftest.err >&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } && {
14155 test -z "$ac_c_werror_flag" ||
14156 test ! -s conftest.err
14157 } && test -s conftest$ac_exeext &&
14158 $as_test_x conftest$ac_exeext; then
14159 { echo "$as_me:$LINENO: result: yes" >&5
14160 echo "${ECHO_T}yes" >&6; }
14162 cat >>confdefs.h <<\_ACEOF
14163 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14164 _ACEOF
14166 else
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14170 { echo "$as_me:$LINENO: result: no" >&5
14171 echo "${ECHO_T}no" >&6; }
14175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14176 conftest$ac_exeext conftest.$ac_ext
14178 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14179 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14180 cat >conftest.$ac_ext <<_ACEOF
14181 /* confdefs.h. */
14182 _ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h. */
14188 main ()
14190 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14192 return 0;
14194 _ACEOF
14195 rm -f conftest.$ac_objext conftest$ac_exeext
14196 if { (ac_try="$ac_link"
14197 case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14200 esac
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_link") 2>conftest.er1
14203 ac_status=$?
14204 grep -v '^ *+' conftest.er1 >conftest.err
14205 rm -f conftest.er1
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } && {
14209 test -z "$ac_c_werror_flag" ||
14210 test ! -s conftest.err
14211 } && test -s conftest$ac_exeext &&
14212 $as_test_x conftest$ac_exeext; then
14213 { echo "$as_me:$LINENO: result: yes" >&5
14214 echo "${ECHO_T}yes" >&6; }
14216 cat >>confdefs.h <<\_ACEOF
14217 #define HAVE_GCC_ATOMICS 1
14218 _ACEOF
14220 else
14221 echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14224 { echo "$as_me:$LINENO: result: no" >&5
14225 echo "${ECHO_T}no" >&6; }
14229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14230 conftest$ac_exeext conftest.$ac_ext
14233 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14234 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14235 cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h. */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 static int __attribute__((pure)) test(void) {}
14243 main ()
14247 return 0;
14249 _ACEOF
14250 rm -f conftest.$ac_objext
14251 if { (ac_try="$ac_compile"
14252 case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14255 esac
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_compile") 2>conftest.er1
14258 ac_status=$?
14259 grep -v '^ *+' conftest.er1 >conftest.err
14260 rm -f conftest.er1
14261 cat conftest.err >&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } && {
14264 test -z "$ac_c_werror_flag" ||
14265 test ! -s conftest.err
14266 } && test -s conftest.$ac_objext; then
14267 { echo "$as_me:$LINENO: result: yes" >&5
14268 echo "${ECHO_T}yes" >&6; }
14270 cat >>confdefs.h <<_ACEOF
14271 #define HAVE_ATTRIBUTE_pure 1
14272 _ACEOF
14274 else
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14278 { echo "$as_me:$LINENO: result: no" >&5
14279 echo "${ECHO_T}no" >&6; }
14282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14285 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14286 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14287 cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h. */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 static int __attribute__((malloc)) test(void) {}
14295 main ()
14299 return 0;
14301 _ACEOF
14302 rm -f conftest.$ac_objext
14303 if { (ac_try="$ac_compile"
14304 case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_compile") 2>conftest.er1
14310 ac_status=$?
14311 grep -v '^ *+' conftest.er1 >conftest.err
14312 rm -f conftest.er1
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } && {
14316 test -z "$ac_c_werror_flag" ||
14317 test ! -s conftest.err
14318 } && test -s conftest.$ac_objext; then
14319 { echo "$as_me:$LINENO: result: yes" >&5
14320 echo "${ECHO_T}yes" >&6; }
14322 cat >>confdefs.h <<_ACEOF
14323 #define HAVE_ATTRIBUTE_malloc 1
14324 _ACEOF
14326 else
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 { echo "$as_me:$LINENO: result: no" >&5
14331 echo "${ECHO_T}no" >&6; }
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14337 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
14338 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
14339 cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h. */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 static int __attribute__((const)) test(void) {}
14347 main ()
14351 return 0;
14353 _ACEOF
14354 rm -f conftest.$ac_objext
14355 if { (ac_try="$ac_compile"
14356 case "(($ac_try" in
14357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14359 esac
14360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361 (eval "$ac_compile") 2>conftest.er1
14362 ac_status=$?
14363 grep -v '^ *+' conftest.er1 >conftest.err
14364 rm -f conftest.er1
14365 cat conftest.err >&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } && {
14368 test -z "$ac_c_werror_flag" ||
14369 test ! -s conftest.err
14370 } && test -s conftest.$ac_objext; then
14371 { echo "$as_me:$LINENO: result: yes" >&5
14372 echo "${ECHO_T}yes" >&6; }
14374 cat >>confdefs.h <<_ACEOF
14375 #define HAVE_ATTRIBUTE_const 1
14376 _ACEOF
14378 else
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14382 { echo "$as_me:$LINENO: result: no" >&5
14383 echo "${ECHO_T}no" >&6; }
14386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
14390 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
14391 cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h. */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 static int __attribute__((unused)) test(void) {}
14399 main ()
14403 return 0;
14405 _ACEOF
14406 rm -f conftest.$ac_objext
14407 if { (ac_try="$ac_compile"
14408 case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14411 esac
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_compile") 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && {
14420 test -z "$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 } && test -s conftest.$ac_objext; then
14423 { echo "$as_me:$LINENO: result: yes" >&5
14424 echo "${ECHO_T}yes" >&6; }
14426 cat >>confdefs.h <<_ACEOF
14427 #define HAVE_ATTRIBUTE_unused 1
14428 _ACEOF
14430 else
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14434 { echo "$as_me:$LINENO: result: no" >&5
14435 echo "${ECHO_T}no" >&6; }
14438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14441 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
14442 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
14443 cat >conftest.$ac_ext <<_ACEOF
14444 /* confdefs.h. */
14445 _ACEOF
14446 cat confdefs.h >>conftest.$ac_ext
14447 cat >>conftest.$ac_ext <<_ACEOF
14448 /* end confdefs.h. */
14449 static int __attribute__((always_inline)) test(void) {}
14451 main ()
14455 return 0;
14457 _ACEOF
14458 rm -f conftest.$ac_objext
14459 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
14475 { echo "$as_me:$LINENO: result: yes" >&5
14476 echo "${ECHO_T}yes" >&6; }
14478 cat >>confdefs.h <<_ACEOF
14479 #define HAVE_ATTRIBUTE_always_inline 1
14480 _ACEOF
14482 else
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 { echo "$as_me:$LINENO: result: no" >&5
14487 echo "${ECHO_T}no" >&6; }
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14493 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
14494 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
14495 saved_CFLAGS="${CFLAGS}"
14496 CFLAGS="${CFLAGS} -ffunction-sections"
14497 cat >conftest.$ac_ext <<_ACEOF
14498 /* confdefs.h. */
14499 _ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14505 main ()
14507 int x = 1;
14509 return 0;
14511 _ACEOF
14512 rm -f conftest.$ac_objext
14513 if { (ac_try="$ac_compile"
14514 case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14517 esac
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_compile") 2>conftest.er1
14520 ac_status=$?
14521 grep -v '^ *+' conftest.er1 >conftest.err
14522 rm -f conftest.er1
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } && {
14526 test -z "$ac_c_werror_flag" ||
14527 test ! -s conftest.err
14528 } && test -s conftest.$ac_objext; then
14529 { echo "$as_me:$LINENO: result: yes" >&5
14530 echo "${ECHO_T}yes" >&6; }
14531 saved_LDFLAGS="${LDFLAGS}"
14532 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
14533 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
14534 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
14535 cat >conftest.$ac_ext <<_ACEOF
14536 /* confdefs.h. */
14537 _ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14543 main ()
14545 int x = 1;
14547 return 0;
14549 _ACEOF
14550 rm -f conftest.$ac_objext conftest$ac_exeext
14551 if { (ac_try="$ac_link"
14552 case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14555 esac
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_link") 2>conftest.er1
14558 ac_status=$?
14559 grep -v '^ *+' conftest.er1 >conftest.err
14560 rm -f conftest.er1
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } && {
14564 test -z "$ac_c_werror_flag" ||
14565 test ! -s conftest.err
14566 } && test -s conftest$ac_exeext &&
14567 $as_test_x conftest$ac_exeext; then
14568 { echo "$as_me:$LINENO: result: yes" >&5
14569 echo "${ECHO_T}yes" >&6; }
14570 GC_CFLAGS="-ffunction-sections"
14571 GC_LDFLAGS="-Wl,--gc-sections"
14572 else
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14576 { echo "$as_me:$LINENO: result: no" >&5
14577 echo "${ECHO_T}no" >&6; }
14581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14582 conftest$ac_exeext conftest.$ac_ext
14583 LDFLAGS="${saved_LDFLAGS}"
14584 else
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14588 { echo "$as_me:$LINENO: result: no" >&5
14589 echo "${ECHO_T}no" >&6; }
14593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14594 CFLAGS="${saved_CFLAGS}"
14598 { echo "$as_me:$LINENO: checking for res_ninit" >&5
14599 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
14600 cat >conftest.$ac_ext <<_ACEOF
14601 /* confdefs.h. */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 #include <resolv.h>
14608 main ()
14610 int foo = res_ninit(NULL);
14612 return 0;
14614 _ACEOF
14615 rm -f conftest.$ac_objext conftest$ac_exeext
14616 if { (ac_try="$ac_link"
14617 case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14620 esac
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_link") 2>conftest.er1
14623 ac_status=$?
14624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } && {
14629 test -z "$ac_c_werror_flag" ||
14630 test ! -s conftest.err
14631 } && test -s conftest$ac_exeext &&
14632 $as_test_x conftest$ac_exeext; then
14633 { echo "$as_me:$LINENO: result: yes" >&5
14634 echo "${ECHO_T}yes" >&6; }
14636 cat >>confdefs.h <<\_ACEOF
14637 #define HAVE_RES_NINIT 1
14638 _ACEOF
14640 else
14641 echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14644 { echo "$as_me:$LINENO: result: no" >&5
14645 echo "${ECHO_T}no" >&6; }
14649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14650 conftest$ac_exeext conftest.$ac_ext
14652 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
14653 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
14654 cat >conftest.$ac_ext <<_ACEOF
14655 /* confdefs.h. */
14656 _ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14660 #include <dlfcn.h>
14662 main ()
14664 int foo = RTLD_NOLOAD;
14666 return 0;
14668 _ACEOF
14669 rm -f conftest.$ac_objext conftest$ac_exeext
14670 if { (ac_try="$ac_link"
14671 case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14674 esac
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_link") 2>conftest.er1
14677 ac_status=$?
14678 grep -v '^ *+' conftest.er1 >conftest.err
14679 rm -f conftest.er1
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } && {
14683 test -z "$ac_c_werror_flag" ||
14684 test ! -s conftest.err
14685 } && test -s conftest$ac_exeext &&
14686 $as_test_x conftest$ac_exeext; then
14687 { echo "$as_me:$LINENO: result: yes" >&5
14688 echo "${ECHO_T}yes" >&6; }
14690 cat >>confdefs.h <<\_ACEOF
14691 #define HAVE_RTLD_NOLOAD 1
14692 _ACEOF
14694 else
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14698 { echo "$as_me:$LINENO: result: no" >&5
14699 echo "${ECHO_T}no" >&6; }
14703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14704 conftest$ac_exeext conftest.$ac_ext
14706 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
14707 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
14708 cat >conftest.$ac_ext <<_ACEOF
14709 /* confdefs.h. */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 #include <netinet/in.h>
14716 main ()
14718 int foo = IP_MTU_DISCOVER;
14720 return 0;
14722 _ACEOF
14723 rm -f conftest.$ac_objext conftest$ac_exeext
14724 if { (ac_try="$ac_link"
14725 case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14728 esac
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_link") 2>conftest.er1
14731 ac_status=$?
14732 grep -v '^ *+' conftest.er1 >conftest.err
14733 rm -f conftest.er1
14734 cat conftest.err >&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } && {
14737 test -z "$ac_c_werror_flag" ||
14738 test ! -s conftest.err
14739 } && test -s conftest$ac_exeext &&
14740 $as_test_x conftest$ac_exeext; then
14741 { echo "$as_me:$LINENO: result: yes" >&5
14742 echo "${ECHO_T}yes" >&6; }
14744 cat >>confdefs.h <<\_ACEOF
14745 #define HAVE_IP_MTU_DISCOVER 1
14746 _ACEOF
14748 else
14749 echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.$ac_ext >&5
14752 { echo "$as_me:$LINENO: result: no" >&5
14753 echo "${ECHO_T}no" >&6; }
14757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14758 conftest$ac_exeext conftest.$ac_ext
14760 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14761 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14762 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14763 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14767 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14768 else
14769 # Is the header compilable?
14770 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
14771 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
14772 cat >conftest.$ac_ext <<_ACEOF
14773 /* confdefs.h. */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 $ac_includes_default
14779 #include <libkern/OSAtomic.h>
14780 _ACEOF
14781 rm -f conftest.$ac_objext
14782 if { (ac_try="$ac_compile"
14783 case "(($ac_try" in
14784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785 *) ac_try_echo=$ac_try;;
14786 esac
14787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788 (eval "$ac_compile") 2>conftest.er1
14789 ac_status=$?
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } && {
14795 test -z "$ac_c_werror_flag" ||
14796 test ! -s conftest.err
14797 } && test -s conftest.$ac_objext; then
14798 ac_header_compiler=yes
14799 else
14800 echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 ac_header_compiler=no
14806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808 echo "${ECHO_T}$ac_header_compiler" >&6; }
14810 # Is the header present?
14811 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
14812 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h. */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819 #include <libkern/OSAtomic.h>
14820 _ACEOF
14821 if { (ac_try="$ac_cpp conftest.$ac_ext"
14822 case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14825 esac
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14828 ac_status=$?
14829 grep -v '^ *+' conftest.er1 >conftest.err
14830 rm -f conftest.er1
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } >/dev/null && {
14834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14835 test ! -s conftest.err
14836 }; then
14837 ac_header_preproc=yes
14838 else
14839 echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14842 ac_header_preproc=no
14845 rm -f conftest.err conftest.$ac_ext
14846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14847 echo "${ECHO_T}$ac_header_preproc" >&6; }
14849 # So? What about this header?
14850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14851 yes:no: )
14852 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
14853 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
14855 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
14856 ac_header_preproc=yes
14858 no:yes:* )
14859 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
14860 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
14862 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
14863 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
14864 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
14865 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
14866 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
14868 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
14869 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
14870 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
14873 esac
14874 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14875 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14876 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
14881 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14882 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14885 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
14887 cat >>confdefs.h <<_ACEOF
14888 #define HAVE_OSX_ATOMICS 1
14889 _ACEOF
14895 { echo "$as_me:$LINENO: checking for int" >&5
14896 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14897 if test "${ac_cv_type_int+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900 cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h. */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 $ac_includes_default
14907 typedef int ac__type_new_;
14909 main ()
14911 if ((ac__type_new_ *) 0)
14912 return 0;
14913 if (sizeof (ac__type_new_))
14914 return 0;
14916 return 0;
14918 _ACEOF
14919 rm -f conftest.$ac_objext
14920 if { (ac_try="$ac_compile"
14921 case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924 esac
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_compile") 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } && {
14933 test -z "$ac_c_werror_flag" ||
14934 test ! -s conftest.err
14935 } && test -s conftest.$ac_objext; then
14936 ac_cv_type_int=yes
14937 else
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 ac_cv_type_int=no
14944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14947 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14949 # The cast to long int works around a bug in the HP C Compiler
14950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14952 # This bug is HP SR number 8606223364.
14953 { echo "$as_me:$LINENO: checking size of int" >&5
14954 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14955 if test "${ac_cv_sizeof_int+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14957 else
14958 if test "$cross_compiling" = yes; then
14959 # Depending upon the size, compute the lo and hi bounds.
14960 cat >conftest.$ac_ext <<_ACEOF
14961 /* confdefs.h. */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 $ac_includes_default
14967 typedef int ac__type_sizeof_;
14969 main ()
14971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14972 test_array [0] = 0
14975 return 0;
14977 _ACEOF
14978 rm -f conftest.$ac_objext
14979 if { (ac_try="$ac_compile"
14980 case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14983 esac
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_compile") 2>conftest.er1
14986 ac_status=$?
14987 grep -v '^ *+' conftest.er1 >conftest.err
14988 rm -f conftest.er1
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } && {
14992 test -z "$ac_c_werror_flag" ||
14993 test ! -s conftest.err
14994 } && test -s conftest.$ac_objext; then
14995 ac_lo=0 ac_mid=0
14996 while :; do
14997 cat >conftest.$ac_ext <<_ACEOF
14998 /* confdefs.h. */
14999 _ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003 $ac_includes_default
15004 typedef int ac__type_sizeof_;
15006 main ()
15008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15009 test_array [0] = 0
15012 return 0;
15014 _ACEOF
15015 rm -f conftest.$ac_objext
15016 if { (ac_try="$ac_compile"
15017 case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15020 esac
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_compile") 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } && {
15029 test -z "$ac_c_werror_flag" ||
15030 test ! -s conftest.err
15031 } && test -s conftest.$ac_objext; then
15032 ac_hi=$ac_mid; break
15033 else
15034 echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15037 ac_lo=`expr $ac_mid + 1`
15038 if test $ac_lo -le $ac_mid; then
15039 ac_lo= ac_hi=
15040 break
15042 ac_mid=`expr 2 '*' $ac_mid + 1`
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 done
15047 else
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15051 cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h. */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 $ac_includes_default
15058 typedef int ac__type_sizeof_;
15060 main ()
15062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15063 test_array [0] = 0
15066 return 0;
15068 _ACEOF
15069 rm -f conftest.$ac_objext
15070 if { (ac_try="$ac_compile"
15071 case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15074 esac
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_compile") 2>conftest.er1
15077 ac_status=$?
15078 grep -v '^ *+' conftest.er1 >conftest.err
15079 rm -f conftest.er1
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } && {
15083 test -z "$ac_c_werror_flag" ||
15084 test ! -s conftest.err
15085 } && test -s conftest.$ac_objext; then
15086 ac_hi=-1 ac_mid=-1
15087 while :; do
15088 cat >conftest.$ac_ext <<_ACEOF
15089 /* confdefs.h. */
15090 _ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15094 $ac_includes_default
15095 typedef int ac__type_sizeof_;
15097 main ()
15099 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15100 test_array [0] = 0
15103 return 0;
15105 _ACEOF
15106 rm -f conftest.$ac_objext
15107 if { (ac_try="$ac_compile"
15108 case "(($ac_try" in
15109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110 *) ac_try_echo=$ac_try;;
15111 esac
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113 (eval "$ac_compile") 2>conftest.er1
15114 ac_status=$?
15115 grep -v '^ *+' conftest.er1 >conftest.err
15116 rm -f conftest.er1
15117 cat conftest.err >&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } && {
15120 test -z "$ac_c_werror_flag" ||
15121 test ! -s conftest.err
15122 } && test -s conftest.$ac_objext; then
15123 ac_lo=$ac_mid; break
15124 else
15125 echo "$as_me: failed program was:" >&5
15126 sed 's/^/| /' conftest.$ac_ext >&5
15128 ac_hi=`expr '(' $ac_mid ')' - 1`
15129 if test $ac_mid -le $ac_hi; then
15130 ac_lo= ac_hi=
15131 break
15133 ac_mid=`expr 2 '*' $ac_mid`
15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 done
15138 else
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 ac_lo= ac_hi=
15145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15149 # Binary search between lo and hi bounds.
15150 while test "x$ac_lo" != "x$ac_hi"; do
15151 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15152 cat >conftest.$ac_ext <<_ACEOF
15153 /* confdefs.h. */
15154 _ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 $ac_includes_default
15159 typedef int ac__type_sizeof_;
15161 main ()
15163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15164 test_array [0] = 0
15167 return 0;
15169 _ACEOF
15170 rm -f conftest.$ac_objext
15171 if { (ac_try="$ac_compile"
15172 case "(($ac_try" in
15173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15174 *) ac_try_echo=$ac_try;;
15175 esac
15176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15177 (eval "$ac_compile") 2>conftest.er1
15178 ac_status=$?
15179 grep -v '^ *+' conftest.er1 >conftest.err
15180 rm -f conftest.er1
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } && {
15184 test -z "$ac_c_werror_flag" ||
15185 test ! -s conftest.err
15186 } && test -s conftest.$ac_objext; then
15187 ac_hi=$ac_mid
15188 else
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ac_lo=`expr '(' $ac_mid ')' + 1`
15195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 done
15197 case $ac_lo in
15198 ?*) ac_cv_sizeof_int=$ac_lo;;
15199 '') if test "$ac_cv_type_int" = yes; then
15200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15201 See \`config.log' for more details." >&5
15202 echo "$as_me: error: cannot compute sizeof (int)
15203 See \`config.log' for more details." >&2;}
15204 { (exit 77); exit 77; }; }
15205 else
15206 ac_cv_sizeof_int=0
15207 fi ;;
15208 esac
15209 else
15210 cat >conftest.$ac_ext <<_ACEOF
15211 /* confdefs.h. */
15212 _ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 $ac_includes_default
15217 typedef int ac__type_sizeof_;
15218 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15219 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15220 #include <stdio.h>
15221 #include <stdlib.h>
15223 main ()
15226 FILE *f = fopen ("conftest.val", "w");
15227 if (! f)
15228 return 1;
15229 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15231 long int i = longval ();
15232 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15233 return 1;
15234 fprintf (f, "%ld\n", i);
15236 else
15238 unsigned long int i = ulongval ();
15239 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15240 return 1;
15241 fprintf (f, "%lu\n", i);
15243 return ferror (f) || fclose (f) != 0;
15246 return 0;
15248 _ACEOF
15249 rm -f conftest$ac_exeext
15250 if { (ac_try="$ac_link"
15251 case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15254 esac
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_link") 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15260 { (case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15263 esac
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_try") 2>&5
15266 ac_status=$?
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_cv_sizeof_int=`cat conftest.val`
15270 else
15271 echo "$as_me: program exited with status $ac_status" >&5
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ( exit $ac_status )
15276 if test "$ac_cv_type_int" = yes; then
15277 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15278 See \`config.log' for more details." >&5
15279 echo "$as_me: error: cannot compute sizeof (int)
15280 See \`config.log' for more details." >&2;}
15281 { (exit 77); exit 77; }; }
15282 else
15283 ac_cv_sizeof_int=0
15286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15288 rm -f conftest.val
15290 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15291 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15295 cat >>confdefs.h <<_ACEOF
15296 #define SIZEOF_INT $ac_cv_sizeof_int
15297 _ACEOF
15301 # do the package library checks now
15304 if test "${USE_ALSA}" != "no"; then
15305 pbxlibdir=""
15306 if test "x${ALSA_DIR}" != "x"; then
15307 if test -d ${ALSA_DIR}/lib; then
15308 pbxlibdir="-L${ALSA_DIR}/lib"
15309 else
15310 pbxlibdir="-L${ALSA_DIR}"
15313 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
15314 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
15315 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
15316 echo $ECHO_N "(cached) $ECHO_C" >&6
15317 else
15318 ac_check_lib_save_LIBS=$LIBS
15319 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
15320 cat >conftest.$ac_ext <<_ACEOF
15321 /* confdefs.h. */
15322 _ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15327 /* Override any GCC internal prototype to avoid an error.
15328 Use char because int might match the return type of a GCC
15329 builtin and then its argument prototype would still apply. */
15330 #ifdef __cplusplus
15331 extern "C"
15332 #endif
15333 char snd_spcm_init ();
15335 main ()
15337 return snd_spcm_init ();
15339 return 0;
15341 _ACEOF
15342 rm -f conftest.$ac_objext conftest$ac_exeext
15343 if { (ac_try="$ac_link"
15344 case "(($ac_try" in
15345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346 *) ac_try_echo=$ac_try;;
15347 esac
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349 (eval "$ac_link") 2>conftest.er1
15350 ac_status=$?
15351 grep -v '^ *+' conftest.er1 >conftest.err
15352 rm -f conftest.er1
15353 cat conftest.err >&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } && {
15356 test -z "$ac_c_werror_flag" ||
15357 test ! -s conftest.err
15358 } && test -s conftest$ac_exeext &&
15359 $as_test_x conftest$ac_exeext; then
15360 ac_cv_lib_asound_snd_spcm_init=yes
15361 else
15362 echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15365 ac_cv_lib_asound_snd_spcm_init=no
15368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15369 conftest$ac_exeext conftest.$ac_ext
15370 LIBS=$ac_check_lib_save_LIBS
15372 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
15373 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15374 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15375 AST_ALSA_FOUND=yes
15376 else
15377 AST_ALSA_FOUND=no
15381 if test "${AST_ALSA_FOUND}" = "yes"; then
15382 ALSA_LIB="-lasound -lm -ldl"
15383 ALSA_HEADER_FOUND="1"
15384 if test "x${ALSA_DIR}" != "x"; then
15385 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15386 ALSA_INCLUDE="-I${ALSA_DIR}/include"
15387 if test "xalsa/asoundlib.h" != "x" ; then
15388 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
15389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15390 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15391 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 ac_res=`eval echo '${'$as_ac_Header'}'`
15396 { echo "$as_me:$LINENO: result: $ac_res" >&5
15397 echo "${ECHO_T}$ac_res" >&6; }
15398 else
15399 # Is the header compilable?
15400 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
15401 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
15402 cat >conftest.$ac_ext <<_ACEOF
15403 /* confdefs.h. */
15404 _ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15408 $ac_includes_default
15409 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15410 _ACEOF
15411 rm -f conftest.$ac_objext
15412 if { (ac_try="$ac_compile"
15413 case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15416 esac
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_compile") 2>conftest.er1
15419 ac_status=$?
15420 grep -v '^ *+' conftest.er1 >conftest.err
15421 rm -f conftest.er1
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } && {
15425 test -z "$ac_c_werror_flag" ||
15426 test ! -s conftest.err
15427 } && test -s conftest.$ac_objext; then
15428 ac_header_compiler=yes
15429 else
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 ac_header_compiler=no
15436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15438 echo "${ECHO_T}$ac_header_compiler" >&6; }
15440 # Is the header present?
15441 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
15442 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
15443 cat >conftest.$ac_ext <<_ACEOF
15444 /* confdefs.h. */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15449 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15450 _ACEOF
15451 if { (ac_try="$ac_cpp conftest.$ac_ext"
15452 case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15455 esac
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15458 ac_status=$?
15459 grep -v '^ *+' conftest.er1 >conftest.err
15460 rm -f conftest.er1
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } >/dev/null && {
15464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15465 test ! -s conftest.err
15466 }; then
15467 ac_header_preproc=yes
15468 else
15469 echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 ac_header_preproc=no
15475 rm -f conftest.err conftest.$ac_ext
15476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15477 echo "${ECHO_T}$ac_header_preproc" >&6; }
15479 # So? What about this header?
15480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15481 yes:no: )
15482 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15483 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
15485 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15486 ac_header_preproc=yes
15488 no:yes:* )
15489 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
15490 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15492 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
15494 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15496 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15498 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15500 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15503 esac
15504 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15505 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 else
15509 eval "$as_ac_Header=\$ac_header_preproc"
15511 ac_res=`eval echo '${'$as_ac_Header'}'`
15512 { echo "$as_me:$LINENO: result: $ac_res" >&5
15513 echo "${ECHO_T}$ac_res" >&6; }
15516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15517 ALSA_HEADER_FOUND=1
15518 else
15519 ALSA_HEADER_FOUND=0
15524 else
15525 if test "xalsa/asoundlib.h" != "x" ; then
15526 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15527 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15528 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15529 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15533 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15534 else
15535 # Is the header compilable?
15536 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
15537 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
15538 cat >conftest.$ac_ext <<_ACEOF
15539 /* confdefs.h. */
15540 _ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15544 $ac_includes_default
15545 #include <alsa/asoundlib.h>
15546 _ACEOF
15547 rm -f conftest.$ac_objext
15548 if { (ac_try="$ac_compile"
15549 case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15552 esac
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_compile") 2>conftest.er1
15555 ac_status=$?
15556 grep -v '^ *+' conftest.er1 >conftest.err
15557 rm -f conftest.er1
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } && {
15561 test -z "$ac_c_werror_flag" ||
15562 test ! -s conftest.err
15563 } && test -s conftest.$ac_objext; then
15564 ac_header_compiler=yes
15565 else
15566 echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15569 ac_header_compiler=no
15572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15574 echo "${ECHO_T}$ac_header_compiler" >&6; }
15576 # Is the header present?
15577 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
15578 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
15579 cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h. */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 #include <alsa/asoundlib.h>
15586 _ACEOF
15587 if { (ac_try="$ac_cpp conftest.$ac_ext"
15588 case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15591 esac
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15594 ac_status=$?
15595 grep -v '^ *+' conftest.er1 >conftest.err
15596 rm -f conftest.er1
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } >/dev/null && {
15600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15601 test ! -s conftest.err
15602 }; then
15603 ac_header_preproc=yes
15604 else
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ac_header_preproc=no
15611 rm -f conftest.err conftest.$ac_ext
15612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15613 echo "${ECHO_T}$ac_header_preproc" >&6; }
15615 # So? What about this header?
15616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15617 yes:no: )
15618 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15619 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15620 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
15621 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15622 ac_header_preproc=yes
15624 no:yes:* )
15625 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
15626 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15628 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
15630 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15632 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15634 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15635 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15636 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15639 esac
15640 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15641 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15642 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 else
15645 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
15647 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15648 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15651 if test $ac_cv_header_alsa_asoundlib_h = yes; then
15652 ALSA_HEADER_FOUND=1
15653 else
15654 ALSA_HEADER_FOUND=0
15660 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
15661 if test ! -z "${ALSA_MANDATORY}" ;
15662 then
15663 { echo "$as_me:$LINENO: ***" >&5
15664 echo "$as_me: ***" >&6;}
15665 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
15666 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
15667 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
15668 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
15669 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
15670 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
15671 exit 1
15673 ALSA_LIB=""
15674 ALSA_INCLUDE=""
15675 PBX_ALSA=0
15676 else
15677 PBX_ALSA=1
15679 cat >>confdefs.h <<_ACEOF
15680 #define HAVE_ALSA 1
15681 _ACEOF
15684 elif test ! -z "${ALSA_MANDATORY}";
15685 then
15686 { echo "$as_me:$LINENO: ***" >&5
15687 echo "$as_me: ***" >&6;}
15688 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
15689 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
15690 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
15691 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
15692 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
15693 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
15694 exit 1
15700 if test "${USE_CURSES}" != "no"; then
15701 pbxlibdir=""
15702 if test "x${CURSES_DIR}" != "x"; then
15703 if test -d ${CURSES_DIR}/lib; then
15704 pbxlibdir="-L${CURSES_DIR}/lib"
15705 else
15706 pbxlibdir="-L${CURSES_DIR}"
15709 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15710 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
15711 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 else
15714 ac_check_lib_save_LIBS=$LIBS
15715 LIBS="-lcurses ${pbxlibdir} $LIBS"
15716 cat >conftest.$ac_ext <<_ACEOF
15717 /* confdefs.h. */
15718 _ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15723 /* Override any GCC internal prototype to avoid an error.
15724 Use char because int might match the return type of a GCC
15725 builtin and then its argument prototype would still apply. */
15726 #ifdef __cplusplus
15727 extern "C"
15728 #endif
15729 char initscr ();
15731 main ()
15733 return initscr ();
15735 return 0;
15737 _ACEOF
15738 rm -f conftest.$ac_objext conftest$ac_exeext
15739 if { (ac_try="$ac_link"
15740 case "(($ac_try" in
15741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742 *) ac_try_echo=$ac_try;;
15743 esac
15744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745 (eval "$ac_link") 2>conftest.er1
15746 ac_status=$?
15747 grep -v '^ *+' conftest.er1 >conftest.err
15748 rm -f conftest.er1
15749 cat conftest.err >&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); } && {
15752 test -z "$ac_c_werror_flag" ||
15753 test ! -s conftest.err
15754 } && test -s conftest$ac_exeext &&
15755 $as_test_x conftest$ac_exeext; then
15756 ac_cv_lib_curses_initscr=yes
15757 else
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15761 ac_cv_lib_curses_initscr=no
15764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15765 conftest$ac_exeext conftest.$ac_ext
15766 LIBS=$ac_check_lib_save_LIBS
15768 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15769 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
15770 if test $ac_cv_lib_curses_initscr = yes; then
15771 AST_CURSES_FOUND=yes
15772 else
15773 AST_CURSES_FOUND=no
15777 if test "${AST_CURSES_FOUND}" = "yes"; then
15778 CURSES_LIB="-lcurses "
15779 CURSES_HEADER_FOUND="1"
15780 if test "x${CURSES_DIR}" != "x"; then
15781 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
15782 CURSES_INCLUDE="-I${CURSES_DIR}/include"
15783 if test "xcurses.h" != "x" ; then
15784 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
15785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
15787 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
15788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 ac_res=`eval echo '${'$as_ac_Header'}'`
15792 { echo "$as_me:$LINENO: result: $ac_res" >&5
15793 echo "${ECHO_T}$ac_res" >&6; }
15794 else
15795 # Is the header compilable?
15796 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
15797 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
15798 cat >conftest.$ac_ext <<_ACEOF
15799 /* confdefs.h. */
15800 _ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804 $ac_includes_default
15805 #include <${CURSES_DIR}/include/curses.h>
15806 _ACEOF
15807 rm -f conftest.$ac_objext
15808 if { (ac_try="$ac_compile"
15809 case "(($ac_try" in
15810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15812 esac
15813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15814 (eval "$ac_compile") 2>conftest.er1
15815 ac_status=$?
15816 grep -v '^ *+' conftest.er1 >conftest.err
15817 rm -f conftest.er1
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } && {
15821 test -z "$ac_c_werror_flag" ||
15822 test ! -s conftest.err
15823 } && test -s conftest.$ac_objext; then
15824 ac_header_compiler=yes
15825 else
15826 echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ac_header_compiler=no
15832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15834 echo "${ECHO_T}$ac_header_compiler" >&6; }
15836 # Is the header present?
15837 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
15838 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h. */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15845 #include <${CURSES_DIR}/include/curses.h>
15846 _ACEOF
15847 if { (ac_try="$ac_cpp conftest.$ac_ext"
15848 case "(($ac_try" in
15849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15850 *) ac_try_echo=$ac_try;;
15851 esac
15852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15854 ac_status=$?
15855 grep -v '^ *+' conftest.er1 >conftest.err
15856 rm -f conftest.er1
15857 cat conftest.err >&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); } >/dev/null && {
15860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15861 test ! -s conftest.err
15862 }; then
15863 ac_header_preproc=yes
15864 else
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 ac_header_preproc=no
15871 rm -f conftest.err conftest.$ac_ext
15872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15873 echo "${ECHO_T}$ac_header_preproc" >&6; }
15875 # So? What about this header?
15876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15877 yes:no: )
15878 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
15879 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
15881 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
15882 ac_header_preproc=yes
15884 no:yes:* )
15885 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
15886 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
15888 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
15890 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
15892 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
15894 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
15896 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
15899 esac
15900 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
15901 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
15902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905 eval "$as_ac_Header=\$ac_header_preproc"
15907 ac_res=`eval echo '${'$as_ac_Header'}'`
15908 { echo "$as_me:$LINENO: result: $ac_res" >&5
15909 echo "${ECHO_T}$ac_res" >&6; }
15912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15913 CURSES_HEADER_FOUND=1
15914 else
15915 CURSES_HEADER_FOUND=0
15920 else
15921 if test "xcurses.h" != "x" ; then
15922 if test "${ac_cv_header_curses_h+set}" = set; then
15923 { echo "$as_me:$LINENO: checking for curses.h" >&5
15924 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
15925 if test "${ac_cv_header_curses_h+set}" = set; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
15929 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15930 else
15931 # Is the header compilable?
15932 { echo "$as_me:$LINENO: checking curses.h usability" >&5
15933 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
15934 cat >conftest.$ac_ext <<_ACEOF
15935 /* confdefs.h. */
15936 _ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15940 $ac_includes_default
15941 #include <curses.h>
15942 _ACEOF
15943 rm -f conftest.$ac_objext
15944 if { (ac_try="$ac_compile"
15945 case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15948 esac
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_compile") 2>conftest.er1
15951 ac_status=$?
15952 grep -v '^ *+' conftest.er1 >conftest.err
15953 rm -f conftest.er1
15954 cat conftest.err >&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } && {
15957 test -z "$ac_c_werror_flag" ||
15958 test ! -s conftest.err
15959 } && test -s conftest.$ac_objext; then
15960 ac_header_compiler=yes
15961 else
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 ac_header_compiler=no
15968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15970 echo "${ECHO_T}$ac_header_compiler" >&6; }
15972 # Is the header present?
15973 { echo "$as_me:$LINENO: checking curses.h presence" >&5
15974 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h. */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 #include <curses.h>
15982 _ACEOF
15983 if { (ac_try="$ac_cpp conftest.$ac_ext"
15984 case "(($ac_try" in
15985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15986 *) ac_try_echo=$ac_try;;
15987 esac
15988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15990 ac_status=$?
15991 grep -v '^ *+' conftest.er1 >conftest.err
15992 rm -f conftest.er1
15993 cat conftest.err >&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } >/dev/null && {
15996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15997 test ! -s conftest.err
15998 }; then
15999 ac_header_preproc=yes
16000 else
16001 echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16004 ac_header_preproc=no
16007 rm -f conftest.err conftest.$ac_ext
16008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16009 echo "${ECHO_T}$ac_header_preproc" >&6; }
16011 # So? What about this header?
16012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16013 yes:no: )
16014 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16015 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16016 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16017 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16018 ac_header_preproc=yes
16020 no:yes:* )
16021 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16022 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16024 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16026 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16028 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16030 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16032 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16035 esac
16036 { echo "$as_me:$LINENO: checking for curses.h" >&5
16037 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16038 if test "${ac_cv_header_curses_h+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 else
16041 ac_cv_header_curses_h=$ac_header_preproc
16043 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16044 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16047 if test $ac_cv_header_curses_h = yes; then
16048 CURSES_HEADER_FOUND=1
16049 else
16050 CURSES_HEADER_FOUND=0
16056 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16057 if test ! -z "${CURSES_MANDATORY}" ;
16058 then
16059 { echo "$as_me:$LINENO: ***" >&5
16060 echo "$as_me: ***" >&6;}
16061 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16062 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16063 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16064 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16065 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16066 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16067 exit 1
16069 CURSES_LIB=""
16070 CURSES_INCLUDE=""
16071 PBX_CURSES=0
16072 else
16073 PBX_CURSES=1
16075 cat >>confdefs.h <<_ACEOF
16076 #define HAVE_CURSES 1
16077 _ACEOF
16080 elif test ! -z "${CURSES_MANDATORY}";
16081 then
16082 { echo "$as_me:$LINENO: ***" >&5
16083 echo "$as_me: ***" >&6;}
16084 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16085 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16086 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16087 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16088 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16089 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16090 exit 1
16095 GSM_INTERNAL="yes"
16097 GSM_SYSTEM="yes"
16098 if test "${USE_GSM}" != "no"; then
16099 if test "${GSM_DIR}" = "internal"; then
16100 GSM_SYSTEM="no"
16101 elif test "${GSM_DIR}" != ""; then
16102 GSM_INTERNAL="no"
16104 if test "${GSM_SYSTEM}" = "yes"; then
16105 gsmlibdir=""
16106 if test "x${GSM_DIR}" != "x"; then
16107 if test -d ${GSM_DIR}/lib; then
16108 gsmlibdir="-L${GSM_DIR}/lib"
16109 else
16110 gsmlibdir="-L${GSM_DIR}"
16113 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
16114 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
16115 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16117 else
16118 ac_check_lib_save_LIBS=$LIBS
16119 LIBS="-lgsm ${gsmlibdir} $LIBS"
16120 cat >conftest.$ac_ext <<_ACEOF
16121 /* confdefs.h. */
16122 _ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h. */
16127 /* Override any GCC internal prototype to avoid an error.
16128 Use char because int might match the return type of a GCC
16129 builtin and then its argument prototype would still apply. */
16130 #ifdef __cplusplus
16131 extern "C"
16132 #endif
16133 char gsm_create ();
16135 main ()
16137 return gsm_create ();
16139 return 0;
16141 _ACEOF
16142 rm -f conftest.$ac_objext conftest$ac_exeext
16143 if { (ac_try="$ac_link"
16144 case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16147 esac
16148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_link") 2>conftest.er1
16150 ac_status=$?
16151 grep -v '^ *+' conftest.er1 >conftest.err
16152 rm -f conftest.er1
16153 cat conftest.err >&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } && {
16156 test -z "$ac_c_werror_flag" ||
16157 test ! -s conftest.err
16158 } && test -s conftest$ac_exeext &&
16159 $as_test_x conftest$ac_exeext; then
16160 ac_cv_lib_gsm_gsm_create=yes
16161 else
16162 echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16165 ac_cv_lib_gsm_gsm_create=no
16168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16169 conftest$ac_exeext conftest.$ac_ext
16170 LIBS=$ac_check_lib_save_LIBS
16172 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
16173 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16174 if test $ac_cv_lib_gsm_gsm_create = yes; then
16176 cat >>confdefs.h <<_ACEOF
16177 #define HAVE_GSM 1
16178 _ACEOF
16182 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16183 GSM_LIB="-lgsm"
16184 if test "x${GSM_DIR}" != "x"; then
16185 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
16186 GSM_INCLUDE="-I${GSM_DIR}/include"
16188 PBX_GSM=1
16189 GSM_INTERNAL="no"
16192 if test "${GSM_INTERNAL}" = "yes"; then
16193 PBX_GSM=1
16198 if test "${USE_IKSEMEL}" != "no"; then
16199 pbxlibdir=""
16200 if test "x${IKSEMEL_DIR}" != "x"; then
16201 if test -d ${IKSEMEL_DIR}/lib; then
16202 pbxlibdir="-L${IKSEMEL_DIR}/lib"
16203 else
16204 pbxlibdir="-L${IKSEMEL_DIR}"
16207 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
16208 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
16209 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212 ac_check_lib_save_LIBS=$LIBS
16213 LIBS="-liksemel ${pbxlibdir} $LIBS"
16214 cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h. */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16221 /* Override any GCC internal prototype to avoid an error.
16222 Use char because int might match the return type of a GCC
16223 builtin and then its argument prototype would still apply. */
16224 #ifdef __cplusplus
16225 extern "C"
16226 #endif
16227 char iks_start_sasl ();
16229 main ()
16231 return iks_start_sasl ();
16233 return 0;
16235 _ACEOF
16236 rm -f conftest.$ac_objext conftest$ac_exeext
16237 if { (ac_try="$ac_link"
16238 case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_link") 2>conftest.er1
16244 ac_status=$?
16245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } && {
16250 test -z "$ac_c_werror_flag" ||
16251 test ! -s conftest.err
16252 } && test -s conftest$ac_exeext &&
16253 $as_test_x conftest$ac_exeext; then
16254 ac_cv_lib_iksemel_iks_start_sasl=yes
16255 else
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16259 ac_cv_lib_iksemel_iks_start_sasl=no
16262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16263 conftest$ac_exeext conftest.$ac_ext
16264 LIBS=$ac_check_lib_save_LIBS
16266 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16267 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16268 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16269 AST_IKSEMEL_FOUND=yes
16270 else
16271 AST_IKSEMEL_FOUND=no
16275 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16276 IKSEMEL_LIB="-liksemel "
16277 IKSEMEL_HEADER_FOUND="1"
16278 if test "x${IKSEMEL_DIR}" != "x"; then
16279 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16280 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
16281 if test "xiksemel.h" != "x" ; then
16282 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
16283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16284 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16285 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 ac_res=`eval echo '${'$as_ac_Header'}'`
16290 { echo "$as_me:$LINENO: result: $ac_res" >&5
16291 echo "${ECHO_T}$ac_res" >&6; }
16292 else
16293 # Is the header compilable?
16294 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
16295 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
16296 cat >conftest.$ac_ext <<_ACEOF
16297 /* confdefs.h. */
16298 _ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 $ac_includes_default
16303 #include <${IKSEMEL_DIR}/include/iksemel.h>
16304 _ACEOF
16305 rm -f conftest.$ac_objext
16306 if { (ac_try="$ac_compile"
16307 case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16310 esac
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_compile") 2>conftest.er1
16313 ac_status=$?
16314 grep -v '^ *+' conftest.er1 >conftest.err
16315 rm -f conftest.er1
16316 cat conftest.err >&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } && {
16319 test -z "$ac_c_werror_flag" ||
16320 test ! -s conftest.err
16321 } && test -s conftest.$ac_objext; then
16322 ac_header_compiler=yes
16323 else
16324 echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16327 ac_header_compiler=no
16330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16332 echo "${ECHO_T}$ac_header_compiler" >&6; }
16334 # Is the header present?
16335 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
16336 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
16337 cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h. */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343 #include <${IKSEMEL_DIR}/include/iksemel.h>
16344 _ACEOF
16345 if { (ac_try="$ac_cpp conftest.$ac_ext"
16346 case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16349 esac
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16352 ac_status=$?
16353 grep -v '^ *+' conftest.er1 >conftest.err
16354 rm -f conftest.er1
16355 cat conftest.err >&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } >/dev/null && {
16358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16359 test ! -s conftest.err
16360 }; then
16361 ac_header_preproc=yes
16362 else
16363 echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16366 ac_header_preproc=no
16369 rm -f conftest.err conftest.$ac_ext
16370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16371 echo "${ECHO_T}$ac_header_preproc" >&6; }
16373 # So? What about this header?
16374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16375 yes:no: )
16376 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16377 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
16379 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
16380 ac_header_preproc=yes
16382 no:yes:* )
16383 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
16384 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
16385 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
16386 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
16387 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
16388 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
16389 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16390 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16391 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
16392 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
16393 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
16394 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
16397 esac
16398 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16399 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 else
16403 eval "$as_ac_Header=\$ac_header_preproc"
16405 ac_res=`eval echo '${'$as_ac_Header'}'`
16406 { echo "$as_me:$LINENO: result: $ac_res" >&5
16407 echo "${ECHO_T}$ac_res" >&6; }
16410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16411 IKSEMEL_HEADER_FOUND=1
16412 else
16413 IKSEMEL_HEADER_FOUND=0
16418 else
16419 if test "xiksemel.h" != "x" ; then
16420 if test "${ac_cv_header_iksemel_h+set}" = set; then
16421 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16422 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16423 if test "${ac_cv_header_iksemel_h+set}" = set; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16426 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16427 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16428 else
16429 # Is the header compilable?
16430 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
16431 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
16432 cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h. */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 $ac_includes_default
16439 #include <iksemel.h>
16440 _ACEOF
16441 rm -f conftest.$ac_objext
16442 if { (ac_try="$ac_compile"
16443 case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16446 esac
16447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_compile") 2>conftest.er1
16449 ac_status=$?
16450 grep -v '^ *+' conftest.er1 >conftest.err
16451 rm -f conftest.er1
16452 cat conftest.err >&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } && {
16455 test -z "$ac_c_werror_flag" ||
16456 test ! -s conftest.err
16457 } && test -s conftest.$ac_objext; then
16458 ac_header_compiler=yes
16459 else
16460 echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16463 ac_header_compiler=no
16466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16468 echo "${ECHO_T}$ac_header_compiler" >&6; }
16470 # Is the header present?
16471 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
16472 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
16473 cat >conftest.$ac_ext <<_ACEOF
16474 /* confdefs.h. */
16475 _ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16479 #include <iksemel.h>
16480 _ACEOF
16481 if { (ac_try="$ac_cpp conftest.$ac_ext"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16485 esac
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16488 ac_status=$?
16489 grep -v '^ *+' conftest.er1 >conftest.err
16490 rm -f conftest.er1
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } >/dev/null && {
16494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16495 test ! -s conftest.err
16496 }; then
16497 ac_header_preproc=yes
16498 else
16499 echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16502 ac_header_preproc=no
16505 rm -f conftest.err conftest.$ac_ext
16506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16507 echo "${ECHO_T}$ac_header_preproc" >&6; }
16509 # So? What about this header?
16510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16511 yes:no: )
16512 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16513 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16514 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
16515 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
16516 ac_header_preproc=yes
16518 no:yes:* )
16519 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
16520 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
16521 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
16522 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
16523 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
16524 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
16525 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16526 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16527 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
16528 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
16529 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
16530 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
16533 esac
16534 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16535 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16536 if test "${ac_cv_header_iksemel_h+set}" = set; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16538 else
16539 ac_cv_header_iksemel_h=$ac_header_preproc
16541 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16542 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16545 if test $ac_cv_header_iksemel_h = yes; then
16546 IKSEMEL_HEADER_FOUND=1
16547 else
16548 IKSEMEL_HEADER_FOUND=0
16554 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
16555 if test ! -z "${IKSEMEL_MANDATORY}" ;
16556 then
16557 { echo "$as_me:$LINENO: ***" >&5
16558 echo "$as_me: ***" >&6;}
16559 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
16560 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
16561 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
16562 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
16563 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
16564 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
16565 exit 1
16567 IKSEMEL_LIB=""
16568 IKSEMEL_INCLUDE=""
16569 PBX_IKSEMEL=0
16570 else
16571 PBX_IKSEMEL=1
16573 cat >>confdefs.h <<_ACEOF
16574 #define HAVE_IKSEMEL 1
16575 _ACEOF
16578 elif test ! -z "${IKSEMEL_MANDATORY}";
16579 then
16580 { echo "$as_me:$LINENO: ***" >&5
16581 echo "$as_me: ***" >&6;}
16582 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
16583 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
16584 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16585 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16586 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
16587 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
16588 exit 1
16593 if test "${PBX_IKSEMEL}" = 1; then
16595 if test "${USE_GNUTLS}" != "no"; then
16596 pbxlibdir=""
16597 if test "x${GNUTLS_DIR}" != "x"; then
16598 if test -d ${GNUTLS_DIR}/lib; then
16599 pbxlibdir="-L${GNUTLS_DIR}/lib"
16600 else
16601 pbxlibdir="-L${GNUTLS_DIR}"
16604 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
16605 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
16606 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
16607 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 else
16609 ac_check_lib_save_LIBS=$LIBS
16610 LIBS="-lgnutls ${pbxlibdir} $LIBS"
16611 cat >conftest.$ac_ext <<_ACEOF
16612 /* confdefs.h. */
16613 _ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16618 /* Override any GCC internal prototype to avoid an error.
16619 Use char because int might match the return type of a GCC
16620 builtin and then its argument prototype would still apply. */
16621 #ifdef __cplusplus
16622 extern "C"
16623 #endif
16624 char gnutls_bye ();
16626 main ()
16628 return gnutls_bye ();
16630 return 0;
16632 _ACEOF
16633 rm -f conftest.$ac_objext conftest$ac_exeext
16634 if { (ac_try="$ac_link"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_link") 2>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } && {
16647 test -z "$ac_c_werror_flag" ||
16648 test ! -s conftest.err
16649 } && test -s conftest$ac_exeext &&
16650 $as_test_x conftest$ac_exeext; then
16651 ac_cv_lib_gnutls_gnutls_bye=yes
16652 else
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_cv_lib_gnutls_gnutls_bye=no
16659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16660 conftest$ac_exeext conftest.$ac_ext
16661 LIBS=$ac_check_lib_save_LIBS
16663 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
16664 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
16665 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
16666 AST_GNUTLS_FOUND=yes
16667 else
16668 AST_GNUTLS_FOUND=no
16672 if test "${AST_GNUTLS_FOUND}" = "yes"; then
16673 GNUTLS_LIB="-lgnutls "
16674 GNUTLS_HEADER_FOUND="1"
16675 if test "x${GNUTLS_DIR}" != "x"; then
16676 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
16677 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
16678 if test "x" != "x" ; then
16679 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/" | $as_tr_sh`
16680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16681 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
16682 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
16683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 ac_res=`eval echo '${'$as_ac_Header'}'`
16687 { echo "$as_me:$LINENO: result: $ac_res" >&5
16688 echo "${ECHO_T}$ac_res" >&6; }
16689 else
16690 # Is the header compilable?
16691 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ usability" >&5
16692 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ usability... $ECHO_C" >&6; }
16693 cat >conftest.$ac_ext <<_ACEOF
16694 /* confdefs.h. */
16695 _ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16699 $ac_includes_default
16700 #include <${GNUTLS_DIR}/include/>
16701 _ACEOF
16702 rm -f conftest.$ac_objext
16703 if { (ac_try="$ac_compile"
16704 case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_compile") 2>conftest.er1
16710 ac_status=$?
16711 grep -v '^ *+' conftest.er1 >conftest.err
16712 rm -f conftest.er1
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } && {
16716 test -z "$ac_c_werror_flag" ||
16717 test ! -s conftest.err
16718 } && test -s conftest.$ac_objext; then
16719 ac_header_compiler=yes
16720 else
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ac_header_compiler=no
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16729 echo "${ECHO_T}$ac_header_compiler" >&6; }
16731 # Is the header present?
16732 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ presence" >&5
16733 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ presence... $ECHO_C" >&6; }
16734 cat >conftest.$ac_ext <<_ACEOF
16735 /* confdefs.h. */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h. */
16740 #include <${GNUTLS_DIR}/include/>
16741 _ACEOF
16742 if { (ac_try="$ac_cpp conftest.$ac_ext"
16743 case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16746 esac
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16749 ac_status=$?
16750 grep -v '^ *+' conftest.er1 >conftest.err
16751 rm -f conftest.er1
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } >/dev/null && {
16755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16756 test ! -s conftest.err
16757 }; then
16758 ac_header_preproc=yes
16759 else
16760 echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16763 ac_header_preproc=no
16766 rm -f conftest.err conftest.$ac_ext
16767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16768 echo "${ECHO_T}$ac_header_preproc" >&6; }
16770 # So? What about this header?
16771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16772 yes:no: )
16773 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
16774 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
16775 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&5
16776 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&2;}
16777 ac_header_preproc=yes
16779 no:yes:* )
16780 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&5
16781 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&2;}
16782 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&5
16783 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&2;}
16784 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&5
16785 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&2;}
16786 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
16787 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
16788 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&5
16789 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&2;}
16790 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&5
16791 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&2;}
16794 esac
16795 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
16796 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
16797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 else
16800 eval "$as_ac_Header=\$ac_header_preproc"
16802 ac_res=`eval echo '${'$as_ac_Header'}'`
16803 { echo "$as_me:$LINENO: result: $ac_res" >&5
16804 echo "${ECHO_T}$ac_res" >&6; }
16807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16808 GNUTLS_HEADER_FOUND=1
16809 else
16810 GNUTLS_HEADER_FOUND=0
16815 else
16816 if test "x" != "x" ; then
16817 if test "${ac_cv_header_+set}" = set; then
16818 { echo "$as_me:$LINENO: checking for " >&5
16819 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
16820 if test "${ac_cv_header_+set}" = set; then
16821 echo $ECHO_N "(cached) $ECHO_C" >&6
16823 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
16824 echo "${ECHO_T}$ac_cv_header_" >&6; }
16825 else
16826 # Is the header compilable?
16827 { echo "$as_me:$LINENO: checking usability" >&5
16828 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
16829 cat >conftest.$ac_ext <<_ACEOF
16830 /* confdefs.h. */
16831 _ACEOF
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h. */
16835 $ac_includes_default
16836 #include <>
16837 _ACEOF
16838 rm -f conftest.$ac_objext
16839 if { (ac_try="$ac_compile"
16840 case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843 esac
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_compile") 2>conftest.er1
16846 ac_status=$?
16847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } && {
16852 test -z "$ac_c_werror_flag" ||
16853 test ! -s conftest.err
16854 } && test -s conftest.$ac_objext; then
16855 ac_header_compiler=yes
16856 else
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 ac_header_compiler=no
16863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16865 echo "${ECHO_T}$ac_header_compiler" >&6; }
16867 # Is the header present?
16868 { echo "$as_me:$LINENO: checking presence" >&5
16869 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h. */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16876 #include <>
16877 _ACEOF
16878 if { (ac_try="$ac_cpp conftest.$ac_ext"
16879 case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16882 esac
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16885 ac_status=$?
16886 grep -v '^ *+' conftest.er1 >conftest.err
16887 rm -f conftest.er1
16888 cat conftest.err >&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } >/dev/null && {
16891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16892 test ! -s conftest.err
16893 }; then
16894 ac_header_preproc=yes
16895 else
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16899 ac_header_preproc=no
16902 rm -f conftest.err conftest.$ac_ext
16903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16904 echo "${ECHO_T}$ac_header_preproc" >&6; }
16906 # So? What about this header?
16907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16908 yes:no: )
16909 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
16910 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
16912 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
16913 ac_header_preproc=yes
16915 no:yes:* )
16916 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
16917 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
16919 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
16920 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
16921 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
16922 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
16923 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
16924 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
16925 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
16926 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
16927 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
16930 esac
16931 { echo "$as_me:$LINENO: checking for " >&5
16932 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
16933 if test "${ac_cv_header_+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935 else
16936 ac_cv_header_=$ac_header_preproc
16938 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
16939 echo "${ECHO_T}$ac_cv_header_" >&6; }
16942 if test $ac_cv_header_ = yes; then
16943 GNUTLS_HEADER_FOUND=1
16944 else
16945 GNUTLS_HEADER_FOUND=0
16951 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
16952 if test ! -z "${GNUTLS_MANDATORY}" ;
16953 then
16954 { echo "$as_me:$LINENO: ***" >&5
16955 echo "$as_me: ***" >&6;}
16956 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
16957 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
16958 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
16959 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
16960 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
16961 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
16962 exit 1
16964 GNUTLS_LIB=""
16965 GNUTLS_INCLUDE=""
16966 PBX_GNUTLS=0
16967 else
16968 PBX_GNUTLS=1
16970 cat >>confdefs.h <<_ACEOF
16971 #define HAVE_GNUTLS 1
16972 _ACEOF
16975 elif test ! -z "${GNUTLS_MANDATORY}";
16976 then
16977 { echo "$as_me:$LINENO: ***" >&5
16978 echo "$as_me: ***" >&6;}
16979 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
16980 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
16981 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16982 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16983 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
16984 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
16985 exit 1
16989 if test "${PBX_GNUTLS}" = 1; then
16990 IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
16994 if test "${USE_IMAP_TK}" != "no"; then
16995 if test "${IMAP_TK_DIR}" = ""; then
16996 IMAP_TK_DIR=`pwd`"/../imap-2004g"
16998 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
16999 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
17000 saved_cppflags="${CPPFLAGS}"
17001 saved_libs="${LIBS}"
17002 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
17003 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
17005 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
17006 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17007 cat >conftest.$ac_ext <<_ACEOF
17008 /* confdefs.h. */
17009 _ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h. */
17013 #include "c-client.h"
17014 void mm_searched (MAILSTREAM *stream,unsigned long number)
17017 void mm_exists (MAILSTREAM *stream,unsigned long number)
17020 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17023 void mm_flags (MAILSTREAM *stream,unsigned long number)
17026 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17029 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17032 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17035 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17038 void mm_log (char *string,long errflg)
17041 void mm_dlog (char *string)
17044 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17047 void mm_critical (MAILSTREAM *stream)
17050 void mm_nocritical (MAILSTREAM *stream)
17053 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17056 void mm_fatal (char *string)
17060 main ()
17063 MAILSTREAM *foo = mail_open(NULL, "", 0);
17067 return 0;
17069 _ACEOF
17070 rm -f conftest.$ac_objext conftest$ac_exeext
17071 if { (ac_try="$ac_link"
17072 case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17075 esac
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_link") 2>conftest.er1
17078 ac_status=$?
17079 grep -v '^ *+' conftest.er1 >conftest.err
17080 rm -f conftest.er1
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } && {
17084 test -z "$ac_c_werror_flag" ||
17085 test ! -s conftest.err
17086 } && test -s conftest$ac_exeext &&
17087 $as_test_x conftest$ac_exeext; then
17088 ac_cv_imap_tk="yes"
17089 else
17090 echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17093 ac_cv_imap_tk="no"
17097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17098 conftest$ac_exeext conftest.$ac_ext
17099 if test "${ac_cv_imap_tk}" = "yes"; then
17100 cat >conftest.$ac_ext <<_ACEOF
17101 /* confdefs.h. */
17102 _ACEOF
17103 cat confdefs.h >>conftest.$ac_ext
17104 cat >>conftest.$ac_ext <<_ACEOF
17105 /* end confdefs.h. */
17106 #include "c-client.h"
17107 void mm_searched (MAILSTREAM *stream,unsigned long number)
17110 void mm_exists (MAILSTREAM *stream,unsigned long number)
17113 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17116 void mm_flags (MAILSTREAM *stream,unsigned long number)
17119 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17122 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17125 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17128 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17131 void mm_log (char *string,long errflg)
17134 void mm_dlog (char *string)
17137 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17140 void mm_critical (MAILSTREAM *stream)
17143 void mm_nocritical (MAILSTREAM *stream)
17146 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17149 void mm_fatal (char *string)
17153 main ()
17156 long check = mail_expunge_full(NULL, "", 0);
17160 return 0;
17162 _ACEOF
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (ac_try="$ac_link"
17165 case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168 esac
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_link") 2>conftest.er1
17171 ac_status=$?
17172 grep -v '^ *+' conftest.er1 >conftest.err
17173 rm -f conftest.er1
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } && {
17177 test -z "$ac_c_werror_flag" ||
17178 test ! -s conftest.err
17179 } && test -s conftest$ac_exeext &&
17180 $as_test_x conftest$ac_exeext; then
17181 ac_cv_imap_tk2006="yes"
17182 else
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17186 ac_cv_imap_tk2006="no"
17190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17191 conftest$ac_exeext conftest.$ac_ext
17193 CPPFLAGS="${saved_cppflags}"
17194 LIBS="${saved_libs}"
17195 if test "${ac_cv_imap_tk}" = "yes"; then
17196 { echo "$as_me:$LINENO: result: yes" >&5
17197 echo "${ECHO_T}yes" >&6; }
17198 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17199 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
17200 PBX_IMAP_TK=1
17202 cat >>confdefs.h <<\_ACEOF
17203 #define HAVE_IMAP_TK 1
17204 _ACEOF
17206 if test "${ac_cv_imap_tk2006}" = "yes"; then
17208 cat >>confdefs.h <<\_ACEOF
17209 #define HAVE_IMAP_TK2006 1
17210 _ACEOF
17213 elif test ! -z "${IMAP_TK_MANDATORY}"; then
17214 { echo "$as_me:$LINENO: result: no" >&5
17215 echo "${ECHO_T}no" >&6; }
17216 { echo "$as_me:$LINENO: ***" >&5
17217 echo "$as_me: ***" >&6;}
17218 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
17219 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
17220 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17221 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17222 { echo "$as_me:$LINENO: *** including --without-imap." >&5
17223 echo "$as_me: *** including --without-imap." >&6;}
17224 exit 1
17225 else
17226 { echo "$as_me:$LINENO: result: no" >&5
17227 echo "${ECHO_T}no" >&6; }
17231 ac_ext=cpp
17232 ac_cpp='$CXXCPP $CPPFLAGS'
17233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17238 if test "${USE_KDE}" != "no"; then
17239 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
17240 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
17241 saved_libs="${LIBS}"
17242 saved_cppflags="${CPPFLAGS}"
17243 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
17244 if test -d ${KDE_DIR}/lib; then
17245 kdelibdir="${KDE_DIR}/lib"
17246 else
17247 kdelibdir="${KDE_DIR}"
17249 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
17252 cat >conftest.$ac_ext <<_ACEOF
17253 /* confdefs.h. */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17258 #include "kcrash.h"
17260 main ()
17262 KCrash::defaultCrashHandler(1);
17264 return 0;
17267 _ACEOF
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (ac_try="$ac_link"
17270 case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17273 esac
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_link") 2>conftest.er1
17276 ac_status=$?
17277 grep -v '^ *+' conftest.er1 >conftest.err
17278 rm -f conftest.er1
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } && {
17282 test -z "$ac_cxx_werror_flag" ||
17283 test ! -s conftest.err
17284 } && test -s conftest$ac_exeext &&
17285 $as_test_x conftest$ac_exeext; then
17286 ac_cv_lib_kde_crash="yes"
17287 else
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17291 ac_cv_lib_kde_crash="no"
17294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17295 conftest$ac_exeext conftest.$ac_ext
17297 LIBS="${saved_libs}"
17298 CPPFLAGS="${saved_cppflags}"
17300 if test "${ac_cv_lib_kde_crash}" = "yes"; then
17301 { echo "$as_me:$LINENO: result: yes" >&5
17302 echo "${ECHO_T}yes" >&6; }
17303 KDE_LIB="-lkdecore -lkdeui"
17304 if test "${KDE_DIR}" != ""; then
17305 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
17306 KDE_INCLUDE="-I${KDE_DIR}/include"
17308 PBX_KDE=1
17310 cat >>confdefs.h <<\_ACEOF
17311 #define HAVE_LIBKDE 1
17312 _ACEOF
17314 elif test ! -z "${KDE_MANDATORY}"; then
17315 { echo "$as_me:$LINENO: result: no" >&5
17316 echo "${ECHO_T}no" >&6; }
17317 { echo "$as_me:$LINENO: ***" >&5
17318 echo "$as_me: ***" >&6;}
17319 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
17320 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
17321 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17322 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17323 { echo "$as_me:$LINENO: *** including --without-kde." >&5
17324 echo "$as_me: *** including --without-kde." >&6;}
17325 exit 1
17326 else
17327 { echo "$as_me:$LINENO: result: no" >&5
17328 echo "${ECHO_T}no" >&6; }
17331 if test "${PBX_KDE}" = 1; then
17332 if test -n "$ac_tool_prefix"; then
17333 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
17334 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
17335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17337 if test "${ac_cv_path_KDEINIT+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340 case $KDEINIT in
17341 [\\/]* | ?:[\\/]*)
17342 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
17345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17346 for as_dir in $PATH
17348 IFS=$as_save_IFS
17349 test -z "$as_dir" && as_dir=.
17350 for ac_exec_ext in '' $ac_executable_extensions; do
17351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17352 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17354 break 2
17356 done
17357 done
17358 IFS=$as_save_IFS
17361 esac
17363 KDEINIT=$ac_cv_path_KDEINIT
17364 if test -n "$KDEINIT"; then
17365 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
17366 echo "${ECHO_T}$KDEINIT" >&6; }
17367 else
17368 { echo "$as_me:$LINENO: result: no" >&5
17369 echo "${ECHO_T}no" >&6; }
17374 if test -z "$ac_cv_path_KDEINIT"; then
17375 ac_pt_KDEINIT=$KDEINIT
17376 # Extract the first word of "kdeinit", so it can be a program name with args.
17377 set dummy kdeinit; ac_word=$2
17378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17380 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17382 else
17383 case $ac_pt_KDEINIT in
17384 [\\/]* | ?:[\\/]*)
17385 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
17388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17389 for as_dir in $PATH
17391 IFS=$as_save_IFS
17392 test -z "$as_dir" && as_dir=.
17393 for ac_exec_ext in '' $ac_executable_extensions; do
17394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17395 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17397 break 2
17399 done
17400 done
17401 IFS=$as_save_IFS
17404 esac
17406 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
17407 if test -n "$ac_pt_KDEINIT"; then
17408 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
17409 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
17410 else
17411 { echo "$as_me:$LINENO: result: no" >&5
17412 echo "${ECHO_T}no" >&6; }
17415 if test "x$ac_pt_KDEINIT" = x; then
17416 KDEINIT="No"
17417 else
17418 case $cross_compiling:$ac_tool_warned in
17419 yes:)
17420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17421 whose name does not start with the host triplet. If you think this
17422 configuration is useful to you, please write to autoconf@gnu.org." >&5
17423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17424 whose name does not start with the host triplet. If you think this
17425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17426 ac_tool_warned=yes ;;
17427 esac
17428 KDEINIT=$ac_pt_KDEINIT
17430 else
17431 KDEINIT="$ac_cv_path_KDEINIT"
17434 if test ! x"${KDEINIT}" = xNo; then
17435 KDEDIR=$(${DIRNAME} ${KDEINIT})
17436 KDEDIR=$(${DIRNAME} ${KDEDIR})
17441 ac_ext=c
17442 ac_cpp='$CPP $CPPFLAGS'
17443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17449 if test "${USE_MISDN}" != "no"; then
17450 pbxlibdir=""
17451 if test "x${MISDN_DIR}" != "x"; then
17452 if test -d ${MISDN_DIR}/lib; then
17453 pbxlibdir="-L${MISDN_DIR}/lib"
17454 else
17455 pbxlibdir="-L${MISDN_DIR}"
17458 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
17459 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
17460 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463 ac_check_lib_save_LIBS=$LIBS
17464 LIBS="-lmISDN ${pbxlibdir} $LIBS"
17465 cat >conftest.$ac_ext <<_ACEOF
17466 /* confdefs.h. */
17467 _ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17472 /* Override any GCC internal prototype to avoid an error.
17473 Use char because int might match the return type of a GCC
17474 builtin and then its argument prototype would still apply. */
17475 #ifdef __cplusplus
17476 extern "C"
17477 #endif
17478 char mISDN_open ();
17480 main ()
17482 return mISDN_open ();
17484 return 0;
17486 _ACEOF
17487 rm -f conftest.$ac_objext conftest$ac_exeext
17488 if { (ac_try="$ac_link"
17489 case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17492 esac
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_link") 2>conftest.er1
17495 ac_status=$?
17496 grep -v '^ *+' conftest.er1 >conftest.err
17497 rm -f conftest.er1
17498 cat conftest.err >&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } && {
17501 test -z "$ac_c_werror_flag" ||
17502 test ! -s conftest.err
17503 } && test -s conftest$ac_exeext &&
17504 $as_test_x conftest$ac_exeext; then
17505 ac_cv_lib_mISDN_mISDN_open=yes
17506 else
17507 echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17510 ac_cv_lib_mISDN_mISDN_open=no
17513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17514 conftest$ac_exeext conftest.$ac_ext
17515 LIBS=$ac_check_lib_save_LIBS
17517 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
17518 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
17519 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
17520 AST_MISDN_FOUND=yes
17521 else
17522 AST_MISDN_FOUND=no
17526 if test "${AST_MISDN_FOUND}" = "yes"; then
17527 MISDN_LIB="-lmISDN "
17528 MISDN_HEADER_FOUND="1"
17529 if test "x${MISDN_DIR}" != "x"; then
17530 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
17531 MISDN_INCLUDE="-I${MISDN_DIR}/include"
17532 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17533 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
17534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17535 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17536 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 ac_res=`eval echo '${'$as_ac_Header'}'`
17541 { echo "$as_me:$LINENO: result: $ac_res" >&5
17542 echo "${ECHO_T}$ac_res" >&6; }
17543 else
17544 # Is the header compilable?
17545 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
17546 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17547 cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h. */
17549 _ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 $ac_includes_default
17554 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17555 _ACEOF
17556 rm -f conftest.$ac_objext
17557 if { (ac_try="$ac_compile"
17558 case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17561 esac
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_compile") 2>conftest.er1
17564 ac_status=$?
17565 grep -v '^ *+' conftest.er1 >conftest.err
17566 rm -f conftest.er1
17567 cat conftest.err >&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } && {
17570 test -z "$ac_c_werror_flag" ||
17571 test ! -s conftest.err
17572 } && test -s conftest.$ac_objext; then
17573 ac_header_compiler=yes
17574 else
17575 echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.$ac_ext >&5
17578 ac_header_compiler=no
17581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17583 echo "${ECHO_T}$ac_header_compiler" >&6; }
17585 # Is the header present?
17586 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
17587 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17588 cat >conftest.$ac_ext <<_ACEOF
17589 /* confdefs.h. */
17590 _ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17594 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17595 _ACEOF
17596 if { (ac_try="$ac_cpp conftest.$ac_ext"
17597 case "(($ac_try" in
17598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599 *) ac_try_echo=$ac_try;;
17600 esac
17601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17603 ac_status=$?
17604 grep -v '^ *+' conftest.er1 >conftest.err
17605 rm -f conftest.er1
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } >/dev/null && {
17609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17610 test ! -s conftest.err
17611 }; then
17612 ac_header_preproc=yes
17613 else
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 ac_header_preproc=no
17620 rm -f conftest.err conftest.$ac_ext
17621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17622 echo "${ECHO_T}$ac_header_preproc" >&6; }
17624 # So? What about this header?
17625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17626 yes:no: )
17627 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17628 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17629 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17630 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17631 ac_header_preproc=yes
17633 no:yes:* )
17634 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17635 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17636 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17637 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17638 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17639 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17640 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17641 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17642 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17643 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17644 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17645 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17648 esac
17649 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17650 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 else
17654 eval "$as_ac_Header=\$ac_header_preproc"
17656 ac_res=`eval echo '${'$as_ac_Header'}'`
17657 { echo "$as_me:$LINENO: result: $ac_res" >&5
17658 echo "${ECHO_T}$ac_res" >&6; }
17661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17662 MISDN_HEADER_FOUND=1
17663 else
17664 MISDN_HEADER_FOUND=0
17669 else
17670 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17671 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17672 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17673 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17674 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17677 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17678 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17679 else
17680 # Is the header compilable?
17681 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
17682 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17683 cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h. */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17690 #include <mISDNuser/mISDNlib.h>
17691 _ACEOF
17692 rm -f conftest.$ac_objext
17693 if { (ac_try="$ac_compile"
17694 case "(($ac_try" in
17695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696 *) ac_try_echo=$ac_try;;
17697 esac
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699 (eval "$ac_compile") 2>conftest.er1
17700 ac_status=$?
17701 grep -v '^ *+' conftest.er1 >conftest.err
17702 rm -f conftest.er1
17703 cat conftest.err >&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } && {
17706 test -z "$ac_c_werror_flag" ||
17707 test ! -s conftest.err
17708 } && test -s conftest.$ac_objext; then
17709 ac_header_compiler=yes
17710 else
17711 echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17714 ac_header_compiler=no
17717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17719 echo "${ECHO_T}$ac_header_compiler" >&6; }
17721 # Is the header present?
17722 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
17723 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17724 cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h. */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730 #include <mISDNuser/mISDNlib.h>
17731 _ACEOF
17732 if { (ac_try="$ac_cpp conftest.$ac_ext"
17733 case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17739 ac_status=$?
17740 grep -v '^ *+' conftest.er1 >conftest.err
17741 rm -f conftest.er1
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } >/dev/null && {
17745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17746 test ! -s conftest.err
17747 }; then
17748 ac_header_preproc=yes
17749 else
17750 echo "$as_me: failed program was:" >&5
17751 sed 's/^/| /' conftest.$ac_ext >&5
17753 ac_header_preproc=no
17756 rm -f conftest.err conftest.$ac_ext
17757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17758 echo "${ECHO_T}$ac_header_preproc" >&6; }
17760 # So? What about this header?
17761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17762 yes:no: )
17763 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17764 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17765 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17766 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17767 ac_header_preproc=yes
17769 no:yes:* )
17770 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17771 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17772 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17773 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17774 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17775 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17776 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17777 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17778 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17779 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17780 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17781 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17784 esac
17785 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17786 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17787 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17789 else
17790 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
17792 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17793 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17796 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
17797 MISDN_HEADER_FOUND=1
17798 else
17799 MISDN_HEADER_FOUND=0
17805 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
17806 if test ! -z "${MISDN_MANDATORY}" ;
17807 then
17808 { echo "$as_me:$LINENO: ***" >&5
17809 echo "$as_me: ***" >&6;}
17810 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
17811 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
17812 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
17813 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
17814 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17815 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17816 exit 1
17818 MISDN_LIB=""
17819 MISDN_INCLUDE=""
17820 PBX_MISDN=0
17821 else
17822 PBX_MISDN=1
17824 cat >>confdefs.h <<_ACEOF
17825 #define HAVE_MISDN 1
17826 _ACEOF
17829 elif test ! -z "${MISDN_MANDATORY}";
17830 then
17831 { echo "$as_me:$LINENO: ***" >&5
17832 echo "$as_me: ***" >&6;}
17833 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
17834 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
17835 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17836 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17837 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17838 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17839 exit 1
17844 if test "${PBX_MISDN}" = 1; then
17846 if test "${USE_ISDNNET}" != "no"; then
17847 pbxlibdir=""
17848 if test "x${ISDNNET_DIR}" != "x"; then
17849 if test -d ${ISDNNET_DIR}/lib; then
17850 pbxlibdir="-L${ISDNNET_DIR}/lib"
17851 else
17852 pbxlibdir="-L${ISDNNET_DIR}"
17855 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
17856 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
17857 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17859 else
17860 ac_check_lib_save_LIBS=$LIBS
17861 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
17862 cat >conftest.$ac_ext <<_ACEOF
17863 /* confdefs.h. */
17864 _ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h. */
17869 /* Override any GCC internal prototype to avoid an error.
17870 Use char because int might match the return type of a GCC
17871 builtin and then its argument prototype would still apply. */
17872 #ifdef __cplusplus
17873 extern "C"
17874 #endif
17875 char init_manager ();
17877 main ()
17879 return init_manager ();
17881 return 0;
17883 _ACEOF
17884 rm -f conftest.$ac_objext conftest$ac_exeext
17885 if { (ac_try="$ac_link"
17886 case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17889 esac
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891 (eval "$ac_link") 2>conftest.er1
17892 ac_status=$?
17893 grep -v '^ *+' conftest.er1 >conftest.err
17894 rm -f conftest.er1
17895 cat conftest.err >&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } && {
17898 test -z "$ac_c_werror_flag" ||
17899 test ! -s conftest.err
17900 } && test -s conftest$ac_exeext &&
17901 $as_test_x conftest$ac_exeext; then
17902 ac_cv_lib_isdnnet_init_manager=yes
17903 else
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907 ac_cv_lib_isdnnet_init_manager=no
17910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17911 conftest$ac_exeext conftest.$ac_ext
17912 LIBS=$ac_check_lib_save_LIBS
17914 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
17915 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
17916 if test $ac_cv_lib_isdnnet_init_manager = yes; then
17917 AST_ISDNNET_FOUND=yes
17918 else
17919 AST_ISDNNET_FOUND=no
17923 if test "${AST_ISDNNET_FOUND}" = "yes"; then
17924 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
17925 ISDNNET_HEADER_FOUND="1"
17926 if test "x${ISDNNET_DIR}" != "x"; then
17927 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
17928 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
17929 if test "xmISDNuser/isdn_net.h" != "x" ; then
17930 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
17931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17932 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
17933 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 ac_res=`eval echo '${'$as_ac_Header'}'`
17938 { echo "$as_me:$LINENO: result: $ac_res" >&5
17939 echo "${ECHO_T}$ac_res" >&6; }
17940 else
17941 # Is the header compilable?
17942 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
17943 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
17944 cat >conftest.$ac_ext <<_ACEOF
17945 /* confdefs.h. */
17946 _ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17950 $ac_includes_default
17951 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
17952 _ACEOF
17953 rm -f conftest.$ac_objext
17954 if { (ac_try="$ac_compile"
17955 case "(($ac_try" in
17956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957 *) ac_try_echo=$ac_try;;
17958 esac
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960 (eval "$ac_compile") 2>conftest.er1
17961 ac_status=$?
17962 grep -v '^ *+' conftest.er1 >conftest.err
17963 rm -f conftest.er1
17964 cat conftest.err >&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } && {
17967 test -z "$ac_c_werror_flag" ||
17968 test ! -s conftest.err
17969 } && test -s conftest.$ac_objext; then
17970 ac_header_compiler=yes
17971 else
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17975 ac_header_compiler=no
17978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17980 echo "${ECHO_T}$ac_header_compiler" >&6; }
17982 # Is the header present?
17983 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
17984 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
17985 cat >conftest.$ac_ext <<_ACEOF
17986 /* confdefs.h. */
17987 _ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17991 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
17992 _ACEOF
17993 if { (ac_try="$ac_cpp conftest.$ac_ext"
17994 case "(($ac_try" in
17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996 *) ac_try_echo=$ac_try;;
17997 esac
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18000 ac_status=$?
18001 grep -v '^ *+' conftest.er1 >conftest.err
18002 rm -f conftest.er1
18003 cat conftest.err >&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } >/dev/null && {
18006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18007 test ! -s conftest.err
18008 }; then
18009 ac_header_preproc=yes
18010 else
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18014 ac_header_preproc=no
18017 rm -f conftest.err conftest.$ac_ext
18018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18019 echo "${ECHO_T}$ac_header_preproc" >&6; }
18021 # So? What about this header?
18022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18023 yes:no: )
18024 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18025 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18026 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18027 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18028 ac_header_preproc=yes
18030 no:yes:* )
18031 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18032 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18033 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18034 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18035 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18036 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18037 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18038 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18039 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18040 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18041 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18042 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18045 esac
18046 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18047 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 else
18051 eval "$as_ac_Header=\$ac_header_preproc"
18053 ac_res=`eval echo '${'$as_ac_Header'}'`
18054 { echo "$as_me:$LINENO: result: $ac_res" >&5
18055 echo "${ECHO_T}$ac_res" >&6; }
18058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18059 ISDNNET_HEADER_FOUND=1
18060 else
18061 ISDNNET_HEADER_FOUND=0
18066 else
18067 if test "xmISDNuser/isdn_net.h" != "x" ; then
18068 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18069 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18070 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18071 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18074 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18075 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18076 else
18077 # Is the header compilable?
18078 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
18079 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18080 cat >conftest.$ac_ext <<_ACEOF
18081 /* confdefs.h. */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086 $ac_includes_default
18087 #include <mISDNuser/isdn_net.h>
18088 _ACEOF
18089 rm -f conftest.$ac_objext
18090 if { (ac_try="$ac_compile"
18091 case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18094 esac
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_compile") 2>conftest.er1
18097 ac_status=$?
18098 grep -v '^ *+' conftest.er1 >conftest.err
18099 rm -f conftest.er1
18100 cat conftest.err >&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); } && {
18103 test -z "$ac_c_werror_flag" ||
18104 test ! -s conftest.err
18105 } && test -s conftest.$ac_objext; then
18106 ac_header_compiler=yes
18107 else
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ac_header_compiler=no
18114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18116 echo "${ECHO_T}$ac_header_compiler" >&6; }
18118 # Is the header present?
18119 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
18120 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18121 cat >conftest.$ac_ext <<_ACEOF
18122 /* confdefs.h. */
18123 _ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h. */
18127 #include <mISDNuser/isdn_net.h>
18128 _ACEOF
18129 if { (ac_try="$ac_cpp conftest.$ac_ext"
18130 case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18133 esac
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18136 ac_status=$?
18137 grep -v '^ *+' conftest.er1 >conftest.err
18138 rm -f conftest.er1
18139 cat conftest.err >&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } >/dev/null && {
18142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18143 test ! -s conftest.err
18144 }; then
18145 ac_header_preproc=yes
18146 else
18147 echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18150 ac_header_preproc=no
18153 rm -f conftest.err conftest.$ac_ext
18154 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18155 echo "${ECHO_T}$ac_header_preproc" >&6; }
18157 # So? What about this header?
18158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18159 yes:no: )
18160 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18161 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18162 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18163 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18164 ac_header_preproc=yes
18166 no:yes:* )
18167 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18168 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18169 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18170 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18171 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18172 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18173 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18174 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18175 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18176 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18177 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18178 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18181 esac
18182 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18183 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18184 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18186 else
18187 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
18189 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18190 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18193 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
18194 ISDNNET_HEADER_FOUND=1
18195 else
18196 ISDNNET_HEADER_FOUND=0
18202 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
18203 if test ! -z "${ISDNNET_MANDATORY}" ;
18204 then
18205 { echo "$as_me:$LINENO: ***" >&5
18206 echo "$as_me: ***" >&6;}
18207 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
18208 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
18209 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
18210 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
18211 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18212 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18213 exit 1
18215 ISDNNET_LIB=""
18216 ISDNNET_INCLUDE=""
18217 PBX_ISDNNET=0
18218 else
18219 PBX_ISDNNET=1
18221 cat >>confdefs.h <<_ACEOF
18222 #define HAVE_ISDNNET 1
18223 _ACEOF
18226 elif test ! -z "${ISDNNET_MANDATORY}";
18227 then
18228 { echo "$as_me:$LINENO: ***" >&5
18229 echo "$as_me: ***" >&6;}
18230 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
18231 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
18232 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18233 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18234 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18235 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18236 exit 1
18241 if test "${USE_SUPPSERV}" != "no"; then
18242 pbxlibdir=""
18243 if test "x${SUPPSERV_DIR}" != "x"; then
18244 if test -d ${SUPPSERV_DIR}/lib; then
18245 pbxlibdir="-L${SUPPSERV_DIR}/lib"
18246 else
18247 pbxlibdir="-L${SUPPSERV_DIR}"
18250 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
18251 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
18252 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18254 else
18255 ac_check_lib_save_LIBS=$LIBS
18256 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
18257 cat >conftest.$ac_ext <<_ACEOF
18258 /* confdefs.h. */
18259 _ACEOF
18260 cat confdefs.h >>conftest.$ac_ext
18261 cat >>conftest.$ac_ext <<_ACEOF
18262 /* end confdefs.h. */
18264 /* Override any GCC internal prototype to avoid an error.
18265 Use char because int might match the return type of a GCC
18266 builtin and then its argument prototype would still apply. */
18267 #ifdef __cplusplus
18268 extern "C"
18269 #endif
18270 char encodeFac ();
18272 main ()
18274 return encodeFac ();
18276 return 0;
18278 _ACEOF
18279 rm -f conftest.$ac_objext conftest$ac_exeext
18280 if { (ac_try="$ac_link"
18281 case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18284 esac
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_link") 2>conftest.er1
18287 ac_status=$?
18288 grep -v '^ *+' conftest.er1 >conftest.err
18289 rm -f conftest.er1
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } && {
18293 test -z "$ac_c_werror_flag" ||
18294 test ! -s conftest.err
18295 } && test -s conftest$ac_exeext &&
18296 $as_test_x conftest$ac_exeext; then
18297 ac_cv_lib_suppserv_encodeFac=yes
18298 else
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 ac_cv_lib_suppserv_encodeFac=no
18305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18306 conftest$ac_exeext conftest.$ac_ext
18307 LIBS=$ac_check_lib_save_LIBS
18309 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
18310 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
18311 if test $ac_cv_lib_suppserv_encodeFac = yes; then
18312 AST_SUPPSERV_FOUND=yes
18313 else
18314 AST_SUPPSERV_FOUND=no
18318 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
18319 SUPPSERV_LIB="-lsuppserv "
18320 SUPPSERV_HEADER_FOUND="1"
18321 if test "x${SUPPSERV_DIR}" != "x"; then
18322 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
18323 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
18324 if test "xmISDNuser/suppserv.h" != "x" ; then
18325 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
18326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18327 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18328 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18330 echo $ECHO_N "(cached) $ECHO_C" >&6
18332 ac_res=`eval echo '${'$as_ac_Header'}'`
18333 { echo "$as_me:$LINENO: result: $ac_res" >&5
18334 echo "${ECHO_T}$ac_res" >&6; }
18335 else
18336 # Is the header compilable?
18337 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
18338 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18339 cat >conftest.$ac_ext <<_ACEOF
18340 /* confdefs.h. */
18341 _ACEOF
18342 cat confdefs.h >>conftest.$ac_ext
18343 cat >>conftest.$ac_ext <<_ACEOF
18344 /* end confdefs.h. */
18345 $ac_includes_default
18346 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18347 _ACEOF
18348 rm -f conftest.$ac_objext
18349 if { (ac_try="$ac_compile"
18350 case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18353 esac
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_compile") 2>conftest.er1
18356 ac_status=$?
18357 grep -v '^ *+' conftest.er1 >conftest.err
18358 rm -f conftest.er1
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } && {
18362 test -z "$ac_c_werror_flag" ||
18363 test ! -s conftest.err
18364 } && test -s conftest.$ac_objext; then
18365 ac_header_compiler=yes
18366 else
18367 echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18370 ac_header_compiler=no
18373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18375 echo "${ECHO_T}$ac_header_compiler" >&6; }
18377 # Is the header present?
18378 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
18379 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18380 cat >conftest.$ac_ext <<_ACEOF
18381 /* confdefs.h. */
18382 _ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18386 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18387 _ACEOF
18388 if { (ac_try="$ac_cpp conftest.$ac_ext"
18389 case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18392 esac
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18395 ac_status=$?
18396 grep -v '^ *+' conftest.er1 >conftest.err
18397 rm -f conftest.er1
18398 cat conftest.err >&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } >/dev/null && {
18401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18402 test ! -s conftest.err
18403 }; then
18404 ac_header_preproc=yes
18405 else
18406 echo "$as_me: failed program was:" >&5
18407 sed 's/^/| /' conftest.$ac_ext >&5
18409 ac_header_preproc=no
18412 rm -f conftest.err conftest.$ac_ext
18413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18414 echo "${ECHO_T}$ac_header_preproc" >&6; }
18416 # So? What about this header?
18417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18418 yes:no: )
18419 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18420 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18421 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18422 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18423 ac_header_preproc=yes
18425 no:yes:* )
18426 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
18427 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18429 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18431 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18433 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18435 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18436 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18437 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18440 esac
18441 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18442 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 else
18446 eval "$as_ac_Header=\$ac_header_preproc"
18448 ac_res=`eval echo '${'$as_ac_Header'}'`
18449 { echo "$as_me:$LINENO: result: $ac_res" >&5
18450 echo "${ECHO_T}$ac_res" >&6; }
18453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18454 SUPPSERV_HEADER_FOUND=1
18455 else
18456 SUPPSERV_HEADER_FOUND=0
18461 else
18462 if test "xmISDNuser/suppserv.h" != "x" ; then
18463 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18464 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18465 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18466 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18470 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18471 else
18472 # Is the header compilable?
18473 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
18474 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18475 cat >conftest.$ac_ext <<_ACEOF
18476 /* confdefs.h. */
18477 _ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 $ac_includes_default
18482 #include <mISDNuser/suppserv.h>
18483 _ACEOF
18484 rm -f conftest.$ac_objext
18485 if { (ac_try="$ac_compile"
18486 case "(($ac_try" in
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488 *) ac_try_echo=$ac_try;;
18489 esac
18490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491 (eval "$ac_compile") 2>conftest.er1
18492 ac_status=$?
18493 grep -v '^ *+' conftest.er1 >conftest.err
18494 rm -f conftest.er1
18495 cat conftest.err >&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } && {
18498 test -z "$ac_c_werror_flag" ||
18499 test ! -s conftest.err
18500 } && test -s conftest.$ac_objext; then
18501 ac_header_compiler=yes
18502 else
18503 echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18506 ac_header_compiler=no
18509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18511 echo "${ECHO_T}$ac_header_compiler" >&6; }
18513 # Is the header present?
18514 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
18515 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18516 cat >conftest.$ac_ext <<_ACEOF
18517 /* confdefs.h. */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18522 #include <mISDNuser/suppserv.h>
18523 _ACEOF
18524 if { (ac_try="$ac_cpp conftest.$ac_ext"
18525 case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18528 esac
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18531 ac_status=$?
18532 grep -v '^ *+' conftest.er1 >conftest.err
18533 rm -f conftest.er1
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } >/dev/null && {
18537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18538 test ! -s conftest.err
18539 }; then
18540 ac_header_preproc=yes
18541 else
18542 echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18545 ac_header_preproc=no
18548 rm -f conftest.err conftest.$ac_ext
18549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18550 echo "${ECHO_T}$ac_header_preproc" >&6; }
18552 # So? What about this header?
18553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18554 yes:no: )
18555 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18556 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18557 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18558 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18559 ac_header_preproc=yes
18561 no:yes:* )
18562 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
18563 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18564 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18565 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18566 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18567 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18568 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18569 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18570 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18571 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18572 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18573 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18576 esac
18577 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18578 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18579 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18581 else
18582 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
18584 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18585 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18588 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
18589 SUPPSERV_HEADER_FOUND=1
18590 else
18591 SUPPSERV_HEADER_FOUND=0
18597 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
18598 if test ! -z "${SUPPSERV_MANDATORY}" ;
18599 then
18600 { echo "$as_me:$LINENO: ***" >&5
18601 echo "$as_me: ***" >&6;}
18602 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
18603 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
18604 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
18605 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
18606 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18607 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18608 exit 1
18610 SUPPSERV_LIB=""
18611 SUPPSERV_INCLUDE=""
18612 PBX_SUPPSERV=0
18613 else
18614 PBX_SUPPSERV=1
18616 cat >>confdefs.h <<_ACEOF
18617 #define HAVE_SUPPSERV 1
18618 _ACEOF
18621 elif test ! -z "${SUPPSERV_MANDATORY}";
18622 then
18623 { echo "$as_me:$LINENO: ***" >&5
18624 echo "$as_me: ***" >&6;}
18625 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
18626 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
18627 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18628 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18629 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18630 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18631 exit 1
18638 if test "${USE_NBS}" != "no"; then
18639 pbxlibdir=""
18640 if test "x${NBS_DIR}" != "x"; then
18641 if test -d ${NBS_DIR}/lib; then
18642 pbxlibdir="-L${NBS_DIR}/lib"
18643 else
18644 pbxlibdir="-L${NBS_DIR}"
18647 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
18648 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
18649 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18651 else
18652 ac_check_lib_save_LIBS=$LIBS
18653 LIBS="-lnbs ${pbxlibdir} $LIBS"
18654 cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h. */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18661 /* Override any GCC internal prototype to avoid an error.
18662 Use char because int might match the return type of a GCC
18663 builtin and then its argument prototype would still apply. */
18664 #ifdef __cplusplus
18665 extern "C"
18666 #endif
18667 char nbs_connect ();
18669 main ()
18671 return nbs_connect ();
18673 return 0;
18675 _ACEOF
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (ac_try="$ac_link"
18678 case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18681 esac
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_link") 2>conftest.er1
18684 ac_status=$?
18685 grep -v '^ *+' conftest.er1 >conftest.err
18686 rm -f conftest.er1
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } && {
18690 test -z "$ac_c_werror_flag" ||
18691 test ! -s conftest.err
18692 } && test -s conftest$ac_exeext &&
18693 $as_test_x conftest$ac_exeext; then
18694 ac_cv_lib_nbs_nbs_connect=yes
18695 else
18696 echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.$ac_ext >&5
18699 ac_cv_lib_nbs_nbs_connect=no
18702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18703 conftest$ac_exeext conftest.$ac_ext
18704 LIBS=$ac_check_lib_save_LIBS
18706 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
18707 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
18708 if test $ac_cv_lib_nbs_nbs_connect = yes; then
18709 AST_NBS_FOUND=yes
18710 else
18711 AST_NBS_FOUND=no
18715 if test "${AST_NBS_FOUND}" = "yes"; then
18716 NBS_LIB="-lnbs "
18717 NBS_HEADER_FOUND="1"
18718 if test "x${NBS_DIR}" != "x"; then
18719 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
18720 NBS_INCLUDE="-I${NBS_DIR}/include"
18721 if test "xnbs.h" != "x" ; then
18722 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
18723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18724 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
18725 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
18726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 ac_res=`eval echo '${'$as_ac_Header'}'`
18730 { echo "$as_me:$LINENO: result: $ac_res" >&5
18731 echo "${ECHO_T}$ac_res" >&6; }
18732 else
18733 # Is the header compilable?
18734 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
18735 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
18736 cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h. */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742 $ac_includes_default
18743 #include <${NBS_DIR}/include/nbs.h>
18744 _ACEOF
18745 rm -f conftest.$ac_objext
18746 if { (ac_try="$ac_compile"
18747 case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18750 esac
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_compile") 2>conftest.er1
18753 ac_status=$?
18754 grep -v '^ *+' conftest.er1 >conftest.err
18755 rm -f conftest.er1
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } && {
18759 test -z "$ac_c_werror_flag" ||
18760 test ! -s conftest.err
18761 } && test -s conftest.$ac_objext; then
18762 ac_header_compiler=yes
18763 else
18764 echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18767 ac_header_compiler=no
18770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18772 echo "${ECHO_T}$ac_header_compiler" >&6; }
18774 # Is the header present?
18775 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
18776 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
18777 cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h. */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18783 #include <${NBS_DIR}/include/nbs.h>
18784 _ACEOF
18785 if { (ac_try="$ac_cpp conftest.$ac_ext"
18786 case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18789 esac
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18792 ac_status=$?
18793 grep -v '^ *+' conftest.er1 >conftest.err
18794 rm -f conftest.er1
18795 cat conftest.err >&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } >/dev/null && {
18798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18799 test ! -s conftest.err
18800 }; then
18801 ac_header_preproc=yes
18802 else
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_header_preproc=no
18809 rm -f conftest.err conftest.$ac_ext
18810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18811 echo "${ECHO_T}$ac_header_preproc" >&6; }
18813 # So? What about this header?
18814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18815 yes:no: )
18816 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
18817 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18818 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
18819 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
18820 ac_header_preproc=yes
18822 no:yes:* )
18823 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
18824 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
18825 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
18826 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
18827 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
18828 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
18829 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
18830 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
18831 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
18832 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
18833 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
18834 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
18837 esac
18838 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
18839 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
18840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18843 eval "$as_ac_Header=\$ac_header_preproc"
18845 ac_res=`eval echo '${'$as_ac_Header'}'`
18846 { echo "$as_me:$LINENO: result: $ac_res" >&5
18847 echo "${ECHO_T}$ac_res" >&6; }
18850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18851 NBS_HEADER_FOUND=1
18852 else
18853 NBS_HEADER_FOUND=0
18858 else
18859 if test "xnbs.h" != "x" ; then
18860 if test "${ac_cv_header_nbs_h+set}" = set; then
18861 { echo "$as_me:$LINENO: checking for nbs.h" >&5
18862 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
18863 if test "${ac_cv_header_nbs_h+set}" = set; then
18864 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
18867 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
18868 else
18869 # Is the header compilable?
18870 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
18871 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
18872 cat >conftest.$ac_ext <<_ACEOF
18873 /* confdefs.h. */
18874 _ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18878 $ac_includes_default
18879 #include <nbs.h>
18880 _ACEOF
18881 rm -f conftest.$ac_objext
18882 if { (ac_try="$ac_compile"
18883 case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18886 esac
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_compile") 2>conftest.er1
18889 ac_status=$?
18890 grep -v '^ *+' conftest.er1 >conftest.err
18891 rm -f conftest.er1
18892 cat conftest.err >&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); } && {
18895 test -z "$ac_c_werror_flag" ||
18896 test ! -s conftest.err
18897 } && test -s conftest.$ac_objext; then
18898 ac_header_compiler=yes
18899 else
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 ac_header_compiler=no
18906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18908 echo "${ECHO_T}$ac_header_compiler" >&6; }
18910 # Is the header present?
18911 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
18912 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
18913 cat >conftest.$ac_ext <<_ACEOF
18914 /* confdefs.h. */
18915 _ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h. */
18919 #include <nbs.h>
18920 _ACEOF
18921 if { (ac_try="$ac_cpp conftest.$ac_ext"
18922 case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925 esac
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18928 ac_status=$?
18929 grep -v '^ *+' conftest.er1 >conftest.err
18930 rm -f conftest.er1
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } >/dev/null && {
18934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18935 test ! -s conftest.err
18936 }; then
18937 ac_header_preproc=yes
18938 else
18939 echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18942 ac_header_preproc=no
18945 rm -f conftest.err conftest.$ac_ext
18946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18947 echo "${ECHO_T}$ac_header_preproc" >&6; }
18949 # So? What about this header?
18950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18951 yes:no: )
18952 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
18953 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18954 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
18955 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
18956 ac_header_preproc=yes
18958 no:yes:* )
18959 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
18960 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
18961 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
18962 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
18963 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
18964 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
18965 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
18966 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
18967 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
18968 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
18969 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
18970 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
18973 esac
18974 { echo "$as_me:$LINENO: checking for nbs.h" >&5
18975 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
18976 if test "${ac_cv_header_nbs_h+set}" = set; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 else
18979 ac_cv_header_nbs_h=$ac_header_preproc
18981 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
18982 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
18985 if test $ac_cv_header_nbs_h = yes; then
18986 NBS_HEADER_FOUND=1
18987 else
18988 NBS_HEADER_FOUND=0
18994 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
18995 if test ! -z "${NBS_MANDATORY}" ;
18996 then
18997 { echo "$as_me:$LINENO: ***" >&5
18998 echo "$as_me: ***" >&6;}
18999 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
19000 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
19001 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
19002 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
19003 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19004 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19005 exit 1
19007 NBS_LIB=""
19008 NBS_INCLUDE=""
19009 PBX_NBS=0
19010 else
19011 PBX_NBS=1
19013 cat >>confdefs.h <<_ACEOF
19014 #define HAVE_NBS 1
19015 _ACEOF
19018 elif test ! -z "${NBS_MANDATORY}";
19019 then
19020 { echo "$as_me:$LINENO: ***" >&5
19021 echo "$as_me: ***" >&6;}
19022 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
19023 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
19024 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19025 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19026 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19027 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19028 exit 1
19034 if test "${USE_NCURSES}" != "no"; then
19035 pbxlibdir=""
19036 if test "x${NCURSES_DIR}" != "x"; then
19037 if test -d ${NCURSES_DIR}/lib; then
19038 pbxlibdir="-L${NCURSES_DIR}/lib"
19039 else
19040 pbxlibdir="-L${NCURSES_DIR}"
19043 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
19044 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
19045 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048 ac_check_lib_save_LIBS=$LIBS
19049 LIBS="-lncurses ${pbxlibdir} $LIBS"
19050 cat >conftest.$ac_ext <<_ACEOF
19051 /* confdefs.h. */
19052 _ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h. */
19057 /* Override any GCC internal prototype to avoid an error.
19058 Use char because int might match the return type of a GCC
19059 builtin and then its argument prototype would still apply. */
19060 #ifdef __cplusplus
19061 extern "C"
19062 #endif
19063 char initscr ();
19065 main ()
19067 return initscr ();
19069 return 0;
19071 _ACEOF
19072 rm -f conftest.$ac_objext conftest$ac_exeext
19073 if { (ac_try="$ac_link"
19074 case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19077 esac
19078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_link") 2>conftest.er1
19080 ac_status=$?
19081 grep -v '^ *+' conftest.er1 >conftest.err
19082 rm -f conftest.er1
19083 cat conftest.err >&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } && {
19086 test -z "$ac_c_werror_flag" ||
19087 test ! -s conftest.err
19088 } && test -s conftest$ac_exeext &&
19089 $as_test_x conftest$ac_exeext; then
19090 ac_cv_lib_ncurses_initscr=yes
19091 else
19092 echo "$as_me: failed program was:" >&5
19093 sed 's/^/| /' conftest.$ac_ext >&5
19095 ac_cv_lib_ncurses_initscr=no
19098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19099 conftest$ac_exeext conftest.$ac_ext
19100 LIBS=$ac_check_lib_save_LIBS
19102 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
19103 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
19104 if test $ac_cv_lib_ncurses_initscr = yes; then
19105 AST_NCURSES_FOUND=yes
19106 else
19107 AST_NCURSES_FOUND=no
19111 if test "${AST_NCURSES_FOUND}" = "yes"; then
19112 NCURSES_LIB="-lncurses "
19113 NCURSES_HEADER_FOUND="1"
19114 if test "x${NCURSES_DIR}" != "x"; then
19115 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
19116 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
19117 if test "xcurses.h" != "x" ; then
19118 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
19119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19120 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19121 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 ac_res=`eval echo '${'$as_ac_Header'}'`
19126 { echo "$as_me:$LINENO: result: $ac_res" >&5
19127 echo "${ECHO_T}$ac_res" >&6; }
19128 else
19129 # Is the header compilable?
19130 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
19131 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
19132 cat >conftest.$ac_ext <<_ACEOF
19133 /* confdefs.h. */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 $ac_includes_default
19139 #include <${NCURSES_DIR}/include/curses.h>
19140 _ACEOF
19141 rm -f conftest.$ac_objext
19142 if { (ac_try="$ac_compile"
19143 case "(($ac_try" in
19144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19145 *) ac_try_echo=$ac_try;;
19146 esac
19147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19148 (eval "$ac_compile") 2>conftest.er1
19149 ac_status=$?
19150 grep -v '^ *+' conftest.er1 >conftest.err
19151 rm -f conftest.er1
19152 cat conftest.err >&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } && {
19155 test -z "$ac_c_werror_flag" ||
19156 test ! -s conftest.err
19157 } && test -s conftest.$ac_objext; then
19158 ac_header_compiler=yes
19159 else
19160 echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19163 ac_header_compiler=no
19166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19168 echo "${ECHO_T}$ac_header_compiler" >&6; }
19170 # Is the header present?
19171 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
19172 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
19173 cat >conftest.$ac_ext <<_ACEOF
19174 /* confdefs.h. */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19179 #include <${NCURSES_DIR}/include/curses.h>
19180 _ACEOF
19181 if { (ac_try="$ac_cpp conftest.$ac_ext"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } >/dev/null && {
19194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19195 test ! -s conftest.err
19196 }; then
19197 ac_header_preproc=yes
19198 else
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_header_preproc=no
19205 rm -f conftest.err conftest.$ac_ext
19206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19207 echo "${ECHO_T}$ac_header_preproc" >&6; }
19209 # So? What about this header?
19210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19211 yes:no: )
19212 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19213 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19214 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
19215 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
19216 ac_header_preproc=yes
19218 no:yes:* )
19219 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
19220 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
19221 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
19222 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
19223 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
19224 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
19225 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
19226 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19227 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
19228 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
19229 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
19230 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
19233 esac
19234 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19235 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 else
19239 eval "$as_ac_Header=\$ac_header_preproc"
19241 ac_res=`eval echo '${'$as_ac_Header'}'`
19242 { echo "$as_me:$LINENO: result: $ac_res" >&5
19243 echo "${ECHO_T}$ac_res" >&6; }
19246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19247 NCURSES_HEADER_FOUND=1
19248 else
19249 NCURSES_HEADER_FOUND=0
19254 else
19255 if test "xcurses.h" != "x" ; then
19256 if test "${ac_cv_header_curses_h+set}" = set; then
19257 { echo "$as_me:$LINENO: checking for curses.h" >&5
19258 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19259 if test "${ac_cv_header_curses_h+set}" = set; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19262 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19263 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19264 else
19265 # Is the header compilable?
19266 { echo "$as_me:$LINENO: checking curses.h usability" >&5
19267 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
19268 cat >conftest.$ac_ext <<_ACEOF
19269 /* confdefs.h. */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19274 $ac_includes_default
19275 #include <curses.h>
19276 _ACEOF
19277 rm -f conftest.$ac_objext
19278 if { (ac_try="$ac_compile"
19279 case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_compile") 2>conftest.er1
19285 ac_status=$?
19286 grep -v '^ *+' conftest.er1 >conftest.err
19287 rm -f conftest.er1
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } && {
19291 test -z "$ac_c_werror_flag" ||
19292 test ! -s conftest.err
19293 } && test -s conftest.$ac_objext; then
19294 ac_header_compiler=yes
19295 else
19296 echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19299 ac_header_compiler=no
19302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19304 echo "${ECHO_T}$ac_header_compiler" >&6; }
19306 # Is the header present?
19307 { echo "$as_me:$LINENO: checking curses.h presence" >&5
19308 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
19309 cat >conftest.$ac_ext <<_ACEOF
19310 /* confdefs.h. */
19311 _ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h. */
19315 #include <curses.h>
19316 _ACEOF
19317 if { (ac_try="$ac_cpp conftest.$ac_ext"
19318 case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19324 ac_status=$?
19325 grep -v '^ *+' conftest.er1 >conftest.err
19326 rm -f conftest.er1
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } >/dev/null && {
19330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19331 test ! -s conftest.err
19332 }; then
19333 ac_header_preproc=yes
19334 else
19335 echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19338 ac_header_preproc=no
19341 rm -f conftest.err conftest.$ac_ext
19342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19343 echo "${ECHO_T}$ac_header_preproc" >&6; }
19345 # So? What about this header?
19346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19347 yes:no: )
19348 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19349 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19350 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
19351 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
19352 ac_header_preproc=yes
19354 no:yes:* )
19355 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
19356 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
19357 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
19358 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
19359 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
19360 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
19361 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
19362 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19363 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
19364 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
19365 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
19366 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
19369 esac
19370 { echo "$as_me:$LINENO: checking for curses.h" >&5
19371 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19372 if test "${ac_cv_header_curses_h+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 else
19375 ac_cv_header_curses_h=$ac_header_preproc
19377 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19378 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19381 if test $ac_cv_header_curses_h = yes; then
19382 NCURSES_HEADER_FOUND=1
19383 else
19384 NCURSES_HEADER_FOUND=0
19390 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
19391 if test ! -z "${NCURSES_MANDATORY}" ;
19392 then
19393 { echo "$as_me:$LINENO: ***" >&5
19394 echo "$as_me: ***" >&6;}
19395 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
19396 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
19397 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
19398 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
19399 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19400 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19401 exit 1
19403 NCURSES_LIB=""
19404 NCURSES_INCLUDE=""
19405 PBX_NCURSES=0
19406 else
19407 PBX_NCURSES=1
19409 cat >>confdefs.h <<_ACEOF
19410 #define HAVE_NCURSES 1
19411 _ACEOF
19414 elif test ! -z "${NCURSES_MANDATORY}";
19415 then
19416 { echo "$as_me:$LINENO: ***" >&5
19417 echo "$as_me: ***" >&6;}
19418 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
19419 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
19420 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19421 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19422 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19423 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19424 exit 1
19429 NETSNMP_CONFIG=No
19430 if test "${USE_NETSNMP}" != "no"; then
19431 if test "x${NETSNMP_DIR}" != "x"; then
19432 if test -n "$ac_tool_prefix"; then
19433 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19434 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19437 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19439 else
19440 case $NETSNMP_CONFIG in
19441 [\\/]* | ?:[\\/]*)
19442 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19446 for as_dir in ${NETSNMP_DIR}/bin
19448 IFS=$as_save_IFS
19449 test -z "$as_dir" && as_dir=.
19450 for ac_exec_ext in '' $ac_executable_extensions; do
19451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19452 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19454 break 2
19456 done
19457 done
19458 IFS=$as_save_IFS
19461 esac
19463 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19464 if test -n "$NETSNMP_CONFIG"; then
19465 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19466 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19467 else
19468 { echo "$as_me:$LINENO: result: no" >&5
19469 echo "${ECHO_T}no" >&6; }
19474 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19475 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19476 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19477 set dummy net-snmp-config; ac_word=$2
19478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19480 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19482 else
19483 case $ac_pt_NETSNMP_CONFIG in
19484 [\\/]* | ?:[\\/]*)
19485 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19489 for as_dir in ${NETSNMP_DIR}/bin
19491 IFS=$as_save_IFS
19492 test -z "$as_dir" && as_dir=.
19493 for ac_exec_ext in '' $ac_executable_extensions; do
19494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19495 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19497 break 2
19499 done
19500 done
19501 IFS=$as_save_IFS
19504 esac
19506 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19507 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19508 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19509 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19510 else
19511 { echo "$as_me:$LINENO: result: no" >&5
19512 echo "${ECHO_T}no" >&6; }
19515 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19516 NETSNMP_CONFIG="No"
19517 else
19518 case $cross_compiling:$ac_tool_warned in
19519 yes:)
19520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19521 whose name does not start with the host triplet. If you think this
19522 configuration is useful to you, please write to autoconf@gnu.org." >&5
19523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19524 whose name does not start with the host triplet. If you think this
19525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19526 ac_tool_warned=yes ;;
19527 esac
19528 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19530 else
19531 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19534 if test x"${NETSNMP_CONFIG}" = xNo; then
19535 { echo "$as_me:$LINENO: ***" >&5
19536 echo "$as_me: ***" >&6;}
19537 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
19538 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
19539 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
19540 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
19541 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19542 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19543 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19544 echo "$as_me: *** including --without-netsnmp" >&6;}
19545 exit 1
19547 else
19548 if test -n "$ac_tool_prefix"; then
19549 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19550 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19553 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 else
19556 case $NETSNMP_CONFIG in
19557 [\\/]* | ?:[\\/]*)
19558 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19562 for as_dir in $PATH
19564 IFS=$as_save_IFS
19565 test -z "$as_dir" && as_dir=.
19566 for ac_exec_ext in '' $ac_executable_extensions; do
19567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19568 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19570 break 2
19572 done
19573 done
19574 IFS=$as_save_IFS
19577 esac
19579 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19580 if test -n "$NETSNMP_CONFIG"; then
19581 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19582 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19583 else
19584 { echo "$as_me:$LINENO: result: no" >&5
19585 echo "${ECHO_T}no" >&6; }
19590 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19591 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19592 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19593 set dummy net-snmp-config; ac_word=$2
19594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19596 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19598 else
19599 case $ac_pt_NETSNMP_CONFIG in
19600 [\\/]* | ?:[\\/]*)
19601 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19605 for as_dir in $PATH
19607 IFS=$as_save_IFS
19608 test -z "$as_dir" && as_dir=.
19609 for ac_exec_ext in '' $ac_executable_extensions; do
19610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19611 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19613 break 2
19615 done
19616 done
19617 IFS=$as_save_IFS
19620 esac
19622 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19623 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19624 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19625 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19626 else
19627 { echo "$as_me:$LINENO: result: no" >&5
19628 echo "${ECHO_T}no" >&6; }
19631 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19632 NETSNMP_CONFIG="No"
19633 else
19634 case $cross_compiling:$ac_tool_warned in
19635 yes:)
19636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19637 whose name does not start with the host triplet. If you think this
19638 configuration is useful to you, please write to autoconf@gnu.org." >&5
19639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19640 whose name does not start with the host triplet. If you think this
19641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19642 ac_tool_warned=yes ;;
19643 esac
19644 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19646 else
19647 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19652 if test x"${NETSNMP_CONFIG}" != xNo; then
19653 NETSNMP_libs=`net-snmp-config --agent-libs`
19655 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
19656 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
19657 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660 ac_check_lib_save_LIBS=$LIBS
19661 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
19662 cat >conftest.$ac_ext <<_ACEOF
19663 /* confdefs.h. */
19664 _ACEOF
19665 cat confdefs.h >>conftest.$ac_ext
19666 cat >>conftest.$ac_ext <<_ACEOF
19667 /* end confdefs.h. */
19669 /* Override any GCC internal prototype to avoid an error.
19670 Use char because int might match the return type of a GCC
19671 builtin and then its argument prototype would still apply. */
19672 #ifdef __cplusplus
19673 extern "C"
19674 #endif
19675 char snmp_register_callback ();
19677 main ()
19679 return snmp_register_callback ();
19681 return 0;
19683 _ACEOF
19684 rm -f conftest.$ac_objext conftest$ac_exeext
19685 if { (ac_try="$ac_link"
19686 case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19689 esac
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_link") 2>conftest.er1
19692 ac_status=$?
19693 grep -v '^ *+' conftest.er1 >conftest.err
19694 rm -f conftest.er1
19695 cat conftest.err >&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } && {
19698 test -z "$ac_c_werror_flag" ||
19699 test ! -s conftest.err
19700 } && test -s conftest$ac_exeext &&
19701 $as_test_x conftest$ac_exeext; then
19702 ac_cv_lib_netsnmp_snmp_register_callback=yes
19703 else
19704 echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19707 ac_cv_lib_netsnmp_snmp_register_callback=no
19710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19711 conftest$ac_exeext conftest.$ac_ext
19712 LIBS=$ac_check_lib_save_LIBS
19714 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
19715 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
19716 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
19718 cat >>confdefs.h <<_ACEOF
19719 #define HAVE_NETSNMP 1
19720 _ACEOF
19725 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
19726 NETSNMP_LIB="${NETSNMP_libs}"
19727 PBX_NETSNMP=1
19728 elif test ! -z "${NETSNMP_MANDATORY}";
19729 then
19730 { echo "$as_me:$LINENO: ***" >&5
19731 echo "$as_me: ***" >&6;}
19732 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
19733 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
19734 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19735 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19736 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19737 echo "$as_me: *** including --without-netsnmp" >&6;}
19738 exit 1
19740 elif test ! -z "${NETSNMP_MANDATORY}";
19741 then
19742 { echo "$as_me:$LINENO: ***" >&5
19743 echo "$as_me: ***" >&6;}
19744 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
19745 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
19746 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19747 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19748 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19749 echo "$as_me: *** including --without-netsnmp" >&6;}
19750 exit 1
19754 if test "${USE_NEWT}" != "no"; then
19755 pbxlibdir=""
19756 if test "x${NEWT_DIR}" != "x"; then
19757 if test -d ${NEWT_DIR}/lib; then
19758 pbxlibdir="-L${NEWT_DIR}/lib"
19759 else
19760 pbxlibdir="-L${NEWT_DIR}"
19763 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
19764 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
19765 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 else
19768 ac_check_lib_save_LIBS=$LIBS
19769 LIBS="-lnewt ${pbxlibdir} $LIBS"
19770 cat >conftest.$ac_ext <<_ACEOF
19771 /* confdefs.h. */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h. */
19777 /* Override any GCC internal prototype to avoid an error.
19778 Use char because int might match the return type of a GCC
19779 builtin and then its argument prototype would still apply. */
19780 #ifdef __cplusplus
19781 extern "C"
19782 #endif
19783 char newtBell ();
19785 main ()
19787 return newtBell ();
19789 return 0;
19791 _ACEOF
19792 rm -f conftest.$ac_objext conftest$ac_exeext
19793 if { (ac_try="$ac_link"
19794 case "(($ac_try" in
19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19797 esac
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_link") 2>conftest.er1
19800 ac_status=$?
19801 grep -v '^ *+' conftest.er1 >conftest.err
19802 rm -f conftest.er1
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } && {
19806 test -z "$ac_c_werror_flag" ||
19807 test ! -s conftest.err
19808 } && test -s conftest$ac_exeext &&
19809 $as_test_x conftest$ac_exeext; then
19810 ac_cv_lib_newt_newtBell=yes
19811 else
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19815 ac_cv_lib_newt_newtBell=no
19818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19819 conftest$ac_exeext conftest.$ac_ext
19820 LIBS=$ac_check_lib_save_LIBS
19822 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
19823 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
19824 if test $ac_cv_lib_newt_newtBell = yes; then
19825 AST_NEWT_FOUND=yes
19826 else
19827 AST_NEWT_FOUND=no
19831 if test "${AST_NEWT_FOUND}" = "yes"; then
19832 NEWT_LIB="-lnewt "
19833 NEWT_HEADER_FOUND="1"
19834 if test "x${NEWT_DIR}" != "x"; then
19835 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
19836 NEWT_INCLUDE="-I${NEWT_DIR}/include"
19837 if test "xnewt.h" != "x" ; then
19838 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
19839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19840 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
19841 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
19842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 ac_res=`eval echo '${'$as_ac_Header'}'`
19846 { echo "$as_me:$LINENO: result: $ac_res" >&5
19847 echo "${ECHO_T}$ac_res" >&6; }
19848 else
19849 # Is the header compilable?
19850 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
19851 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h. */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 $ac_includes_default
19859 #include <${NEWT_DIR}/include/newt.h>
19860 _ACEOF
19861 rm -f conftest.$ac_objext
19862 if { (ac_try="$ac_compile"
19863 case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19866 esac
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_compile") 2>conftest.er1
19869 ac_status=$?
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } && {
19875 test -z "$ac_c_werror_flag" ||
19876 test ! -s conftest.err
19877 } && test -s conftest.$ac_objext; then
19878 ac_header_compiler=yes
19879 else
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19883 ac_header_compiler=no
19886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19888 echo "${ECHO_T}$ac_header_compiler" >&6; }
19890 # Is the header present?
19891 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
19892 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
19893 cat >conftest.$ac_ext <<_ACEOF
19894 /* confdefs.h. */
19895 _ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19899 #include <${NEWT_DIR}/include/newt.h>
19900 _ACEOF
19901 if { (ac_try="$ac_cpp conftest.$ac_ext"
19902 case "(($ac_try" in
19903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904 *) ac_try_echo=$ac_try;;
19905 esac
19906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19908 ac_status=$?
19909 grep -v '^ *+' conftest.er1 >conftest.err
19910 rm -f conftest.er1
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } >/dev/null && {
19914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19915 test ! -s conftest.err
19916 }; then
19917 ac_header_preproc=yes
19918 else
19919 echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19922 ac_header_preproc=no
19925 rm -f conftest.err conftest.$ac_ext
19926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19927 echo "${ECHO_T}$ac_header_preproc" >&6; }
19929 # So? What about this header?
19930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19931 yes:no: )
19932 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
19933 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
19935 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
19936 ac_header_preproc=yes
19938 no:yes:* )
19939 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
19940 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
19941 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
19942 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
19943 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
19944 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
19945 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
19946 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
19948 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
19950 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
19953 esac
19954 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
19955 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
19956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
19958 else
19959 eval "$as_ac_Header=\$ac_header_preproc"
19961 ac_res=`eval echo '${'$as_ac_Header'}'`
19962 { echo "$as_me:$LINENO: result: $ac_res" >&5
19963 echo "${ECHO_T}$ac_res" >&6; }
19966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19967 NEWT_HEADER_FOUND=1
19968 else
19969 NEWT_HEADER_FOUND=0
19974 else
19975 if test "xnewt.h" != "x" ; then
19976 if test "${ac_cv_header_newt_h+set}" = set; then
19977 { echo "$as_me:$LINENO: checking for newt.h" >&5
19978 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
19979 if test "${ac_cv_header_newt_h+set}" = set; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
19983 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
19984 else
19985 # Is the header compilable?
19986 { echo "$as_me:$LINENO: checking newt.h usability" >&5
19987 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
19988 cat >conftest.$ac_ext <<_ACEOF
19989 /* confdefs.h. */
19990 _ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19994 $ac_includes_default
19995 #include <newt.h>
19996 _ACEOF
19997 rm -f conftest.$ac_objext
19998 if { (ac_try="$ac_compile"
19999 case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20002 esac
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_compile") 2>conftest.er1
20005 ac_status=$?
20006 grep -v '^ *+' conftest.er1 >conftest.err
20007 rm -f conftest.er1
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } && {
20011 test -z "$ac_c_werror_flag" ||
20012 test ! -s conftest.err
20013 } && test -s conftest.$ac_objext; then
20014 ac_header_compiler=yes
20015 else
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 ac_header_compiler=no
20022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20024 echo "${ECHO_T}$ac_header_compiler" >&6; }
20026 # Is the header present?
20027 { echo "$as_me:$LINENO: checking newt.h presence" >&5
20028 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
20029 cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h. */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20035 #include <newt.h>
20036 _ACEOF
20037 if { (ac_try="$ac_cpp conftest.$ac_ext"
20038 case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041 esac
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20044 ac_status=$?
20045 grep -v '^ *+' conftest.er1 >conftest.err
20046 rm -f conftest.er1
20047 cat conftest.err >&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } >/dev/null && {
20050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20051 test ! -s conftest.err
20052 }; then
20053 ac_header_preproc=yes
20054 else
20055 echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20058 ac_header_preproc=no
20061 rm -f conftest.err conftest.$ac_ext
20062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20063 echo "${ECHO_T}$ac_header_preproc" >&6; }
20065 # So? What about this header?
20066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20067 yes:no: )
20068 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20069 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
20071 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
20072 ac_header_preproc=yes
20074 no:yes:* )
20075 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
20076 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
20078 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
20080 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
20082 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
20084 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
20085 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
20086 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
20089 esac
20090 { echo "$as_me:$LINENO: checking for newt.h" >&5
20091 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20092 if test "${ac_cv_header_newt_h+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20094 else
20095 ac_cv_header_newt_h=$ac_header_preproc
20097 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20098 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20101 if test $ac_cv_header_newt_h = yes; then
20102 NEWT_HEADER_FOUND=1
20103 else
20104 NEWT_HEADER_FOUND=0
20110 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
20111 if test ! -z "${NEWT_MANDATORY}" ;
20112 then
20113 { echo "$as_me:$LINENO: ***" >&5
20114 echo "$as_me: ***" >&6;}
20115 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
20116 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
20117 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
20118 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
20119 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20120 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20121 exit 1
20123 NEWT_LIB=""
20124 NEWT_INCLUDE=""
20125 PBX_NEWT=0
20126 else
20127 PBX_NEWT=1
20129 cat >>confdefs.h <<_ACEOF
20130 #define HAVE_NEWT 1
20131 _ACEOF
20134 elif test ! -z "${NEWT_MANDATORY}";
20135 then
20136 { echo "$as_me:$LINENO: ***" >&5
20137 echo "$as_me: ***" >&6;}
20138 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
20139 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
20140 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20141 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20142 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20143 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20144 exit 1
20150 if test "${USE_UNIXODBC}" != "no"; then
20151 pbxlibdir=""
20152 if test "x${UNIXODBC_DIR}" != "x"; then
20153 if test -d ${UNIXODBC_DIR}/lib; then
20154 pbxlibdir="-L${UNIXODBC_DIR}/lib"
20155 else
20156 pbxlibdir="-L${UNIXODBC_DIR}"
20159 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
20160 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
20161 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20163 else
20164 ac_check_lib_save_LIBS=$LIBS
20165 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
20166 cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h. */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20173 /* Override any GCC internal prototype to avoid an error.
20174 Use char because int might match the return type of a GCC
20175 builtin and then its argument prototype would still apply. */
20176 #ifdef __cplusplus
20177 extern "C"
20178 #endif
20179 char SQLConnect ();
20181 main ()
20183 return SQLConnect ();
20185 return 0;
20187 _ACEOF
20188 rm -f conftest.$ac_objext conftest$ac_exeext
20189 if { (ac_try="$ac_link"
20190 case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20193 esac
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_link") 2>conftest.er1
20196 ac_status=$?
20197 grep -v '^ *+' conftest.er1 >conftest.err
20198 rm -f conftest.er1
20199 cat conftest.err >&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } && {
20202 test -z "$ac_c_werror_flag" ||
20203 test ! -s conftest.err
20204 } && test -s conftest$ac_exeext &&
20205 $as_test_x conftest$ac_exeext; then
20206 ac_cv_lib_odbc_SQLConnect=yes
20207 else
20208 echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20211 ac_cv_lib_odbc_SQLConnect=no
20214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20215 conftest$ac_exeext conftest.$ac_ext
20216 LIBS=$ac_check_lib_save_LIBS
20218 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
20219 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
20220 if test $ac_cv_lib_odbc_SQLConnect = yes; then
20221 AST_UNIXODBC_FOUND=yes
20222 else
20223 AST_UNIXODBC_FOUND=no
20227 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
20228 UNIXODBC_LIB="-lodbc -lltdl"
20229 UNIXODBC_HEADER_FOUND="1"
20230 if test "x${UNIXODBC_DIR}" != "x"; then
20231 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
20232 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
20233 if test "xsql.h" != "x" ; then
20234 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
20235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20236 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20237 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20241 ac_res=`eval echo '${'$as_ac_Header'}'`
20242 { echo "$as_me:$LINENO: result: $ac_res" >&5
20243 echo "${ECHO_T}$ac_res" >&6; }
20244 else
20245 # Is the header compilable?
20246 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
20247 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
20248 cat >conftest.$ac_ext <<_ACEOF
20249 /* confdefs.h. */
20250 _ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20254 $ac_includes_default
20255 #include <${UNIXODBC_DIR}/include/sql.h>
20256 _ACEOF
20257 rm -f conftest.$ac_objext
20258 if { (ac_try="$ac_compile"
20259 case "(($ac_try" in
20260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261 *) ac_try_echo=$ac_try;;
20262 esac
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_compile") 2>conftest.er1
20265 ac_status=$?
20266 grep -v '^ *+' conftest.er1 >conftest.err
20267 rm -f conftest.er1
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } && {
20271 test -z "$ac_c_werror_flag" ||
20272 test ! -s conftest.err
20273 } && test -s conftest.$ac_objext; then
20274 ac_header_compiler=yes
20275 else
20276 echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20279 ac_header_compiler=no
20282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20284 echo "${ECHO_T}$ac_header_compiler" >&6; }
20286 # Is the header present?
20287 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
20288 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
20289 cat >conftest.$ac_ext <<_ACEOF
20290 /* confdefs.h. */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20295 #include <${UNIXODBC_DIR}/include/sql.h>
20296 _ACEOF
20297 if { (ac_try="$ac_cpp conftest.$ac_ext"
20298 case "(($ac_try" in
20299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300 *) ac_try_echo=$ac_try;;
20301 esac
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20304 ac_status=$?
20305 grep -v '^ *+' conftest.er1 >conftest.err
20306 rm -f conftest.er1
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } >/dev/null && {
20310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20311 test ! -s conftest.err
20312 }; then
20313 ac_header_preproc=yes
20314 else
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20318 ac_header_preproc=no
20321 rm -f conftest.err conftest.$ac_ext
20322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20323 echo "${ECHO_T}$ac_header_preproc" >&6; }
20325 # So? What about this header?
20326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20327 yes:no: )
20328 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20329 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20330 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
20331 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
20332 ac_header_preproc=yes
20334 no:yes:* )
20335 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
20336 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
20337 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
20338 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
20339 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
20340 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
20341 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
20342 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20343 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
20344 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
20345 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
20346 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
20349 esac
20350 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20351 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20353 echo $ECHO_N "(cached) $ECHO_C" >&6
20354 else
20355 eval "$as_ac_Header=\$ac_header_preproc"
20357 ac_res=`eval echo '${'$as_ac_Header'}'`
20358 { echo "$as_me:$LINENO: result: $ac_res" >&5
20359 echo "${ECHO_T}$ac_res" >&6; }
20362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20363 UNIXODBC_HEADER_FOUND=1
20364 else
20365 UNIXODBC_HEADER_FOUND=0
20370 else
20371 if test "xsql.h" != "x" ; then
20372 if test "${ac_cv_header_sql_h+set}" = set; then
20373 { echo "$as_me:$LINENO: checking for sql.h" >&5
20374 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20375 if test "${ac_cv_header_sql_h+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20378 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20379 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20380 else
20381 # Is the header compilable?
20382 { echo "$as_me:$LINENO: checking sql.h usability" >&5
20383 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
20384 cat >conftest.$ac_ext <<_ACEOF
20385 /* confdefs.h. */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h. */
20390 $ac_includes_default
20391 #include <sql.h>
20392 _ACEOF
20393 rm -f conftest.$ac_objext
20394 if { (ac_try="$ac_compile"
20395 case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20398 esac
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_compile") 2>conftest.er1
20401 ac_status=$?
20402 grep -v '^ *+' conftest.er1 >conftest.err
20403 rm -f conftest.er1
20404 cat conftest.err >&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } && {
20407 test -z "$ac_c_werror_flag" ||
20408 test ! -s conftest.err
20409 } && test -s conftest.$ac_objext; then
20410 ac_header_compiler=yes
20411 else
20412 echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20415 ac_header_compiler=no
20418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20420 echo "${ECHO_T}$ac_header_compiler" >&6; }
20422 # Is the header present?
20423 { echo "$as_me:$LINENO: checking sql.h presence" >&5
20424 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
20425 cat >conftest.$ac_ext <<_ACEOF
20426 /* confdefs.h. */
20427 _ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20431 #include <sql.h>
20432 _ACEOF
20433 if { (ac_try="$ac_cpp conftest.$ac_ext"
20434 case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20440 ac_status=$?
20441 grep -v '^ *+' conftest.er1 >conftest.err
20442 rm -f conftest.er1
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } >/dev/null && {
20446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20447 test ! -s conftest.err
20448 }; then
20449 ac_header_preproc=yes
20450 else
20451 echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.$ac_ext >&5
20454 ac_header_preproc=no
20457 rm -f conftest.err conftest.$ac_ext
20458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20459 echo "${ECHO_T}$ac_header_preproc" >&6; }
20461 # So? What about this header?
20462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20463 yes:no: )
20464 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20465 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20466 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
20467 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
20468 ac_header_preproc=yes
20470 no:yes:* )
20471 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
20472 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
20473 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
20474 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
20475 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
20476 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
20477 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
20478 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
20480 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
20482 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
20485 esac
20486 { echo "$as_me:$LINENO: checking for sql.h" >&5
20487 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20488 if test "${ac_cv_header_sql_h+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20490 else
20491 ac_cv_header_sql_h=$ac_header_preproc
20493 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20494 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20497 if test $ac_cv_header_sql_h = yes; then
20498 UNIXODBC_HEADER_FOUND=1
20499 else
20500 UNIXODBC_HEADER_FOUND=0
20506 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
20507 if test ! -z "${UNIXODBC_MANDATORY}" ;
20508 then
20509 { echo "$as_me:$LINENO: ***" >&5
20510 echo "$as_me: ***" >&6;}
20511 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
20512 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
20513 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
20514 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
20515 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
20516 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
20517 exit 1
20519 UNIXODBC_LIB=""
20520 UNIXODBC_INCLUDE=""
20521 PBX_UNIXODBC=0
20522 else
20523 PBX_UNIXODBC=1
20525 cat >>confdefs.h <<_ACEOF
20526 #define HAVE_UNIXODBC 1
20527 _ACEOF
20530 elif test ! -z "${UNIXODBC_MANDATORY}";
20531 then
20532 { echo "$as_me:$LINENO: ***" >&5
20533 echo "$as_me: ***" >&6;}
20534 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
20535 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
20536 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20537 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20538 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
20539 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
20540 exit 1
20546 if test "${USE_OGG}" != "no"; then
20547 pbxlibdir=""
20548 if test "x${OGG_DIR}" != "x"; then
20549 if test -d ${OGG_DIR}/lib; then
20550 pbxlibdir="-L${OGG_DIR}/lib"
20551 else
20552 pbxlibdir="-L${OGG_DIR}"
20555 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
20556 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
20557 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20559 else
20560 ac_check_lib_save_LIBS=$LIBS
20561 LIBS="-logg ${pbxlibdir} $LIBS"
20562 cat >conftest.$ac_ext <<_ACEOF
20563 /* confdefs.h. */
20564 _ACEOF
20565 cat confdefs.h >>conftest.$ac_ext
20566 cat >>conftest.$ac_ext <<_ACEOF
20567 /* end confdefs.h. */
20569 /* Override any GCC internal prototype to avoid an error.
20570 Use char because int might match the return type of a GCC
20571 builtin and then its argument prototype would still apply. */
20572 #ifdef __cplusplus
20573 extern "C"
20574 #endif
20575 char ogg_sync_init ();
20577 main ()
20579 return ogg_sync_init ();
20581 return 0;
20583 _ACEOF
20584 rm -f conftest.$ac_objext conftest$ac_exeext
20585 if { (ac_try="$ac_link"
20586 case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20589 esac
20590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_link") 2>conftest.er1
20592 ac_status=$?
20593 grep -v '^ *+' conftest.er1 >conftest.err
20594 rm -f conftest.er1
20595 cat conftest.err >&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } && {
20598 test -z "$ac_c_werror_flag" ||
20599 test ! -s conftest.err
20600 } && test -s conftest$ac_exeext &&
20601 $as_test_x conftest$ac_exeext; then
20602 ac_cv_lib_ogg_ogg_sync_init=yes
20603 else
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 ac_cv_lib_ogg_ogg_sync_init=no
20610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20611 conftest$ac_exeext conftest.$ac_ext
20612 LIBS=$ac_check_lib_save_LIBS
20614 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
20615 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
20616 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
20617 AST_OGG_FOUND=yes
20618 else
20619 AST_OGG_FOUND=no
20623 if test "${AST_OGG_FOUND}" = "yes"; then
20624 OGG_LIB="-logg "
20625 OGG_HEADER_FOUND="1"
20626 if test "x${OGG_DIR}" != "x"; then
20627 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
20628 OGG_INCLUDE="-I${OGG_DIR}/include"
20629 if test "x" != "x" ; then
20630 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
20631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20632 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
20633 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
20634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20637 ac_res=`eval echo '${'$as_ac_Header'}'`
20638 { echo "$as_me:$LINENO: result: $ac_res" >&5
20639 echo "${ECHO_T}$ac_res" >&6; }
20640 else
20641 # Is the header compilable?
20642 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
20643 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
20644 cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h. */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20650 $ac_includes_default
20651 #include <${OGG_DIR}/include/>
20652 _ACEOF
20653 rm -f conftest.$ac_objext
20654 if { (ac_try="$ac_compile"
20655 case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20658 esac
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660 (eval "$ac_compile") 2>conftest.er1
20661 ac_status=$?
20662 grep -v '^ *+' conftest.er1 >conftest.err
20663 rm -f conftest.er1
20664 cat conftest.err >&5
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); } && {
20667 test -z "$ac_c_werror_flag" ||
20668 test ! -s conftest.err
20669 } && test -s conftest.$ac_objext; then
20670 ac_header_compiler=yes
20671 else
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20675 ac_header_compiler=no
20678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20680 echo "${ECHO_T}$ac_header_compiler" >&6; }
20682 # Is the header present?
20683 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
20684 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
20685 cat >conftest.$ac_ext <<_ACEOF
20686 /* confdefs.h. */
20687 _ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20691 #include <${OGG_DIR}/include/>
20692 _ACEOF
20693 if { (ac_try="$ac_cpp conftest.$ac_ext"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20697 esac
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20700 ac_status=$?
20701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } >/dev/null && {
20706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 }; then
20709 ac_header_preproc=yes
20710 else
20711 echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20714 ac_header_preproc=no
20717 rm -f conftest.err conftest.$ac_ext
20718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20719 echo "${ECHO_T}$ac_header_preproc" >&6; }
20721 # So? What about this header?
20722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20723 yes:no: )
20724 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
20725 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
20726 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
20727 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
20728 ac_header_preproc=yes
20730 no:yes:* )
20731 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
20732 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
20733 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
20734 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
20735 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
20736 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
20737 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
20738 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
20739 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
20740 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
20741 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
20742 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
20745 esac
20746 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
20747 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
20748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20749 echo $ECHO_N "(cached) $ECHO_C" >&6
20750 else
20751 eval "$as_ac_Header=\$ac_header_preproc"
20753 ac_res=`eval echo '${'$as_ac_Header'}'`
20754 { echo "$as_me:$LINENO: result: $ac_res" >&5
20755 echo "${ECHO_T}$ac_res" >&6; }
20758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20759 OGG_HEADER_FOUND=1
20760 else
20761 OGG_HEADER_FOUND=0
20766 else
20767 if test "x" != "x" ; then
20768 if test "${ac_cv_header_+set}" = set; then
20769 { echo "$as_me:$LINENO: checking for " >&5
20770 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20771 if test "${ac_cv_header_+set}" = set; then
20772 echo $ECHO_N "(cached) $ECHO_C" >&6
20774 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20775 echo "${ECHO_T}$ac_cv_header_" >&6; }
20776 else
20777 # Is the header compilable?
20778 { echo "$as_me:$LINENO: checking usability" >&5
20779 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20780 cat >conftest.$ac_ext <<_ACEOF
20781 /* confdefs.h. */
20782 _ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20786 $ac_includes_default
20787 #include <>
20788 _ACEOF
20789 rm -f conftest.$ac_objext
20790 if { (ac_try="$ac_compile"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20794 esac
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_compile") 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } && {
20803 test -z "$ac_c_werror_flag" ||
20804 test ! -s conftest.err
20805 } && test -s conftest.$ac_objext; then
20806 ac_header_compiler=yes
20807 else
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 ac_header_compiler=no
20814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20816 echo "${ECHO_T}$ac_header_compiler" >&6; }
20818 # Is the header present?
20819 { echo "$as_me:$LINENO: checking presence" >&5
20820 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h. */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 #include <>
20828 _ACEOF
20829 if { (ac_try="$ac_cpp conftest.$ac_ext"
20830 case "(($ac_try" in
20831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832 *) ac_try_echo=$ac_try;;
20833 esac
20834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20836 ac_status=$?
20837 grep -v '^ *+' conftest.er1 >conftest.err
20838 rm -f conftest.er1
20839 cat conftest.err >&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } >/dev/null && {
20842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20843 test ! -s conftest.err
20844 }; then
20845 ac_header_preproc=yes
20846 else
20847 echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20850 ac_header_preproc=no
20853 rm -f conftest.err conftest.$ac_ext
20854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20855 echo "${ECHO_T}$ac_header_preproc" >&6; }
20857 # So? What about this header?
20858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20859 yes:no: )
20860 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20861 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20862 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20863 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20864 ac_header_preproc=yes
20866 no:yes:* )
20867 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20868 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20869 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20870 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20871 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20872 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20873 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20874 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20875 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20876 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20877 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20878 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20881 esac
20882 { echo "$as_me:$LINENO: checking for " >&5
20883 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20884 if test "${ac_cv_header_+set}" = set; then
20885 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 else
20887 ac_cv_header_=$ac_header_preproc
20889 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20890 echo "${ECHO_T}$ac_cv_header_" >&6; }
20893 if test $ac_cv_header_ = yes; then
20894 OGG_HEADER_FOUND=1
20895 else
20896 OGG_HEADER_FOUND=0
20902 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
20903 if test ! -z "${OGG_MANDATORY}" ;
20904 then
20905 { echo "$as_me:$LINENO: ***" >&5
20906 echo "$as_me: ***" >&6;}
20907 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
20908 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
20909 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
20910 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
20911 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
20912 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
20913 exit 1
20915 OGG_LIB=""
20916 OGG_INCLUDE=""
20917 PBX_OGG=0
20918 else
20919 PBX_OGG=1
20921 cat >>confdefs.h <<_ACEOF
20922 #define HAVE_OGG 1
20923 _ACEOF
20926 elif test ! -z "${OGG_MANDATORY}";
20927 then
20928 { echo "$as_me:$LINENO: ***" >&5
20929 echo "$as_me: ***" >&6;}
20930 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
20931 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
20932 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20933 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20934 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
20935 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
20936 exit 1
20942 if test "${USE_OSPTK}" != "no"; then
20943 pbxlibdir=""
20944 if test "x${OSPTK_DIR}" != "x"; then
20945 if test -d ${OSPTK_DIR}/lib; then
20946 pbxlibdir="-L${OSPTK_DIR}/lib"
20947 else
20948 pbxlibdir="-L${OSPTK_DIR}"
20951 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
20952 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
20953 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20955 else
20956 ac_check_lib_save_LIBS=$LIBS
20957 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
20958 cat >conftest.$ac_ext <<_ACEOF
20959 /* confdefs.h. */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20965 /* Override any GCC internal prototype to avoid an error.
20966 Use char because int might match the return type of a GCC
20967 builtin and then its argument prototype would still apply. */
20968 #ifdef __cplusplus
20969 extern "C"
20970 #endif
20971 char OSPPCryptoDecrypt ();
20973 main ()
20975 return OSPPCryptoDecrypt ();
20977 return 0;
20979 _ACEOF
20980 rm -f conftest.$ac_objext conftest$ac_exeext
20981 if { (ac_try="$ac_link"
20982 case "(($ac_try" in
20983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984 *) ac_try_echo=$ac_try;;
20985 esac
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987 (eval "$ac_link") 2>conftest.er1
20988 ac_status=$?
20989 grep -v '^ *+' conftest.er1 >conftest.err
20990 rm -f conftest.er1
20991 cat conftest.err >&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } && {
20994 test -z "$ac_c_werror_flag" ||
20995 test ! -s conftest.err
20996 } && test -s conftest$ac_exeext &&
20997 $as_test_x conftest$ac_exeext; then
20998 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
20999 else
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
21006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21007 conftest$ac_exeext conftest.$ac_ext
21008 LIBS=$ac_check_lib_save_LIBS
21010 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
21011 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
21012 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
21013 AST_OSPTK_FOUND=yes
21014 else
21015 AST_OSPTK_FOUND=no
21019 if test "${AST_OSPTK_FOUND}" = "yes"; then
21020 OSPTK_LIB="-losptk -lcrypto -lssl"
21021 OSPTK_HEADER_FOUND="1"
21022 if test "x${OSPTK_DIR}" != "x"; then
21023 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
21024 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
21025 if test "xosp/osp.h" != "x" ; then
21026 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
21027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21028 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21029 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 ac_res=`eval echo '${'$as_ac_Header'}'`
21034 { echo "$as_me:$LINENO: result: $ac_res" >&5
21035 echo "${ECHO_T}$ac_res" >&6; }
21036 else
21037 # Is the header compilable?
21038 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
21039 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
21040 cat >conftest.$ac_ext <<_ACEOF
21041 /* confdefs.h. */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046 $ac_includes_default
21047 #include <${OSPTK_DIR}/include/osp/osp.h>
21048 _ACEOF
21049 rm -f conftest.$ac_objext
21050 if { (ac_try="$ac_compile"
21051 case "(($ac_try" in
21052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21054 esac
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056 (eval "$ac_compile") 2>conftest.er1
21057 ac_status=$?
21058 grep -v '^ *+' conftest.er1 >conftest.err
21059 rm -f conftest.er1
21060 cat conftest.err >&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest.$ac_objext; then
21066 ac_header_compiler=yes
21067 else
21068 echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21071 ac_header_compiler=no
21074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21076 echo "${ECHO_T}$ac_header_compiler" >&6; }
21078 # Is the header present?
21079 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
21080 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
21081 cat >conftest.$ac_ext <<_ACEOF
21082 /* confdefs.h. */
21083 _ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h. */
21087 #include <${OSPTK_DIR}/include/osp/osp.h>
21088 _ACEOF
21089 if { (ac_try="$ac_cpp conftest.$ac_ext"
21090 case "(($ac_try" in
21091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092 *) ac_try_echo=$ac_try;;
21093 esac
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21096 ac_status=$?
21097 grep -v '^ *+' conftest.er1 >conftest.err
21098 rm -f conftest.er1
21099 cat conftest.err >&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } >/dev/null && {
21102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21103 test ! -s conftest.err
21104 }; then
21105 ac_header_preproc=yes
21106 else
21107 echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21110 ac_header_preproc=no
21113 rm -f conftest.err conftest.$ac_ext
21114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21115 echo "${ECHO_T}$ac_header_preproc" >&6; }
21117 # So? What about this header?
21118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21119 yes:no: )
21120 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21121 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
21123 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
21124 ac_header_preproc=yes
21126 no:yes:* )
21127 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
21128 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
21129 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
21130 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
21132 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21134 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
21136 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
21137 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
21138 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
21141 esac
21142 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21143 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21146 else
21147 eval "$as_ac_Header=\$ac_header_preproc"
21149 ac_res=`eval echo '${'$as_ac_Header'}'`
21150 { echo "$as_me:$LINENO: result: $ac_res" >&5
21151 echo "${ECHO_T}$ac_res" >&6; }
21154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21155 OSPTK_HEADER_FOUND=1
21156 else
21157 OSPTK_HEADER_FOUND=0
21162 else
21163 if test "xosp/osp.h" != "x" ; then
21164 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21165 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21166 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21167 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
21170 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21171 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21172 else
21173 # Is the header compilable?
21174 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
21175 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
21176 cat >conftest.$ac_ext <<_ACEOF
21177 /* confdefs.h. */
21178 _ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 $ac_includes_default
21183 #include <osp/osp.h>
21184 _ACEOF
21185 rm -f conftest.$ac_objext
21186 if { (ac_try="$ac_compile"
21187 case "(($ac_try" in
21188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21190 esac
21191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21192 (eval "$ac_compile") 2>conftest.er1
21193 ac_status=$?
21194 grep -v '^ *+' conftest.er1 >conftest.err
21195 rm -f conftest.er1
21196 cat conftest.err >&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } && {
21199 test -z "$ac_c_werror_flag" ||
21200 test ! -s conftest.err
21201 } && test -s conftest.$ac_objext; then
21202 ac_header_compiler=yes
21203 else
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 ac_header_compiler=no
21210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21212 echo "${ECHO_T}$ac_header_compiler" >&6; }
21214 # Is the header present?
21215 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
21216 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
21217 cat >conftest.$ac_ext <<_ACEOF
21218 /* confdefs.h. */
21219 _ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h. */
21223 #include <osp/osp.h>
21224 _ACEOF
21225 if { (ac_try="$ac_cpp conftest.$ac_ext"
21226 case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21229 esac
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21232 ac_status=$?
21233 grep -v '^ *+' conftest.er1 >conftest.err
21234 rm -f conftest.er1
21235 cat conftest.err >&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } >/dev/null && {
21238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21239 test ! -s conftest.err
21240 }; then
21241 ac_header_preproc=yes
21242 else
21243 echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21246 ac_header_preproc=no
21249 rm -f conftest.err conftest.$ac_ext
21250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21251 echo "${ECHO_T}$ac_header_preproc" >&6; }
21253 # So? What about this header?
21254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21255 yes:no: )
21256 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21257 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21258 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
21259 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
21260 ac_header_preproc=yes
21262 no:yes:* )
21263 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
21264 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
21265 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
21266 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
21267 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
21268 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21270 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
21272 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
21273 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
21274 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
21277 esac
21278 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21279 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21280 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21283 ac_cv_header_osp_osp_h=$ac_header_preproc
21285 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21286 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21289 if test $ac_cv_header_osp_osp_h = yes; then
21290 OSPTK_HEADER_FOUND=1
21291 else
21292 OSPTK_HEADER_FOUND=0
21298 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
21299 if test ! -z "${OSPTK_MANDATORY}" ;
21300 then
21301 { echo "$as_me:$LINENO: ***" >&5
21302 echo "$as_me: ***" >&6;}
21303 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
21304 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
21305 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
21306 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
21307 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21308 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21309 exit 1
21311 OSPTK_LIB=""
21312 OSPTK_INCLUDE=""
21313 PBX_OSPTK=0
21314 else
21315 PBX_OSPTK=1
21317 cat >>confdefs.h <<_ACEOF
21318 #define HAVE_OSPTK 1
21319 _ACEOF
21322 elif test ! -z "${OSPTK_MANDATORY}";
21323 then
21324 { echo "$as_me:$LINENO: ***" >&5
21325 echo "$as_me: ***" >&6;}
21326 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
21327 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
21328 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21329 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21330 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21331 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21332 exit 1
21337 PBX_OSS=0
21338 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21339 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21340 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21341 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21342 echo $ECHO_N "(cached) $ECHO_C" >&6
21344 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21345 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21346 else
21347 # Is the header compilable?
21348 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
21349 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
21350 cat >conftest.$ac_ext <<_ACEOF
21351 /* confdefs.h. */
21352 _ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21356 $ac_includes_default
21357 #include <linux/soundcard.h>
21358 _ACEOF
21359 rm -f conftest.$ac_objext
21360 if { (ac_try="$ac_compile"
21361 case "(($ac_try" in
21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21364 esac
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366 (eval "$ac_compile") 2>conftest.er1
21367 ac_status=$?
21368 grep -v '^ *+' conftest.er1 >conftest.err
21369 rm -f conftest.er1
21370 cat conftest.err >&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } && {
21373 test -z "$ac_c_werror_flag" ||
21374 test ! -s conftest.err
21375 } && test -s conftest.$ac_objext; then
21376 ac_header_compiler=yes
21377 else
21378 echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21381 ac_header_compiler=no
21384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21386 echo "${ECHO_T}$ac_header_compiler" >&6; }
21388 # Is the header present?
21389 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
21390 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
21391 cat >conftest.$ac_ext <<_ACEOF
21392 /* confdefs.h. */
21393 _ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21397 #include <linux/soundcard.h>
21398 _ACEOF
21399 if { (ac_try="$ac_cpp conftest.$ac_ext"
21400 case "(($ac_try" in
21401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402 *) ac_try_echo=$ac_try;;
21403 esac
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21406 ac_status=$?
21407 grep -v '^ *+' conftest.er1 >conftest.err
21408 rm -f conftest.er1
21409 cat conftest.err >&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } >/dev/null && {
21412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21413 test ! -s conftest.err
21414 }; then
21415 ac_header_preproc=yes
21416 else
21417 echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21420 ac_header_preproc=no
21423 rm -f conftest.err conftest.$ac_ext
21424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21425 echo "${ECHO_T}$ac_header_preproc" >&6; }
21427 # So? What about this header?
21428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21429 yes:no: )
21430 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21431 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21432 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
21433 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
21434 ac_header_preproc=yes
21436 no:yes:* )
21437 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
21438 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
21439 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
21440 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
21442 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21444 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
21446 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
21448 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
21451 esac
21452 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21453 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21454 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21455 echo $ECHO_N "(cached) $ECHO_C" >&6
21456 else
21457 ac_cv_header_linux_soundcard_h=$ac_header_preproc
21459 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21460 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21463 if test $ac_cv_header_linux_soundcard_h = yes; then
21465 PBX_OSS=1
21467 cat >>confdefs.h <<_ACEOF
21468 #define HAVE_OSS 1
21469 _ACEOF
21475 if test "$PBX_OSS" = "0"; then
21476 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21477 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
21478 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
21479 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21482 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
21483 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
21484 else
21485 # Is the header compilable?
21486 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
21487 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
21488 cat >conftest.$ac_ext <<_ACEOF
21489 /* confdefs.h. */
21490 _ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h. */
21494 $ac_includes_default
21495 #include <sys/soundcard.h>
21496 _ACEOF
21497 rm -f conftest.$ac_objext
21498 if { (ac_try="$ac_compile"
21499 case "(($ac_try" in
21500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501 *) ac_try_echo=$ac_try;;
21502 esac
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_compile") 2>conftest.er1
21505 ac_status=$?
21506 grep -v '^ *+' conftest.er1 >conftest.err
21507 rm -f conftest.er1
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } && {
21511 test -z "$ac_c_werror_flag" ||
21512 test ! -s conftest.err
21513 } && test -s conftest.$ac_objext; then
21514 ac_header_compiler=yes
21515 else
21516 echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21519 ac_header_compiler=no
21522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21524 echo "${ECHO_T}$ac_header_compiler" >&6; }
21526 # Is the header present?
21527 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
21528 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
21529 cat >conftest.$ac_ext <<_ACEOF
21530 /* confdefs.h. */
21531 _ACEOF
21532 cat confdefs.h >>conftest.$ac_ext
21533 cat >>conftest.$ac_ext <<_ACEOF
21534 /* end confdefs.h. */
21535 #include <sys/soundcard.h>
21536 _ACEOF
21537 if { (ac_try="$ac_cpp conftest.$ac_ext"
21538 case "(($ac_try" in
21539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540 *) ac_try_echo=$ac_try;;
21541 esac
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21544 ac_status=$?
21545 grep -v '^ *+' conftest.er1 >conftest.err
21546 rm -f conftest.er1
21547 cat conftest.err >&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } >/dev/null && {
21550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21551 test ! -s conftest.err
21552 }; then
21553 ac_header_preproc=yes
21554 else
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 ac_header_preproc=no
21561 rm -f conftest.err conftest.$ac_ext
21562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21563 echo "${ECHO_T}$ac_header_preproc" >&6; }
21565 # So? What about this header?
21566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21567 yes:no: )
21568 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21569 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21570 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
21571 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
21572 ac_header_preproc=yes
21574 no:yes:* )
21575 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
21576 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
21577 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
21578 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
21579 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
21580 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
21581 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21582 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21583 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
21584 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
21585 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
21586 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
21589 esac
21590 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
21591 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
21592 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21594 else
21595 ac_cv_header_sys_soundcard_h=$ac_header_preproc
21597 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
21598 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
21601 if test $ac_cv_header_sys_soundcard_h = yes; then
21603 PBX_OSS=1
21605 cat >>confdefs.h <<_ACEOF
21606 #define HAVE_OSS 1
21607 _ACEOF
21614 if test "$PBX_OSS" = "0"; then
21616 if test "${USE_OSS}" != "no"; then
21617 pbxlibdir=""
21618 if test "x${OSS_DIR}" != "x"; then
21619 if test -d ${OSS_DIR}/lib; then
21620 pbxlibdir="-L${OSS_DIR}/lib"
21621 else
21622 pbxlibdir="-L${OSS_DIR}"
21625 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
21626 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
21627 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
21628 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 else
21630 ac_check_lib_save_LIBS=$LIBS
21631 LIBS="-lossaudio ${pbxlibdir} $LIBS"
21632 cat >conftest.$ac_ext <<_ACEOF
21633 /* confdefs.h. */
21634 _ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21639 /* Override any GCC internal prototype to avoid an error.
21640 Use char because int might match the return type of a GCC
21641 builtin and then its argument prototype would still apply. */
21642 #ifdef __cplusplus
21643 extern "C"
21644 #endif
21645 char oss_ioctl_mixer ();
21647 main ()
21649 return oss_ioctl_mixer ();
21651 return 0;
21653 _ACEOF
21654 rm -f conftest.$ac_objext conftest$ac_exeext
21655 if { (ac_try="$ac_link"
21656 case "(($ac_try" in
21657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658 *) ac_try_echo=$ac_try;;
21659 esac
21660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21661 (eval "$ac_link") 2>conftest.er1
21662 ac_status=$?
21663 grep -v '^ *+' conftest.er1 >conftest.err
21664 rm -f conftest.er1
21665 cat conftest.err >&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } && {
21668 test -z "$ac_c_werror_flag" ||
21669 test ! -s conftest.err
21670 } && test -s conftest$ac_exeext &&
21671 $as_test_x conftest$ac_exeext; then
21672 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
21673 else
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21677 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
21680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21681 conftest$ac_exeext conftest.$ac_ext
21682 LIBS=$ac_check_lib_save_LIBS
21684 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
21685 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
21686 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
21687 AST_OSS_FOUND=yes
21688 else
21689 AST_OSS_FOUND=no
21693 if test "${AST_OSS_FOUND}" = "yes"; then
21694 OSS_LIB="-lossaudio "
21695 OSS_HEADER_FOUND="1"
21696 if test "x${OSS_DIR}" != "x"; then
21697 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
21698 OSS_INCLUDE="-I${OSS_DIR}/include"
21699 if test "xsoundcard.h" != "x" ; then
21700 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
21701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21702 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
21703 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
21704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21705 echo $ECHO_N "(cached) $ECHO_C" >&6
21707 ac_res=`eval echo '${'$as_ac_Header'}'`
21708 { echo "$as_me:$LINENO: result: $ac_res" >&5
21709 echo "${ECHO_T}$ac_res" >&6; }
21710 else
21711 # Is the header compilable?
21712 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
21713 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
21714 cat >conftest.$ac_ext <<_ACEOF
21715 /* confdefs.h. */
21716 _ACEOF
21717 cat confdefs.h >>conftest.$ac_ext
21718 cat >>conftest.$ac_ext <<_ACEOF
21719 /* end confdefs.h. */
21720 $ac_includes_default
21721 #include <${OSS_DIR}/include/soundcard.h>
21722 _ACEOF
21723 rm -f conftest.$ac_objext
21724 if { (ac_try="$ac_compile"
21725 case "(($ac_try" in
21726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727 *) ac_try_echo=$ac_try;;
21728 esac
21729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21730 (eval "$ac_compile") 2>conftest.er1
21731 ac_status=$?
21732 grep -v '^ *+' conftest.er1 >conftest.err
21733 rm -f conftest.er1
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } && {
21737 test -z "$ac_c_werror_flag" ||
21738 test ! -s conftest.err
21739 } && test -s conftest.$ac_objext; then
21740 ac_header_compiler=yes
21741 else
21742 echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21745 ac_header_compiler=no
21748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21750 echo "${ECHO_T}$ac_header_compiler" >&6; }
21752 # Is the header present?
21753 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
21754 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
21755 cat >conftest.$ac_ext <<_ACEOF
21756 /* confdefs.h. */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21761 #include <${OSS_DIR}/include/soundcard.h>
21762 _ACEOF
21763 if { (ac_try="$ac_cpp conftest.$ac_ext"
21764 case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21767 esac
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21770 ac_status=$?
21771 grep -v '^ *+' conftest.er1 >conftest.err
21772 rm -f conftest.er1
21773 cat conftest.err >&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } >/dev/null && {
21776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21777 test ! -s conftest.err
21778 }; then
21779 ac_header_preproc=yes
21780 else
21781 echo "$as_me: failed program was:" >&5
21782 sed 's/^/| /' conftest.$ac_ext >&5
21784 ac_header_preproc=no
21787 rm -f conftest.err conftest.$ac_ext
21788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21789 echo "${ECHO_T}$ac_header_preproc" >&6; }
21791 # So? What about this header?
21792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21793 yes:no: )
21794 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21795 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21796 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
21797 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
21798 ac_header_preproc=yes
21800 no:yes:* )
21801 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
21802 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
21804 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
21806 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
21807 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21808 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21809 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
21810 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
21811 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
21812 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
21815 esac
21816 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
21817 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
21818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21819 echo $ECHO_N "(cached) $ECHO_C" >&6
21820 else
21821 eval "$as_ac_Header=\$ac_header_preproc"
21823 ac_res=`eval echo '${'$as_ac_Header'}'`
21824 { echo "$as_me:$LINENO: result: $ac_res" >&5
21825 echo "${ECHO_T}$ac_res" >&6; }
21828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21829 OSS_HEADER_FOUND=1
21830 else
21831 OSS_HEADER_FOUND=0
21836 else
21837 if test "xsoundcard.h" != "x" ; then
21838 if test "${ac_cv_header_soundcard_h+set}" = set; then
21839 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
21840 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
21841 if test "${ac_cv_header_soundcard_h+set}" = set; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21844 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
21845 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
21846 else
21847 # Is the header compilable?
21848 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
21849 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
21850 cat >conftest.$ac_ext <<_ACEOF
21851 /* confdefs.h. */
21852 _ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h. */
21856 $ac_includes_default
21857 #include <soundcard.h>
21858 _ACEOF
21859 rm -f conftest.$ac_objext
21860 if { (ac_try="$ac_compile"
21861 case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21864 esac
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_compile") 2>conftest.er1
21867 ac_status=$?
21868 grep -v '^ *+' conftest.er1 >conftest.err
21869 rm -f conftest.er1
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest.$ac_objext; then
21876 ac_header_compiler=yes
21877 else
21878 echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21881 ac_header_compiler=no
21884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21886 echo "${ECHO_T}$ac_header_compiler" >&6; }
21888 # Is the header present?
21889 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
21890 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
21891 cat >conftest.$ac_ext <<_ACEOF
21892 /* confdefs.h. */
21893 _ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 #include <soundcard.h>
21898 _ACEOF
21899 if { (ac_try="$ac_cpp conftest.$ac_ext"
21900 case "(($ac_try" in
21901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902 *) ac_try_echo=$ac_try;;
21903 esac
21904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21906 ac_status=$?
21907 grep -v '^ *+' conftest.er1 >conftest.err
21908 rm -f conftest.er1
21909 cat conftest.err >&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); } >/dev/null && {
21912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21913 test ! -s conftest.err
21914 }; then
21915 ac_header_preproc=yes
21916 else
21917 echo "$as_me: failed program was:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21920 ac_header_preproc=no
21923 rm -f conftest.err conftest.$ac_ext
21924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21925 echo "${ECHO_T}$ac_header_preproc" >&6; }
21927 # So? What about this header?
21928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21929 yes:no: )
21930 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21931 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21932 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
21933 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
21934 ac_header_preproc=yes
21936 no:yes:* )
21937 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
21938 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
21939 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
21940 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
21941 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
21942 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
21943 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21944 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
21946 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
21947 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
21948 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
21951 esac
21952 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
21953 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
21954 if test "${ac_cv_header_soundcard_h+set}" = set; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21956 else
21957 ac_cv_header_soundcard_h=$ac_header_preproc
21959 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
21960 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
21963 if test $ac_cv_header_soundcard_h = yes; then
21964 OSS_HEADER_FOUND=1
21965 else
21966 OSS_HEADER_FOUND=0
21972 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
21973 if test ! -z "${OSS_MANDATORY}" ;
21974 then
21975 { echo "$as_me:$LINENO: ***" >&5
21976 echo "$as_me: ***" >&6;}
21977 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
21978 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
21979 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
21980 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
21981 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
21982 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
21983 exit 1
21985 OSS_LIB=""
21986 OSS_INCLUDE=""
21987 PBX_OSS=0
21988 else
21989 PBX_OSS=1
21991 cat >>confdefs.h <<_ACEOF
21992 #define HAVE_OSS 1
21993 _ACEOF
21996 elif test ! -z "${OSS_MANDATORY}";
21997 then
21998 { echo "$as_me:$LINENO: ***" >&5
21999 echo "$as_me: ***" >&6;}
22000 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
22001 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
22002 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22003 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22004 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22005 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
22006 exit 1
22012 PG_CONFIG=No
22013 if test "${USE_PGSQL}" != "no"; then
22014 if test "x${PGSQL_DIR}" != "x"; then
22015 if test -n "$ac_tool_prefix"; then
22016 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22017 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22020 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22021 echo $ECHO_N "(cached) $ECHO_C" >&6
22022 else
22023 case $PG_CONFIG in
22024 [\\/]* | ?:[\\/]*)
22025 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22029 for as_dir in ${PGSQL_DIR}/bin
22031 IFS=$as_save_IFS
22032 test -z "$as_dir" && as_dir=.
22033 for ac_exec_ext in '' $ac_executable_extensions; do
22034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22035 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22037 break 2
22039 done
22040 done
22041 IFS=$as_save_IFS
22044 esac
22046 PG_CONFIG=$ac_cv_path_PG_CONFIG
22047 if test -n "$PG_CONFIG"; then
22048 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22049 echo "${ECHO_T}$PG_CONFIG" >&6; }
22050 else
22051 { echo "$as_me:$LINENO: result: no" >&5
22052 echo "${ECHO_T}no" >&6; }
22057 if test -z "$ac_cv_path_PG_CONFIG"; then
22058 ac_pt_PG_CONFIG=$PG_CONFIG
22059 # Extract the first word of "pg_config", so it can be a program name with args.
22060 set dummy pg_config; ac_word=$2
22061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22063 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22064 echo $ECHO_N "(cached) $ECHO_C" >&6
22065 else
22066 case $ac_pt_PG_CONFIG in
22067 [\\/]* | ?:[\\/]*)
22068 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22072 for as_dir in ${PGSQL_DIR}/bin
22074 IFS=$as_save_IFS
22075 test -z "$as_dir" && as_dir=.
22076 for ac_exec_ext in '' $ac_executable_extensions; do
22077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22078 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22080 break 2
22082 done
22083 done
22084 IFS=$as_save_IFS
22087 esac
22089 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22090 if test -n "$ac_pt_PG_CONFIG"; then
22091 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22092 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22093 else
22094 { echo "$as_me:$LINENO: result: no" >&5
22095 echo "${ECHO_T}no" >&6; }
22098 if test "x$ac_pt_PG_CONFIG" = x; then
22099 PG_CONFIG="No"
22100 else
22101 case $cross_compiling:$ac_tool_warned in
22102 yes:)
22103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22104 whose name does not start with the host triplet. If you think this
22105 configuration is useful to you, please write to autoconf@gnu.org." >&5
22106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22107 whose name does not start with the host triplet. If you think this
22108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22109 ac_tool_warned=yes ;;
22110 esac
22111 PG_CONFIG=$ac_pt_PG_CONFIG
22113 else
22114 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22117 if test x"${PG_CONFIG}" = xNo; then
22118 { echo "$as_me:$LINENO: ***" >&5
22119 echo "$as_me: ***" >&6;}
22120 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
22121 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
22122 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
22123 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
22124 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22125 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22126 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22127 echo "$as_me: *** including --without-postgres" >&6;}
22128 exit 1
22130 else
22131 if test -n "$ac_tool_prefix"; then
22132 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22133 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22136 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22138 else
22139 case $PG_CONFIG in
22140 [\\/]* | ?:[\\/]*)
22141 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22145 for as_dir in $PATH
22147 IFS=$as_save_IFS
22148 test -z "$as_dir" && as_dir=.
22149 for ac_exec_ext in '' $ac_executable_extensions; do
22150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22151 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22153 break 2
22155 done
22156 done
22157 IFS=$as_save_IFS
22160 esac
22162 PG_CONFIG=$ac_cv_path_PG_CONFIG
22163 if test -n "$PG_CONFIG"; then
22164 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22165 echo "${ECHO_T}$PG_CONFIG" >&6; }
22166 else
22167 { echo "$as_me:$LINENO: result: no" >&5
22168 echo "${ECHO_T}no" >&6; }
22173 if test -z "$ac_cv_path_PG_CONFIG"; then
22174 ac_pt_PG_CONFIG=$PG_CONFIG
22175 # Extract the first word of "pg_config", so it can be a program name with args.
22176 set dummy pg_config; ac_word=$2
22177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22179 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22180 echo $ECHO_N "(cached) $ECHO_C" >&6
22181 else
22182 case $ac_pt_PG_CONFIG in
22183 [\\/]* | ?:[\\/]*)
22184 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22188 for as_dir in $PATH
22190 IFS=$as_save_IFS
22191 test -z "$as_dir" && as_dir=.
22192 for ac_exec_ext in '' $ac_executable_extensions; do
22193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22194 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22196 break 2
22198 done
22199 done
22200 IFS=$as_save_IFS
22203 esac
22205 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22206 if test -n "$ac_pt_PG_CONFIG"; then
22207 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22208 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22209 else
22210 { echo "$as_me:$LINENO: result: no" >&5
22211 echo "${ECHO_T}no" >&6; }
22214 if test "x$ac_pt_PG_CONFIG" = x; then
22215 PG_CONFIG="No"
22216 else
22217 case $cross_compiling:$ac_tool_warned in
22218 yes:)
22219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22220 whose name does not start with the host triplet. If you think this
22221 configuration is useful to you, please write to autoconf@gnu.org." >&5
22222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22223 whose name does not start with the host triplet. If you think this
22224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22225 ac_tool_warned=yes ;;
22226 esac
22227 PG_CONFIG=$ac_pt_PG_CONFIG
22229 else
22230 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22235 if test "${PG_CONFIG}" != No; then
22236 PGSQL_libdir=`pg_config --libdir`
22237 PGSQL_includedir=`pg_config --includedir`
22239 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
22240 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
22241 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22243 else
22244 ac_check_lib_save_LIBS=$LIBS
22245 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
22246 cat >conftest.$ac_ext <<_ACEOF
22247 /* confdefs.h. */
22248 _ACEOF
22249 cat confdefs.h >>conftest.$ac_ext
22250 cat >>conftest.$ac_ext <<_ACEOF
22251 /* end confdefs.h. */
22253 /* Override any GCC internal prototype to avoid an error.
22254 Use char because int might match the return type of a GCC
22255 builtin and then its argument prototype would still apply. */
22256 #ifdef __cplusplus
22257 extern "C"
22258 #endif
22259 char PQexec ();
22261 main ()
22263 return PQexec ();
22265 return 0;
22267 _ACEOF
22268 rm -f conftest.$ac_objext conftest$ac_exeext
22269 if { (ac_try="$ac_link"
22270 case "(($ac_try" in
22271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22272 *) ac_try_echo=$ac_try;;
22273 esac
22274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22275 (eval "$ac_link") 2>conftest.er1
22276 ac_status=$?
22277 grep -v '^ *+' conftest.er1 >conftest.err
22278 rm -f conftest.er1
22279 cat conftest.err >&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } && {
22282 test -z "$ac_c_werror_flag" ||
22283 test ! -s conftest.err
22284 } && test -s conftest$ac_exeext &&
22285 $as_test_x conftest$ac_exeext; then
22286 ac_cv_lib_pq_PQexec=yes
22287 else
22288 echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22291 ac_cv_lib_pq_PQexec=no
22294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22295 conftest$ac_exeext conftest.$ac_ext
22296 LIBS=$ac_check_lib_save_LIBS
22298 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
22299 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
22300 if test $ac_cv_lib_pq_PQexec = yes; then
22302 cat >>confdefs.h <<_ACEOF
22303 #define HAVE_PGSQL 1
22304 _ACEOF
22309 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
22310 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
22311 PGSQL_INCLUDE="-I${PGSQL_includedir}"
22312 PBX_PGSQL=1
22313 elif test ! -z "${PGSQL_MANDATORY}";
22314 then
22315 { echo "$as_me:$LINENO: ***" >&5
22316 echo "$as_me: ***" >&6;}
22317 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22318 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22319 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22320 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22321 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22322 echo "$as_me: *** including --without-postgres" >&6;}
22323 exit 1
22325 elif test ! -z "${PGSQL_MANDATORY}";
22326 then
22327 { echo "$as_me:$LINENO: ***" >&5
22328 echo "$as_me: ***" >&6;}
22329 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22330 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22331 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22332 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22333 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22334 echo "$as_me: *** including --without-postgres" >&6;}
22335 exit 1
22339 if test "${USE_POPT}" != "no"; then
22340 pbxlibdir=""
22341 if test "x${POPT_DIR}" != "x"; then
22342 if test -d ${POPT_DIR}/lib; then
22343 pbxlibdir="-L${POPT_DIR}/lib"
22344 else
22345 pbxlibdir="-L${POPT_DIR}"
22348 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
22349 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
22350 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
22351 echo $ECHO_N "(cached) $ECHO_C" >&6
22352 else
22353 ac_check_lib_save_LIBS=$LIBS
22354 LIBS="-lpopt ${pbxlibdir} $LIBS"
22355 cat >conftest.$ac_ext <<_ACEOF
22356 /* confdefs.h. */
22357 _ACEOF
22358 cat confdefs.h >>conftest.$ac_ext
22359 cat >>conftest.$ac_ext <<_ACEOF
22360 /* end confdefs.h. */
22362 /* Override any GCC internal prototype to avoid an error.
22363 Use char because int might match the return type of a GCC
22364 builtin and then its argument prototype would still apply. */
22365 #ifdef __cplusplus
22366 extern "C"
22367 #endif
22368 char poptStrerror ();
22370 main ()
22372 return poptStrerror ();
22374 return 0;
22376 _ACEOF
22377 rm -f conftest.$ac_objext conftest$ac_exeext
22378 if { (ac_try="$ac_link"
22379 case "(($ac_try" in
22380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22382 esac
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_link") 2>conftest.er1
22385 ac_status=$?
22386 grep -v '^ *+' conftest.er1 >conftest.err
22387 rm -f conftest.er1
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } && {
22391 test -z "$ac_c_werror_flag" ||
22392 test ! -s conftest.err
22393 } && test -s conftest$ac_exeext &&
22394 $as_test_x conftest$ac_exeext; then
22395 ac_cv_lib_popt_poptStrerror=yes
22396 else
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22400 ac_cv_lib_popt_poptStrerror=no
22403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22404 conftest$ac_exeext conftest.$ac_ext
22405 LIBS=$ac_check_lib_save_LIBS
22407 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
22408 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
22409 if test $ac_cv_lib_popt_poptStrerror = yes; then
22410 AST_POPT_FOUND=yes
22411 else
22412 AST_POPT_FOUND=no
22416 if test "${AST_POPT_FOUND}" = "yes"; then
22417 POPT_LIB="-lpopt "
22418 POPT_HEADER_FOUND="1"
22419 if test "x${POPT_DIR}" != "x"; then
22420 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
22421 POPT_INCLUDE="-I${POPT_DIR}/include"
22422 if test "xpopt.h" != "x" ; then
22423 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
22424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22425 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
22426 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
22427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22428 echo $ECHO_N "(cached) $ECHO_C" >&6
22430 ac_res=`eval echo '${'$as_ac_Header'}'`
22431 { echo "$as_me:$LINENO: result: $ac_res" >&5
22432 echo "${ECHO_T}$ac_res" >&6; }
22433 else
22434 # Is the header compilable?
22435 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
22436 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
22437 cat >conftest.$ac_ext <<_ACEOF
22438 /* confdefs.h. */
22439 _ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h. */
22443 $ac_includes_default
22444 #include <${POPT_DIR}/include/popt.h>
22445 _ACEOF
22446 rm -f conftest.$ac_objext
22447 if { (ac_try="$ac_compile"
22448 case "(($ac_try" in
22449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450 *) ac_try_echo=$ac_try;;
22451 esac
22452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453 (eval "$ac_compile") 2>conftest.er1
22454 ac_status=$?
22455 grep -v '^ *+' conftest.er1 >conftest.err
22456 rm -f conftest.er1
22457 cat conftest.err >&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); } && {
22460 test -z "$ac_c_werror_flag" ||
22461 test ! -s conftest.err
22462 } && test -s conftest.$ac_objext; then
22463 ac_header_compiler=yes
22464 else
22465 echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22468 ac_header_compiler=no
22471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22473 echo "${ECHO_T}$ac_header_compiler" >&6; }
22475 # Is the header present?
22476 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
22477 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
22478 cat >conftest.$ac_ext <<_ACEOF
22479 /* confdefs.h. */
22480 _ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 #include <${POPT_DIR}/include/popt.h>
22485 _ACEOF
22486 if { (ac_try="$ac_cpp conftest.$ac_ext"
22487 case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22490 esac
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22493 ac_status=$?
22494 grep -v '^ *+' conftest.er1 >conftest.err
22495 rm -f conftest.er1
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } >/dev/null && {
22499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22500 test ! -s conftest.err
22501 }; then
22502 ac_header_preproc=yes
22503 else
22504 echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 ac_header_preproc=no
22510 rm -f conftest.err conftest.$ac_ext
22511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22512 echo "${ECHO_T}$ac_header_preproc" >&6; }
22514 # So? What about this header?
22515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22516 yes:no: )
22517 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22518 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22519 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
22520 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
22521 ac_header_preproc=yes
22523 no:yes:* )
22524 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
22525 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
22526 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
22527 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
22528 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
22529 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
22530 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
22531 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22532 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
22533 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
22534 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
22535 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
22538 esac
22539 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
22540 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
22541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22542 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 else
22544 eval "$as_ac_Header=\$ac_header_preproc"
22546 ac_res=`eval echo '${'$as_ac_Header'}'`
22547 { echo "$as_me:$LINENO: result: $ac_res" >&5
22548 echo "${ECHO_T}$ac_res" >&6; }
22551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22552 POPT_HEADER_FOUND=1
22553 else
22554 POPT_HEADER_FOUND=0
22559 else
22560 if test "xpopt.h" != "x" ; then
22561 if test "${ac_cv_header_popt_h+set}" = set; then
22562 { echo "$as_me:$LINENO: checking for popt.h" >&5
22563 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
22564 if test "${ac_cv_header_popt_h+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22567 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
22568 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
22569 else
22570 # Is the header compilable?
22571 { echo "$as_me:$LINENO: checking popt.h usability" >&5
22572 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
22573 cat >conftest.$ac_ext <<_ACEOF
22574 /* confdefs.h. */
22575 _ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22579 $ac_includes_default
22580 #include <popt.h>
22581 _ACEOF
22582 rm -f conftest.$ac_objext
22583 if { (ac_try="$ac_compile"
22584 case "(($ac_try" in
22585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586 *) ac_try_echo=$ac_try;;
22587 esac
22588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589 (eval "$ac_compile") 2>conftest.er1
22590 ac_status=$?
22591 grep -v '^ *+' conftest.er1 >conftest.err
22592 rm -f conftest.er1
22593 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } && {
22596 test -z "$ac_c_werror_flag" ||
22597 test ! -s conftest.err
22598 } && test -s conftest.$ac_objext; then
22599 ac_header_compiler=yes
22600 else
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22604 ac_header_compiler=no
22607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22609 echo "${ECHO_T}$ac_header_compiler" >&6; }
22611 # Is the header present?
22612 { echo "$as_me:$LINENO: checking popt.h presence" >&5
22613 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
22614 cat >conftest.$ac_ext <<_ACEOF
22615 /* confdefs.h. */
22616 _ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22620 #include <popt.h>
22621 _ACEOF
22622 if { (ac_try="$ac_cpp conftest.$ac_ext"
22623 case "(($ac_try" in
22624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625 *) ac_try_echo=$ac_try;;
22626 esac
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22629 ac_status=$?
22630 grep -v '^ *+' conftest.er1 >conftest.err
22631 rm -f conftest.er1
22632 cat conftest.err >&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } >/dev/null && {
22635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22636 test ! -s conftest.err
22637 }; then
22638 ac_header_preproc=yes
22639 else
22640 echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22643 ac_header_preproc=no
22646 rm -f conftest.err conftest.$ac_ext
22647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22648 echo "${ECHO_T}$ac_header_preproc" >&6; }
22650 # So? What about this header?
22651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22652 yes:no: )
22653 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22654 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22655 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
22656 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
22657 ac_header_preproc=yes
22659 no:yes:* )
22660 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
22661 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
22662 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
22663 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
22664 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
22665 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
22666 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
22667 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22668 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
22669 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
22670 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
22671 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
22674 esac
22675 { echo "$as_me:$LINENO: checking for popt.h" >&5
22676 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
22677 if test "${ac_cv_header_popt_h+set}" = set; then
22678 echo $ECHO_N "(cached) $ECHO_C" >&6
22679 else
22680 ac_cv_header_popt_h=$ac_header_preproc
22682 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
22683 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
22686 if test $ac_cv_header_popt_h = yes; then
22687 POPT_HEADER_FOUND=1
22688 else
22689 POPT_HEADER_FOUND=0
22695 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
22696 if test ! -z "${POPT_MANDATORY}" ;
22697 then
22698 { echo "$as_me:$LINENO: ***" >&5
22699 echo "$as_me: ***" >&6;}
22700 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
22701 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
22702 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
22703 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
22704 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
22705 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
22706 exit 1
22708 POPT_LIB=""
22709 POPT_INCLUDE=""
22710 PBX_POPT=0
22711 else
22712 PBX_POPT=1
22714 cat >>confdefs.h <<_ACEOF
22715 #define HAVE_POPT 1
22716 _ACEOF
22719 elif test ! -z "${POPT_MANDATORY}";
22720 then
22721 { echo "$as_me:$LINENO: ***" >&5
22722 echo "$as_me: ***" >&6;}
22723 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
22724 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
22725 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22726 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22727 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
22728 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
22729 exit 1
22735 if test "${USE_PRI}" != "no"; then
22736 pbxlibdir=""
22737 if test "x${PRI_DIR}" != "x"; then
22738 if test -d ${PRI_DIR}/lib; then
22739 pbxlibdir="-L${PRI_DIR}/lib"
22740 else
22741 pbxlibdir="-L${PRI_DIR}"
22744 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
22745 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
22746 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
22747 echo $ECHO_N "(cached) $ECHO_C" >&6
22748 else
22749 ac_check_lib_save_LIBS=$LIBS
22750 LIBS="-lpri ${pbxlibdir} $LIBS"
22751 cat >conftest.$ac_ext <<_ACEOF
22752 /* confdefs.h. */
22753 _ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h. */
22758 /* Override any GCC internal prototype to avoid an error.
22759 Use char because int might match the return type of a GCC
22760 builtin and then its argument prototype would still apply. */
22761 #ifdef __cplusplus
22762 extern "C"
22763 #endif
22764 char pri_call ();
22766 main ()
22768 return pri_call ();
22770 return 0;
22772 _ACEOF
22773 rm -f conftest.$ac_objext conftest$ac_exeext
22774 if { (ac_try="$ac_link"
22775 case "(($ac_try" in
22776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777 *) ac_try_echo=$ac_try;;
22778 esac
22779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780 (eval "$ac_link") 2>conftest.er1
22781 ac_status=$?
22782 grep -v '^ *+' conftest.er1 >conftest.err
22783 rm -f conftest.er1
22784 cat conftest.err >&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } && {
22787 test -z "$ac_c_werror_flag" ||
22788 test ! -s conftest.err
22789 } && test -s conftest$ac_exeext &&
22790 $as_test_x conftest$ac_exeext; then
22791 ac_cv_lib_pri_pri_call=yes
22792 else
22793 echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22796 ac_cv_lib_pri_pri_call=no
22799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22800 conftest$ac_exeext conftest.$ac_ext
22801 LIBS=$ac_check_lib_save_LIBS
22803 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
22804 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
22805 if test $ac_cv_lib_pri_pri_call = yes; then
22806 AST_PRI_FOUND=yes
22807 else
22808 AST_PRI_FOUND=no
22812 if test "${AST_PRI_FOUND}" = "yes"; then
22813 PRI_LIB="-lpri "
22814 PRI_HEADER_FOUND="1"
22815 if test "x${PRI_DIR}" != "x"; then
22816 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
22817 PRI_INCLUDE="-I${PRI_DIR}/include"
22818 if test "xlibpri.h" != "x" ; then
22819 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
22820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22821 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
22822 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
22823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22826 ac_res=`eval echo '${'$as_ac_Header'}'`
22827 { echo "$as_me:$LINENO: result: $ac_res" >&5
22828 echo "${ECHO_T}$ac_res" >&6; }
22829 else
22830 # Is the header compilable?
22831 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
22832 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
22833 cat >conftest.$ac_ext <<_ACEOF
22834 /* confdefs.h. */
22835 _ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22839 $ac_includes_default
22840 #include <${PRI_DIR}/include/libpri.h>
22841 _ACEOF
22842 rm -f conftest.$ac_objext
22843 if { (ac_try="$ac_compile"
22844 case "(($ac_try" in
22845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22846 *) ac_try_echo=$ac_try;;
22847 esac
22848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849 (eval "$ac_compile") 2>conftest.er1
22850 ac_status=$?
22851 grep -v '^ *+' conftest.er1 >conftest.err
22852 rm -f conftest.er1
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } && {
22856 test -z "$ac_c_werror_flag" ||
22857 test ! -s conftest.err
22858 } && test -s conftest.$ac_objext; then
22859 ac_header_compiler=yes
22860 else
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22864 ac_header_compiler=no
22867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22869 echo "${ECHO_T}$ac_header_compiler" >&6; }
22871 # Is the header present?
22872 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
22873 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
22874 cat >conftest.$ac_ext <<_ACEOF
22875 /* confdefs.h. */
22876 _ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22880 #include <${PRI_DIR}/include/libpri.h>
22881 _ACEOF
22882 if { (ac_try="$ac_cpp conftest.$ac_ext"
22883 case "(($ac_try" in
22884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885 *) ac_try_echo=$ac_try;;
22886 esac
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22889 ac_status=$?
22890 grep -v '^ *+' conftest.er1 >conftest.err
22891 rm -f conftest.er1
22892 cat conftest.err >&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } >/dev/null && {
22895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22896 test ! -s conftest.err
22897 }; then
22898 ac_header_preproc=yes
22899 else
22900 echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22903 ac_header_preproc=no
22906 rm -f conftest.err conftest.$ac_ext
22907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22908 echo "${ECHO_T}$ac_header_preproc" >&6; }
22910 # So? What about this header?
22911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22912 yes:no: )
22913 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
22914 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22915 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
22916 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
22917 ac_header_preproc=yes
22919 no:yes:* )
22920 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
22921 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
22922 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
22923 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
22924 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
22925 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
22926 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
22927 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
22928 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
22929 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
22930 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
22931 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
22934 esac
22935 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
22936 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
22937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22939 else
22940 eval "$as_ac_Header=\$ac_header_preproc"
22942 ac_res=`eval echo '${'$as_ac_Header'}'`
22943 { echo "$as_me:$LINENO: result: $ac_res" >&5
22944 echo "${ECHO_T}$ac_res" >&6; }
22947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22948 PRI_HEADER_FOUND=1
22949 else
22950 PRI_HEADER_FOUND=0
22955 else
22956 if test "xlibpri.h" != "x" ; then
22957 if test "${ac_cv_header_libpri_h+set}" = set; then
22958 { echo "$as_me:$LINENO: checking for libpri.h" >&5
22959 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
22960 if test "${ac_cv_header_libpri_h+set}" = set; then
22961 echo $ECHO_N "(cached) $ECHO_C" >&6
22963 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
22964 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
22965 else
22966 # Is the header compilable?
22967 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
22968 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
22969 cat >conftest.$ac_ext <<_ACEOF
22970 /* confdefs.h. */
22971 _ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h. */
22975 $ac_includes_default
22976 #include <libpri.h>
22977 _ACEOF
22978 rm -f conftest.$ac_objext
22979 if { (ac_try="$ac_compile"
22980 case "(($ac_try" in
22981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982 *) ac_try_echo=$ac_try;;
22983 esac
22984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22985 (eval "$ac_compile") 2>conftest.er1
22986 ac_status=$?
22987 grep -v '^ *+' conftest.er1 >conftest.err
22988 rm -f conftest.er1
22989 cat conftest.err >&5
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); } && {
22992 test -z "$ac_c_werror_flag" ||
22993 test ! -s conftest.err
22994 } && test -s conftest.$ac_objext; then
22995 ac_header_compiler=yes
22996 else
22997 echo "$as_me: failed program was:" >&5
22998 sed 's/^/| /' conftest.$ac_ext >&5
23000 ac_header_compiler=no
23003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23005 echo "${ECHO_T}$ac_header_compiler" >&6; }
23007 # Is the header present?
23008 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
23009 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
23010 cat >conftest.$ac_ext <<_ACEOF
23011 /* confdefs.h. */
23012 _ACEOF
23013 cat confdefs.h >>conftest.$ac_ext
23014 cat >>conftest.$ac_ext <<_ACEOF
23015 /* end confdefs.h. */
23016 #include <libpri.h>
23017 _ACEOF
23018 if { (ac_try="$ac_cpp conftest.$ac_ext"
23019 case "(($ac_try" in
23020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23021 *) ac_try_echo=$ac_try;;
23022 esac
23023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23025 ac_status=$?
23026 grep -v '^ *+' conftest.er1 >conftest.err
23027 rm -f conftest.er1
23028 cat conftest.err >&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); } >/dev/null && {
23031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23032 test ! -s conftest.err
23033 }; then
23034 ac_header_preproc=yes
23035 else
23036 echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23039 ac_header_preproc=no
23042 rm -f conftest.err conftest.$ac_ext
23043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23044 echo "${ECHO_T}$ac_header_preproc" >&6; }
23046 # So? What about this header?
23047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23048 yes:no: )
23049 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23050 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23051 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
23052 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
23053 ac_header_preproc=yes
23055 no:yes:* )
23056 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
23057 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
23058 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
23059 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
23060 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
23061 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
23062 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23063 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23064 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
23065 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
23066 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
23067 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
23070 esac
23071 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23072 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23073 if test "${ac_cv_header_libpri_h+set}" = set; then
23074 echo $ECHO_N "(cached) $ECHO_C" >&6
23075 else
23076 ac_cv_header_libpri_h=$ac_header_preproc
23078 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23079 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23082 if test $ac_cv_header_libpri_h = yes; then
23083 PRI_HEADER_FOUND=1
23084 else
23085 PRI_HEADER_FOUND=0
23091 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
23092 if test ! -z "${PRI_MANDATORY}" ;
23093 then
23094 { echo "$as_me:$LINENO: ***" >&5
23095 echo "$as_me: ***" >&6;}
23096 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
23097 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
23098 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
23099 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
23100 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23101 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23102 exit 1
23104 PRI_LIB=""
23105 PRI_INCLUDE=""
23106 PBX_PRI=0
23107 else
23108 PBX_PRI=1
23110 cat >>confdefs.h <<_ACEOF
23111 #define HAVE_PRI 1
23112 _ACEOF
23115 elif test ! -z "${PRI_MANDATORY}";
23116 then
23117 { echo "$as_me:$LINENO: ***" >&5
23118 echo "$as_me: ***" >&6;}
23119 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
23120 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
23121 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23122 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23123 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23124 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23125 exit 1
23130 if test "${USE_PWLIB}" != "no"; then
23131 if test ! -z "${PWLIB_DIR}"; then
23132 PWLIBDIR="${PWLIB_DIR}"
23135 PWLIB_INCDIR=
23136 PWLIB_LIBDIR=
23137 if test "${PWLIBDIR:-unset}" != "unset" ; then
23138 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
23139 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
23140 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
23141 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23142 echo $ECHO_N "(cached) $ECHO_C" >&6
23143 else
23144 test "$cross_compiling" = yes &&
23145 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23146 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23147 { (exit 1); exit 1; }; }
23148 if test -r "${PWLIBDIR}/version.h"; then
23149 eval "$as_ac_File=yes"
23150 else
23151 eval "$as_ac_File=no"
23154 ac_res=`eval echo '${'$as_ac_File'}'`
23155 { echo "$as_me:$LINENO: result: $ac_res" >&5
23156 echo "${ECHO_T}$ac_res" >&6; }
23157 if test `eval echo '${'$as_ac_File'}'` = yes; then
23158 HAS_PWLIB=1
23162 if test "${HAS_PWLIB:-unset}" = "unset" ; then
23163 if test "${OPENH323DIR:-unset}" != "unset"; then
23164 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
23165 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
23166 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
23167 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23168 echo $ECHO_N "(cached) $ECHO_C" >&6
23169 else
23170 test "$cross_compiling" = yes &&
23171 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23172 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23173 { (exit 1); exit 1; }; }
23174 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
23175 eval "$as_ac_File=yes"
23176 else
23177 eval "$as_ac_File=no"
23180 ac_res=`eval echo '${'$as_ac_File'}'`
23181 { echo "$as_me:$LINENO: result: $ac_res" >&5
23182 echo "${ECHO_T}$ac_res" >&6; }
23183 if test `eval echo '${'$as_ac_File'}'` = yes; then
23184 HAS_PWLIB=1
23188 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23189 PWLIBDIR="${OPENH323DIR}/../pwlib"
23190 else
23191 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
23192 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
23193 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
23194 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23195 echo $ECHO_N "(cached) $ECHO_C" >&6
23196 else
23197 test "$cross_compiling" = yes &&
23198 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23199 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23200 { (exit 1); exit 1; }; }
23201 if test -r "${HOME}/pwlib/include/ptlib.h"; then
23202 eval "$as_ac_File=yes"
23203 else
23204 eval "$as_ac_File=no"
23207 ac_res=`eval echo '${'$as_ac_File'}'`
23208 { echo "$as_me:$LINENO: result: $ac_res" >&5
23209 echo "${ECHO_T}$ac_res" >&6; }
23210 if test `eval echo '${'$as_ac_File'}'` = yes; then
23211 HAS_PWLIB=1
23214 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23215 PWLIBDIR="${HOME}/pwlib"
23216 else
23217 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
23218 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
23219 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
23220 echo $ECHO_N "(cached) $ECHO_C" >&6
23221 else
23222 test "$cross_compiling" = yes &&
23223 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23224 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23225 { (exit 1); exit 1; }; }
23226 if test -r "/usr/local/include/ptlib.h"; then
23227 ac_cv_file__usr_local_include_ptlib_h=yes
23228 else
23229 ac_cv_file__usr_local_include_ptlib_h=no
23232 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
23233 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
23234 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
23235 HAS_PWLIB=1
23238 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23239 # Extract the first word of "ptlib-config", so it can be a program name with args.
23240 set dummy ptlib-config; ac_word=$2
23241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23243 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23244 echo $ECHO_N "(cached) $ECHO_C" >&6
23245 else
23246 case $PTLIB_CONFIG in
23247 [\\/]* | ?:[\\/]*)
23248 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23252 for as_dir in /usr/local/bin
23254 IFS=$as_save_IFS
23255 test -z "$as_dir" && as_dir=.
23256 for ac_exec_ext in '' $ac_executable_extensions; do
23257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23258 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23260 break 2
23262 done
23263 done
23264 IFS=$as_save_IFS
23267 esac
23269 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23270 if test -n "$PTLIB_CONFIG"; then
23271 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23272 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23273 else
23274 { echo "$as_me:$LINENO: result: no" >&5
23275 echo "${ECHO_T}no" >&6; }
23279 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
23280 # Extract the first word of "ptlib-config", so it can be a program name with args.
23281 set dummy ptlib-config; ac_word=$2
23282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23284 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23285 echo $ECHO_N "(cached) $ECHO_C" >&6
23286 else
23287 case $PTLIB_CONFIG in
23288 [\\/]* | ?:[\\/]*)
23289 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23293 for as_dir in /usr/local/share/pwlib/make
23295 IFS=$as_save_IFS
23296 test -z "$as_dir" && as_dir=.
23297 for ac_exec_ext in '' $ac_executable_extensions; do
23298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23299 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23301 break 2
23303 done
23304 done
23305 IFS=$as_save_IFS
23308 esac
23310 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23311 if test -n "$PTLIB_CONFIG"; then
23312 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23313 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23314 else
23315 { echo "$as_me:$LINENO: result: no" >&5
23316 echo "${ECHO_T}no" >&6; }
23321 PWLIB_INCDIR="/usr/local/include"
23322 PWLIB_LIBDIR="/usr/local/lib"
23323 else
23324 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
23325 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
23326 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
23327 echo $ECHO_N "(cached) $ECHO_C" >&6
23328 else
23329 test "$cross_compiling" = yes &&
23330 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23331 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23332 { (exit 1); exit 1; }; }
23333 if test -r "/usr/include/ptlib.h"; then
23334 ac_cv_file__usr_include_ptlib_h=yes
23335 else
23336 ac_cv_file__usr_include_ptlib_h=no
23339 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
23340 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
23341 if test $ac_cv_file__usr_include_ptlib_h = yes; then
23342 HAS_PWLIB=1
23345 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23346 # Extract the first word of "ptlib-config", so it can be a program name with args.
23347 set dummy ptlib-config; ac_word=$2
23348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23350 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23351 echo $ECHO_N "(cached) $ECHO_C" >&6
23352 else
23353 case $PTLIB_CONFIG in
23354 [\\/]* | ?:[\\/]*)
23355 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23359 for as_dir in /usr/share/pwlib/make
23361 IFS=$as_save_IFS
23362 test -z "$as_dir" && as_dir=.
23363 for ac_exec_ext in '' $ac_executable_extensions; do
23364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23365 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23367 break 2
23369 done
23370 done
23371 IFS=$as_save_IFS
23374 esac
23376 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23377 if test -n "$PTLIB_CONFIG"; then
23378 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23379 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23380 else
23381 { echo "$as_me:$LINENO: result: no" >&5
23382 echo "${ECHO_T}no" >&6; }
23386 PWLIB_INCDIR="/usr/include"
23387 PWLIB_LIBDIR="/usr/lib"
23394 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
23395 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
23396 # exit
23399 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23400 if test "${PWLIBDIR:-unset}" = "unset" ; then
23401 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
23402 PWLIBDIR=`$PTLIB_CONFIG --prefix`
23403 else
23404 echo "Cannot find ptlib-config - please install and try again"
23405 exit
23409 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
23410 PWLIBDIR="/usr/share/pwlib"
23411 PWLIB_INCDIR="/usr/include"
23412 PWLIB_LIBDIR="/usr/lib"
23414 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
23415 PWLIBDIR="/usr/local/share/pwlib"
23416 PWLIB_INCDIR="/usr/local/include"
23417 PWLIB_LIBDIR="/usr/local/lib"
23420 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
23421 PWLIB_INCDIR="${PWLIBDIR}/include"
23423 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
23424 PWLIB_LIBDIR="${PWLIBDIR}/lib"
23433 if test "${HAS_PWLIB:-unset}" != "unset"; then
23434 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
23435 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
23436 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
23437 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
23438 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
23439 let PWLIB_REQ=1*10000+9*100+2
23441 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
23442 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23443 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
23444 { echo "$as_me:$LINENO: result: no" >&5
23445 echo "${ECHO_T}no" >&6; }
23446 unset HAS_PWLIB
23447 else
23448 { echo "$as_me:$LINENO: result: yes" >&5
23449 echo "${ECHO_T}yes" >&6; }
23454 if test "${HAS_PWLIB:-unset}" != "unset"; then
23456 PWLIB_OSTYPE=
23457 case "$host_os" in
23458 linux*) PWLIB_OSTYPE=linux ;
23460 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
23462 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
23463 ENDLDLIBS="-lossaudio" ;
23465 netbsd* ) PWLIB_OSTYPE=NetBSD ;
23466 ENDLDLIBS="-lossaudio" ;
23468 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
23470 darwin* ) PWLIB_OSTYPE=Darwin ;
23472 beos*) PWLIB_OSTYPE=beos ;
23473 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
23475 cygwin*) PWLIB_OSTYPE=cygwin ;
23477 mingw*) PWLIB_OSTYPE=mingw ;
23478 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
23479 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
23481 * ) PWLIB_OSTYPE="$host_os" ;
23482 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
23483 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
23485 esac
23487 PWLIB_MACHTYPE=
23488 case "$host_cpu" in
23489 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
23492 x86_64) PWLIB_MACHTYPE=x86_64 ;
23493 P_64BIT=1 ;
23494 LIB64=1 ;
23497 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
23498 P_64BIT=1 ;
23501 sparc ) PWLIB_MACHTYPE=sparc ;
23504 powerpc ) PWLIB_MACHTYPE=ppc ;
23507 ppc ) PWLIB_MACHTYPE=ppc ;
23510 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
23511 P_64BIT=1 ;
23512 LIB64=1 ;
23515 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
23516 P_64BIT=1 ;
23517 LIB64=1 ;
23520 ia64) PWLIB_MACHTYPE=ia64 ;
23521 P_64BIT=1 ;
23524 s390x) PWLIB_MACHTYPE=s390x ;
23525 P_64BIT=1 ;
23526 LIB64=1 ;
23529 s390) PWLIB_MACHTYPE=s390 ;
23532 * ) PWLIB_MACHTYPE="$host_cpu";
23533 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
23534 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
23535 esac
23537 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
23542 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
23545 if test "${HAS_PWLIB:-unset}" != "unset"; then
23546 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
23547 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
23549 saved_cppflags="${CPPFLAGS}"
23550 saved_libs="${LIBS}"
23551 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
23552 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
23554 ac_ext=cpp
23555 ac_cpp='$CXXCPP $CPPFLAGS'
23556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23561 cat >conftest.$ac_ext <<_ACEOF
23562 /* confdefs.h. */
23563 _ACEOF
23564 cat confdefs.h >>conftest.$ac_ext
23565 cat >>conftest.$ac_ext <<_ACEOF
23566 /* end confdefs.h. */
23567 #include "ptlib.h"
23569 main ()
23571 BOOL q = PTime::IsDaylightSavings();
23573 return 0;
23575 _ACEOF
23576 rm -f conftest.$ac_objext conftest$ac_exeext
23577 if { (ac_try="$ac_link"
23578 case "(($ac_try" in
23579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23580 *) ac_try_echo=$ac_try;;
23581 esac
23582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23583 (eval "$ac_link") 2>conftest.er1
23584 ac_status=$?
23585 grep -v '^ *+' conftest.er1 >conftest.err
23586 rm -f conftest.er1
23587 cat conftest.err >&5
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); } && {
23590 test -z "$ac_cxx_werror_flag" ||
23591 test ! -s conftest.err
23592 } && test -s conftest$ac_exeext &&
23593 $as_test_x conftest$ac_exeext; then
23594 { echo "$as_me:$LINENO: result: yes" >&5
23595 echo "${ECHO_T}yes" >&6; }
23596 ac_cv_lib_PWLIB="yes"
23598 else
23599 echo "$as_me: failed program was:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23602 { echo "$as_me:$LINENO: result: no" >&5
23603 echo "${ECHO_T}no" >&6; }
23604 ac_cv_lib_PWLIB="no"
23609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23610 conftest$ac_exeext conftest.$ac_ext
23612 ac_ext=c
23613 ac_cpp='$CPP $CPPFLAGS'
23614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23619 LIBS="${saved_libs}"
23620 CPPFLAGS="${saved_cppflags}"
23622 if test "${ac_cv_lib_PWLIB}" = "yes"; then
23623 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
23624 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
23625 else
23626 PWLIB_LIB="-l${PLATFORM_PWLIB}"
23628 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
23629 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
23631 PBX_PWLIB=1
23633 cat >>confdefs.h <<\_ACEOF
23634 #define HAVE_PWLIB 1
23635 _ACEOF
23643 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
23644 { echo "$as_me:$LINENO: ***" >&5
23645 echo "$as_me: ***" >&6;}
23646 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
23647 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
23648 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23649 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23650 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
23651 echo "$as_me: *** including --without-pwlib" >&6;}
23652 exit 1
23655 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
23656 if test ! -z "${OPENH323_DIR}"; then
23657 OPENH323DIR="${OPENH323_DIR}"
23660 OPENH323_INCDIR=
23661 OPENH323_LIBDIR=
23662 if test "${OPENH323DIR:-unset}" != "unset" ; then
23663 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" | $as_tr_sh`
23664 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
23665 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
23666 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23667 echo $ECHO_N "(cached) $ECHO_C" >&6
23668 else
23669 test "$cross_compiling" = yes &&
23670 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23671 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23672 { (exit 1); exit 1; }; }
23673 if test -r "${OPENH323DIR}/version.h"; then
23674 eval "$as_ac_File=yes"
23675 else
23676 eval "$as_ac_File=no"
23679 ac_res=`eval echo '${'$as_ac_File'}'`
23680 { echo "$as_me:$LINENO: result: $ac_res" >&5
23681 echo "${ECHO_T}$ac_res" >&6; }
23682 if test `eval echo '${'$as_ac_File'}'` = yes; then
23683 HAS_OPENH323=1
23687 if test "${HAS_OPENH323:-unset}" = "unset" ; then
23688 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
23689 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
23690 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
23691 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23692 echo $ECHO_N "(cached) $ECHO_C" >&6
23693 else
23694 test "$cross_compiling" = yes &&
23695 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23696 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23697 { (exit 1); exit 1; }; }
23698 if test -r "${PWLIBDIR}/../openh323/version.h"; then
23699 eval "$as_ac_File=yes"
23700 else
23701 eval "$as_ac_File=no"
23704 ac_res=`eval echo '${'$as_ac_File'}'`
23705 { echo "$as_me:$LINENO: result: $ac_res" >&5
23706 echo "${ECHO_T}$ac_res" >&6; }
23707 if test `eval echo '${'$as_ac_File'}'` = yes; then
23708 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
23711 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23712 OPENH323DIR="${PWLIBDIR}/../openh323"
23713 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
23714 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
23715 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
23716 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23717 echo $ECHO_N "(cached) $ECHO_C" >&6
23718 else
23719 test "$cross_compiling" = yes &&
23720 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23721 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23722 { (exit 1); exit 1; }; }
23723 if test -r "${OPENH323DIR}/include/h323.h"; then
23724 eval "$as_ac_File=yes"
23725 else
23726 eval "$as_ac_File=no"
23729 ac_res=`eval echo '${'$as_ac_File'}'`
23730 { echo "$as_me:$LINENO: result: $ac_res" >&5
23731 echo "${ECHO_T}$ac_res" >&6; }
23732 if test `eval echo '${'$as_ac_File'}'` = yes; then
23734 else
23735 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
23738 else
23739 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" | $as_tr_sh`
23740 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
23741 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
23742 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23743 echo $ECHO_N "(cached) $ECHO_C" >&6
23744 else
23745 test "$cross_compiling" = yes &&
23746 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23747 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23748 { (exit 1); exit 1; }; }
23749 if test -r "${HOME}/openh323/include/h323.h"; then
23750 eval "$as_ac_File=yes"
23751 else
23752 eval "$as_ac_File=no"
23755 ac_res=`eval echo '${'$as_ac_File'}'`
23756 { echo "$as_me:$LINENO: result: $ac_res" >&5
23757 echo "${ECHO_T}$ac_res" >&6; }
23758 if test `eval echo '${'$as_ac_File'}'` = yes; then
23759 HAS_OPENH323=1
23762 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23763 OPENH323DIR="${HOME}/openh323"
23764 else
23765 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
23766 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
23767 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
23768 echo $ECHO_N "(cached) $ECHO_C" >&6
23769 else
23770 test "$cross_compiling" = yes &&
23771 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23772 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23773 { (exit 1); exit 1; }; }
23774 if test -r "/usr/local/include/openh323/h323.h"; then
23775 ac_cv_file__usr_local_include_openh323_h323_h=yes
23776 else
23777 ac_cv_file__usr_local_include_openh323_h323_h=no
23780 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
23781 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
23782 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
23783 HAS_OPENH323=1
23786 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23787 OPENH323DIR="/usr/local/share/openh323"
23788 OPENH323_INCDIR="/usr/local/include/openh323"
23789 OPENH323_LIBDIR="/usr/local/lib"
23790 else
23791 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
23792 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
23793 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
23794 echo $ECHO_N "(cached) $ECHO_C" >&6
23795 else
23796 test "$cross_compiling" = yes &&
23797 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23798 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23799 { (exit 1); exit 1; }; }
23800 if test -r "/usr/include/openh323/h323.h"; then
23801 ac_cv_file__usr_include_openh323_h323_h=yes
23802 else
23803 ac_cv_file__usr_include_openh323_h323_h=no
23806 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
23807 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
23808 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
23809 HAS_OPENH323=1
23812 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23813 OPENH323DIR="/usr/share/openh323"
23814 OPENH323_INCDIR="/usr/include/openh323"
23815 OPENH323_LIBDIR="/usr/lib"
23822 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23823 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
23824 OPENH323_INCDIR="${OPENH323DIR}/include"
23826 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
23827 OPENH323_LIBDIR="${OPENH323DIR}/lib"
23836 if test "${HAS_OPENH323:-unset}" != "unset"; then
23837 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
23838 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
23839 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
23840 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
23841 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
23842 let OPENH323_REQ=1*10000+17*100+3
23844 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
23845 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23846 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
23847 { echo "$as_me:$LINENO: result: no" >&5
23848 echo "${ECHO_T}no" >&6; }
23849 unset HAS_OPENH323
23850 else
23851 { echo "$as_me:$LINENO: result: yes" >&5
23852 echo "${ECHO_T}yes" >&6; }
23857 if test "${HAS_OPENH323:-unset}" != "unset"; then
23858 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
23859 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
23860 OPENH323_SUFFIX=
23861 files=`ls -l ${OPENH323_LIBDIR}/libh323_${PWLIB_PLATFORM}_*.so*`
23862 libfile=
23863 if test -n "$files"; then
23864 for f in $files; do
23865 if test -f $f -a ! -L $f; then
23866 libfile=`basename $f`
23867 break;
23869 done
23871 if test "${libfile:-unset}" != "unset"; then
23872 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/libh323_${PWLIB_PLATFORM}_\([^.]*\)\..*/\1/'"`
23874 case "${OPENH323_SUFFIX}" in
23876 OPENH323_BUILD="notrace";;
23878 OPENH323_BUILD="opt";;
23880 OPENH323_BUILD="debug";;
23882 OPENH323_BUILD="notrace";;
23883 esac
23884 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
23885 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
23891 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
23893 if test "${HAS_OPENH323:-unset}" != "unset"; then
23894 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
23895 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
23897 saved_cppflags="${CPPFLAGS}"
23898 saved_libs="${LIBS}"
23899 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
23900 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
23902 ac_ext=cpp
23903 ac_cpp='$CXXCPP $CPPFLAGS'
23904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23909 cat >conftest.$ac_ext <<_ACEOF
23910 /* confdefs.h. */
23911 _ACEOF
23912 cat confdefs.h >>conftest.$ac_ext
23913 cat >>conftest.$ac_ext <<_ACEOF
23914 /* end confdefs.h. */
23915 #include "ptlib.h"
23916 #include "h323.h"
23917 #include "h323ep.h"
23919 main ()
23921 H323EndPoint ep = H323EndPoint();
23923 return 0;
23925 _ACEOF
23926 rm -f conftest.$ac_objext conftest$ac_exeext
23927 if { (ac_try="$ac_link"
23928 case "(($ac_try" in
23929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23930 *) ac_try_echo=$ac_try;;
23931 esac
23932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23933 (eval "$ac_link") 2>conftest.er1
23934 ac_status=$?
23935 grep -v '^ *+' conftest.er1 >conftest.err
23936 rm -f conftest.er1
23937 cat conftest.err >&5
23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); } && {
23940 test -z "$ac_cxx_werror_flag" ||
23941 test ! -s conftest.err
23942 } && test -s conftest$ac_exeext &&
23943 $as_test_x conftest$ac_exeext; then
23944 { echo "$as_me:$LINENO: result: yes" >&5
23945 echo "${ECHO_T}yes" >&6; }
23946 ac_cv_lib_OPENH323="yes"
23948 else
23949 echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23952 { echo "$as_me:$LINENO: result: no" >&5
23953 echo "${ECHO_T}no" >&6; }
23954 ac_cv_lib_OPENH323="no"
23959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23960 conftest$ac_exeext conftest.$ac_ext
23962 ac_ext=c
23963 ac_cpp='$CPP $CPPFLAGS'
23964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23969 LIBS="${saved_libs}"
23970 CPPFLAGS="${saved_cppflags}"
23972 if test "${ac_cv_lib_OPENH323}" = "yes"; then
23973 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
23974 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
23975 else
23976 OPENH323_LIB="-l${PLATFORM_OPENH323}"
23978 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
23979 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
23981 PBX_OPENH323=1
23983 cat >>confdefs.h <<\_ACEOF
23984 #define HAVE_OPENH323 1
23985 _ACEOF
23991 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
23992 { echo "$as_me:$LINENO: ***" >&5
23993 echo "$as_me: ***" >&6;}
23994 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
23995 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
23996 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23997 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23998 { echo "$as_me:$LINENO: *** including --without-h323" >&5
23999 echo "$as_me: *** including --without-h323" >&6;}
24000 exit 1
24004 ac_ext=cpp
24005 ac_cpp='$CXXCPP $CPPFLAGS'
24006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24011 if test "${USE_QT}" != "no"; then
24012 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
24013 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
24014 saved_libs="${LIBS}"
24015 saved_cppflags="${CPPFLAGS}"
24016 if test "x${QT_DIR}" != "x"; then
24017 LIBS="${LIBS} -L${QT_DIR}/lib"
24018 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
24020 LIBS="${LIBS} -lqt"
24021 qtlib="qt"
24022 cat >conftest.$ac_ext <<_ACEOF
24024 /* confdefs.h. */
24025 _ACEOF
24026 cat confdefs.h >>conftest.$ac_ext
24027 cat >>conftest.$ac_ext <<_ACEOF
24028 /* end confdefs.h. */
24029 #include <qt3/qdatetime.h>
24031 main ()
24033 QDate date();
24035 return 0;
24038 _ACEOF
24039 rm -f conftest.$ac_objext conftest$ac_exeext
24040 if { (ac_try="$ac_link"
24041 case "(($ac_try" in
24042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043 *) ac_try_echo=$ac_try;;
24044 esac
24045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24046 (eval "$ac_link") 2>conftest.er1
24047 ac_status=$?
24048 grep -v '^ *+' conftest.er1 >conftest.err
24049 rm -f conftest.er1
24050 cat conftest.err >&5
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } && {
24053 test -z "$ac_cxx_werror_flag" ||
24054 test ! -s conftest.err
24055 } && test -s conftest$ac_exeext &&
24056 $as_test_x conftest$ac_exeext; then
24057 ac_cv_lib_qt_qt_date="yes"
24058 else
24059 echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24062 ac_cv_lib_qt_qt_date="no"
24065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24066 conftest$ac_exeext conftest.$ac_ext
24067 LIBS="${saved_libs}"
24068 CPPFLAGS="${saved_cppflags}"
24070 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
24071 saved_libs="${LIBS}"
24072 saved_cppflags="${CPPFLAGS}"
24073 if test "x${QT_DIR}" != "x"; then
24074 LIBS="${LIBS} -L${QT_DIR}/lib"
24075 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
24077 LIBS="${LIBS} -lqt-mt"
24078 qtlib="qt-mt"
24079 cat >conftest.$ac_ext <<_ACEOF
24081 /* confdefs.h. */
24082 _ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24086 #include <qt3/qdatetime.h>
24088 main ()
24090 QDate date();
24092 return 0;
24095 _ACEOF
24096 rm -f conftest.$ac_objext conftest$ac_exeext
24097 if { (ac_try="$ac_link"
24098 case "(($ac_try" in
24099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24101 esac
24102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_link") 2>conftest.er1
24104 ac_status=$?
24105 grep -v '^ *+' conftest.er1 >conftest.err
24106 rm -f conftest.er1
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } && {
24110 test -z "$ac_cxx_werror_flag" ||
24111 test ! -s conftest.err
24112 } && test -s conftest$ac_exeext &&
24113 $as_test_x conftest$ac_exeext; then
24114 ac_cv_lib_qt_qt_date="yes"
24115 else
24116 echo "$as_me: failed program was:" >&5
24117 sed 's/^/| /' conftest.$ac_ext >&5
24119 ac_cv_lib_qt_qt_date="no"
24122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24123 conftest$ac_exeext conftest.$ac_ext
24124 LIBS="${saved_libs}"
24125 CPPFLAGS="${saved_cppflags}"
24128 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24129 { echo "$as_me:$LINENO: result: yes" >&5
24130 echo "${ECHO_T}yes" >&6; }
24131 else
24132 { echo "$as_me:$LINENO: result: no" >&5
24133 echo "${ECHO_T}no" >&6; }
24136 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24137 QT_LIB="-l${qtlib}"
24138 if test "${QT_DIR}" != ""; then
24139 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
24140 QT_INCLUDE="-I${QT_DIR}/include"
24142 PBX_QT=1
24144 cat >>confdefs.h <<\_ACEOF
24145 #define HAVE_QT 1
24146 _ACEOF
24148 if test -n "$ac_tool_prefix"; then
24149 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
24150 set dummy ${ac_tool_prefix}moc; ac_word=$2
24151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24153 if test "${ac_cv_path_QTMOC+set}" = set; then
24154 echo $ECHO_N "(cached) $ECHO_C" >&6
24155 else
24156 case $QTMOC in
24157 [\\/]* | ?:[\\/]*)
24158 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
24161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24162 for as_dir in $PATH
24164 IFS=$as_save_IFS
24165 test -z "$as_dir" && as_dir=.
24166 for ac_exec_ext in '' $ac_executable_extensions; do
24167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24168 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
24169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24170 break 2
24172 done
24173 done
24174 IFS=$as_save_IFS
24177 esac
24179 QTMOC=$ac_cv_path_QTMOC
24180 if test -n "$QTMOC"; then
24181 { echo "$as_me:$LINENO: result: $QTMOC" >&5
24182 echo "${ECHO_T}$QTMOC" >&6; }
24183 else
24184 { echo "$as_me:$LINENO: result: no" >&5
24185 echo "${ECHO_T}no" >&6; }
24190 if test -z "$ac_cv_path_QTMOC"; then
24191 ac_pt_QTMOC=$QTMOC
24192 # Extract the first word of "moc", so it can be a program name with args.
24193 set dummy moc; ac_word=$2
24194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24196 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
24197 echo $ECHO_N "(cached) $ECHO_C" >&6
24198 else
24199 case $ac_pt_QTMOC in
24200 [\\/]* | ?:[\\/]*)
24201 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
24204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24205 for as_dir in $PATH
24207 IFS=$as_save_IFS
24208 test -z "$as_dir" && as_dir=.
24209 for ac_exec_ext in '' $ac_executable_extensions; do
24210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24211 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
24212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24213 break 2
24215 done
24216 done
24217 IFS=$as_save_IFS
24220 esac
24222 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
24223 if test -n "$ac_pt_QTMOC"; then
24224 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
24225 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
24226 else
24227 { echo "$as_me:$LINENO: result: no" >&5
24228 echo "${ECHO_T}no" >&6; }
24231 if test "x$ac_pt_QTMOC" = x; then
24232 QTMOC="No"
24233 else
24234 case $cross_compiling:$ac_tool_warned in
24235 yes:)
24236 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24237 whose name does not start with the host triplet. If you think this
24238 configuration is useful to you, please write to autoconf@gnu.org." >&5
24239 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24240 whose name does not start with the host triplet. If you think this
24241 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24242 ac_tool_warned=yes ;;
24243 esac
24244 QTMOC=$ac_pt_QTMOC
24246 else
24247 QTMOC="$ac_cv_path_QTMOC"
24250 elif test ! -z "${QT_MANDATORY}";
24251 then
24252 { echo "$as_me:$LINENO: ***" >&5
24253 echo "$as_me: ***" >&6;}
24254 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
24255 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
24256 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24257 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24258 { echo "$as_me:$LINENO: *** including --without-qt." >&5
24259 echo "$as_me: *** including --without-qt." >&6;}
24260 exit 1
24264 ac_ext=c
24265 ac_cpp='$CPP $CPPFLAGS'
24266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24272 if test "${USE_RADIUS}" != "no"; then
24273 pbxlibdir=""
24274 if test "x${RADIUS_DIR}" != "x"; then
24275 if test -d ${RADIUS_DIR}/lib; then
24276 pbxlibdir="-L${RADIUS_DIR}/lib"
24277 else
24278 pbxlibdir="-L${RADIUS_DIR}"
24281 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
24282 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
24283 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
24284 echo $ECHO_N "(cached) $ECHO_C" >&6
24285 else
24286 ac_check_lib_save_LIBS=$LIBS
24287 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
24288 cat >conftest.$ac_ext <<_ACEOF
24289 /* confdefs.h. */
24290 _ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24295 /* Override any GCC internal prototype to avoid an error.
24296 Use char because int might match the return type of a GCC
24297 builtin and then its argument prototype would still apply. */
24298 #ifdef __cplusplus
24299 extern "C"
24300 #endif
24301 char rc_read_config ();
24303 main ()
24305 return rc_read_config ();
24307 return 0;
24309 _ACEOF
24310 rm -f conftest.$ac_objext conftest$ac_exeext
24311 if { (ac_try="$ac_link"
24312 case "(($ac_try" in
24313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24314 *) ac_try_echo=$ac_try;;
24315 esac
24316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24317 (eval "$ac_link") 2>conftest.er1
24318 ac_status=$?
24319 grep -v '^ *+' conftest.er1 >conftest.err
24320 rm -f conftest.er1
24321 cat conftest.err >&5
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } && {
24324 test -z "$ac_c_werror_flag" ||
24325 test ! -s conftest.err
24326 } && test -s conftest$ac_exeext &&
24327 $as_test_x conftest$ac_exeext; then
24328 ac_cv_lib_radiusclient_ng_rc_read_config=yes
24329 else
24330 echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24333 ac_cv_lib_radiusclient_ng_rc_read_config=no
24336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24337 conftest$ac_exeext conftest.$ac_ext
24338 LIBS=$ac_check_lib_save_LIBS
24340 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
24341 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
24342 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
24343 AST_RADIUS_FOUND=yes
24344 else
24345 AST_RADIUS_FOUND=no
24349 if test "${AST_RADIUS_FOUND}" = "yes"; then
24350 RADIUS_LIB="-lradiusclient-ng "
24351 RADIUS_HEADER_FOUND="1"
24352 if test "x${RADIUS_DIR}" != "x"; then
24353 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
24354 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
24355 if test "xradiusclient-ng.h" != "x" ; then
24356 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
24357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24358 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24359 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24361 echo $ECHO_N "(cached) $ECHO_C" >&6
24363 ac_res=`eval echo '${'$as_ac_Header'}'`
24364 { echo "$as_me:$LINENO: result: $ac_res" >&5
24365 echo "${ECHO_T}$ac_res" >&6; }
24366 else
24367 # Is the header compilable?
24368 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
24369 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
24370 cat >conftest.$ac_ext <<_ACEOF
24371 /* confdefs.h. */
24372 _ACEOF
24373 cat confdefs.h >>conftest.$ac_ext
24374 cat >>conftest.$ac_ext <<_ACEOF
24375 /* end confdefs.h. */
24376 $ac_includes_default
24377 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24378 _ACEOF
24379 rm -f conftest.$ac_objext
24380 if { (ac_try="$ac_compile"
24381 case "(($ac_try" in
24382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24383 *) ac_try_echo=$ac_try;;
24384 esac
24385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24386 (eval "$ac_compile") 2>conftest.er1
24387 ac_status=$?
24388 grep -v '^ *+' conftest.er1 >conftest.err
24389 rm -f conftest.er1
24390 cat conftest.err >&5
24391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); } && {
24393 test -z "$ac_c_werror_flag" ||
24394 test ! -s conftest.err
24395 } && test -s conftest.$ac_objext; then
24396 ac_header_compiler=yes
24397 else
24398 echo "$as_me: failed program was:" >&5
24399 sed 's/^/| /' conftest.$ac_ext >&5
24401 ac_header_compiler=no
24404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24406 echo "${ECHO_T}$ac_header_compiler" >&6; }
24408 # Is the header present?
24409 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
24410 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
24411 cat >conftest.$ac_ext <<_ACEOF
24412 /* confdefs.h. */
24413 _ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24417 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24418 _ACEOF
24419 if { (ac_try="$ac_cpp conftest.$ac_ext"
24420 case "(($ac_try" in
24421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24422 *) ac_try_echo=$ac_try;;
24423 esac
24424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24426 ac_status=$?
24427 grep -v '^ *+' conftest.er1 >conftest.err
24428 rm -f conftest.er1
24429 cat conftest.err >&5
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); } >/dev/null && {
24432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24433 test ! -s conftest.err
24434 }; then
24435 ac_header_preproc=yes
24436 else
24437 echo "$as_me: failed program was:" >&5
24438 sed 's/^/| /' conftest.$ac_ext >&5
24440 ac_header_preproc=no
24443 rm -f conftest.err conftest.$ac_ext
24444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24445 echo "${ECHO_T}$ac_header_preproc" >&6; }
24447 # So? What about this header?
24448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24449 yes:no: )
24450 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
24451 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24452 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
24453 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
24454 ac_header_preproc=yes
24456 no:yes:* )
24457 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
24458 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
24459 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
24460 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
24461 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
24462 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
24463 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
24464 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
24465 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
24466 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
24467 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
24468 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
24471 esac
24472 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24473 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24475 echo $ECHO_N "(cached) $ECHO_C" >&6
24476 else
24477 eval "$as_ac_Header=\$ac_header_preproc"
24479 ac_res=`eval echo '${'$as_ac_Header'}'`
24480 { echo "$as_me:$LINENO: result: $ac_res" >&5
24481 echo "${ECHO_T}$ac_res" >&6; }
24484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24485 RADIUS_HEADER_FOUND=1
24486 else
24487 RADIUS_HEADER_FOUND=0
24492 else
24493 if test "xradiusclient-ng.h" != "x" ; then
24494 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24495 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
24496 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
24497 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24498 echo $ECHO_N "(cached) $ECHO_C" >&6
24500 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
24501 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
24502 else
24503 # Is the header compilable?
24504 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
24505 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
24506 cat >conftest.$ac_ext <<_ACEOF
24507 /* confdefs.h. */
24508 _ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h. */
24512 $ac_includes_default
24513 #include <radiusclient-ng.h>
24514 _ACEOF
24515 rm -f conftest.$ac_objext
24516 if { (ac_try="$ac_compile"
24517 case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24520 esac
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522 (eval "$ac_compile") 2>conftest.er1
24523 ac_status=$?
24524 grep -v '^ *+' conftest.er1 >conftest.err
24525 rm -f conftest.er1
24526 cat conftest.err >&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } && {
24529 test -z "$ac_c_werror_flag" ||
24530 test ! -s conftest.err
24531 } && test -s conftest.$ac_objext; then
24532 ac_header_compiler=yes
24533 else
24534 echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24537 ac_header_compiler=no
24540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24542 echo "${ECHO_T}$ac_header_compiler" >&6; }
24544 # Is the header present?
24545 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
24546 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
24547 cat >conftest.$ac_ext <<_ACEOF
24548 /* confdefs.h. */
24549 _ACEOF
24550 cat confdefs.h >>conftest.$ac_ext
24551 cat >>conftest.$ac_ext <<_ACEOF
24552 /* end confdefs.h. */
24553 #include <radiusclient-ng.h>
24554 _ACEOF
24555 if { (ac_try="$ac_cpp conftest.$ac_ext"
24556 case "(($ac_try" in
24557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24558 *) ac_try_echo=$ac_try;;
24559 esac
24560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24562 ac_status=$?
24563 grep -v '^ *+' conftest.er1 >conftest.err
24564 rm -f conftest.er1
24565 cat conftest.err >&5
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); } >/dev/null && {
24568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24569 test ! -s conftest.err
24570 }; then
24571 ac_header_preproc=yes
24572 else
24573 echo "$as_me: failed program was:" >&5
24574 sed 's/^/| /' conftest.$ac_ext >&5
24576 ac_header_preproc=no
24579 rm -f conftest.err conftest.$ac_ext
24580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24581 echo "${ECHO_T}$ac_header_preproc" >&6; }
24583 # So? What about this header?
24584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24585 yes:no: )
24586 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
24587 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24588 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
24589 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
24590 ac_header_preproc=yes
24592 no:yes:* )
24593 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
24594 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
24595 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
24596 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
24597 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
24598 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
24599 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
24600 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
24601 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
24602 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
24603 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
24604 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
24607 esac
24608 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
24609 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
24610 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24611 echo $ECHO_N "(cached) $ECHO_C" >&6
24612 else
24613 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
24615 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
24616 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
24619 if test $ac_cv_header_radiusclient_ng_h = yes; then
24620 RADIUS_HEADER_FOUND=1
24621 else
24622 RADIUS_HEADER_FOUND=0
24628 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
24629 if test ! -z "${RADIUS_MANDATORY}" ;
24630 then
24631 { echo "$as_me:$LINENO: ***" >&5
24632 echo "$as_me: ***" >&6;}
24633 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
24634 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
24635 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
24636 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
24637 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
24638 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
24639 exit 1
24641 RADIUS_LIB=""
24642 RADIUS_INCLUDE=""
24643 PBX_RADIUS=0
24644 else
24645 PBX_RADIUS=1
24647 cat >>confdefs.h <<_ACEOF
24648 #define HAVE_RADIUS 1
24649 _ACEOF
24652 elif test ! -z "${RADIUS_MANDATORY}";
24653 then
24654 { echo "$as_me:$LINENO: ***" >&5
24655 echo "$as_me: ***" >&6;}
24656 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
24657 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
24658 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24659 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24660 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
24661 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
24662 exit 1
24668 if test "${USE_SPEEX}" != "no"; then
24669 pbxlibdir=""
24670 if test "x${SPEEX_DIR}" != "x"; then
24671 if test -d ${SPEEX_DIR}/lib; then
24672 pbxlibdir="-L${SPEEX_DIR}/lib"
24673 else
24674 pbxlibdir="-L${SPEEX_DIR}"
24677 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
24678 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
24679 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
24680 echo $ECHO_N "(cached) $ECHO_C" >&6
24681 else
24682 ac_check_lib_save_LIBS=$LIBS
24683 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
24684 cat >conftest.$ac_ext <<_ACEOF
24685 /* confdefs.h. */
24686 _ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24691 /* Override any GCC internal prototype to avoid an error.
24692 Use char because int might match the return type of a GCC
24693 builtin and then its argument prototype would still apply. */
24694 #ifdef __cplusplus
24695 extern "C"
24696 #endif
24697 char speex_encode ();
24699 main ()
24701 return speex_encode ();
24703 return 0;
24705 _ACEOF
24706 rm -f conftest.$ac_objext conftest$ac_exeext
24707 if { (ac_try="$ac_link"
24708 case "(($ac_try" in
24709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24710 *) ac_try_echo=$ac_try;;
24711 esac
24712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24713 (eval "$ac_link") 2>conftest.er1
24714 ac_status=$?
24715 grep -v '^ *+' conftest.er1 >conftest.err
24716 rm -f conftest.er1
24717 cat conftest.err >&5
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); } && {
24720 test -z "$ac_c_werror_flag" ||
24721 test ! -s conftest.err
24722 } && test -s conftest$ac_exeext &&
24723 $as_test_x conftest$ac_exeext; then
24724 ac_cv_lib_speex_speex_encode=yes
24725 else
24726 echo "$as_me: failed program was:" >&5
24727 sed 's/^/| /' conftest.$ac_ext >&5
24729 ac_cv_lib_speex_speex_encode=no
24732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24733 conftest$ac_exeext conftest.$ac_ext
24734 LIBS=$ac_check_lib_save_LIBS
24736 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
24737 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
24738 if test $ac_cv_lib_speex_speex_encode = yes; then
24739 AST_SPEEX_FOUND=yes
24740 else
24741 AST_SPEEX_FOUND=no
24745 if test "${AST_SPEEX_FOUND}" = "yes"; then
24746 SPEEX_LIB="-lspeex -lm"
24747 SPEEX_HEADER_FOUND="1"
24748 if test "x${SPEEX_DIR}" != "x"; then
24749 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
24750 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
24751 if test "xspeex/speex.h" != "x" ; then
24752 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
24753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24754 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
24755 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
24756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24757 echo $ECHO_N "(cached) $ECHO_C" >&6
24759 ac_res=`eval echo '${'$as_ac_Header'}'`
24760 { echo "$as_me:$LINENO: result: $ac_res" >&5
24761 echo "${ECHO_T}$ac_res" >&6; }
24762 else
24763 # Is the header compilable?
24764 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
24765 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
24766 cat >conftest.$ac_ext <<_ACEOF
24767 /* confdefs.h. */
24768 _ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h. */
24772 $ac_includes_default
24773 #include <${SPEEX_DIR}/include/speex/speex.h>
24774 _ACEOF
24775 rm -f conftest.$ac_objext
24776 if { (ac_try="$ac_compile"
24777 case "(($ac_try" in
24778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24779 *) ac_try_echo=$ac_try;;
24780 esac
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782 (eval "$ac_compile") 2>conftest.er1
24783 ac_status=$?
24784 grep -v '^ *+' conftest.er1 >conftest.err
24785 rm -f conftest.er1
24786 cat conftest.err >&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } && {
24789 test -z "$ac_c_werror_flag" ||
24790 test ! -s conftest.err
24791 } && test -s conftest.$ac_objext; then
24792 ac_header_compiler=yes
24793 else
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24797 ac_header_compiler=no
24800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24802 echo "${ECHO_T}$ac_header_compiler" >&6; }
24804 # Is the header present?
24805 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
24806 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
24807 cat >conftest.$ac_ext <<_ACEOF
24808 /* confdefs.h. */
24809 _ACEOF
24810 cat confdefs.h >>conftest.$ac_ext
24811 cat >>conftest.$ac_ext <<_ACEOF
24812 /* end confdefs.h. */
24813 #include <${SPEEX_DIR}/include/speex/speex.h>
24814 _ACEOF
24815 if { (ac_try="$ac_cpp conftest.$ac_ext"
24816 case "(($ac_try" in
24817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24818 *) ac_try_echo=$ac_try;;
24819 esac
24820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24822 ac_status=$?
24823 grep -v '^ *+' conftest.er1 >conftest.err
24824 rm -f conftest.er1
24825 cat conftest.err >&5
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); } >/dev/null && {
24828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24829 test ! -s conftest.err
24830 }; then
24831 ac_header_preproc=yes
24832 else
24833 echo "$as_me: failed program was:" >&5
24834 sed 's/^/| /' conftest.$ac_ext >&5
24836 ac_header_preproc=no
24839 rm -f conftest.err conftest.$ac_ext
24840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24841 echo "${ECHO_T}$ac_header_preproc" >&6; }
24843 # So? What about this header?
24844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24845 yes:no: )
24846 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24847 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24848 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
24849 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
24850 ac_header_preproc=yes
24852 no:yes:* )
24853 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
24854 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
24855 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
24856 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
24857 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
24858 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
24859 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
24860 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24861 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
24862 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
24863 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
24864 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
24867 esac
24868 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
24869 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
24870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24871 echo $ECHO_N "(cached) $ECHO_C" >&6
24872 else
24873 eval "$as_ac_Header=\$ac_header_preproc"
24875 ac_res=`eval echo '${'$as_ac_Header'}'`
24876 { echo "$as_me:$LINENO: result: $ac_res" >&5
24877 echo "${ECHO_T}$ac_res" >&6; }
24880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24881 SPEEX_HEADER_FOUND=1
24882 else
24883 SPEEX_HEADER_FOUND=0
24888 else
24889 if test "xspeex/speex.h" != "x" ; then
24890 if test "${ac_cv_header_speex_speex_h+set}" = set; then
24891 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
24892 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
24893 if test "${ac_cv_header_speex_speex_h+set}" = set; then
24894 echo $ECHO_N "(cached) $ECHO_C" >&6
24896 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
24897 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
24898 else
24899 # Is the header compilable?
24900 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
24901 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
24902 cat >conftest.$ac_ext <<_ACEOF
24903 /* confdefs.h. */
24904 _ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h. */
24908 $ac_includes_default
24909 #include <speex/speex.h>
24910 _ACEOF
24911 rm -f conftest.$ac_objext
24912 if { (ac_try="$ac_compile"
24913 case "(($ac_try" in
24914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24916 esac
24917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918 (eval "$ac_compile") 2>conftest.er1
24919 ac_status=$?
24920 grep -v '^ *+' conftest.er1 >conftest.err
24921 rm -f conftest.er1
24922 cat conftest.err >&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } && {
24925 test -z "$ac_c_werror_flag" ||
24926 test ! -s conftest.err
24927 } && test -s conftest.$ac_objext; then
24928 ac_header_compiler=yes
24929 else
24930 echo "$as_me: failed program was:" >&5
24931 sed 's/^/| /' conftest.$ac_ext >&5
24933 ac_header_compiler=no
24936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24938 echo "${ECHO_T}$ac_header_compiler" >&6; }
24940 # Is the header present?
24941 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
24942 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
24943 cat >conftest.$ac_ext <<_ACEOF
24944 /* confdefs.h. */
24945 _ACEOF
24946 cat confdefs.h >>conftest.$ac_ext
24947 cat >>conftest.$ac_ext <<_ACEOF
24948 /* end confdefs.h. */
24949 #include <speex/speex.h>
24950 _ACEOF
24951 if { (ac_try="$ac_cpp conftest.$ac_ext"
24952 case "(($ac_try" in
24953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24954 *) ac_try_echo=$ac_try;;
24955 esac
24956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24958 ac_status=$?
24959 grep -v '^ *+' conftest.er1 >conftest.err
24960 rm -f conftest.er1
24961 cat conftest.err >&5
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); } >/dev/null && {
24964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24965 test ! -s conftest.err
24966 }; then
24967 ac_header_preproc=yes
24968 else
24969 echo "$as_me: failed program was:" >&5
24970 sed 's/^/| /' conftest.$ac_ext >&5
24972 ac_header_preproc=no
24975 rm -f conftest.err conftest.$ac_ext
24976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24977 echo "${ECHO_T}$ac_header_preproc" >&6; }
24979 # So? What about this header?
24980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24981 yes:no: )
24982 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24983 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24984 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
24985 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
24986 ac_header_preproc=yes
24988 no:yes:* )
24989 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
24990 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
24991 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
24992 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
24993 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
24994 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
24995 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
24996 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24997 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
24998 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
24999 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
25000 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
25003 esac
25004 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
25005 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
25006 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25007 echo $ECHO_N "(cached) $ECHO_C" >&6
25008 else
25009 ac_cv_header_speex_speex_h=$ac_header_preproc
25011 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
25012 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
25015 if test $ac_cv_header_speex_speex_h = yes; then
25016 SPEEX_HEADER_FOUND=1
25017 else
25018 SPEEX_HEADER_FOUND=0
25024 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
25025 if test ! -z "${SPEEX_MANDATORY}" ;
25026 then
25027 { echo "$as_me:$LINENO: ***" >&5
25028 echo "$as_me: ***" >&6;}
25029 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
25030 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
25031 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
25032 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
25033 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
25034 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
25035 exit 1
25037 SPEEX_LIB=""
25038 SPEEX_INCLUDE=""
25039 PBX_SPEEX=0
25040 else
25041 PBX_SPEEX=1
25043 cat >>confdefs.h <<_ACEOF
25044 #define HAVE_SPEEX 1
25045 _ACEOF
25048 elif test ! -z "${SPEEX_MANDATORY}";
25049 then
25050 { echo "$as_me:$LINENO: ***" >&5
25051 echo "$as_me: ***" >&6;}
25052 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
25053 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
25054 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25055 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25056 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
25057 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
25058 exit 1
25064 if test "${USE_SQLITE}" != "no"; then
25065 pbxlibdir=""
25066 if test "x${SQLITE_DIR}" != "x"; then
25067 if test -d ${SQLITE_DIR}/lib; then
25068 pbxlibdir="-L${SQLITE_DIR}/lib"
25069 else
25070 pbxlibdir="-L${SQLITE_DIR}"
25073 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
25074 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
25075 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
25076 echo $ECHO_N "(cached) $ECHO_C" >&6
25077 else
25078 ac_check_lib_save_LIBS=$LIBS
25079 LIBS="-lsqlite ${pbxlibdir} $LIBS"
25080 cat >conftest.$ac_ext <<_ACEOF
25081 /* confdefs.h. */
25082 _ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h. */
25087 /* Override any GCC internal prototype to avoid an error.
25088 Use char because int might match the return type of a GCC
25089 builtin and then its argument prototype would still apply. */
25090 #ifdef __cplusplus
25091 extern "C"
25092 #endif
25093 char sqlite_exec ();
25095 main ()
25097 return sqlite_exec ();
25099 return 0;
25101 _ACEOF
25102 rm -f conftest.$ac_objext conftest$ac_exeext
25103 if { (ac_try="$ac_link"
25104 case "(($ac_try" in
25105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25106 *) ac_try_echo=$ac_try;;
25107 esac
25108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25109 (eval "$ac_link") 2>conftest.er1
25110 ac_status=$?
25111 grep -v '^ *+' conftest.er1 >conftest.err
25112 rm -f conftest.er1
25113 cat conftest.err >&5
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); } && {
25116 test -z "$ac_c_werror_flag" ||
25117 test ! -s conftest.err
25118 } && test -s conftest$ac_exeext &&
25119 $as_test_x conftest$ac_exeext; then
25120 ac_cv_lib_sqlite_sqlite_exec=yes
25121 else
25122 echo "$as_me: failed program was:" >&5
25123 sed 's/^/| /' conftest.$ac_ext >&5
25125 ac_cv_lib_sqlite_sqlite_exec=no
25128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25129 conftest$ac_exeext conftest.$ac_ext
25130 LIBS=$ac_check_lib_save_LIBS
25132 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
25133 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
25134 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
25135 AST_SQLITE_FOUND=yes
25136 else
25137 AST_SQLITE_FOUND=no
25141 if test "${AST_SQLITE_FOUND}" = "yes"; then
25142 SQLITE_LIB="-lsqlite "
25143 SQLITE_HEADER_FOUND="1"
25144 if test "x${SQLITE_DIR}" != "x"; then
25145 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
25146 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
25147 if test "xsqlite.h" != "x" ; then
25148 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
25149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25150 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25151 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25153 echo $ECHO_N "(cached) $ECHO_C" >&6
25155 ac_res=`eval echo '${'$as_ac_Header'}'`
25156 { echo "$as_me:$LINENO: result: $ac_res" >&5
25157 echo "${ECHO_T}$ac_res" >&6; }
25158 else
25159 # Is the header compilable?
25160 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
25161 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
25162 cat >conftest.$ac_ext <<_ACEOF
25163 /* confdefs.h. */
25164 _ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h. */
25168 $ac_includes_default
25169 #include <${SQLITE_DIR}/include/sqlite.h>
25170 _ACEOF
25171 rm -f conftest.$ac_objext
25172 if { (ac_try="$ac_compile"
25173 case "(($ac_try" in
25174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175 *) ac_try_echo=$ac_try;;
25176 esac
25177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25178 (eval "$ac_compile") 2>conftest.er1
25179 ac_status=$?
25180 grep -v '^ *+' conftest.er1 >conftest.err
25181 rm -f conftest.er1
25182 cat conftest.err >&5
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); } && {
25185 test -z "$ac_c_werror_flag" ||
25186 test ! -s conftest.err
25187 } && test -s conftest.$ac_objext; then
25188 ac_header_compiler=yes
25189 else
25190 echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25193 ac_header_compiler=no
25196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25198 echo "${ECHO_T}$ac_header_compiler" >&6; }
25200 # Is the header present?
25201 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
25202 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
25203 cat >conftest.$ac_ext <<_ACEOF
25204 /* confdefs.h. */
25205 _ACEOF
25206 cat confdefs.h >>conftest.$ac_ext
25207 cat >>conftest.$ac_ext <<_ACEOF
25208 /* end confdefs.h. */
25209 #include <${SQLITE_DIR}/include/sqlite.h>
25210 _ACEOF
25211 if { (ac_try="$ac_cpp conftest.$ac_ext"
25212 case "(($ac_try" in
25213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25214 *) ac_try_echo=$ac_try;;
25215 esac
25216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25218 ac_status=$?
25219 grep -v '^ *+' conftest.er1 >conftest.err
25220 rm -f conftest.er1
25221 cat conftest.err >&5
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); } >/dev/null && {
25224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25225 test ! -s conftest.err
25226 }; then
25227 ac_header_preproc=yes
25228 else
25229 echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25232 ac_header_preproc=no
25235 rm -f conftest.err conftest.$ac_ext
25236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25237 echo "${ECHO_T}$ac_header_preproc" >&6; }
25239 # So? What about this header?
25240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25241 yes:no: )
25242 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25243 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25244 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
25245 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
25246 ac_header_preproc=yes
25248 no:yes:* )
25249 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
25250 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
25251 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
25252 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
25253 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
25254 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25256 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25257 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
25258 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
25259 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
25260 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
25263 esac
25264 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25265 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25267 echo $ECHO_N "(cached) $ECHO_C" >&6
25268 else
25269 eval "$as_ac_Header=\$ac_header_preproc"
25271 ac_res=`eval echo '${'$as_ac_Header'}'`
25272 { echo "$as_me:$LINENO: result: $ac_res" >&5
25273 echo "${ECHO_T}$ac_res" >&6; }
25276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25277 SQLITE_HEADER_FOUND=1
25278 else
25279 SQLITE_HEADER_FOUND=0
25284 else
25285 if test "xsqlite.h" != "x" ; then
25286 if test "${ac_cv_header_sqlite_h+set}" = set; then
25287 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25288 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25289 if test "${ac_cv_header_sqlite_h+set}" = set; then
25290 echo $ECHO_N "(cached) $ECHO_C" >&6
25292 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25293 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25294 else
25295 # Is the header compilable?
25296 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
25297 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
25298 cat >conftest.$ac_ext <<_ACEOF
25299 /* confdefs.h. */
25300 _ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h. */
25304 $ac_includes_default
25305 #include <sqlite.h>
25306 _ACEOF
25307 rm -f conftest.$ac_objext
25308 if { (ac_try="$ac_compile"
25309 case "(($ac_try" in
25310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25311 *) ac_try_echo=$ac_try;;
25312 esac
25313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25314 (eval "$ac_compile") 2>conftest.er1
25315 ac_status=$?
25316 grep -v '^ *+' conftest.er1 >conftest.err
25317 rm -f conftest.er1
25318 cat conftest.err >&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } && {
25321 test -z "$ac_c_werror_flag" ||
25322 test ! -s conftest.err
25323 } && test -s conftest.$ac_objext; then
25324 ac_header_compiler=yes
25325 else
25326 echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25329 ac_header_compiler=no
25332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25334 echo "${ECHO_T}$ac_header_compiler" >&6; }
25336 # Is the header present?
25337 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
25338 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
25339 cat >conftest.$ac_ext <<_ACEOF
25340 /* confdefs.h. */
25341 _ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25345 #include <sqlite.h>
25346 _ACEOF
25347 if { (ac_try="$ac_cpp conftest.$ac_ext"
25348 case "(($ac_try" in
25349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25350 *) ac_try_echo=$ac_try;;
25351 esac
25352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25354 ac_status=$?
25355 grep -v '^ *+' conftest.er1 >conftest.err
25356 rm -f conftest.er1
25357 cat conftest.err >&5
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); } >/dev/null && {
25360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25361 test ! -s conftest.err
25362 }; then
25363 ac_header_preproc=yes
25364 else
25365 echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25368 ac_header_preproc=no
25371 rm -f conftest.err conftest.$ac_ext
25372 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25373 echo "${ECHO_T}$ac_header_preproc" >&6; }
25375 # So? What about this header?
25376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25377 yes:no: )
25378 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25379 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25380 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
25381 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
25382 ac_header_preproc=yes
25384 no:yes:* )
25385 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
25386 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
25388 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
25389 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
25390 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
25391 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25392 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25393 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
25394 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
25395 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
25396 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
25399 esac
25400 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25401 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25402 if test "${ac_cv_header_sqlite_h+set}" = set; then
25403 echo $ECHO_N "(cached) $ECHO_C" >&6
25404 else
25405 ac_cv_header_sqlite_h=$ac_header_preproc
25407 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25408 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25411 if test $ac_cv_header_sqlite_h = yes; then
25412 SQLITE_HEADER_FOUND=1
25413 else
25414 SQLITE_HEADER_FOUND=0
25420 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
25421 if test ! -z "${SQLITE_MANDATORY}" ;
25422 then
25423 { echo "$as_me:$LINENO: ***" >&5
25424 echo "$as_me: ***" >&6;}
25425 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
25426 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
25427 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
25428 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
25429 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25430 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25431 exit 1
25433 SQLITE_LIB=""
25434 SQLITE_INCLUDE=""
25435 PBX_SQLITE=0
25436 else
25437 PBX_SQLITE=1
25439 cat >>confdefs.h <<_ACEOF
25440 #define HAVE_SQLITE 1
25441 _ACEOF
25444 elif test ! -z "${SQLITE_MANDATORY}";
25445 then
25446 { echo "$as_me:$LINENO: ***" >&5
25447 echo "$as_me: ***" >&6;}
25448 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
25449 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
25450 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25451 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25452 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25453 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25454 exit 1
25460 if test "${USE_OPENSSL}" != "no"; then
25461 pbxlibdir=""
25462 if test "x${OPENSSL_DIR}" != "x"; then
25463 if test -d ${OPENSSL_DIR}/lib; then
25464 pbxlibdir="-L${OPENSSL_DIR}/lib"
25465 else
25466 pbxlibdir="-L${OPENSSL_DIR}"
25469 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
25470 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
25471 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
25472 echo $ECHO_N "(cached) $ECHO_C" >&6
25473 else
25474 ac_check_lib_save_LIBS=$LIBS
25475 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
25476 cat >conftest.$ac_ext <<_ACEOF
25477 /* confdefs.h. */
25478 _ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h. */
25483 /* Override any GCC internal prototype to avoid an error.
25484 Use char because int might match the return type of a GCC
25485 builtin and then its argument prototype would still apply. */
25486 #ifdef __cplusplus
25487 extern "C"
25488 #endif
25489 char ssl2_connect ();
25491 main ()
25493 return ssl2_connect ();
25495 return 0;
25497 _ACEOF
25498 rm -f conftest.$ac_objext conftest$ac_exeext
25499 if { (ac_try="$ac_link"
25500 case "(($ac_try" in
25501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25502 *) ac_try_echo=$ac_try;;
25503 esac
25504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25505 (eval "$ac_link") 2>conftest.er1
25506 ac_status=$?
25507 grep -v '^ *+' conftest.er1 >conftest.err
25508 rm -f conftest.er1
25509 cat conftest.err >&5
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); } && {
25512 test -z "$ac_c_werror_flag" ||
25513 test ! -s conftest.err
25514 } && test -s conftest$ac_exeext &&
25515 $as_test_x conftest$ac_exeext; then
25516 ac_cv_lib_ssl_ssl2_connect=yes
25517 else
25518 echo "$as_me: failed program was:" >&5
25519 sed 's/^/| /' conftest.$ac_ext >&5
25521 ac_cv_lib_ssl_ssl2_connect=no
25524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25525 conftest$ac_exeext conftest.$ac_ext
25526 LIBS=$ac_check_lib_save_LIBS
25528 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
25529 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
25530 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
25531 AST_OPENSSL_FOUND=yes
25532 else
25533 AST_OPENSSL_FOUND=no
25537 if test "${AST_OPENSSL_FOUND}" = "yes"; then
25538 OPENSSL_LIB="-lssl -lcrypto"
25539 OPENSSL_HEADER_FOUND="1"
25540 if test "x${OPENSSL_DIR}" != "x"; then
25541 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
25542 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
25543 if test "xopenssl/ssl.h" != "x" ; then
25544 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
25545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25546 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
25547 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
25548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25551 ac_res=`eval echo '${'$as_ac_Header'}'`
25552 { echo "$as_me:$LINENO: result: $ac_res" >&5
25553 echo "${ECHO_T}$ac_res" >&6; }
25554 else
25555 # Is the header compilable?
25556 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
25557 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
25558 cat >conftest.$ac_ext <<_ACEOF
25559 /* confdefs.h. */
25560 _ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h. */
25564 $ac_includes_default
25565 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
25566 _ACEOF
25567 rm -f conftest.$ac_objext
25568 if { (ac_try="$ac_compile"
25569 case "(($ac_try" in
25570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25571 *) ac_try_echo=$ac_try;;
25572 esac
25573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25574 (eval "$ac_compile") 2>conftest.er1
25575 ac_status=$?
25576 grep -v '^ *+' conftest.er1 >conftest.err
25577 rm -f conftest.er1
25578 cat conftest.err >&5
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); } && {
25581 test -z "$ac_c_werror_flag" ||
25582 test ! -s conftest.err
25583 } && test -s conftest.$ac_objext; then
25584 ac_header_compiler=yes
25585 else
25586 echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25589 ac_header_compiler=no
25592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25594 echo "${ECHO_T}$ac_header_compiler" >&6; }
25596 # Is the header present?
25597 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
25598 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
25599 cat >conftest.$ac_ext <<_ACEOF
25600 /* confdefs.h. */
25601 _ACEOF
25602 cat confdefs.h >>conftest.$ac_ext
25603 cat >>conftest.$ac_ext <<_ACEOF
25604 /* end confdefs.h. */
25605 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
25606 _ACEOF
25607 if { (ac_try="$ac_cpp conftest.$ac_ext"
25608 case "(($ac_try" in
25609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25610 *) ac_try_echo=$ac_try;;
25611 esac
25612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25614 ac_status=$?
25615 grep -v '^ *+' conftest.er1 >conftest.err
25616 rm -f conftest.er1
25617 cat conftest.err >&5
25618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619 (exit $ac_status); } >/dev/null && {
25620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25621 test ! -s conftest.err
25622 }; then
25623 ac_header_preproc=yes
25624 else
25625 echo "$as_me: failed program was:" >&5
25626 sed 's/^/| /' conftest.$ac_ext >&5
25628 ac_header_preproc=no
25631 rm -f conftest.err conftest.$ac_ext
25632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25633 echo "${ECHO_T}$ac_header_preproc" >&6; }
25635 # So? What about this header?
25636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25637 yes:no: )
25638 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25639 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25640 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
25641 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
25642 ac_header_preproc=yes
25644 no:yes:* )
25645 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
25646 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
25647 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
25648 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
25649 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
25650 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
25651 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
25652 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25653 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
25654 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
25655 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
25656 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
25659 esac
25660 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
25661 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
25662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25663 echo $ECHO_N "(cached) $ECHO_C" >&6
25664 else
25665 eval "$as_ac_Header=\$ac_header_preproc"
25667 ac_res=`eval echo '${'$as_ac_Header'}'`
25668 { echo "$as_me:$LINENO: result: $ac_res" >&5
25669 echo "${ECHO_T}$ac_res" >&6; }
25672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25673 OPENSSL_HEADER_FOUND=1
25674 else
25675 OPENSSL_HEADER_FOUND=0
25680 else
25681 if test "xopenssl/ssl.h" != "x" ; then
25682 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25683 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
25684 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
25685 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25686 echo $ECHO_N "(cached) $ECHO_C" >&6
25688 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
25689 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
25690 else
25691 # Is the header compilable?
25692 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
25693 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
25694 cat >conftest.$ac_ext <<_ACEOF
25695 /* confdefs.h. */
25696 _ACEOF
25697 cat confdefs.h >>conftest.$ac_ext
25698 cat >>conftest.$ac_ext <<_ACEOF
25699 /* end confdefs.h. */
25700 $ac_includes_default
25701 #include <openssl/ssl.h>
25702 _ACEOF
25703 rm -f conftest.$ac_objext
25704 if { (ac_try="$ac_compile"
25705 case "(($ac_try" in
25706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25707 *) ac_try_echo=$ac_try;;
25708 esac
25709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25710 (eval "$ac_compile") 2>conftest.er1
25711 ac_status=$?
25712 grep -v '^ *+' conftest.er1 >conftest.err
25713 rm -f conftest.er1
25714 cat conftest.err >&5
25715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); } && {
25717 test -z "$ac_c_werror_flag" ||
25718 test ! -s conftest.err
25719 } && test -s conftest.$ac_objext; then
25720 ac_header_compiler=yes
25721 else
25722 echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25725 ac_header_compiler=no
25728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25730 echo "${ECHO_T}$ac_header_compiler" >&6; }
25732 # Is the header present?
25733 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
25734 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
25735 cat >conftest.$ac_ext <<_ACEOF
25736 /* confdefs.h. */
25737 _ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h. */
25741 #include <openssl/ssl.h>
25742 _ACEOF
25743 if { (ac_try="$ac_cpp conftest.$ac_ext"
25744 case "(($ac_try" in
25745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25746 *) ac_try_echo=$ac_try;;
25747 esac
25748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25750 ac_status=$?
25751 grep -v '^ *+' conftest.er1 >conftest.err
25752 rm -f conftest.er1
25753 cat conftest.err >&5
25754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755 (exit $ac_status); } >/dev/null && {
25756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25757 test ! -s conftest.err
25758 }; then
25759 ac_header_preproc=yes
25760 else
25761 echo "$as_me: failed program was:" >&5
25762 sed 's/^/| /' conftest.$ac_ext >&5
25764 ac_header_preproc=no
25767 rm -f conftest.err conftest.$ac_ext
25768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25769 echo "${ECHO_T}$ac_header_preproc" >&6; }
25771 # So? What about this header?
25772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25773 yes:no: )
25774 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25775 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25776 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
25777 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
25778 ac_header_preproc=yes
25780 no:yes:* )
25781 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
25782 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
25783 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
25784 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
25785 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
25786 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
25787 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
25788 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25789 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
25790 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
25791 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
25792 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
25795 esac
25796 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
25797 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
25798 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25799 echo $ECHO_N "(cached) $ECHO_C" >&6
25800 else
25801 ac_cv_header_openssl_ssl_h=$ac_header_preproc
25803 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
25804 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
25807 if test $ac_cv_header_openssl_ssl_h = yes; then
25808 OPENSSL_HEADER_FOUND=1
25809 else
25810 OPENSSL_HEADER_FOUND=0
25816 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
25817 if test ! -z "${OPENSSL_MANDATORY}" ;
25818 then
25819 { echo "$as_me:$LINENO: ***" >&5
25820 echo "$as_me: ***" >&6;}
25821 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
25822 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
25823 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
25824 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
25825 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
25826 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
25827 exit 1
25829 OPENSSL_LIB=""
25830 OPENSSL_INCLUDE=""
25831 PBX_OPENSSL=0
25832 else
25833 PBX_OPENSSL=1
25835 cat >>confdefs.h <<_ACEOF
25836 #define HAVE_OPENSSL 1
25837 _ACEOF
25840 elif test ! -z "${OPENSSL_MANDATORY}";
25841 then
25842 { echo "$as_me:$LINENO: ***" >&5
25843 echo "$as_me: ***" >&6;}
25844 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
25845 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
25846 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25847 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25848 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
25849 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
25850 exit 1
25856 if test "${USE_FREETDS}" != "no"; then
25857 pbxlibdir=""
25858 if test "x${FREETDS_DIR}" != "x"; then
25859 if test -d ${FREETDS_DIR}/lib; then
25860 pbxlibdir="-L${FREETDS_DIR}/lib"
25861 else
25862 pbxlibdir="-L${FREETDS_DIR}"
25865 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
25866 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
25867 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
25868 echo $ECHO_N "(cached) $ECHO_C" >&6
25869 else
25870 ac_check_lib_save_LIBS=$LIBS
25871 LIBS="-ltds ${pbxlibdir} $LIBS"
25872 cat >conftest.$ac_ext <<_ACEOF
25873 /* confdefs.h. */
25874 _ACEOF
25875 cat confdefs.h >>conftest.$ac_ext
25876 cat >>conftest.$ac_ext <<_ACEOF
25877 /* end confdefs.h. */
25879 /* Override any GCC internal prototype to avoid an error.
25880 Use char because int might match the return type of a GCC
25881 builtin and then its argument prototype would still apply. */
25882 #ifdef __cplusplus
25883 extern "C"
25884 #endif
25885 char tds_version ();
25887 main ()
25889 return tds_version ();
25891 return 0;
25893 _ACEOF
25894 rm -f conftest.$ac_objext conftest$ac_exeext
25895 if { (ac_try="$ac_link"
25896 case "(($ac_try" in
25897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25898 *) ac_try_echo=$ac_try;;
25899 esac
25900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25901 (eval "$ac_link") 2>conftest.er1
25902 ac_status=$?
25903 grep -v '^ *+' conftest.er1 >conftest.err
25904 rm -f conftest.er1
25905 cat conftest.err >&5
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); } && {
25908 test -z "$ac_c_werror_flag" ||
25909 test ! -s conftest.err
25910 } && test -s conftest$ac_exeext &&
25911 $as_test_x conftest$ac_exeext; then
25912 ac_cv_lib_tds_tds_version=yes
25913 else
25914 echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25917 ac_cv_lib_tds_tds_version=no
25920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25921 conftest$ac_exeext conftest.$ac_ext
25922 LIBS=$ac_check_lib_save_LIBS
25924 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
25925 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
25926 if test $ac_cv_lib_tds_tds_version = yes; then
25927 AST_FREETDS_FOUND=yes
25928 else
25929 AST_FREETDS_FOUND=no
25933 if test "${AST_FREETDS_FOUND}" = "yes"; then
25934 FREETDS_LIB="-ltds "
25935 FREETDS_HEADER_FOUND="1"
25936 if test "x${FREETDS_DIR}" != "x"; then
25937 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
25938 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
25939 if test "xtds.h" != "x" ; then
25940 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
25941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25942 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
25943 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
25944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25945 echo $ECHO_N "(cached) $ECHO_C" >&6
25947 ac_res=`eval echo '${'$as_ac_Header'}'`
25948 { echo "$as_me:$LINENO: result: $ac_res" >&5
25949 echo "${ECHO_T}$ac_res" >&6; }
25950 else
25951 # Is the header compilable?
25952 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
25953 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
25954 cat >conftest.$ac_ext <<_ACEOF
25955 /* confdefs.h. */
25956 _ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25960 $ac_includes_default
25961 #include <${FREETDS_DIR}/include/tds.h>
25962 _ACEOF
25963 rm -f conftest.$ac_objext
25964 if { (ac_try="$ac_compile"
25965 case "(($ac_try" in
25966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25967 *) ac_try_echo=$ac_try;;
25968 esac
25969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25970 (eval "$ac_compile") 2>conftest.er1
25971 ac_status=$?
25972 grep -v '^ *+' conftest.er1 >conftest.err
25973 rm -f conftest.er1
25974 cat conftest.err >&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); } && {
25977 test -z "$ac_c_werror_flag" ||
25978 test ! -s conftest.err
25979 } && test -s conftest.$ac_objext; then
25980 ac_header_compiler=yes
25981 else
25982 echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.$ac_ext >&5
25985 ac_header_compiler=no
25988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25990 echo "${ECHO_T}$ac_header_compiler" >&6; }
25992 # Is the header present?
25993 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
25994 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
25995 cat >conftest.$ac_ext <<_ACEOF
25996 /* confdefs.h. */
25997 _ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h. */
26001 #include <${FREETDS_DIR}/include/tds.h>
26002 _ACEOF
26003 if { (ac_try="$ac_cpp conftest.$ac_ext"
26004 case "(($ac_try" in
26005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26006 *) ac_try_echo=$ac_try;;
26007 esac
26008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26010 ac_status=$?
26011 grep -v '^ *+' conftest.er1 >conftest.err
26012 rm -f conftest.er1
26013 cat conftest.err >&5
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); } >/dev/null && {
26016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26017 test ! -s conftest.err
26018 }; then
26019 ac_header_preproc=yes
26020 else
26021 echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26024 ac_header_preproc=no
26027 rm -f conftest.err conftest.$ac_ext
26028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26029 echo "${ECHO_T}$ac_header_preproc" >&6; }
26031 # So? What about this header?
26032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26033 yes:no: )
26034 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26035 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26036 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
26037 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
26038 ac_header_preproc=yes
26040 no:yes:* )
26041 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
26042 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
26043 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
26044 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
26045 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
26046 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
26047 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
26048 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26049 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
26050 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
26051 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
26052 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
26055 esac
26056 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
26057 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
26058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26059 echo $ECHO_N "(cached) $ECHO_C" >&6
26060 else
26061 eval "$as_ac_Header=\$ac_header_preproc"
26063 ac_res=`eval echo '${'$as_ac_Header'}'`
26064 { echo "$as_me:$LINENO: result: $ac_res" >&5
26065 echo "${ECHO_T}$ac_res" >&6; }
26068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26069 FREETDS_HEADER_FOUND=1
26070 else
26071 FREETDS_HEADER_FOUND=0
26076 else
26077 if test "xtds.h" != "x" ; then
26078 if test "${ac_cv_header_tds_h+set}" = set; then
26079 { echo "$as_me:$LINENO: checking for tds.h" >&5
26080 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26081 if test "${ac_cv_header_tds_h+set}" = set; then
26082 echo $ECHO_N "(cached) $ECHO_C" >&6
26084 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26085 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26086 else
26087 # Is the header compilable?
26088 { echo "$as_me:$LINENO: checking tds.h usability" >&5
26089 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
26090 cat >conftest.$ac_ext <<_ACEOF
26091 /* confdefs.h. */
26092 _ACEOF
26093 cat confdefs.h >>conftest.$ac_ext
26094 cat >>conftest.$ac_ext <<_ACEOF
26095 /* end confdefs.h. */
26096 $ac_includes_default
26097 #include <tds.h>
26098 _ACEOF
26099 rm -f conftest.$ac_objext
26100 if { (ac_try="$ac_compile"
26101 case "(($ac_try" in
26102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26103 *) ac_try_echo=$ac_try;;
26104 esac
26105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26106 (eval "$ac_compile") 2>conftest.er1
26107 ac_status=$?
26108 grep -v '^ *+' conftest.er1 >conftest.err
26109 rm -f conftest.er1
26110 cat conftest.err >&5
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); } && {
26113 test -z "$ac_c_werror_flag" ||
26114 test ! -s conftest.err
26115 } && test -s conftest.$ac_objext; then
26116 ac_header_compiler=yes
26117 else
26118 echo "$as_me: failed program was:" >&5
26119 sed 's/^/| /' conftest.$ac_ext >&5
26121 ac_header_compiler=no
26124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26126 echo "${ECHO_T}$ac_header_compiler" >&6; }
26128 # Is the header present?
26129 { echo "$as_me:$LINENO: checking tds.h presence" >&5
26130 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
26131 cat >conftest.$ac_ext <<_ACEOF
26132 /* confdefs.h. */
26133 _ACEOF
26134 cat confdefs.h >>conftest.$ac_ext
26135 cat >>conftest.$ac_ext <<_ACEOF
26136 /* end confdefs.h. */
26137 #include <tds.h>
26138 _ACEOF
26139 if { (ac_try="$ac_cpp conftest.$ac_ext"
26140 case "(($ac_try" in
26141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26142 *) ac_try_echo=$ac_try;;
26143 esac
26144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26146 ac_status=$?
26147 grep -v '^ *+' conftest.er1 >conftest.err
26148 rm -f conftest.er1
26149 cat conftest.err >&5
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); } >/dev/null && {
26152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26153 test ! -s conftest.err
26154 }; then
26155 ac_header_preproc=yes
26156 else
26157 echo "$as_me: failed program was:" >&5
26158 sed 's/^/| /' conftest.$ac_ext >&5
26160 ac_header_preproc=no
26163 rm -f conftest.err conftest.$ac_ext
26164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26165 echo "${ECHO_T}$ac_header_preproc" >&6; }
26167 # So? What about this header?
26168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26169 yes:no: )
26170 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26171 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26172 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
26173 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
26174 ac_header_preproc=yes
26176 no:yes:* )
26177 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
26178 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
26179 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
26180 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
26181 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
26182 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
26183 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
26184 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26185 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
26186 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
26187 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
26188 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
26191 esac
26192 { echo "$as_me:$LINENO: checking for tds.h" >&5
26193 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26194 if test "${ac_cv_header_tds_h+set}" = set; then
26195 echo $ECHO_N "(cached) $ECHO_C" >&6
26196 else
26197 ac_cv_header_tds_h=$ac_header_preproc
26199 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26200 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26203 if test $ac_cv_header_tds_h = yes; then
26204 FREETDS_HEADER_FOUND=1
26205 else
26206 FREETDS_HEADER_FOUND=0
26212 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
26213 if test ! -z "${FREETDS_MANDATORY}" ;
26214 then
26215 { echo "$as_me:$LINENO: ***" >&5
26216 echo "$as_me: ***" >&6;}
26217 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
26218 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
26219 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
26220 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
26221 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26222 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26223 exit 1
26225 FREETDS_LIB=""
26226 FREETDS_INCLUDE=""
26227 PBX_FREETDS=0
26228 else
26229 PBX_FREETDS=1
26231 cat >>confdefs.h <<_ACEOF
26232 #define HAVE_FREETDS 1
26233 _ACEOF
26236 elif test ! -z "${FREETDS_MANDATORY}";
26237 then
26238 { echo "$as_me:$LINENO: ***" >&5
26239 echo "$as_me: ***" >&6;}
26240 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
26241 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
26242 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26243 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26244 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26245 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26246 exit 1
26250 if test "${PBX_FREETDS}" != "0";
26251 then
26252 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
26253 *0.64*)
26254 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
26256 *0.63*)
26257 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
26259 *0.62*)
26260 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
26263 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
26265 esac
26269 if test "${USE_TERMCAP}" != "no"; then
26270 pbxlibdir=""
26271 if test "x${TERMCAP_DIR}" != "x"; then
26272 if test -d ${TERMCAP_DIR}/lib; then
26273 pbxlibdir="-L${TERMCAP_DIR}/lib"
26274 else
26275 pbxlibdir="-L${TERMCAP_DIR}"
26278 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26279 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
26280 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26281 echo $ECHO_N "(cached) $ECHO_C" >&6
26282 else
26283 ac_check_lib_save_LIBS=$LIBS
26284 LIBS="-ltermcap ${pbxlibdir} $LIBS"
26285 cat >conftest.$ac_ext <<_ACEOF
26286 /* confdefs.h. */
26287 _ACEOF
26288 cat confdefs.h >>conftest.$ac_ext
26289 cat >>conftest.$ac_ext <<_ACEOF
26290 /* end confdefs.h. */
26292 /* Override any GCC internal prototype to avoid an error.
26293 Use char because int might match the return type of a GCC
26294 builtin and then its argument prototype would still apply. */
26295 #ifdef __cplusplus
26296 extern "C"
26297 #endif
26298 char tgetent ();
26300 main ()
26302 return tgetent ();
26304 return 0;
26306 _ACEOF
26307 rm -f conftest.$ac_objext conftest$ac_exeext
26308 if { (ac_try="$ac_link"
26309 case "(($ac_try" in
26310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26311 *) ac_try_echo=$ac_try;;
26312 esac
26313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26314 (eval "$ac_link") 2>conftest.er1
26315 ac_status=$?
26316 grep -v '^ *+' conftest.er1 >conftest.err
26317 rm -f conftest.er1
26318 cat conftest.err >&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } && {
26321 test -z "$ac_c_werror_flag" ||
26322 test ! -s conftest.err
26323 } && test -s conftest$ac_exeext &&
26324 $as_test_x conftest$ac_exeext; then
26325 ac_cv_lib_termcap_tgetent=yes
26326 else
26327 echo "$as_me: failed program was:" >&5
26328 sed 's/^/| /' conftest.$ac_ext >&5
26330 ac_cv_lib_termcap_tgetent=no
26333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26334 conftest$ac_exeext conftest.$ac_ext
26335 LIBS=$ac_check_lib_save_LIBS
26337 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26338 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
26339 if test $ac_cv_lib_termcap_tgetent = yes; then
26340 AST_TERMCAP_FOUND=yes
26341 else
26342 AST_TERMCAP_FOUND=no
26346 if test "${AST_TERMCAP_FOUND}" = "yes"; then
26347 TERMCAP_LIB="-ltermcap "
26348 TERMCAP_HEADER_FOUND="1"
26349 if test "x${TERMCAP_DIR}" != "x"; then
26350 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
26351 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
26352 if test "x" != "x" ; then
26353 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
26354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26355 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26356 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
26360 ac_res=`eval echo '${'$as_ac_Header'}'`
26361 { echo "$as_me:$LINENO: result: $ac_res" >&5
26362 echo "${ECHO_T}$ac_res" >&6; }
26363 else
26364 # Is the header compilable?
26365 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
26366 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
26367 cat >conftest.$ac_ext <<_ACEOF
26368 /* confdefs.h. */
26369 _ACEOF
26370 cat confdefs.h >>conftest.$ac_ext
26371 cat >>conftest.$ac_ext <<_ACEOF
26372 /* end confdefs.h. */
26373 $ac_includes_default
26374 #include <${TERMCAP_DIR}/include/>
26375 _ACEOF
26376 rm -f conftest.$ac_objext
26377 if { (ac_try="$ac_compile"
26378 case "(($ac_try" in
26379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26380 *) ac_try_echo=$ac_try;;
26381 esac
26382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26383 (eval "$ac_compile") 2>conftest.er1
26384 ac_status=$?
26385 grep -v '^ *+' conftest.er1 >conftest.err
26386 rm -f conftest.er1
26387 cat conftest.err >&5
26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); } && {
26390 test -z "$ac_c_werror_flag" ||
26391 test ! -s conftest.err
26392 } && test -s conftest.$ac_objext; then
26393 ac_header_compiler=yes
26394 else
26395 echo "$as_me: failed program was:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26398 ac_header_compiler=no
26401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26403 echo "${ECHO_T}$ac_header_compiler" >&6; }
26405 # Is the header present?
26406 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
26407 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
26408 cat >conftest.$ac_ext <<_ACEOF
26409 /* confdefs.h. */
26410 _ACEOF
26411 cat confdefs.h >>conftest.$ac_ext
26412 cat >>conftest.$ac_ext <<_ACEOF
26413 /* end confdefs.h. */
26414 #include <${TERMCAP_DIR}/include/>
26415 _ACEOF
26416 if { (ac_try="$ac_cpp conftest.$ac_ext"
26417 case "(($ac_try" in
26418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26419 *) ac_try_echo=$ac_try;;
26420 esac
26421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26423 ac_status=$?
26424 grep -v '^ *+' conftest.er1 >conftest.err
26425 rm -f conftest.er1
26426 cat conftest.err >&5
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); } >/dev/null && {
26429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26430 test ! -s conftest.err
26431 }; then
26432 ac_header_preproc=yes
26433 else
26434 echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.$ac_ext >&5
26437 ac_header_preproc=no
26440 rm -f conftest.err conftest.$ac_ext
26441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26442 echo "${ECHO_T}$ac_header_preproc" >&6; }
26444 # So? What about this header?
26445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26446 yes:no: )
26447 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26448 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26449 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
26450 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
26451 ac_header_preproc=yes
26453 no:yes:* )
26454 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
26455 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
26456 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
26457 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
26458 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
26459 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
26460 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26461 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26462 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
26463 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26464 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
26465 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26468 esac
26469 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26470 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26472 echo $ECHO_N "(cached) $ECHO_C" >&6
26473 else
26474 eval "$as_ac_Header=\$ac_header_preproc"
26476 ac_res=`eval echo '${'$as_ac_Header'}'`
26477 { echo "$as_me:$LINENO: result: $ac_res" >&5
26478 echo "${ECHO_T}$ac_res" >&6; }
26481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26482 TERMCAP_HEADER_FOUND=1
26483 else
26484 TERMCAP_HEADER_FOUND=0
26489 else
26490 if test "x" != "x" ; then
26491 if test "${ac_cv_header_+set}" = set; then
26492 { echo "$as_me:$LINENO: checking for " >&5
26493 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26494 if test "${ac_cv_header_+set}" = set; then
26495 echo $ECHO_N "(cached) $ECHO_C" >&6
26497 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26498 echo "${ECHO_T}$ac_cv_header_" >&6; }
26499 else
26500 # Is the header compilable?
26501 { echo "$as_me:$LINENO: checking usability" >&5
26502 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26503 cat >conftest.$ac_ext <<_ACEOF
26504 /* confdefs.h. */
26505 _ACEOF
26506 cat confdefs.h >>conftest.$ac_ext
26507 cat >>conftest.$ac_ext <<_ACEOF
26508 /* end confdefs.h. */
26509 $ac_includes_default
26510 #include <>
26511 _ACEOF
26512 rm -f conftest.$ac_objext
26513 if { (ac_try="$ac_compile"
26514 case "(($ac_try" in
26515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26516 *) ac_try_echo=$ac_try;;
26517 esac
26518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26519 (eval "$ac_compile") 2>conftest.er1
26520 ac_status=$?
26521 grep -v '^ *+' conftest.er1 >conftest.err
26522 rm -f conftest.er1
26523 cat conftest.err >&5
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } && {
26526 test -z "$ac_c_werror_flag" ||
26527 test ! -s conftest.err
26528 } && test -s conftest.$ac_objext; then
26529 ac_header_compiler=yes
26530 else
26531 echo "$as_me: failed program was:" >&5
26532 sed 's/^/| /' conftest.$ac_ext >&5
26534 ac_header_compiler=no
26537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26539 echo "${ECHO_T}$ac_header_compiler" >&6; }
26541 # Is the header present?
26542 { echo "$as_me:$LINENO: checking presence" >&5
26543 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26544 cat >conftest.$ac_ext <<_ACEOF
26545 /* confdefs.h. */
26546 _ACEOF
26547 cat confdefs.h >>conftest.$ac_ext
26548 cat >>conftest.$ac_ext <<_ACEOF
26549 /* end confdefs.h. */
26550 #include <>
26551 _ACEOF
26552 if { (ac_try="$ac_cpp conftest.$ac_ext"
26553 case "(($ac_try" in
26554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26555 *) ac_try_echo=$ac_try;;
26556 esac
26557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26559 ac_status=$?
26560 grep -v '^ *+' conftest.er1 >conftest.err
26561 rm -f conftest.er1
26562 cat conftest.err >&5
26563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564 (exit $ac_status); } >/dev/null && {
26565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26566 test ! -s conftest.err
26567 }; then
26568 ac_header_preproc=yes
26569 else
26570 echo "$as_me: failed program was:" >&5
26571 sed 's/^/| /' conftest.$ac_ext >&5
26573 ac_header_preproc=no
26576 rm -f conftest.err conftest.$ac_ext
26577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26578 echo "${ECHO_T}$ac_header_preproc" >&6; }
26580 # So? What about this header?
26581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26582 yes:no: )
26583 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26584 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26585 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26586 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26587 ac_header_preproc=yes
26589 no:yes:* )
26590 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26591 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26592 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26593 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26594 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26595 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26596 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26597 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26598 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26599 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26600 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26601 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26604 esac
26605 { echo "$as_me:$LINENO: checking for " >&5
26606 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26607 if test "${ac_cv_header_+set}" = set; then
26608 echo $ECHO_N "(cached) $ECHO_C" >&6
26609 else
26610 ac_cv_header_=$ac_header_preproc
26612 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26613 echo "${ECHO_T}$ac_cv_header_" >&6; }
26616 if test $ac_cv_header_ = yes; then
26617 TERMCAP_HEADER_FOUND=1
26618 else
26619 TERMCAP_HEADER_FOUND=0
26625 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
26626 if test ! -z "${TERMCAP_MANDATORY}" ;
26627 then
26628 { echo "$as_me:$LINENO: ***" >&5
26629 echo "$as_me: ***" >&6;}
26630 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
26631 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
26632 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
26633 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
26634 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
26635 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
26636 exit 1
26638 TERMCAP_LIB=""
26639 TERMCAP_INCLUDE=""
26640 PBX_TERMCAP=0
26641 else
26642 PBX_TERMCAP=1
26644 cat >>confdefs.h <<_ACEOF
26645 #define HAVE_TERMCAP 1
26646 _ACEOF
26649 elif test ! -z "${TERMCAP_MANDATORY}";
26650 then
26651 { echo "$as_me:$LINENO: ***" >&5
26652 echo "$as_me: ***" >&6;}
26653 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
26654 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
26655 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26656 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26657 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
26658 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
26659 exit 1
26665 if test "${USE_TINFO}" != "no"; then
26666 pbxlibdir=""
26667 if test "x${TINFO_DIR}" != "x"; then
26668 if test -d ${TINFO_DIR}/lib; then
26669 pbxlibdir="-L${TINFO_DIR}/lib"
26670 else
26671 pbxlibdir="-L${TINFO_DIR}"
26674 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
26675 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
26676 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
26677 echo $ECHO_N "(cached) $ECHO_C" >&6
26678 else
26679 ac_check_lib_save_LIBS=$LIBS
26680 LIBS="-ltinfo ${pbxlibdir} $LIBS"
26681 cat >conftest.$ac_ext <<_ACEOF
26682 /* confdefs.h. */
26683 _ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h. */
26688 /* Override any GCC internal prototype to avoid an error.
26689 Use char because int might match the return type of a GCC
26690 builtin and then its argument prototype would still apply. */
26691 #ifdef __cplusplus
26692 extern "C"
26693 #endif
26694 char tgetent ();
26696 main ()
26698 return tgetent ();
26700 return 0;
26702 _ACEOF
26703 rm -f conftest.$ac_objext conftest$ac_exeext
26704 if { (ac_try="$ac_link"
26705 case "(($ac_try" in
26706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26707 *) ac_try_echo=$ac_try;;
26708 esac
26709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26710 (eval "$ac_link") 2>conftest.er1
26711 ac_status=$?
26712 grep -v '^ *+' conftest.er1 >conftest.err
26713 rm -f conftest.er1
26714 cat conftest.err >&5
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); } && {
26717 test -z "$ac_c_werror_flag" ||
26718 test ! -s conftest.err
26719 } && test -s conftest$ac_exeext &&
26720 $as_test_x conftest$ac_exeext; then
26721 ac_cv_lib_tinfo_tgetent=yes
26722 else
26723 echo "$as_me: failed program was:" >&5
26724 sed 's/^/| /' conftest.$ac_ext >&5
26726 ac_cv_lib_tinfo_tgetent=no
26729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26730 conftest$ac_exeext conftest.$ac_ext
26731 LIBS=$ac_check_lib_save_LIBS
26733 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
26734 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
26735 if test $ac_cv_lib_tinfo_tgetent = yes; then
26736 AST_TINFO_FOUND=yes
26737 else
26738 AST_TINFO_FOUND=no
26742 if test "${AST_TINFO_FOUND}" = "yes"; then
26743 TINFO_LIB="-ltinfo "
26744 TINFO_HEADER_FOUND="1"
26745 if test "x${TINFO_DIR}" != "x"; then
26746 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
26747 TINFO_INCLUDE="-I${TINFO_DIR}/include"
26748 if test "x" != "x" ; then
26749 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
26750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26751 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
26752 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
26753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26754 echo $ECHO_N "(cached) $ECHO_C" >&6
26756 ac_res=`eval echo '${'$as_ac_Header'}'`
26757 { echo "$as_me:$LINENO: result: $ac_res" >&5
26758 echo "${ECHO_T}$ac_res" >&6; }
26759 else
26760 # Is the header compilable?
26761 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
26762 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
26763 cat >conftest.$ac_ext <<_ACEOF
26764 /* confdefs.h. */
26765 _ACEOF
26766 cat confdefs.h >>conftest.$ac_ext
26767 cat >>conftest.$ac_ext <<_ACEOF
26768 /* end confdefs.h. */
26769 $ac_includes_default
26770 #include <${TINFO_DIR}/include/>
26771 _ACEOF
26772 rm -f conftest.$ac_objext
26773 if { (ac_try="$ac_compile"
26774 case "(($ac_try" in
26775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26776 *) ac_try_echo=$ac_try;;
26777 esac
26778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26779 (eval "$ac_compile") 2>conftest.er1
26780 ac_status=$?
26781 grep -v '^ *+' conftest.er1 >conftest.err
26782 rm -f conftest.er1
26783 cat conftest.err >&5
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); } && {
26786 test -z "$ac_c_werror_flag" ||
26787 test ! -s conftest.err
26788 } && test -s conftest.$ac_objext; then
26789 ac_header_compiler=yes
26790 else
26791 echo "$as_me: failed program was:" >&5
26792 sed 's/^/| /' conftest.$ac_ext >&5
26794 ac_header_compiler=no
26797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26799 echo "${ECHO_T}$ac_header_compiler" >&6; }
26801 # Is the header present?
26802 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
26803 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
26804 cat >conftest.$ac_ext <<_ACEOF
26805 /* confdefs.h. */
26806 _ACEOF
26807 cat confdefs.h >>conftest.$ac_ext
26808 cat >>conftest.$ac_ext <<_ACEOF
26809 /* end confdefs.h. */
26810 #include <${TINFO_DIR}/include/>
26811 _ACEOF
26812 if { (ac_try="$ac_cpp conftest.$ac_ext"
26813 case "(($ac_try" in
26814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26815 *) ac_try_echo=$ac_try;;
26816 esac
26817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26819 ac_status=$?
26820 grep -v '^ *+' conftest.er1 >conftest.err
26821 rm -f conftest.er1
26822 cat conftest.err >&5
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); } >/dev/null && {
26825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26826 test ! -s conftest.err
26827 }; then
26828 ac_header_preproc=yes
26829 else
26830 echo "$as_me: failed program was:" >&5
26831 sed 's/^/| /' conftest.$ac_ext >&5
26833 ac_header_preproc=no
26836 rm -f conftest.err conftest.$ac_ext
26837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26838 echo "${ECHO_T}$ac_header_preproc" >&6; }
26840 # So? What about this header?
26841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26842 yes:no: )
26843 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26844 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26845 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
26846 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
26847 ac_header_preproc=yes
26849 no:yes:* )
26850 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
26851 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
26852 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
26853 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
26854 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
26855 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
26856 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26857 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
26859 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26860 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
26861 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26864 esac
26865 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
26866 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
26867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26868 echo $ECHO_N "(cached) $ECHO_C" >&6
26869 else
26870 eval "$as_ac_Header=\$ac_header_preproc"
26872 ac_res=`eval echo '${'$as_ac_Header'}'`
26873 { echo "$as_me:$LINENO: result: $ac_res" >&5
26874 echo "${ECHO_T}$ac_res" >&6; }
26877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26878 TINFO_HEADER_FOUND=1
26879 else
26880 TINFO_HEADER_FOUND=0
26885 else
26886 if test "x" != "x" ; then
26887 if test "${ac_cv_header_+set}" = set; then
26888 { echo "$as_me:$LINENO: checking for " >&5
26889 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26890 if test "${ac_cv_header_+set}" = set; then
26891 echo $ECHO_N "(cached) $ECHO_C" >&6
26893 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26894 echo "${ECHO_T}$ac_cv_header_" >&6; }
26895 else
26896 # Is the header compilable?
26897 { echo "$as_me:$LINENO: checking usability" >&5
26898 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26899 cat >conftest.$ac_ext <<_ACEOF
26900 /* confdefs.h. */
26901 _ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h. */
26905 $ac_includes_default
26906 #include <>
26907 _ACEOF
26908 rm -f conftest.$ac_objext
26909 if { (ac_try="$ac_compile"
26910 case "(($ac_try" in
26911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26912 *) ac_try_echo=$ac_try;;
26913 esac
26914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26915 (eval "$ac_compile") 2>conftest.er1
26916 ac_status=$?
26917 grep -v '^ *+' conftest.er1 >conftest.err
26918 rm -f conftest.er1
26919 cat conftest.err >&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); } && {
26922 test -z "$ac_c_werror_flag" ||
26923 test ! -s conftest.err
26924 } && test -s conftest.$ac_objext; then
26925 ac_header_compiler=yes
26926 else
26927 echo "$as_me: failed program was:" >&5
26928 sed 's/^/| /' conftest.$ac_ext >&5
26930 ac_header_compiler=no
26933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26935 echo "${ECHO_T}$ac_header_compiler" >&6; }
26937 # Is the header present?
26938 { echo "$as_me:$LINENO: checking presence" >&5
26939 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26940 cat >conftest.$ac_ext <<_ACEOF
26941 /* confdefs.h. */
26942 _ACEOF
26943 cat confdefs.h >>conftest.$ac_ext
26944 cat >>conftest.$ac_ext <<_ACEOF
26945 /* end confdefs.h. */
26946 #include <>
26947 _ACEOF
26948 if { (ac_try="$ac_cpp conftest.$ac_ext"
26949 case "(($ac_try" in
26950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26951 *) ac_try_echo=$ac_try;;
26952 esac
26953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26955 ac_status=$?
26956 grep -v '^ *+' conftest.er1 >conftest.err
26957 rm -f conftest.er1
26958 cat conftest.err >&5
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); } >/dev/null && {
26961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26962 test ! -s conftest.err
26963 }; then
26964 ac_header_preproc=yes
26965 else
26966 echo "$as_me: failed program was:" >&5
26967 sed 's/^/| /' conftest.$ac_ext >&5
26969 ac_header_preproc=no
26972 rm -f conftest.err conftest.$ac_ext
26973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26974 echo "${ECHO_T}$ac_header_preproc" >&6; }
26976 # So? What about this header?
26977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26978 yes:no: )
26979 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26980 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26981 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26982 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26983 ac_header_preproc=yes
26985 no:yes:* )
26986 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26987 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26988 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26989 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26990 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26991 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26992 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26993 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26994 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26995 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26996 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26997 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27000 esac
27001 { echo "$as_me:$LINENO: checking for " >&5
27002 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27003 if test "${ac_cv_header_+set}" = set; then
27004 echo $ECHO_N "(cached) $ECHO_C" >&6
27005 else
27006 ac_cv_header_=$ac_header_preproc
27008 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27009 echo "${ECHO_T}$ac_cv_header_" >&6; }
27012 if test $ac_cv_header_ = yes; then
27013 TINFO_HEADER_FOUND=1
27014 else
27015 TINFO_HEADER_FOUND=0
27021 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
27022 if test ! -z "${TINFO_MANDATORY}" ;
27023 then
27024 { echo "$as_me:$LINENO: ***" >&5
27025 echo "$as_me: ***" >&6;}
27026 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
27027 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
27028 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
27029 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
27030 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
27031 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
27032 exit 1
27034 TINFO_LIB=""
27035 TINFO_INCLUDE=""
27036 PBX_TINFO=0
27037 else
27038 PBX_TINFO=1
27040 cat >>confdefs.h <<_ACEOF
27041 #define HAVE_TINFO 1
27042 _ACEOF
27045 elif test ! -z "${TINFO_MANDATORY}";
27046 then
27047 { echo "$as_me:$LINENO: ***" >&5
27048 echo "$as_me: ***" >&6;}
27049 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
27050 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
27051 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27052 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27053 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
27054 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
27055 exit 1
27060 if test "${host_os}" != "linux-gnu" ; then
27061 tonezone_extra="-lm"
27065 if test "${USE_TONEZONE}" != "no"; then
27066 pbxlibdir=""
27067 if test "x${TONEZONE_DIR}" != "x"; then
27068 if test -d ${TONEZONE_DIR}/lib; then
27069 pbxlibdir="-L${TONEZONE_DIR}/lib"
27070 else
27071 pbxlibdir="-L${TONEZONE_DIR}"
27074 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
27075 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
27076 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
27077 echo $ECHO_N "(cached) $ECHO_C" >&6
27078 else
27079 ac_check_lib_save_LIBS=$LIBS
27080 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
27081 cat >conftest.$ac_ext <<_ACEOF
27082 /* confdefs.h. */
27083 _ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h. */
27088 /* Override any GCC internal prototype to avoid an error.
27089 Use char because int might match the return type of a GCC
27090 builtin and then its argument prototype would still apply. */
27091 #ifdef __cplusplus
27092 extern "C"
27093 #endif
27094 char tone_zone_find ();
27096 main ()
27098 return tone_zone_find ();
27100 return 0;
27102 _ACEOF
27103 rm -f conftest.$ac_objext conftest$ac_exeext
27104 if { (ac_try="$ac_link"
27105 case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27108 esac
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_link") 2>conftest.er1
27111 ac_status=$?
27112 grep -v '^ *+' conftest.er1 >conftest.err
27113 rm -f conftest.er1
27114 cat conftest.err >&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); } && {
27117 test -z "$ac_c_werror_flag" ||
27118 test ! -s conftest.err
27119 } && test -s conftest$ac_exeext &&
27120 $as_test_x conftest$ac_exeext; then
27121 ac_cv_lib_tonezone_tone_zone_find=yes
27122 else
27123 echo "$as_me: failed program was:" >&5
27124 sed 's/^/| /' conftest.$ac_ext >&5
27126 ac_cv_lib_tonezone_tone_zone_find=no
27129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27130 conftest$ac_exeext conftest.$ac_ext
27131 LIBS=$ac_check_lib_save_LIBS
27133 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
27134 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
27135 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
27136 AST_TONEZONE_FOUND=yes
27137 else
27138 AST_TONEZONE_FOUND=no
27142 if test "${AST_TONEZONE_FOUND}" = "yes"; then
27143 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
27144 TONEZONE_HEADER_FOUND="1"
27145 if test "x${TONEZONE_DIR}" != "x"; then
27146 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
27147 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
27148 if test "xzaptel/tonezone.h" != "x" ; then
27149 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
27150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27151 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27152 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27154 echo $ECHO_N "(cached) $ECHO_C" >&6
27156 ac_res=`eval echo '${'$as_ac_Header'}'`
27157 { echo "$as_me:$LINENO: result: $ac_res" >&5
27158 echo "${ECHO_T}$ac_res" >&6; }
27159 else
27160 # Is the header compilable?
27161 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
27162 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
27163 cat >conftest.$ac_ext <<_ACEOF
27164 /* confdefs.h. */
27165 _ACEOF
27166 cat confdefs.h >>conftest.$ac_ext
27167 cat >>conftest.$ac_ext <<_ACEOF
27168 /* end confdefs.h. */
27169 $ac_includes_default
27170 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27171 _ACEOF
27172 rm -f conftest.$ac_objext
27173 if { (ac_try="$ac_compile"
27174 case "(($ac_try" in
27175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27176 *) ac_try_echo=$ac_try;;
27177 esac
27178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27179 (eval "$ac_compile") 2>conftest.er1
27180 ac_status=$?
27181 grep -v '^ *+' conftest.er1 >conftest.err
27182 rm -f conftest.er1
27183 cat conftest.err >&5
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); } && {
27186 test -z "$ac_c_werror_flag" ||
27187 test ! -s conftest.err
27188 } && test -s conftest.$ac_objext; then
27189 ac_header_compiler=yes
27190 else
27191 echo "$as_me: failed program was:" >&5
27192 sed 's/^/| /' conftest.$ac_ext >&5
27194 ac_header_compiler=no
27197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27199 echo "${ECHO_T}$ac_header_compiler" >&6; }
27201 # Is the header present?
27202 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
27203 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
27204 cat >conftest.$ac_ext <<_ACEOF
27205 /* confdefs.h. */
27206 _ACEOF
27207 cat confdefs.h >>conftest.$ac_ext
27208 cat >>conftest.$ac_ext <<_ACEOF
27209 /* end confdefs.h. */
27210 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27211 _ACEOF
27212 if { (ac_try="$ac_cpp conftest.$ac_ext"
27213 case "(($ac_try" in
27214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215 *) ac_try_echo=$ac_try;;
27216 esac
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27219 ac_status=$?
27220 grep -v '^ *+' conftest.er1 >conftest.err
27221 rm -f conftest.er1
27222 cat conftest.err >&5
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); } >/dev/null && {
27225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27226 test ! -s conftest.err
27227 }; then
27228 ac_header_preproc=yes
27229 else
27230 echo "$as_me: failed program was:" >&5
27231 sed 's/^/| /' conftest.$ac_ext >&5
27233 ac_header_preproc=no
27236 rm -f conftest.err conftest.$ac_ext
27237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27238 echo "${ECHO_T}$ac_header_preproc" >&6; }
27240 # So? What about this header?
27241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27242 yes:no: )
27243 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27244 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27245 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
27246 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27247 ac_header_preproc=yes
27249 no:yes:* )
27250 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
27251 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
27252 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27253 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27254 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
27255 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27256 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27257 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27258 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27259 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27260 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27261 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27264 esac
27265 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27266 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27268 echo $ECHO_N "(cached) $ECHO_C" >&6
27269 else
27270 eval "$as_ac_Header=\$ac_header_preproc"
27272 ac_res=`eval echo '${'$as_ac_Header'}'`
27273 { echo "$as_me:$LINENO: result: $ac_res" >&5
27274 echo "${ECHO_T}$ac_res" >&6; }
27277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27278 TONEZONE_HEADER_FOUND=1
27279 else
27280 TONEZONE_HEADER_FOUND=0
27285 else
27286 if test "xzaptel/tonezone.h" != "x" ; then
27287 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27288 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27289 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27290 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27291 echo $ECHO_N "(cached) $ECHO_C" >&6
27293 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27294 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27295 else
27296 # Is the header compilable?
27297 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
27298 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
27299 cat >conftest.$ac_ext <<_ACEOF
27300 /* confdefs.h. */
27301 _ACEOF
27302 cat confdefs.h >>conftest.$ac_ext
27303 cat >>conftest.$ac_ext <<_ACEOF
27304 /* end confdefs.h. */
27305 $ac_includes_default
27306 #include <zaptel/tonezone.h>
27307 _ACEOF
27308 rm -f conftest.$ac_objext
27309 if { (ac_try="$ac_compile"
27310 case "(($ac_try" in
27311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27312 *) ac_try_echo=$ac_try;;
27313 esac
27314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27315 (eval "$ac_compile") 2>conftest.er1
27316 ac_status=$?
27317 grep -v '^ *+' conftest.er1 >conftest.err
27318 rm -f conftest.er1
27319 cat conftest.err >&5
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); } && {
27322 test -z "$ac_c_werror_flag" ||
27323 test ! -s conftest.err
27324 } && test -s conftest.$ac_objext; then
27325 ac_header_compiler=yes
27326 else
27327 echo "$as_me: failed program was:" >&5
27328 sed 's/^/| /' conftest.$ac_ext >&5
27330 ac_header_compiler=no
27333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27335 echo "${ECHO_T}$ac_header_compiler" >&6; }
27337 # Is the header present?
27338 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
27339 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
27340 cat >conftest.$ac_ext <<_ACEOF
27341 /* confdefs.h. */
27342 _ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h. */
27346 #include <zaptel/tonezone.h>
27347 _ACEOF
27348 if { (ac_try="$ac_cpp conftest.$ac_ext"
27349 case "(($ac_try" in
27350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27351 *) ac_try_echo=$ac_try;;
27352 esac
27353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27355 ac_status=$?
27356 grep -v '^ *+' conftest.er1 >conftest.err
27357 rm -f conftest.er1
27358 cat conftest.err >&5
27359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360 (exit $ac_status); } >/dev/null && {
27361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27362 test ! -s conftest.err
27363 }; then
27364 ac_header_preproc=yes
27365 else
27366 echo "$as_me: failed program was:" >&5
27367 sed 's/^/| /' conftest.$ac_ext >&5
27369 ac_header_preproc=no
27372 rm -f conftest.err conftest.$ac_ext
27373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27374 echo "${ECHO_T}$ac_header_preproc" >&6; }
27376 # So? What about this header?
27377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27378 yes:no: )
27379 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27380 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27381 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
27382 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27383 ac_header_preproc=yes
27385 no:yes:* )
27386 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
27387 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
27388 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27389 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27390 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
27391 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27392 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27393 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27394 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27395 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27396 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27397 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27400 esac
27401 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27402 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27403 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27404 echo $ECHO_N "(cached) $ECHO_C" >&6
27405 else
27406 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
27408 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27409 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27412 if test $ac_cv_header_zaptel_tonezone_h = yes; then
27413 TONEZONE_HEADER_FOUND=1
27414 else
27415 TONEZONE_HEADER_FOUND=0
27421 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
27422 if test ! -z "${TONEZONE_MANDATORY}" ;
27423 then
27424 { echo "$as_me:$LINENO: ***" >&5
27425 echo "$as_me: ***" >&6;}
27426 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
27427 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
27428 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
27429 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
27430 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27431 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27432 exit 1
27434 TONEZONE_LIB=""
27435 TONEZONE_INCLUDE=""
27436 PBX_TONEZONE=0
27437 else
27438 PBX_TONEZONE=1
27440 cat >>confdefs.h <<_ACEOF
27441 #define HAVE_TONEZONE 1
27442 _ACEOF
27445 elif test ! -z "${TONEZONE_MANDATORY}";
27446 then
27447 { echo "$as_me:$LINENO: ***" >&5
27448 echo "$as_me: ***" >&6;}
27449 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
27450 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
27451 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27452 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27453 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27454 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27455 exit 1
27461 if test "${USE_VORBIS}" != "no"; then
27462 pbxlibdir=""
27463 if test "x${VORBIS_DIR}" != "x"; then
27464 if test -d ${VORBIS_DIR}/lib; then
27465 pbxlibdir="-L${VORBIS_DIR}/lib"
27466 else
27467 pbxlibdir="-L${VORBIS_DIR}"
27470 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
27471 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
27472 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
27473 echo $ECHO_N "(cached) $ECHO_C" >&6
27474 else
27475 ac_check_lib_save_LIBS=$LIBS
27476 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
27477 cat >conftest.$ac_ext <<_ACEOF
27478 /* confdefs.h. */
27479 _ACEOF
27480 cat confdefs.h >>conftest.$ac_ext
27481 cat >>conftest.$ac_ext <<_ACEOF
27482 /* end confdefs.h. */
27484 /* Override any GCC internal prototype to avoid an error.
27485 Use char because int might match the return type of a GCC
27486 builtin and then its argument prototype would still apply. */
27487 #ifdef __cplusplus
27488 extern "C"
27489 #endif
27490 char vorbis_info_init ();
27492 main ()
27494 return vorbis_info_init ();
27496 return 0;
27498 _ACEOF
27499 rm -f conftest.$ac_objext conftest$ac_exeext
27500 if { (ac_try="$ac_link"
27501 case "(($ac_try" in
27502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27503 *) ac_try_echo=$ac_try;;
27504 esac
27505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27506 (eval "$ac_link") 2>conftest.er1
27507 ac_status=$?
27508 grep -v '^ *+' conftest.er1 >conftest.err
27509 rm -f conftest.er1
27510 cat conftest.err >&5
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); } && {
27513 test -z "$ac_c_werror_flag" ||
27514 test ! -s conftest.err
27515 } && test -s conftest$ac_exeext &&
27516 $as_test_x conftest$ac_exeext; then
27517 ac_cv_lib_vorbis_vorbis_info_init=yes
27518 else
27519 echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27522 ac_cv_lib_vorbis_vorbis_info_init=no
27525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27526 conftest$ac_exeext conftest.$ac_ext
27527 LIBS=$ac_check_lib_save_LIBS
27529 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
27530 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
27531 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
27532 AST_VORBIS_FOUND=yes
27533 else
27534 AST_VORBIS_FOUND=no
27538 if test "${AST_VORBIS_FOUND}" = "yes"; then
27539 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
27540 VORBIS_HEADER_FOUND="1"
27541 if test "x${VORBIS_DIR}" != "x"; then
27542 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
27543 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
27544 if test "xvorbis/codec.h" != "x" ; then
27545 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
27546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27547 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
27548 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
27549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27550 echo $ECHO_N "(cached) $ECHO_C" >&6
27552 ac_res=`eval echo '${'$as_ac_Header'}'`
27553 { echo "$as_me:$LINENO: result: $ac_res" >&5
27554 echo "${ECHO_T}$ac_res" >&6; }
27555 else
27556 # Is the header compilable?
27557 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
27558 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
27559 cat >conftest.$ac_ext <<_ACEOF
27560 /* confdefs.h. */
27561 _ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h. */
27565 $ac_includes_default
27566 #include <${VORBIS_DIR}/include/vorbis/codec.h>
27567 _ACEOF
27568 rm -f conftest.$ac_objext
27569 if { (ac_try="$ac_compile"
27570 case "(($ac_try" in
27571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572 *) ac_try_echo=$ac_try;;
27573 esac
27574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_compile") 2>conftest.er1
27576 ac_status=$?
27577 grep -v '^ *+' conftest.er1 >conftest.err
27578 rm -f conftest.er1
27579 cat conftest.err >&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } && {
27582 test -z "$ac_c_werror_flag" ||
27583 test ! -s conftest.err
27584 } && test -s conftest.$ac_objext; then
27585 ac_header_compiler=yes
27586 else
27587 echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27590 ac_header_compiler=no
27593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27595 echo "${ECHO_T}$ac_header_compiler" >&6; }
27597 # Is the header present?
27598 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
27599 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
27600 cat >conftest.$ac_ext <<_ACEOF
27601 /* confdefs.h. */
27602 _ACEOF
27603 cat confdefs.h >>conftest.$ac_ext
27604 cat >>conftest.$ac_ext <<_ACEOF
27605 /* end confdefs.h. */
27606 #include <${VORBIS_DIR}/include/vorbis/codec.h>
27607 _ACEOF
27608 if { (ac_try="$ac_cpp conftest.$ac_ext"
27609 case "(($ac_try" in
27610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27611 *) ac_try_echo=$ac_try;;
27612 esac
27613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27615 ac_status=$?
27616 grep -v '^ *+' conftest.er1 >conftest.err
27617 rm -f conftest.er1
27618 cat conftest.err >&5
27619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620 (exit $ac_status); } >/dev/null && {
27621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27622 test ! -s conftest.err
27623 }; then
27624 ac_header_preproc=yes
27625 else
27626 echo "$as_me: failed program was:" >&5
27627 sed 's/^/| /' conftest.$ac_ext >&5
27629 ac_header_preproc=no
27632 rm -f conftest.err conftest.$ac_ext
27633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27634 echo "${ECHO_T}$ac_header_preproc" >&6; }
27636 # So? What about this header?
27637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27638 yes:no: )
27639 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
27640 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27641 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
27642 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
27643 ac_header_preproc=yes
27645 no:yes:* )
27646 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
27647 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
27648 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
27649 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
27650 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
27651 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
27652 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
27653 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
27654 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
27655 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
27656 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
27657 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
27660 esac
27661 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
27662 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
27663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27664 echo $ECHO_N "(cached) $ECHO_C" >&6
27665 else
27666 eval "$as_ac_Header=\$ac_header_preproc"
27668 ac_res=`eval echo '${'$as_ac_Header'}'`
27669 { echo "$as_me:$LINENO: result: $ac_res" >&5
27670 echo "${ECHO_T}$ac_res" >&6; }
27673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27674 VORBIS_HEADER_FOUND=1
27675 else
27676 VORBIS_HEADER_FOUND=0
27681 else
27682 if test "xvorbis/codec.h" != "x" ; then
27683 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27684 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
27685 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
27686 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27687 echo $ECHO_N "(cached) $ECHO_C" >&6
27689 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
27690 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
27691 else
27692 # Is the header compilable?
27693 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
27694 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
27695 cat >conftest.$ac_ext <<_ACEOF
27696 /* confdefs.h. */
27697 _ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h. */
27701 $ac_includes_default
27702 #include <vorbis/codec.h>
27703 _ACEOF
27704 rm -f conftest.$ac_objext
27705 if { (ac_try="$ac_compile"
27706 case "(($ac_try" in
27707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27708 *) ac_try_echo=$ac_try;;
27709 esac
27710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27711 (eval "$ac_compile") 2>conftest.er1
27712 ac_status=$?
27713 grep -v '^ *+' conftest.er1 >conftest.err
27714 rm -f conftest.er1
27715 cat conftest.err >&5
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); } && {
27718 test -z "$ac_c_werror_flag" ||
27719 test ! -s conftest.err
27720 } && test -s conftest.$ac_objext; then
27721 ac_header_compiler=yes
27722 else
27723 echo "$as_me: failed program was:" >&5
27724 sed 's/^/| /' conftest.$ac_ext >&5
27726 ac_header_compiler=no
27729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27731 echo "${ECHO_T}$ac_header_compiler" >&6; }
27733 # Is the header present?
27734 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
27735 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
27736 cat >conftest.$ac_ext <<_ACEOF
27737 /* confdefs.h. */
27738 _ACEOF
27739 cat confdefs.h >>conftest.$ac_ext
27740 cat >>conftest.$ac_ext <<_ACEOF
27741 /* end confdefs.h. */
27742 #include <vorbis/codec.h>
27743 _ACEOF
27744 if { (ac_try="$ac_cpp conftest.$ac_ext"
27745 case "(($ac_try" in
27746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27747 *) ac_try_echo=$ac_try;;
27748 esac
27749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27751 ac_status=$?
27752 grep -v '^ *+' conftest.er1 >conftest.err
27753 rm -f conftest.er1
27754 cat conftest.err >&5
27755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756 (exit $ac_status); } >/dev/null && {
27757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27758 test ! -s conftest.err
27759 }; then
27760 ac_header_preproc=yes
27761 else
27762 echo "$as_me: failed program was:" >&5
27763 sed 's/^/| /' conftest.$ac_ext >&5
27765 ac_header_preproc=no
27768 rm -f conftest.err conftest.$ac_ext
27769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27770 echo "${ECHO_T}$ac_header_preproc" >&6; }
27772 # So? What about this header?
27773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27774 yes:no: )
27775 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
27776 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27777 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
27778 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
27779 ac_header_preproc=yes
27781 no:yes:* )
27782 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
27783 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
27784 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
27785 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
27786 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
27787 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
27788 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
27789 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
27790 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
27791 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
27792 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
27793 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
27796 esac
27797 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
27798 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
27799 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27800 echo $ECHO_N "(cached) $ECHO_C" >&6
27801 else
27802 ac_cv_header_vorbis_codec_h=$ac_header_preproc
27804 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
27805 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
27808 if test $ac_cv_header_vorbis_codec_h = yes; then
27809 VORBIS_HEADER_FOUND=1
27810 else
27811 VORBIS_HEADER_FOUND=0
27817 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
27818 if test ! -z "${VORBIS_MANDATORY}" ;
27819 then
27820 { echo "$as_me:$LINENO: ***" >&5
27821 echo "$as_me: ***" >&6;}
27822 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
27823 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
27824 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
27825 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
27826 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
27827 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
27828 exit 1
27830 VORBIS_LIB=""
27831 VORBIS_INCLUDE=""
27832 PBX_VORBIS=0
27833 else
27834 PBX_VORBIS=1
27836 cat >>confdefs.h <<_ACEOF
27837 #define HAVE_VORBIS 1
27838 _ACEOF
27841 elif test ! -z "${VORBIS_MANDATORY}";
27842 then
27843 { echo "$as_me:$LINENO: ***" >&5
27844 echo "$as_me: ***" >&6;}
27845 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
27846 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
27847 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27848 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27849 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
27850 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
27851 exit 1
27856 ac_ext=cpp
27857 ac_cpp='$CXXCPP $CPPFLAGS'
27858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27863 if test "${USE_VPB}" != "no"; then
27864 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
27865 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
27866 saved_libs="${LIBS}"
27867 saved_cppflags="${CPPFLAGS}"
27868 if test "x${VPB_DIR}" != "x"; then
27869 if test -d ${VPB_DIR}/lib; then
27870 vpblibdir=${VPB_DIR}/lib
27871 else
27872 vpblibdir=${VPB_DIR}
27874 LIBS="${LIBS} -L${vpblibdir}"
27875 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
27877 LIBS="${LIBS} -lvpb -lpthread"
27878 cat >conftest.$ac_ext <<_ACEOF
27880 /* confdefs.h. */
27881 _ACEOF
27882 cat confdefs.h >>conftest.$ac_ext
27883 cat >>conftest.$ac_ext <<_ACEOF
27884 /* end confdefs.h. */
27885 #include <vpbapi.h>
27887 main ()
27889 int q = vpb_open(0,0);
27891 return 0;
27894 _ACEOF
27895 rm -f conftest.$ac_objext conftest$ac_exeext
27896 if { (ac_try="$ac_link"
27897 case "(($ac_try" in
27898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899 *) ac_try_echo=$ac_try;;
27900 esac
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902 (eval "$ac_link") 2>conftest.er1
27903 ac_status=$?
27904 grep -v '^ *+' conftest.er1 >conftest.err
27905 rm -f conftest.er1
27906 cat conftest.err >&5
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); } && {
27909 test -z "$ac_cxx_werror_flag" ||
27910 test ! -s conftest.err
27911 } && test -s conftest$ac_exeext &&
27912 $as_test_x conftest$ac_exeext; then
27913 { echo "$as_me:$LINENO: result: yes" >&5
27914 echo "${ECHO_T}yes" >&6; }
27915 ac_cv_lib_vpb_vpb_open="yes"
27917 else
27918 echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.$ac_ext >&5
27921 { echo "$as_me:$LINENO: result: no" >&5
27922 echo "${ECHO_T}no" >&6; }
27923 ac_cv_lib_vpb_vpb_open="no"
27928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27929 conftest$ac_exeext conftest.$ac_ext
27930 LIBS="${saved_libs}"
27931 CPPFLAGS="${saved_cppflags}"
27932 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
27933 VPB_LIB="-lvpb"
27934 if test "${VPB_DIR}" != ""; then
27935 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
27936 VPB_INCLUDE="-I${VPB_DIR}/include"
27938 PBX_VPB=1
27940 cat >>confdefs.h <<\_ACEOF
27941 #define HAVE_VPB 1
27942 _ACEOF
27944 elif test ! -z "${VPB_MANDATORY}"; then
27945 { echo "$as_me:$LINENO: ***" >&5
27946 echo "$as_me: ***" >&6;}
27947 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
27948 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
27949 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27950 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27951 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
27952 echo "$as_me: *** including --without-vpb." >&6;}
27953 exit 1
27957 ac_ext=c
27958 ac_cpp='$CPP $CPPFLAGS'
27959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27965 if test "${USE_ZLIB}" != "no"; then
27966 pbxlibdir=""
27967 if test "x${ZLIB_DIR}" != "x"; then
27968 if test -d ${ZLIB_DIR}/lib; then
27969 pbxlibdir="-L${ZLIB_DIR}/lib"
27970 else
27971 pbxlibdir="-L${ZLIB_DIR}"
27974 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
27975 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
27976 if test "${ac_cv_lib_z_compress+set}" = set; then
27977 echo $ECHO_N "(cached) $ECHO_C" >&6
27978 else
27979 ac_check_lib_save_LIBS=$LIBS
27980 LIBS="-lz ${pbxlibdir} $LIBS"
27981 cat >conftest.$ac_ext <<_ACEOF
27982 /* confdefs.h. */
27983 _ACEOF
27984 cat confdefs.h >>conftest.$ac_ext
27985 cat >>conftest.$ac_ext <<_ACEOF
27986 /* end confdefs.h. */
27988 /* Override any GCC internal prototype to avoid an error.
27989 Use char because int might match the return type of a GCC
27990 builtin and then its argument prototype would still apply. */
27991 #ifdef __cplusplus
27992 extern "C"
27993 #endif
27994 char compress ();
27996 main ()
27998 return compress ();
28000 return 0;
28002 _ACEOF
28003 rm -f conftest.$ac_objext conftest$ac_exeext
28004 if { (ac_try="$ac_link"
28005 case "(($ac_try" in
28006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28007 *) ac_try_echo=$ac_try;;
28008 esac
28009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28010 (eval "$ac_link") 2>conftest.er1
28011 ac_status=$?
28012 grep -v '^ *+' conftest.er1 >conftest.err
28013 rm -f conftest.er1
28014 cat conftest.err >&5
28015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016 (exit $ac_status); } && {
28017 test -z "$ac_c_werror_flag" ||
28018 test ! -s conftest.err
28019 } && test -s conftest$ac_exeext &&
28020 $as_test_x conftest$ac_exeext; then
28021 ac_cv_lib_z_compress=yes
28022 else
28023 echo "$as_me: failed program was:" >&5
28024 sed 's/^/| /' conftest.$ac_ext >&5
28026 ac_cv_lib_z_compress=no
28029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28030 conftest$ac_exeext conftest.$ac_ext
28031 LIBS=$ac_check_lib_save_LIBS
28033 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
28034 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
28035 if test $ac_cv_lib_z_compress = yes; then
28036 AST_ZLIB_FOUND=yes
28037 else
28038 AST_ZLIB_FOUND=no
28042 if test "${AST_ZLIB_FOUND}" = "yes"; then
28043 ZLIB_LIB="-lz "
28044 ZLIB_HEADER_FOUND="1"
28045 if test "x${ZLIB_DIR}" != "x"; then
28046 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
28047 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
28048 if test "xzlib.h" != "x" ; then
28049 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
28050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28051 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28052 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28054 echo $ECHO_N "(cached) $ECHO_C" >&6
28056 ac_res=`eval echo '${'$as_ac_Header'}'`
28057 { echo "$as_me:$LINENO: result: $ac_res" >&5
28058 echo "${ECHO_T}$ac_res" >&6; }
28059 else
28060 # Is the header compilable?
28061 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
28062 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
28063 cat >conftest.$ac_ext <<_ACEOF
28064 /* confdefs.h. */
28065 _ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h. */
28069 $ac_includes_default
28070 #include <${ZLIB_DIR}/include/zlib.h>
28071 _ACEOF
28072 rm -f conftest.$ac_objext
28073 if { (ac_try="$ac_compile"
28074 case "(($ac_try" in
28075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076 *) ac_try_echo=$ac_try;;
28077 esac
28078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079 (eval "$ac_compile") 2>conftest.er1
28080 ac_status=$?
28081 grep -v '^ *+' conftest.er1 >conftest.err
28082 rm -f conftest.er1
28083 cat conftest.err >&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); } && {
28086 test -z "$ac_c_werror_flag" ||
28087 test ! -s conftest.err
28088 } && test -s conftest.$ac_objext; then
28089 ac_header_compiler=yes
28090 else
28091 echo "$as_me: failed program was:" >&5
28092 sed 's/^/| /' conftest.$ac_ext >&5
28094 ac_header_compiler=no
28097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28099 echo "${ECHO_T}$ac_header_compiler" >&6; }
28101 # Is the header present?
28102 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
28103 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
28104 cat >conftest.$ac_ext <<_ACEOF
28105 /* confdefs.h. */
28106 _ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h. */
28110 #include <${ZLIB_DIR}/include/zlib.h>
28111 _ACEOF
28112 if { (ac_try="$ac_cpp conftest.$ac_ext"
28113 case "(($ac_try" in
28114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28115 *) ac_try_echo=$ac_try;;
28116 esac
28117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28119 ac_status=$?
28120 grep -v '^ *+' conftest.er1 >conftest.err
28121 rm -f conftest.er1
28122 cat conftest.err >&5
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); } >/dev/null && {
28125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28126 test ! -s conftest.err
28127 }; then
28128 ac_header_preproc=yes
28129 else
28130 echo "$as_me: failed program was:" >&5
28131 sed 's/^/| /' conftest.$ac_ext >&5
28133 ac_header_preproc=no
28136 rm -f conftest.err conftest.$ac_ext
28137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28138 echo "${ECHO_T}$ac_header_preproc" >&6; }
28140 # So? What about this header?
28141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28142 yes:no: )
28143 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28144 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28145 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
28146 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
28147 ac_header_preproc=yes
28149 no:yes:* )
28150 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
28151 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
28152 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
28153 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
28154 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
28155 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
28156 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28157 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28158 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
28159 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
28160 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
28161 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
28164 esac
28165 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28166 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28168 echo $ECHO_N "(cached) $ECHO_C" >&6
28169 else
28170 eval "$as_ac_Header=\$ac_header_preproc"
28172 ac_res=`eval echo '${'$as_ac_Header'}'`
28173 { echo "$as_me:$LINENO: result: $ac_res" >&5
28174 echo "${ECHO_T}$ac_res" >&6; }
28177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28178 ZLIB_HEADER_FOUND=1
28179 else
28180 ZLIB_HEADER_FOUND=0
28185 else
28186 if test "xzlib.h" != "x" ; then
28187 if test "${ac_cv_header_zlib_h+set}" = set; then
28188 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28189 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28190 if test "${ac_cv_header_zlib_h+set}" = set; then
28191 echo $ECHO_N "(cached) $ECHO_C" >&6
28193 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28194 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28195 else
28196 # Is the header compilable?
28197 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
28198 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
28199 cat >conftest.$ac_ext <<_ACEOF
28200 /* confdefs.h. */
28201 _ACEOF
28202 cat confdefs.h >>conftest.$ac_ext
28203 cat >>conftest.$ac_ext <<_ACEOF
28204 /* end confdefs.h. */
28205 $ac_includes_default
28206 #include <zlib.h>
28207 _ACEOF
28208 rm -f conftest.$ac_objext
28209 if { (ac_try="$ac_compile"
28210 case "(($ac_try" in
28211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28212 *) ac_try_echo=$ac_try;;
28213 esac
28214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28215 (eval "$ac_compile") 2>conftest.er1
28216 ac_status=$?
28217 grep -v '^ *+' conftest.er1 >conftest.err
28218 rm -f conftest.er1
28219 cat conftest.err >&5
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); } && {
28222 test -z "$ac_c_werror_flag" ||
28223 test ! -s conftest.err
28224 } && test -s conftest.$ac_objext; then
28225 ac_header_compiler=yes
28226 else
28227 echo "$as_me: failed program was:" >&5
28228 sed 's/^/| /' conftest.$ac_ext >&5
28230 ac_header_compiler=no
28233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28235 echo "${ECHO_T}$ac_header_compiler" >&6; }
28237 # Is the header present?
28238 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
28239 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
28240 cat >conftest.$ac_ext <<_ACEOF
28241 /* confdefs.h. */
28242 _ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h. */
28246 #include <zlib.h>
28247 _ACEOF
28248 if { (ac_try="$ac_cpp conftest.$ac_ext"
28249 case "(($ac_try" in
28250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251 *) ac_try_echo=$ac_try;;
28252 esac
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28255 ac_status=$?
28256 grep -v '^ *+' conftest.er1 >conftest.err
28257 rm -f conftest.er1
28258 cat conftest.err >&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); } >/dev/null && {
28261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28262 test ! -s conftest.err
28263 }; then
28264 ac_header_preproc=yes
28265 else
28266 echo "$as_me: failed program was:" >&5
28267 sed 's/^/| /' conftest.$ac_ext >&5
28269 ac_header_preproc=no
28272 rm -f conftest.err conftest.$ac_ext
28273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28274 echo "${ECHO_T}$ac_header_preproc" >&6; }
28276 # So? What about this header?
28277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28278 yes:no: )
28279 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28280 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28281 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
28282 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
28283 ac_header_preproc=yes
28285 no:yes:* )
28286 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
28287 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
28288 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
28289 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
28290 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
28291 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
28292 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28293 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28294 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
28295 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
28296 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
28297 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
28300 esac
28301 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28302 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28303 if test "${ac_cv_header_zlib_h+set}" = set; then
28304 echo $ECHO_N "(cached) $ECHO_C" >&6
28305 else
28306 ac_cv_header_zlib_h=$ac_header_preproc
28308 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28309 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28312 if test $ac_cv_header_zlib_h = yes; then
28313 ZLIB_HEADER_FOUND=1
28314 else
28315 ZLIB_HEADER_FOUND=0
28321 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
28322 if test ! -z "${ZLIB_MANDATORY}" ;
28323 then
28324 { echo "$as_me:$LINENO: ***" >&5
28325 echo "$as_me: ***" >&6;}
28326 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
28327 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
28328 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
28329 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
28330 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28331 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28332 exit 1
28334 ZLIB_LIB=""
28335 ZLIB_INCLUDE=""
28336 PBX_ZLIB=0
28337 else
28338 PBX_ZLIB=1
28340 cat >>confdefs.h <<_ACEOF
28341 #define HAVE_ZLIB 1
28342 _ACEOF
28345 elif test ! -z "${ZLIB_MANDATORY}";
28346 then
28347 { echo "$as_me:$LINENO: ***" >&5
28348 echo "$as_me: ***" >&6;}
28349 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
28350 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
28351 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28352 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28353 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28354 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28355 exit 1
28360 if test "${USE_ZAPTEL}" != "no"; then
28361 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
28362 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
28363 saved_cppflags="${CPPFLAGS}"
28364 if test "x${ZAPTEL_DIR}" != "x"; then
28365 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28367 cat >conftest.$ac_ext <<_ACEOF
28369 /* confdefs.h. */
28370 _ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h. */
28374 #include <zaptel/zaptel.h>
28376 main ()
28378 int foo = ZT_DIAL_OP_CANCEL;
28380 return 0;
28383 _ACEOF
28384 rm -f conftest.$ac_objext
28385 if { (ac_try="$ac_compile"
28386 case "(($ac_try" in
28387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28388 *) ac_try_echo=$ac_try;;
28389 esac
28390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28391 (eval "$ac_compile") 2>conftest.er1
28392 ac_status=$?
28393 grep -v '^ *+' conftest.er1 >conftest.err
28394 rm -f conftest.er1
28395 cat conftest.err >&5
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); } && {
28398 test -z "$ac_c_werror_flag" ||
28399 test ! -s conftest.err
28400 } && test -s conftest.$ac_objext; then
28401 { echo "$as_me:$LINENO: result: yes" >&5
28402 echo "${ECHO_T}yes" >&6; }
28403 ac_cv_zaptel_h="yes"
28405 else
28406 echo "$as_me: failed program was:" >&5
28407 sed 's/^/| /' conftest.$ac_ext >&5
28409 { echo "$as_me:$LINENO: result: no" >&5
28410 echo "${ECHO_T}no" >&6; }
28411 ac_cv_zaptel_h="no"
28416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28417 CPPFLAGS="${saved_cppflags}"
28418 if test "${ac_cv_zaptel_h}" = "yes"; then
28419 if test "${ZAPTEL_DIR}" != ""; then
28420 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
28422 PBX_ZAPTEL=1
28424 cat >>confdefs.h <<\_ACEOF
28425 #define HAVE_ZAPTEL 1
28426 _ACEOF
28428 elif test ! -z "${ZAPTEL_MANDATORY}";
28429 then
28430 { echo "$as_me:$LINENO: ***" >&5
28431 echo "$as_me: ***" >&6;}
28432 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
28433 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
28434 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28435 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28436 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
28437 echo "$as_me: *** including --without-zaptel." >&6;}
28438 exit 1
28442 if test "${PBX_ZAPTEL}" = 1; then
28443 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h" >&5
28444 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h... $ECHO_C" >&6; }
28445 saved_cppflags="${CPPFLAGS}"
28446 if test "x${ZAPTEL_DIR}" != "x"; then
28447 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28449 cat >conftest.$ac_ext <<_ACEOF
28451 /* confdefs.h. */
28452 _ACEOF
28453 cat confdefs.h >>conftest.$ac_ext
28454 cat >>conftest.$ac_ext <<_ACEOF
28455 /* end confdefs.h. */
28456 #include <zaptel/zaptel.h>
28458 main ()
28460 int foo = ZT_TONE_DTMF_BASE;
28462 return 0;
28465 _ACEOF
28466 rm -f conftest.$ac_objext
28467 if { (ac_try="$ac_compile"
28468 case "(($ac_try" in
28469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28470 *) ac_try_echo=$ac_try;;
28471 esac
28472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473 (eval "$ac_compile") 2>conftest.er1
28474 ac_status=$?
28475 grep -v '^ *+' conftest.er1 >conftest.err
28476 rm -f conftest.er1
28477 cat conftest.err >&5
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); } && {
28480 test -z "$ac_c_werror_flag" ||
28481 test ! -s conftest.err
28482 } && test -s conftest.$ac_objext; then
28483 { echo "$as_me:$LINENO: result: yes" >&5
28484 echo "${ECHO_T}yes" >&6; }
28485 ac_cv_zaptel_vldtmf="yes"
28487 else
28488 echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28491 { echo "$as_me:$LINENO: result: no" >&5
28492 echo "${ECHO_T}no" >&6; }
28493 ac_cv_zaptel_vldtmf="no"
28498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28499 CPPFLAGS="${saved_cppflags}"
28500 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
28501 PBX_ZAPTEL_VLDTMF=1
28503 { echo "$as_me:$LINENO: checking for ZT_TCOP_TRANSCODE in zaptel/zaptel.h" >&5
28504 echo $ECHO_N "checking for ZT_TCOP_TRANSCODE in zaptel/zaptel.h... $ECHO_C" >&6; }
28505 saved_cppflags="${CPPFLAGS}"
28506 if test "x${ZAPTEL_DIR}" != "x"; then
28507 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28509 cat >conftest.$ac_ext <<_ACEOF
28511 /* confdefs.h. */
28512 _ACEOF
28513 cat confdefs.h >>conftest.$ac_ext
28514 cat >>conftest.$ac_ext <<_ACEOF
28515 /* end confdefs.h. */
28516 #include <zaptel/zaptel.h>
28518 main ()
28520 int foo = ZT_TCOP_TRANSCODE;
28522 return 0;
28525 _ACEOF
28526 rm -f conftest.$ac_objext
28527 if { (ac_try="$ac_compile"
28528 case "(($ac_try" in
28529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28530 *) ac_try_echo=$ac_try;;
28531 esac
28532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28533 (eval "$ac_compile") 2>conftest.er1
28534 ac_status=$?
28535 grep -v '^ *+' conftest.er1 >conftest.err
28536 rm -f conftest.er1
28537 cat conftest.err >&5
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); } && {
28540 test -z "$ac_c_werror_flag" ||
28541 test ! -s conftest.err
28542 } && test -s conftest.$ac_objext; then
28543 { echo "$as_me:$LINENO: result: yes" >&5
28544 echo "${ECHO_T}yes" >&6; }
28545 ac_cv_zaptel_transcode="yes"
28547 else
28548 echo "$as_me: failed program was:" >&5
28549 sed 's/^/| /' conftest.$ac_ext >&5
28551 { echo "$as_me:$LINENO: result: no" >&5
28552 echo "${ECHO_T}no" >&6; }
28553 ac_cv_zaptel_transcode="no"
28558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28559 CPPFLAGS="${saved_cppflags}"
28560 if test "${ac_cv_zaptel_transcode}" = "yes"; then
28561 PBX_ZAPTEL_TRANSCODE=1
28567 EDITLINE_LIB=""
28568 if test "x$TERMCAP_LIB" != "x" ; then
28569 EDITLINE_LIB="$TERMCAP_LIB"
28570 elif test "x$TINFO_LIB" != "x" ; then
28571 EDITLINE_LIB="$TINFO_LIB"
28572 elif test "x$CURSES_LIB" != "x" ; then
28573 EDITLINE_LIB="$CURSES_LIB"
28574 elif test "x$NCURSES_LIB" != "x" ; then
28575 EDITLINE_LIB="$NCURSES_LIB"
28576 else
28577 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
28578 echo "$as_me: error: *** termcap support not found" >&2;}
28579 { (exit 1); exit 1; }; }
28583 if test "${ac_cv_header_h323_h+set}" = set; then
28584 { echo "$as_me:$LINENO: checking for h323.h" >&5
28585 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
28586 if test "${ac_cv_header_h323_h+set}" = set; then
28587 echo $ECHO_N "(cached) $ECHO_C" >&6
28589 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
28590 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
28591 else
28592 # Is the header compilable?
28593 { echo "$as_me:$LINENO: checking h323.h usability" >&5
28594 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
28595 cat >conftest.$ac_ext <<_ACEOF
28596 /* confdefs.h. */
28597 _ACEOF
28598 cat confdefs.h >>conftest.$ac_ext
28599 cat >>conftest.$ac_ext <<_ACEOF
28600 /* end confdefs.h. */
28601 $ac_includes_default
28602 #include <h323.h>
28603 _ACEOF
28604 rm -f conftest.$ac_objext
28605 if { (ac_try="$ac_compile"
28606 case "(($ac_try" in
28607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608 *) ac_try_echo=$ac_try;;
28609 esac
28610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611 (eval "$ac_compile") 2>conftest.er1
28612 ac_status=$?
28613 grep -v '^ *+' conftest.er1 >conftest.err
28614 rm -f conftest.er1
28615 cat conftest.err >&5
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); } && {
28618 test -z "$ac_c_werror_flag" ||
28619 test ! -s conftest.err
28620 } && test -s conftest.$ac_objext; then
28621 ac_header_compiler=yes
28622 else
28623 echo "$as_me: failed program was:" >&5
28624 sed 's/^/| /' conftest.$ac_ext >&5
28626 ac_header_compiler=no
28629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28631 echo "${ECHO_T}$ac_header_compiler" >&6; }
28633 # Is the header present?
28634 { echo "$as_me:$LINENO: checking h323.h presence" >&5
28635 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
28636 cat >conftest.$ac_ext <<_ACEOF
28637 /* confdefs.h. */
28638 _ACEOF
28639 cat confdefs.h >>conftest.$ac_ext
28640 cat >>conftest.$ac_ext <<_ACEOF
28641 /* end confdefs.h. */
28642 #include <h323.h>
28643 _ACEOF
28644 if { (ac_try="$ac_cpp conftest.$ac_ext"
28645 case "(($ac_try" in
28646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28647 *) ac_try_echo=$ac_try;;
28648 esac
28649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28651 ac_status=$?
28652 grep -v '^ *+' conftest.er1 >conftest.err
28653 rm -f conftest.er1
28654 cat conftest.err >&5
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); } >/dev/null && {
28657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28658 test ! -s conftest.err
28659 }; then
28660 ac_header_preproc=yes
28661 else
28662 echo "$as_me: failed program was:" >&5
28663 sed 's/^/| /' conftest.$ac_ext >&5
28665 ac_header_preproc=no
28668 rm -f conftest.err conftest.$ac_ext
28669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28670 echo "${ECHO_T}$ac_header_preproc" >&6; }
28672 # So? What about this header?
28673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28674 yes:no: )
28675 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28676 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28677 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
28678 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
28679 ac_header_preproc=yes
28681 no:yes:* )
28682 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
28683 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
28684 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
28685 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
28686 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
28687 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
28688 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
28689 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28690 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
28691 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
28692 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
28693 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
28696 esac
28697 { echo "$as_me:$LINENO: checking for h323.h" >&5
28698 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
28699 if test "${ac_cv_header_h323_h+set}" = set; then
28700 echo $ECHO_N "(cached) $ECHO_C" >&6
28701 else
28702 ac_cv_header_h323_h=$ac_header_preproc
28704 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
28705 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
28708 if test $ac_cv_header_h323_h = yes; then
28709 PBX_H323=1
28710 else
28711 PBX_H323=0
28717 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
28718 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
28719 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
28720 echo $ECHO_N "(cached) $ECHO_C" >&6
28721 else
28722 cat >conftest.$ac_ext <<_ACEOF
28723 /* confdefs.h. */
28724 _ACEOF
28725 cat confdefs.h >>conftest.$ac_ext
28726 cat >>conftest.$ac_ext <<_ACEOF
28727 /* end confdefs.h. */
28729 #include <linux/version.h>
28730 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
28731 #include <linux/compiler.h>
28732 #endif
28735 #include <linux/ixjuser.h>
28736 _ACEOF
28737 rm -f conftest.$ac_objext
28738 if { (ac_try="$ac_compile"
28739 case "(($ac_try" in
28740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741 *) ac_try_echo=$ac_try;;
28742 esac
28743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744 (eval "$ac_compile") 2>conftest.er1
28745 ac_status=$?
28746 grep -v '^ *+' conftest.er1 >conftest.err
28747 rm -f conftest.er1
28748 cat conftest.err >&5
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); } && {
28751 test -z "$ac_c_werror_flag" ||
28752 test ! -s conftest.err
28753 } && test -s conftest.$ac_objext; then
28754 ac_cv_header_linux_ixjuser_h=yes
28755 else
28756 echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28759 ac_cv_header_linux_ixjuser_h=no
28762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28764 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
28765 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
28766 if test $ac_cv_header_linux_ixjuser_h = yes; then
28767 PBX_IXJUSER=1
28768 else
28769 PBX_IXJUSER=0
28775 PBX_GTK=0
28776 if test -n "$ac_tool_prefix"; then
28777 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
28778 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
28779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28781 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
28782 echo $ECHO_N "(cached) $ECHO_C" >&6
28783 else
28784 if test -n "$GTKCONFIG"; then
28785 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
28786 else
28787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28788 for as_dir in $PATH
28790 IFS=$as_save_IFS
28791 test -z "$as_dir" && as_dir=.
28792 for ac_exec_ext in '' $ac_executable_extensions; do
28793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28794 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
28795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28796 break 2
28798 done
28799 done
28800 IFS=$as_save_IFS
28804 GTKCONFIG=$ac_cv_prog_GTKCONFIG
28805 if test -n "$GTKCONFIG"; then
28806 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
28807 echo "${ECHO_T}$GTKCONFIG" >&6; }
28808 else
28809 { echo "$as_me:$LINENO: result: no" >&5
28810 echo "${ECHO_T}no" >&6; }
28815 if test -z "$ac_cv_prog_GTKCONFIG"; then
28816 ac_ct_GTKCONFIG=$GTKCONFIG
28817 # Extract the first word of "gtk-config", so it can be a program name with args.
28818 set dummy gtk-config; ac_word=$2
28819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28821 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
28822 echo $ECHO_N "(cached) $ECHO_C" >&6
28823 else
28824 if test -n "$ac_ct_GTKCONFIG"; then
28825 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
28826 else
28827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28828 for as_dir in $PATH
28830 IFS=$as_save_IFS
28831 test -z "$as_dir" && as_dir=.
28832 for ac_exec_ext in '' $ac_executable_extensions; do
28833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28834 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
28835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28836 break 2
28838 done
28839 done
28840 IFS=$as_save_IFS
28844 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
28845 if test -n "$ac_ct_GTKCONFIG"; then
28846 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
28847 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
28848 else
28849 { echo "$as_me:$LINENO: result: no" >&5
28850 echo "${ECHO_T}no" >&6; }
28853 if test "x$ac_ct_GTKCONFIG" = x; then
28854 GTKCONFIG="No"
28855 else
28856 case $cross_compiling:$ac_tool_warned in
28857 yes:)
28858 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28859 whose name does not start with the host triplet. If you think this
28860 configuration is useful to you, please write to autoconf@gnu.org." >&5
28861 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28862 whose name does not start with the host triplet. If you think this
28863 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28864 ac_tool_warned=yes ;;
28865 esac
28866 GTKCONFIG=$ac_ct_GTKCONFIG
28868 else
28869 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
28872 if test ! "x${GTKCONFIG}" = xNo; then
28873 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
28874 GTK_LIB=$(${GTKCONFIG} --libs gthread)
28875 PBX_GTK=1
28877 cat >>confdefs.h <<\_ACEOF
28878 #define HAVE_GTK 1
28879 _ACEOF
28886 if test "${USE_CURL}" != "no"; then
28887 if test -n "$ac_tool_prefix"; then
28888 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
28889 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
28890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28892 if test "${ac_cv_path_CURL+set}" = set; then
28893 echo $ECHO_N "(cached) $ECHO_C" >&6
28894 else
28895 case $CURL in
28896 [\\/]* | ?:[\\/]*)
28897 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
28900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28901 for as_dir in $PATH
28903 IFS=$as_save_IFS
28904 test -z "$as_dir" && as_dir=.
28905 for ac_exec_ext in '' $ac_executable_extensions; do
28906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28907 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
28908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28909 break 2
28911 done
28912 done
28913 IFS=$as_save_IFS
28916 esac
28918 CURL=$ac_cv_path_CURL
28919 if test -n "$CURL"; then
28920 { echo "$as_me:$LINENO: result: $CURL" >&5
28921 echo "${ECHO_T}$CURL" >&6; }
28922 else
28923 { echo "$as_me:$LINENO: result: no" >&5
28924 echo "${ECHO_T}no" >&6; }
28929 if test -z "$ac_cv_path_CURL"; then
28930 ac_pt_CURL=$CURL
28931 # Extract the first word of "curl-config", so it can be a program name with args.
28932 set dummy curl-config; ac_word=$2
28933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28935 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
28936 echo $ECHO_N "(cached) $ECHO_C" >&6
28937 else
28938 case $ac_pt_CURL in
28939 [\\/]* | ?:[\\/]*)
28940 ac_cv_path_ac_pt_CURL="$ac_pt_CURL" # Let the user override the test with a path.
28943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28944 for as_dir in $PATH
28946 IFS=$as_save_IFS
28947 test -z "$as_dir" && as_dir=.
28948 for ac_exec_ext in '' $ac_executable_extensions; do
28949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28950 ac_cv_path_ac_pt_CURL="$as_dir/$ac_word$ac_exec_ext"
28951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28952 break 2
28954 done
28955 done
28956 IFS=$as_save_IFS
28959 esac
28961 ac_pt_CURL=$ac_cv_path_ac_pt_CURL
28962 if test -n "$ac_pt_CURL"; then
28963 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
28964 echo "${ECHO_T}$ac_pt_CURL" >&6; }
28965 else
28966 { echo "$as_me:$LINENO: result: no" >&5
28967 echo "${ECHO_T}no" >&6; }
28970 if test "x$ac_pt_CURL" = x; then
28971 CURL="No"
28972 else
28973 case $cross_compiling:$ac_tool_warned in
28974 yes:)
28975 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28976 whose name does not start with the host triplet. If you think this
28977 configuration is useful to you, please write to autoconf@gnu.org." >&5
28978 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28979 whose name does not start with the host triplet. If you think this
28980 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28981 ac_tool_warned=yes ;;
28982 esac
28983 CURL=$ac_pt_CURL
28985 else
28986 CURL="$ac_cv_path_CURL"
28989 if test ! x"${CURL}" = xNo; then
28990 # check for version
28991 if test $(printf "%d" 0x$(curl-config --vernum)) -ge $(printf "%d" 0x070907); then
28992 CURL_INCLUDE=$(${CURL} --cflags)
28993 CURL_LIB=$(${CURL} --libs)
28994 PBX_CURL=1
28996 cat >>confdefs.h <<\_ACEOF
28997 #define HAVE_CURL 1
28998 _ACEOF
29004 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
29006 cat >confcache <<\_ACEOF
29007 # This file is a shell script that caches the results of configure
29008 # tests run on this system so they can be shared between configure
29009 # scripts and configure runs, see configure's option --config-cache.
29010 # It is not useful on other systems. If it contains results you don't
29011 # want to keep, you may remove or edit it.
29013 # config.status only pays attention to the cache file if you give it
29014 # the --recheck option to rerun configure.
29016 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29017 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29018 # following values.
29020 _ACEOF
29022 # The following way of writing the cache mishandles newlines in values,
29023 # but we know of no workaround that is simple, portable, and efficient.
29024 # So, we kill variables containing newlines.
29025 # Ultrix sh set writes to stderr and can't be redirected directly,
29026 # and sets the high bit in the cache file unless we assign to the vars.
29028 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29029 eval ac_val=\$$ac_var
29030 case $ac_val in #(
29031 *${as_nl}*)
29032 case $ac_var in #(
29033 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29034 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29035 esac
29036 case $ac_var in #(
29037 _ | IFS | as_nl) ;; #(
29038 *) $as_unset $ac_var ;;
29039 esac ;;
29040 esac
29041 done
29043 (set) 2>&1 |
29044 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29045 *${as_nl}ac_space=\ *)
29046 # `set' does not quote correctly, so add quotes (double-quote
29047 # substitution turns \\\\ into \\, and sed turns \\ into \).
29048 sed -n \
29049 "s/'/'\\\\''/g;
29050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29051 ;; #(
29053 # `set' quotes correctly as required by POSIX, so do not add quotes.
29054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29056 esac |
29057 sort
29059 sed '
29060 /^ac_cv_env_/b end
29061 t clear
29062 :clear
29063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29064 t end
29065 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29066 :end' >>confcache
29067 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29068 if test -w "$cache_file"; then
29069 test "x$cache_file" != "x/dev/null" &&
29070 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29071 echo "$as_me: updating cache $cache_file" >&6;}
29072 cat confcache >$cache_file
29073 else
29074 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29075 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29078 rm -f confcache
29080 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29081 # Let make expand exec_prefix.
29082 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29084 DEFS=-DHAVE_CONFIG_H
29086 ac_libobjs=
29087 ac_ltlibobjs=
29088 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29089 # 1. Remove the extension, and $U if already installed.
29090 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29091 ac_i=`echo "$ac_i" | sed "$ac_script"`
29092 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29093 # will be set to the directory where LIBOBJS objects are built.
29094 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29095 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29096 done
29097 LIBOBJS=$ac_libobjs
29099 LTLIBOBJS=$ac_ltlibobjs
29103 : ${CONFIG_STATUS=./config.status}
29104 ac_clean_files_save=$ac_clean_files
29105 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29106 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29107 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29108 cat >$CONFIG_STATUS <<_ACEOF
29109 #! $SHELL
29110 # Generated by $as_me.
29111 # Run this file to recreate the current configuration.
29112 # Compiler output produced by configure, useful for debugging
29113 # configure, is in config.log if it exists.
29115 debug=false
29116 ac_cs_recheck=false
29117 ac_cs_silent=false
29118 SHELL=\${CONFIG_SHELL-$SHELL}
29119 _ACEOF
29121 cat >>$CONFIG_STATUS <<\_ACEOF
29122 ## --------------------- ##
29123 ## M4sh Initialization. ##
29124 ## --------------------- ##
29126 # Be more Bourne compatible
29127 DUALCASE=1; export DUALCASE # for MKS sh
29128 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29129 emulate sh
29130 NULLCMD=:
29131 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29132 # is contrary to our usage. Disable this feature.
29133 alias -g '${1+"$@"}'='"$@"'
29134 setopt NO_GLOB_SUBST
29135 else
29136 case `(set -o) 2>/dev/null` in
29137 *posix*) set -o posix ;;
29138 esac
29145 # PATH needs CR
29146 # Avoid depending upon Character Ranges.
29147 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29148 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29149 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29150 as_cr_digits='0123456789'
29151 as_cr_alnum=$as_cr_Letters$as_cr_digits
29153 # The user is always right.
29154 if test "${PATH_SEPARATOR+set}" != set; then
29155 echo "#! /bin/sh" >conf$$.sh
29156 echo "exit 0" >>conf$$.sh
29157 chmod +x conf$$.sh
29158 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29159 PATH_SEPARATOR=';'
29160 else
29161 PATH_SEPARATOR=:
29163 rm -f conf$$.sh
29166 # Support unset when possible.
29167 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29168 as_unset=unset
29169 else
29170 as_unset=false
29174 # IFS
29175 # We need space, tab and new line, in precisely that order. Quoting is
29176 # there to prevent editors from complaining about space-tab.
29177 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29178 # splitting by setting IFS to empty value.)
29179 as_nl='
29181 IFS=" "" $as_nl"
29183 # Find who we are. Look in the path if we contain no directory separator.
29184 case $0 in
29185 *[\\/]* ) as_myself=$0 ;;
29186 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29187 for as_dir in $PATH
29189 IFS=$as_save_IFS
29190 test -z "$as_dir" && as_dir=.
29191 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29192 done
29193 IFS=$as_save_IFS
29196 esac
29197 # We did not find ourselves, most probably we were run as `sh COMMAND'
29198 # in which case we are not to be found in the path.
29199 if test "x$as_myself" = x; then
29200 as_myself=$0
29202 if test ! -f "$as_myself"; then
29203 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29204 { (exit 1); exit 1; }
29207 # Work around bugs in pre-3.0 UWIN ksh.
29208 for as_var in ENV MAIL MAILPATH
29209 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29210 done
29211 PS1='$ '
29212 PS2='> '
29213 PS4='+ '
29215 # NLS nuisances.
29216 for as_var in \
29217 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29218 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29219 LC_TELEPHONE LC_TIME
29221 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29222 eval $as_var=C; export $as_var
29223 else
29224 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29226 done
29228 # Required to use basename.
29229 if expr a : '\(a\)' >/dev/null 2>&1 &&
29230 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29231 as_expr=expr
29232 else
29233 as_expr=false
29236 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29237 as_basename=basename
29238 else
29239 as_basename=false
29243 # Name of the executable.
29244 as_me=`$as_basename -- "$0" ||
29245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29246 X"$0" : 'X\(//\)$' \| \
29247 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29248 echo X/"$0" |
29249 sed '/^.*\/\([^/][^/]*\)\/*$/{
29250 s//\1/
29253 /^X\/\(\/\/\)$/{
29254 s//\1/
29257 /^X\/\(\/\).*/{
29258 s//\1/
29261 s/.*/./; q'`
29263 # CDPATH.
29264 $as_unset CDPATH
29268 as_lineno_1=$LINENO
29269 as_lineno_2=$LINENO
29270 test "x$as_lineno_1" != "x$as_lineno_2" &&
29271 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29273 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29274 # uniformly replaced by the line number. The first 'sed' inserts a
29275 # line-number line after each line using $LINENO; the second 'sed'
29276 # does the real work. The second script uses 'N' to pair each
29277 # line-number line with the line containing $LINENO, and appends
29278 # trailing '-' during substitution so that $LINENO is not a special
29279 # case at line end.
29280 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29281 # scripts with optimization help from Paolo Bonzini. Blame Lee
29282 # E. McMahon (1931-1989) for sed's syntax. :-)
29283 sed -n '
29285 /[$]LINENO/=
29286 ' <$as_myself |
29287 sed '
29288 s/[$]LINENO.*/&-/
29289 t lineno
29291 :lineno
29293 :loop
29294 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29295 t loop
29296 s/-\n.*//
29297 ' >$as_me.lineno &&
29298 chmod +x "$as_me.lineno" ||
29299 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29300 { (exit 1); exit 1; }; }
29302 # Don't try to exec as it changes $[0], causing all sort of problems
29303 # (the dirname of $[0] is not the place where we might find the
29304 # original and so on. Autoconf is especially sensitive to this).
29305 . "./$as_me.lineno"
29306 # Exit status is that of the last command.
29307 exit
29311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29312 as_dirname=dirname
29313 else
29314 as_dirname=false
29317 ECHO_C= ECHO_N= ECHO_T=
29318 case `echo -n x` in
29319 -n*)
29320 case `echo 'x\c'` in
29321 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29322 *) ECHO_C='\c';;
29323 esac;;
29325 ECHO_N='-n';;
29326 esac
29328 if expr a : '\(a\)' >/dev/null 2>&1 &&
29329 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29330 as_expr=expr
29331 else
29332 as_expr=false
29335 rm -f conf$$ conf$$.exe conf$$.file
29336 if test -d conf$$.dir; then
29337 rm -f conf$$.dir/conf$$.file
29338 else
29339 rm -f conf$$.dir
29340 mkdir conf$$.dir
29342 echo >conf$$.file
29343 if ln -s conf$$.file conf$$ 2>/dev/null; then
29344 as_ln_s='ln -s'
29345 # ... but there are two gotchas:
29346 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29347 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29348 # In both cases, we have to default to `cp -p'.
29349 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29350 as_ln_s='cp -p'
29351 elif ln conf$$.file conf$$ 2>/dev/null; then
29352 as_ln_s=ln
29353 else
29354 as_ln_s='cp -p'
29356 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29357 rmdir conf$$.dir 2>/dev/null
29359 if mkdir -p . 2>/dev/null; then
29360 as_mkdir_p=:
29361 else
29362 test -d ./-p && rmdir ./-p
29363 as_mkdir_p=false
29366 if test -x / >/dev/null 2>&1; then
29367 as_test_x='test -x'
29368 else
29369 if ls -dL / >/dev/null 2>&1; then
29370 as_ls_L_option=L
29371 else
29372 as_ls_L_option=
29374 as_test_x='
29375 eval sh -c '\''
29376 if test -d "$1"; then
29377 test -d "$1/.";
29378 else
29379 case $1 in
29380 -*)set "./$1";;
29381 esac;
29382 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29383 ???[sx]*):;;*)false;;esac;fi
29384 '\'' sh
29387 as_executable_p=$as_test_x
29389 # Sed expression to map a string onto a valid CPP name.
29390 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29392 # Sed expression to map a string onto a valid variable name.
29393 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29396 exec 6>&1
29398 # Save the log message, to keep $[0] and so on meaningful, and to
29399 # report actual input values of CONFIG_FILES etc. instead of their
29400 # values after options handling.
29401 ac_log="
29402 This file was extended by $as_me, which was
29403 generated by GNU Autoconf 2.61. Invocation command line was
29405 CONFIG_FILES = $CONFIG_FILES
29406 CONFIG_HEADERS = $CONFIG_HEADERS
29407 CONFIG_LINKS = $CONFIG_LINKS
29408 CONFIG_COMMANDS = $CONFIG_COMMANDS
29409 $ $0 $@
29411 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29414 _ACEOF
29416 cat >>$CONFIG_STATUS <<_ACEOF
29417 # Files that config.status was made for.
29418 config_files="$ac_config_files"
29419 config_headers="$ac_config_headers"
29421 _ACEOF
29423 cat >>$CONFIG_STATUS <<\_ACEOF
29424 ac_cs_usage="\
29425 \`$as_me' instantiates files from templates according to the
29426 current configuration.
29428 Usage: $0 [OPTIONS] [FILE]...
29430 -h, --help print this help, then exit
29431 -V, --version print version number and configuration settings, then exit
29432 -q, --quiet do not print progress messages
29433 -d, --debug don't remove temporary files
29434 --recheck update $as_me by reconfiguring in the same conditions
29435 --file=FILE[:TEMPLATE]
29436 instantiate the configuration file FILE
29437 --header=FILE[:TEMPLATE]
29438 instantiate the configuration header FILE
29440 Configuration files:
29441 $config_files
29443 Configuration headers:
29444 $config_headers
29446 Report bugs to <bug-autoconf@gnu.org>."
29448 _ACEOF
29449 cat >>$CONFIG_STATUS <<_ACEOF
29450 ac_cs_version="\\
29451 config.status
29452 configured by $0, generated by GNU Autoconf 2.61,
29453 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29455 Copyright (C) 2006 Free Software Foundation, Inc.
29456 This config.status script is free software; the Free Software Foundation
29457 gives unlimited permission to copy, distribute and modify it."
29459 ac_pwd='$ac_pwd'
29460 srcdir='$srcdir'
29461 INSTALL='$INSTALL'
29462 _ACEOF
29464 cat >>$CONFIG_STATUS <<\_ACEOF
29465 # If no file are specified by the user, then we need to provide default
29466 # value. By we need to know if files were specified by the user.
29467 ac_need_defaults=:
29468 while test $# != 0
29470 case $1 in
29471 --*=*)
29472 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29473 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29474 ac_shift=:
29477 ac_option=$1
29478 ac_optarg=$2
29479 ac_shift=shift
29481 esac
29483 case $ac_option in
29484 # Handling of the options.
29485 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29486 ac_cs_recheck=: ;;
29487 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29488 echo "$ac_cs_version"; exit ;;
29489 --debug | --debu | --deb | --de | --d | -d )
29490 debug=: ;;
29491 --file | --fil | --fi | --f )
29492 $ac_shift
29493 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29494 ac_need_defaults=false;;
29495 --header | --heade | --head | --hea )
29496 $ac_shift
29497 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29498 ac_need_defaults=false;;
29499 --he | --h)
29500 # Conflict between --help and --header
29501 { echo "$as_me: error: ambiguous option: $1
29502 Try \`$0 --help' for more information." >&2
29503 { (exit 1); exit 1; }; };;
29504 --help | --hel | -h )
29505 echo "$ac_cs_usage"; exit ;;
29506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29507 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29508 ac_cs_silent=: ;;
29510 # This is an error.
29511 -*) { echo "$as_me: error: unrecognized option: $1
29512 Try \`$0 --help' for more information." >&2
29513 { (exit 1); exit 1; }; } ;;
29515 *) ac_config_targets="$ac_config_targets $1"
29516 ac_need_defaults=false ;;
29518 esac
29519 shift
29520 done
29522 ac_configure_extra_args=
29524 if $ac_cs_silent; then
29525 exec 6>/dev/null
29526 ac_configure_extra_args="$ac_configure_extra_args --silent"
29529 _ACEOF
29530 cat >>$CONFIG_STATUS <<_ACEOF
29531 if \$ac_cs_recheck; then
29532 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29533 CONFIG_SHELL=$SHELL
29534 export CONFIG_SHELL
29535 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29538 _ACEOF
29539 cat >>$CONFIG_STATUS <<\_ACEOF
29540 exec 5>>config.log
29542 echo
29543 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29544 ## Running $as_me. ##
29545 _ASBOX
29546 echo "$ac_log"
29547 } >&5
29549 _ACEOF
29550 cat >>$CONFIG_STATUS <<_ACEOF
29551 _ACEOF
29553 cat >>$CONFIG_STATUS <<\_ACEOF
29555 # Handling of arguments.
29556 for ac_config_target in $ac_config_targets
29558 case $ac_config_target in
29559 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
29560 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
29561 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
29562 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
29564 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29565 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29566 { (exit 1); exit 1; }; };;
29567 esac
29568 done
29571 # If the user did not use the arguments to specify the items to instantiate,
29572 # then the envvar interface is used. Set only those that are not.
29573 # We use the long form for the default assignment because of an extremely
29574 # bizarre bug on SunOS 4.1.3.
29575 if $ac_need_defaults; then
29576 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29577 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29580 # Have a temporary directory for convenience. Make it in the build tree
29581 # simply because there is no reason against having it here, and in addition,
29582 # creating and moving files from /tmp can sometimes cause problems.
29583 # Hook for its removal unless debugging.
29584 # Note that there is a small window in which the directory will not be cleaned:
29585 # after its creation but before its name has been assigned to `$tmp'.
29586 $debug ||
29588 tmp=
29589 trap 'exit_status=$?
29590 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29592 trap '{ (exit 1); exit 1; }' 1 2 13 15
29594 # Create a (secure) tmp directory for tmp files.
29597 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29598 test -n "$tmp" && test -d "$tmp"
29599 } ||
29601 tmp=./conf$$-$RANDOM
29602 (umask 077 && mkdir "$tmp")
29603 } ||
29605 echo "$me: cannot create a temporary directory in ." >&2
29606 { (exit 1); exit 1; }
29610 # Set up the sed scripts for CONFIG_FILES section.
29613 # No need to generate the scripts if there are no CONFIG_FILES.
29614 # This happens for instance when ./config.status config.h
29615 if test -n "$CONFIG_FILES"; then
29617 _ACEOF
29621 ac_delim='%!_!# '
29622 for ac_last_try in false false false false false :; do
29623 cat >conf$$subs.sed <<_ACEOF
29624 SHELL!$SHELL$ac_delim
29625 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29626 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29627 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29628 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29629 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29630 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29631 exec_prefix!$exec_prefix$ac_delim
29632 prefix!$prefix$ac_delim
29633 program_transform_name!$program_transform_name$ac_delim
29634 bindir!$bindir$ac_delim
29635 sbindir!$sbindir$ac_delim
29636 libexecdir!$libexecdir$ac_delim
29637 datarootdir!$datarootdir$ac_delim
29638 datadir!$datadir$ac_delim
29639 sysconfdir!$sysconfdir$ac_delim
29640 sharedstatedir!$sharedstatedir$ac_delim
29641 localstatedir!$localstatedir$ac_delim
29642 includedir!$includedir$ac_delim
29643 oldincludedir!$oldincludedir$ac_delim
29644 docdir!$docdir$ac_delim
29645 infodir!$infodir$ac_delim
29646 htmldir!$htmldir$ac_delim
29647 dvidir!$dvidir$ac_delim
29648 pdfdir!$pdfdir$ac_delim
29649 psdir!$psdir$ac_delim
29650 libdir!$libdir$ac_delim
29651 localedir!$localedir$ac_delim
29652 mandir!$mandir$ac_delim
29653 DEFS!$DEFS$ac_delim
29654 ECHO_C!$ECHO_C$ac_delim
29655 ECHO_N!$ECHO_N$ac_delim
29656 ECHO_T!$ECHO_T$ac_delim
29657 LIBS!$LIBS$ac_delim
29658 build_alias!$build_alias$ac_delim
29659 host_alias!$host_alias$ac_delim
29660 target_alias!$target_alias$ac_delim
29661 build!$build$ac_delim
29662 build_cpu!$build_cpu$ac_delim
29663 build_vendor!$build_vendor$ac_delim
29664 build_os!$build_os$ac_delim
29665 host!$host$ac_delim
29666 host_cpu!$host_cpu$ac_delim
29667 host_vendor!$host_vendor$ac_delim
29668 host_os!$host_os$ac_delim
29669 CC!$CC$ac_delim
29670 CFLAGS!$CFLAGS$ac_delim
29671 LDFLAGS!$LDFLAGS$ac_delim
29672 CPPFLAGS!$CPPFLAGS$ac_delim
29673 ac_ct_CC!$ac_ct_CC$ac_delim
29674 EXEEXT!$EXEEXT$ac_delim
29675 OBJEXT!$OBJEXT$ac_delim
29676 CPP!$CPP$ac_delim
29677 GREP!$GREP$ac_delim
29678 EGREP!$EGREP$ac_delim
29679 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
29680 BUILD_CPU!$BUILD_CPU$ac_delim
29681 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
29682 BUILD_OS!$BUILD_OS$ac_delim
29683 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
29684 HOST_CPU!$HOST_CPU$ac_delim
29685 HOST_VENDOR!$HOST_VENDOR$ac_delim
29686 HOST_OS!$HOST_OS$ac_delim
29687 OSARCH!$OSARCH$ac_delim
29688 UNAME!$UNAME$ac_delim
29689 PBX_OSREV!$PBX_OSREV$ac_delim
29690 CXX!$CXX$ac_delim
29691 LD!$LD$ac_delim
29692 RANLIB!$RANLIB$ac_delim
29693 AR!$AR$ac_delim
29694 CXXFLAGS!$CXXFLAGS$ac_delim
29695 ac_ct_CXX!$ac_ct_CXX$ac_delim
29696 CXXCPP!$CXXCPP$ac_delim
29697 SED!$SED$ac_delim
29698 AWK!$AWK$ac_delim
29699 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29700 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29701 INSTALL_DATA!$INSTALL_DATA$ac_delim
29702 LN_S!$LN_S$ac_delim
29703 GNU_MAKE!$GNU_MAKE$ac_delim
29704 GNU_LD!$GNU_LD$ac_delim
29705 FIND!$FIND$ac_delim
29706 COMPRESS!$COMPRESS$ac_delim
29707 BASENAME!$BASENAME$ac_delim
29708 ID!$ID$ac_delim
29709 DIRNAME!$DIRNAME$ac_delim
29710 LN!$LN$ac_delim
29711 DOT!$DOT$ac_delim
29712 STRIP!$STRIP$ac_delim
29713 WGET!$WGET$ac_delim
29714 FETCH!$FETCH$ac_delim
29715 DOWNLOAD!$DOWNLOAD$ac_delim
29716 AST_DEVMODE!$AST_DEVMODE$ac_delim
29717 ALSA_LIB!$ALSA_LIB$ac_delim
29718 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
29719 PBX_ALSA!$PBX_ALSA$ac_delim
29720 CURL_LIB!$CURL_LIB$ac_delim
29721 _ACEOF
29723 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29724 break
29725 elif $ac_last_try; then
29726 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29727 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29728 { (exit 1); exit 1; }; }
29729 else
29730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29732 done
29734 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29735 if test -n "$ac_eof"; then
29736 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29737 ac_eof=`expr $ac_eof + 1`
29740 cat >>$CONFIG_STATUS <<_ACEOF
29741 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29743 _ACEOF
29744 sed '
29745 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29746 s/^/s,@/; s/!/@,|#_!!_#|/
29749 s/'"$ac_delim"'$/,g/; t
29750 s/$/\\/; p
29751 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29752 ' >>$CONFIG_STATUS <conf$$subs.sed
29753 rm -f conf$$subs.sed
29754 cat >>$CONFIG_STATUS <<_ACEOF
29755 CEOF$ac_eof
29756 _ACEOF
29759 ac_delim='%!_!# '
29760 for ac_last_try in false false false false false :; do
29761 cat >conf$$subs.sed <<_ACEOF
29762 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
29763 PBX_CURL!$PBX_CURL$ac_delim
29764 CURSES_LIB!$CURSES_LIB$ac_delim
29765 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
29766 PBX_CURSES!$PBX_CURSES$ac_delim
29767 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
29768 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
29769 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
29770 GSM_LIB!$GSM_LIB$ac_delim
29771 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
29772 PBX_GSM!$PBX_GSM$ac_delim
29773 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
29774 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
29775 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
29776 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
29777 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
29778 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
29779 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
29780 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
29781 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
29782 KDE_LIB!$KDE_LIB$ac_delim
29783 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
29784 PBX_KDE!$PBX_KDE$ac_delim
29785 MISDN_LIB!$MISDN_LIB$ac_delim
29786 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
29787 PBX_MISDN!$PBX_MISDN$ac_delim
29788 NBS_LIB!$NBS_LIB$ac_delim
29789 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
29790 PBX_NBS!$PBX_NBS$ac_delim
29791 NCURSES_LIB!$NCURSES_LIB$ac_delim
29792 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
29793 PBX_NCURSES!$PBX_NCURSES$ac_delim
29794 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
29795 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
29796 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
29797 NEWT_LIB!$NEWT_LIB$ac_delim
29798 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
29799 PBX_NEWT!$PBX_NEWT$ac_delim
29800 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
29801 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
29802 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
29803 OGG_LIB!$OGG_LIB$ac_delim
29804 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
29805 PBX_OGG!$PBX_OGG$ac_delim
29806 OSPTK_LIB!$OSPTK_LIB$ac_delim
29807 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
29808 PBX_OSPTK!$PBX_OSPTK$ac_delim
29809 OSS_LIB!$OSS_LIB$ac_delim
29810 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
29811 PBX_OSS!$PBX_OSS$ac_delim
29812 POPT_LIB!$POPT_LIB$ac_delim
29813 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
29814 PBX_POPT!$PBX_POPT$ac_delim
29815 PGSQL_LIB!$PGSQL_LIB$ac_delim
29816 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
29817 PBX_PGSQL!$PBX_PGSQL$ac_delim
29818 PRI_LIB!$PRI_LIB$ac_delim
29819 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
29820 PBX_PRI!$PBX_PRI$ac_delim
29821 PWLIB_LIB!$PWLIB_LIB$ac_delim
29822 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
29823 PBX_PWLIB!$PBX_PWLIB$ac_delim
29824 OPENH323_LIB!$OPENH323_LIB$ac_delim
29825 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
29826 PBX_OPENH323!$PBX_OPENH323$ac_delim
29827 QT_LIB!$QT_LIB$ac_delim
29828 QT_INCLUDE!$QT_INCLUDE$ac_delim
29829 PBX_QT!$PBX_QT$ac_delim
29830 RADIUS_LIB!$RADIUS_LIB$ac_delim
29831 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
29832 PBX_RADIUS!$PBX_RADIUS$ac_delim
29833 SPEEX_LIB!$SPEEX_LIB$ac_delim
29834 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
29835 PBX_SPEEX!$PBX_SPEEX$ac_delim
29836 SQLITE_LIB!$SQLITE_LIB$ac_delim
29837 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
29838 PBX_SQLITE!$PBX_SQLITE$ac_delim
29839 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
29840 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
29841 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
29842 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
29843 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
29844 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
29845 FREETDS_LIB!$FREETDS_LIB$ac_delim
29846 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
29847 PBX_FREETDS!$PBX_FREETDS$ac_delim
29848 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
29849 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
29850 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
29851 TINFO_LIB!$TINFO_LIB$ac_delim
29852 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
29853 PBX_TINFO!$PBX_TINFO$ac_delim
29854 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
29855 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
29856 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
29857 VORBIS_LIB!$VORBIS_LIB$ac_delim
29858 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
29859 _ACEOF
29861 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29862 break
29863 elif $ac_last_try; then
29864 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29865 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29866 { (exit 1); exit 1; }; }
29867 else
29868 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29870 done
29872 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29873 if test -n "$ac_eof"; then
29874 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29875 ac_eof=`expr $ac_eof + 1`
29878 cat >>$CONFIG_STATUS <<_ACEOF
29879 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29881 _ACEOF
29882 sed '
29883 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29884 s/^/s,@/; s/!/@,|#_!!_#|/
29887 s/'"$ac_delim"'$/,g/; t
29888 s/$/\\/; p
29889 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29890 ' >>$CONFIG_STATUS <conf$$subs.sed
29891 rm -f conf$$subs.sed
29892 cat >>$CONFIG_STATUS <<_ACEOF
29893 CEOF$ac_eof
29894 _ACEOF
29897 ac_delim='%!_!# '
29898 for ac_last_try in false false false false false :; do
29899 cat >conf$$subs.sed <<_ACEOF
29900 PBX_VORBIS!$PBX_VORBIS$ac_delim
29901 VPB_LIB!$VPB_LIB$ac_delim
29902 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
29903 PBX_VPB!$PBX_VPB$ac_delim
29904 ZLIB_LIB!$ZLIB_LIB$ac_delim
29905 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
29906 PBX_ZLIB!$PBX_ZLIB$ac_delim
29907 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
29908 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
29909 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
29910 ALLOCA!$ALLOCA$ac_delim
29911 LIBOBJS!$LIBOBJS$ac_delim
29912 POW_LIB!$POW_LIB$ac_delim
29913 GC_CFLAGS!$GC_CFLAGS$ac_delim
29914 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
29915 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
29916 KDEINIT!$KDEINIT$ac_delim
29917 KDEDIR!$KDEDIR$ac_delim
29918 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
29919 PG_CONFIG!$PG_CONFIG$ac_delim
29920 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
29921 PWLIBDIR!$PWLIBDIR$ac_delim
29922 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
29923 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
29924 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
29925 OPENH323DIR!$OPENH323DIR$ac_delim
29926 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
29927 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
29928 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
29929 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
29930 QTMOC!$QTMOC$ac_delim
29931 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
29932 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
29933 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
29934 PBX_H323!$PBX_H323$ac_delim
29935 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
29936 GTKCONFIG!$GTKCONFIG$ac_delim
29937 PBX_GTK!$PBX_GTK$ac_delim
29938 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
29939 GTK_LIB!$GTK_LIB$ac_delim
29940 CURL!$CURL$ac_delim
29941 LTLIBOBJS!$LTLIBOBJS$ac_delim
29942 _ACEOF
29944 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then
29945 break
29946 elif $ac_last_try; then
29947 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29948 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29949 { (exit 1); exit 1; }; }
29950 else
29951 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29953 done
29955 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29956 if test -n "$ac_eof"; then
29957 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29958 ac_eof=`expr $ac_eof + 1`
29961 cat >>$CONFIG_STATUS <<_ACEOF
29962 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
29963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29964 _ACEOF
29965 sed '
29966 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29967 s/^/s,@/; s/!/@,|#_!!_#|/
29970 s/'"$ac_delim"'$/,g/; t
29971 s/$/\\/; p
29972 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29973 ' >>$CONFIG_STATUS <conf$$subs.sed
29974 rm -f conf$$subs.sed
29975 cat >>$CONFIG_STATUS <<_ACEOF
29976 :end
29977 s/|#_!!_#|//g
29978 CEOF$ac_eof
29979 _ACEOF
29982 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29983 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29984 # trailing colons and then remove the whole line if VPATH becomes empty
29985 # (actually we leave an empty line to preserve line numbers).
29986 if test "x$srcdir" = x.; then
29987 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29988 s/:*\$(srcdir):*/:/
29989 s/:*\${srcdir}:*/:/
29990 s/:*@srcdir@:*/:/
29991 s/^\([^=]*=[ ]*\):*/\1/
29992 s/:*$//
29993 s/^[^=]*=[ ]*$//
29997 cat >>$CONFIG_STATUS <<\_ACEOF
29998 fi # test -n "$CONFIG_FILES"
30001 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
30003 case $ac_tag in
30004 :[FHLC]) ac_mode=$ac_tag; continue;;
30005 esac
30006 case $ac_mode$ac_tag in
30007 :[FHL]*:*);;
30008 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30009 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30010 { (exit 1); exit 1; }; };;
30011 :[FH]-) ac_tag=-:-;;
30012 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30013 esac
30014 ac_save_IFS=$IFS
30015 IFS=:
30016 set x $ac_tag
30017 IFS=$ac_save_IFS
30018 shift
30019 ac_file=$1
30020 shift
30022 case $ac_mode in
30023 :L) ac_source=$1;;
30024 :[FH])
30025 ac_file_inputs=
30026 for ac_f
30028 case $ac_f in
30029 -) ac_f="$tmp/stdin";;
30030 *) # Look for the file first in the build tree, then in the source tree
30031 # (if the path is not absolute). The absolute path cannot be DOS-style,
30032 # because $ac_f cannot contain `:'.
30033 test -f "$ac_f" ||
30034 case $ac_f in
30035 [\\/$]*) false;;
30036 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30037 esac ||
30038 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30039 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30040 { (exit 1); exit 1; }; };;
30041 esac
30042 ac_file_inputs="$ac_file_inputs $ac_f"
30043 done
30045 # Let's still pretend it is `configure' which instantiates (i.e., don't
30046 # use $as_me), people would be surprised to read:
30047 # /* config.h. Generated by config.status. */
30048 configure_input="Generated from "`IFS=:
30049 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30050 if test x"$ac_file" != x-; then
30051 configure_input="$ac_file. $configure_input"
30052 { echo "$as_me:$LINENO: creating $ac_file" >&5
30053 echo "$as_me: creating $ac_file" >&6;}
30056 case $ac_tag in
30057 *:-:* | *:-) cat >"$tmp/stdin";;
30058 esac
30060 esac
30062 ac_dir=`$as_dirname -- "$ac_file" ||
30063 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30064 X"$ac_file" : 'X\(//\)[^/]' \| \
30065 X"$ac_file" : 'X\(//\)$' \| \
30066 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30067 echo X"$ac_file" |
30068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30069 s//\1/
30072 /^X\(\/\/\)[^/].*/{
30073 s//\1/
30076 /^X\(\/\/\)$/{
30077 s//\1/
30080 /^X\(\/\).*/{
30081 s//\1/
30084 s/.*/./; q'`
30085 { as_dir="$ac_dir"
30086 case $as_dir in #(
30087 -*) as_dir=./$as_dir;;
30088 esac
30089 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30090 as_dirs=
30091 while :; do
30092 case $as_dir in #(
30093 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30094 *) as_qdir=$as_dir;;
30095 esac
30096 as_dirs="'$as_qdir' $as_dirs"
30097 as_dir=`$as_dirname -- "$as_dir" ||
30098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30099 X"$as_dir" : 'X\(//\)[^/]' \| \
30100 X"$as_dir" : 'X\(//\)$' \| \
30101 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30102 echo X"$as_dir" |
30103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30104 s//\1/
30107 /^X\(\/\/\)[^/].*/{
30108 s//\1/
30111 /^X\(\/\/\)$/{
30112 s//\1/
30115 /^X\(\/\).*/{
30116 s//\1/
30119 s/.*/./; q'`
30120 test -d "$as_dir" && break
30121 done
30122 test -z "$as_dirs" || eval "mkdir $as_dirs"
30123 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30124 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30125 { (exit 1); exit 1; }; }; }
30126 ac_builddir=.
30128 case "$ac_dir" in
30129 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30132 # A ".." for each directory in $ac_dir_suffix.
30133 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30134 case $ac_top_builddir_sub in
30135 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30136 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30137 esac ;;
30138 esac
30139 ac_abs_top_builddir=$ac_pwd
30140 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30141 # for backward compatibility:
30142 ac_top_builddir=$ac_top_build_prefix
30144 case $srcdir in
30145 .) # We are building in place.
30146 ac_srcdir=.
30147 ac_top_srcdir=$ac_top_builddir_sub
30148 ac_abs_top_srcdir=$ac_pwd ;;
30149 [\\/]* | ?:[\\/]* ) # Absolute name.
30150 ac_srcdir=$srcdir$ac_dir_suffix;
30151 ac_top_srcdir=$srcdir
30152 ac_abs_top_srcdir=$srcdir ;;
30153 *) # Relative name.
30154 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30155 ac_top_srcdir=$ac_top_build_prefix$srcdir
30156 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30157 esac
30158 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30161 case $ac_mode in
30164 # CONFIG_FILE
30167 case $INSTALL in
30168 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30169 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30170 esac
30171 _ACEOF
30173 cat >>$CONFIG_STATUS <<\_ACEOF
30174 # If the template does not know about datarootdir, expand it.
30175 # FIXME: This hack should be removed a few years after 2.60.
30176 ac_datarootdir_hack=; ac_datarootdir_seen=
30178 case `sed -n '/datarootdir/ {
30182 /@datadir@/p
30183 /@docdir@/p
30184 /@infodir@/p
30185 /@localedir@/p
30186 /@mandir@/p
30187 ' $ac_file_inputs` in
30188 *datarootdir*) ac_datarootdir_seen=yes;;
30189 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30190 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30191 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30192 _ACEOF
30193 cat >>$CONFIG_STATUS <<_ACEOF
30194 ac_datarootdir_hack='
30195 s&@datadir@&$datadir&g
30196 s&@docdir@&$docdir&g
30197 s&@infodir@&$infodir&g
30198 s&@localedir@&$localedir&g
30199 s&@mandir@&$mandir&g
30200 s&\\\${datarootdir}&$datarootdir&g' ;;
30201 esac
30202 _ACEOF
30204 # Neutralize VPATH when `$srcdir' = `.'.
30205 # Shell code in configure.ac might set extrasub.
30206 # FIXME: do we really want to maintain this feature?
30207 cat >>$CONFIG_STATUS <<_ACEOF
30208 sed "$ac_vpsub
30209 $extrasub
30210 _ACEOF
30211 cat >>$CONFIG_STATUS <<\_ACEOF
30213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30214 s&@configure_input@&$configure_input&;t t
30215 s&@top_builddir@&$ac_top_builddir_sub&;t t
30216 s&@srcdir@&$ac_srcdir&;t t
30217 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30218 s&@top_srcdir@&$ac_top_srcdir&;t t
30219 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30220 s&@builddir@&$ac_builddir&;t t
30221 s&@abs_builddir@&$ac_abs_builddir&;t t
30222 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30223 s&@INSTALL@&$ac_INSTALL&;t t
30224 $ac_datarootdir_hack
30225 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
30227 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30228 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30229 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30230 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30231 which seems to be undefined. Please make sure it is defined." >&5
30232 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30233 which seems to be undefined. Please make sure it is defined." >&2;}
30235 rm -f "$tmp/stdin"
30236 case $ac_file in
30237 -) cat "$tmp/out"; rm -f "$tmp/out";;
30238 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30239 esac
30243 # CONFIG_HEADER
30245 _ACEOF
30247 # Transform confdefs.h into a sed script `conftest.defines', that
30248 # substitutes the proper values into config.h.in to produce config.h.
30249 rm -f conftest.defines conftest.tail
30250 # First, append a space to every undef/define line, to ease matching.
30251 echo 's/$/ /' >conftest.defines
30252 # Then, protect against being on the right side of a sed subst, or in
30253 # an unquoted here document, in config.status. If some macros were
30254 # called several times there might be several #defines for the same
30255 # symbol, which is useless. But do not sort them, since the last
30256 # AC_DEFINE must be honored.
30257 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30258 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30259 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30260 # PARAMS is the parameter list in the macro definition--in most cases, it's
30261 # just an empty string.
30262 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30263 ac_dB='\\)[ (].*,\\1define\\2'
30264 ac_dC=' '
30265 ac_dD=' ,'
30267 uniq confdefs.h |
30268 sed -n '
30269 t rset
30270 :rset
30271 s/^[ ]*#[ ]*define[ ][ ]*//
30272 t ok
30275 s/[\\&,]/\\&/g
30276 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30277 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30278 ' >>conftest.defines
30280 # Remove the space that was appended to ease matching.
30281 # Then replace #undef with comments. This is necessary, for
30282 # example, in the case of _POSIX_SOURCE, which is predefined and required
30283 # on some systems where configure will not decide to define it.
30284 # (The regexp can be short, since the line contains either #define or #undef.)
30285 echo 's/ $//
30286 s,^[ #]*u.*,/* & */,' >>conftest.defines
30288 # Break up conftest.defines:
30289 ac_max_sed_lines=50
30291 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30292 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30293 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30294 # et cetera.
30295 ac_in='$ac_file_inputs'
30296 ac_out='"$tmp/out1"'
30297 ac_nxt='"$tmp/out2"'
30299 while :
30301 # Write a here document:
30302 cat >>$CONFIG_STATUS <<_ACEOF
30303 # First, check the format of the line:
30304 cat >"\$tmp/defines.sed" <<\\CEOF
30305 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30306 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30308 :def
30309 _ACEOF
30310 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30311 echo 'CEOF
30312 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30313 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30314 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30315 grep . conftest.tail >/dev/null || break
30316 rm -f conftest.defines
30317 mv conftest.tail conftest.defines
30318 done
30319 rm -f conftest.defines conftest.tail
30321 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30322 cat >>$CONFIG_STATUS <<\_ACEOF
30323 if test x"$ac_file" != x-; then
30324 echo "/* $configure_input */" >"$tmp/config.h"
30325 cat "$ac_result" >>"$tmp/config.h"
30326 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30327 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30328 echo "$as_me: $ac_file is unchanged" >&6;}
30329 else
30330 rm -f $ac_file
30331 mv "$tmp/config.h" $ac_file
30333 else
30334 echo "/* $configure_input */"
30335 cat "$ac_result"
30337 rm -f "$tmp/out12"
30341 esac
30343 done # for ac_tag
30346 { (exit 0); exit 0; }
30347 _ACEOF
30348 chmod +x $CONFIG_STATUS
30349 ac_clean_files=$ac_clean_files_save
30352 # configure is writing to config.log, and then calls config.status.
30353 # config.status does its own redirection, appending to config.log.
30354 # Unfortunately, on DOS this fails, as config.log is still kept open
30355 # by configure, so config.status won't be able to write to it; its
30356 # output is simply discarded. So we exec the FD to /dev/null,
30357 # effectively closing config.log, so it can be properly (re)opened and
30358 # appended to by config.status. When coming back to configure, we
30359 # need to make the FD available again.
30360 if test "$no_create" != yes; then
30361 ac_cs_success=:
30362 ac_config_status_args=
30363 test "$silent" = yes &&
30364 ac_config_status_args="$ac_config_status_args --quiet"
30365 exec 5>/dev/null
30366 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30367 exec 5>>config.log
30368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30369 # would make configure fail if this is the last instruction.
30370 $ac_cs_success || { (exit 1); exit 1; }
30374 if test "x${silent}" != "xyes" ; then
30375 echo
30376 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
30377 echo " .\$7\$7.. .7\$\$7:. "
30378 echo " .\$\$:. ,\$7.7 "
30379 echo " .\$7. 7\$\$\$\$ .\$\$77 "
30380 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
30381 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
30382 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
30383 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
30384 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
30385 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
30386 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
30387 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
30388 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
30389 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
30390 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
30391 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
30392 echo " \$\$\$\$\$ \$\$\$ "
30393 echo " \$\$\$\$7. \$\$ (TM) "
30394 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
30395 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
30396 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
30397 echo
30400 { echo "$as_me:$LINENO: Package configured for: " >&5
30401 echo "$as_me: Package configured for: " >&6;}
30402 { echo "$as_me:$LINENO: OS type : $host_os" >&5
30403 echo "$as_me: OS type : $host_os" >&6;}
30404 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
30405 echo "$as_me: Host CPU : $host_cpu" >&6;}
30406 if test "${cross_compiling}" = "yes"; then
30407 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
30408 echo "$as_me: Cross Compilation = YES" >&6;}