Ensure that the locations given to the Asterisk configure script for ncurses,
[asterisk-bristuff.git] / configure
blob86f65566d40a06f5a349057feba3b1f3273ec2c9
1 #! /bin/sh
2 # From configure.ac Revision: 51239 .
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 acx_pthread_config
715 PTHREAD_CC
716 PTHREAD_LIBS
717 PTHREAD_CFLAGS
718 AST_DEVMODE
719 ALSA_LIB
720 ALSA_INCLUDE
721 ALSA_DIR
722 PBX_ALSA
723 CURL_LIB
724 CURL_INCLUDE
725 CURL_DIR
726 PBX_CURL
727 CURSES_LIB
728 CURSES_INCLUDE
729 CURSES_DIR
730 PBX_CURSES
731 GNUTLS_LIB
732 GNUTLS_INCLUDE
733 GNUTLS_DIR
734 PBX_GNUTLS
735 GSM_LIB
736 GSM_INCLUDE
737 GSM_DIR
738 PBX_GSM
739 IKSEMEL_LIB
740 IKSEMEL_INCLUDE
741 IKSEMEL_DIR
742 PBX_IKSEMEL
743 IMAP_TK_LIB
744 IMAP_TK_INCLUDE
745 IMAP_TK_DIR
746 PBX_IMAP_TK
747 ISDNNET_LIB
748 ISDNNET_INCLUDE
749 ISDNNET_DIR
750 PBX_ISDNNET
751 KDE_LIB
752 KDE_INCLUDE
753 KDE_DIR
754 PBX_KDE
755 MISDN_LIB
756 MISDN_INCLUDE
757 MISDN_DIR
758 PBX_MISDN
759 NBS_LIB
760 NBS_INCLUDE
761 NBS_DIR
762 PBX_NBS
763 NCURSES_LIB
764 NCURSES_INCLUDE
765 NCURSES_DIR
766 PBX_NCURSES
767 NETSNMP_LIB
768 NETSNMP_INCLUDE
769 NETSNMP_DIR
770 PBX_NETSNMP
771 NEWT_LIB
772 NEWT_INCLUDE
773 NEWT_DIR
774 PBX_NEWT
775 UNIXODBC_LIB
776 UNIXODBC_INCLUDE
777 UNIXODBC_DIR
778 PBX_UNIXODBC
779 OGG_LIB
780 OGG_INCLUDE
781 OGG_DIR
782 PBX_OGG
783 OSPTK_LIB
784 OSPTK_INCLUDE
785 OSPTK_DIR
786 PBX_OSPTK
787 OSS_LIB
788 OSS_INCLUDE
789 OSS_DIR
790 PBX_OSS
791 POPT_LIB
792 POPT_INCLUDE
793 POPT_DIR
794 PBX_POPT
795 PGSQL_LIB
796 PGSQL_INCLUDE
797 PGSQL_DIR
798 PBX_PGSQL
799 PRI_LIB
800 PRI_INCLUDE
801 PRI_DIR
802 PBX_PRI
803 PWLIB_LIB
804 PWLIB_INCLUDE
805 PWLIB_DIR
806 PBX_PWLIB
807 OPENH323_LIB
808 OPENH323_INCLUDE
809 OPENH323_DIR
810 PBX_OPENH323
811 QT_LIB
812 QT_INCLUDE
813 QT_DIR
814 PBX_QT
815 RADIUS_LIB
816 RADIUS_INCLUDE
817 RADIUS_DIR
818 PBX_RADIUS
819 SPEEX_LIB
820 SPEEX_INCLUDE
821 SPEEX_DIR
822 PBX_SPEEX
823 SQLITE_LIB
824 SQLITE_INCLUDE
825 SQLITE_DIR
826 PBX_SQLITE
827 SUPPSERV_LIB
828 SUPPSERV_INCLUDE
829 SUPPSERV_DIR
830 PBX_SUPPSERV
831 OPENSSL_LIB
832 OPENSSL_INCLUDE
833 OPENSSL_DIR
834 PBX_OPENSSL
835 FREETDS_LIB
836 FREETDS_INCLUDE
837 FREETDS_DIR
838 PBX_FREETDS
839 TERMCAP_LIB
840 TERMCAP_INCLUDE
841 TERMCAP_DIR
842 PBX_TERMCAP
843 TINFO_LIB
844 TINFO_INCLUDE
845 TINFO_DIR
846 PBX_TINFO
847 TONEZONE_LIB
848 TONEZONE_INCLUDE
849 TONEZONE_DIR
850 PBX_TONEZONE
851 VORBIS_LIB
852 VORBIS_INCLUDE
853 VORBIS_DIR
854 PBX_VORBIS
855 VPB_LIB
856 VPB_INCLUDE
857 VPB_DIR
858 PBX_VPB
859 ZLIB_LIB
860 ZLIB_INCLUDE
861 ZLIB_DIR
862 PBX_ZLIB
863 ZAPTEL_LIB
864 ZAPTEL_INCLUDE
865 ZAPTEL_DIR
866 PBX_ZAPTEL
867 ALLOCA
868 LIBOBJS
869 POW_LIB
870 GC_CFLAGS
871 GC_LDFLAGS
872 GSM_INTERNAL
873 KDEINIT
874 KDEDIR
875 NETSNMP_CONFIG
876 PG_CONFIG
877 PTLIB_CONFIG
878 PWLIBDIR
879 PWLIB_INCDIR
880 PWLIB_LIBDIR
881 PWLIB_PLATFORM
882 OPENH323DIR
883 OPENH323_INCDIR
884 OPENH323_LIBDIR
885 OPENH323_SUFFIX
886 OPENH323_BUILD
887 QTMOC
888 PBX_ZAPTEL_VLDTMF
889 PBX_ZAPTEL_TRANSCODE
890 EDITLINE_LIB
891 PBX_H323
892 PBX_IXJUSER
893 GTKCONFIG
894 PBX_GTK
895 GTK_INCLUDE
896 GTK_LIB
897 CURL_CONFIG
898 LTLIBOBJS'
899 ac_subst_files=''
900 ac_precious_vars='build_alias
901 host_alias
902 target_alias
904 CFLAGS
905 LDFLAGS
906 LIBS
907 CPPFLAGS
910 CXXFLAGS
912 CXXCPP'
915 # Initialize some variables set by options.
916 ac_init_help=
917 ac_init_version=false
918 # The variables have the same names as the options, with
919 # dashes changed to underlines.
920 cache_file=/dev/null
921 exec_prefix=NONE
922 no_create=
923 no_recursion=
924 prefix=NONE
925 program_prefix=NONE
926 program_suffix=NONE
927 program_transform_name=s,x,x,
928 silent=
929 site=
930 srcdir=
931 verbose=
932 x_includes=NONE
933 x_libraries=NONE
935 # Installation directory options.
936 # These are left unexpanded so users can "make install exec_prefix=/foo"
937 # and all the variables that are supposed to be based on exec_prefix
938 # by default will actually change.
939 # Use braces instead of parens because sh, perl, etc. also accept them.
940 # (The list follows the same order as the GNU Coding Standards.)
941 bindir='${exec_prefix}/bin'
942 sbindir='${exec_prefix}/sbin'
943 libexecdir='${exec_prefix}/libexec'
944 datarootdir='${prefix}/share'
945 datadir='${datarootdir}'
946 sysconfdir='${prefix}/etc'
947 sharedstatedir='${prefix}/com'
948 localstatedir='${prefix}/var'
949 includedir='${prefix}/include'
950 oldincludedir='/usr/include'
951 docdir='${datarootdir}/doc/${PACKAGE}'
952 infodir='${datarootdir}/info'
953 htmldir='${docdir}'
954 dvidir='${docdir}'
955 pdfdir='${docdir}'
956 psdir='${docdir}'
957 libdir='${exec_prefix}/lib'
958 localedir='${datarootdir}/locale'
959 mandir='${datarootdir}/man'
961 ac_prev=
962 ac_dashdash=
963 for ac_option
965 # If the previous option needs an argument, assign it.
966 if test -n "$ac_prev"; then
967 eval $ac_prev=\$ac_option
968 ac_prev=
969 continue
972 case $ac_option in
973 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974 *) ac_optarg=yes ;;
975 esac
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
981 ac_dashdash=yes ;;
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 bindir=$ac_optarg ;;
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1003 -datadir | --datadir | --datadi | --datad)
1004 ac_prev=datadir ;;
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1015 -disable-* | --disable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=no ;;
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1034 -enable-* | --enable-*)
1035 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041 eval enable_$ac_feature=\$ac_optarg ;;
1043 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045 | --exec | --exe | --ex)
1046 ac_prev=exec_prefix ;;
1047 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049 | --exec=* | --exe=* | --ex=*)
1050 exec_prefix=$ac_optarg ;;
1052 -gas | --gas | --ga | --g)
1053 # Obsolete; use --with-gas.
1054 with_gas=yes ;;
1056 -help | --help | --hel | --he | -h)
1057 ac_init_help=long ;;
1058 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059 ac_init_help=recursive ;;
1060 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061 ac_init_help=short ;;
1063 -host | --host | --hos | --ho)
1064 ac_prev=host_alias ;;
1065 -host=* | --host=* | --hos=* | --ho=*)
1066 host_alias=$ac_optarg ;;
1068 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069 ac_prev=htmldir ;;
1070 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071 | --ht=*)
1072 htmldir=$ac_optarg ;;
1074 -includedir | --includedir | --includedi | --included | --include \
1075 | --includ | --inclu | --incl | --inc)
1076 ac_prev=includedir ;;
1077 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078 | --includ=* | --inclu=* | --incl=* | --inc=*)
1079 includedir=$ac_optarg ;;
1081 -infodir | --infodir | --infodi | --infod | --info | --inf)
1082 ac_prev=infodir ;;
1083 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084 infodir=$ac_optarg ;;
1086 -libdir | --libdir | --libdi | --libd)
1087 ac_prev=libdir ;;
1088 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089 libdir=$ac_optarg ;;
1091 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092 | --libexe | --libex | --libe)
1093 ac_prev=libexecdir ;;
1094 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095 | --libexe=* | --libex=* | --libe=*)
1096 libexecdir=$ac_optarg ;;
1098 -localedir | --localedir | --localedi | --localed | --locale)
1099 ac_prev=localedir ;;
1100 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101 localedir=$ac_optarg ;;
1103 -localstatedir | --localstatedir | --localstatedi | --localstated \
1104 | --localstate | --localstat | --localsta | --localst | --locals)
1105 ac_prev=localstatedir ;;
1106 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108 localstatedir=$ac_optarg ;;
1110 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111 ac_prev=mandir ;;
1112 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113 mandir=$ac_optarg ;;
1115 -nfp | --nfp | --nf)
1116 # Obsolete; use --without-fp.
1117 with_fp=no ;;
1119 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120 | --no-cr | --no-c | -n)
1121 no_create=yes ;;
1123 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125 no_recursion=yes ;;
1127 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129 | --oldin | --oldi | --old | --ol | --o)
1130 ac_prev=oldincludedir ;;
1131 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134 oldincludedir=$ac_optarg ;;
1136 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137 ac_prev=prefix ;;
1138 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139 prefix=$ac_optarg ;;
1141 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142 | --program-pre | --program-pr | --program-p)
1143 ac_prev=program_prefix ;;
1144 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146 program_prefix=$ac_optarg ;;
1148 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149 | --program-suf | --program-su | --program-s)
1150 ac_prev=program_suffix ;;
1151 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153 program_suffix=$ac_optarg ;;
1155 -program-transform-name | --program-transform-name \
1156 | --program-transform-nam | --program-transform-na \
1157 | --program-transform-n | --program-transform- \
1158 | --program-transform | --program-transfor \
1159 | --program-transfo | --program-transf \
1160 | --program-trans | --program-tran \
1161 | --progr-tra | --program-tr | --program-t)
1162 ac_prev=program_transform_name ;;
1163 -program-transform-name=* | --program-transform-name=* \
1164 | --program-transform-nam=* | --program-transform-na=* \
1165 | --program-transform-n=* | --program-transform-=* \
1166 | --program-transform=* | --program-transfor=* \
1167 | --program-transfo=* | --program-transf=* \
1168 | --program-trans=* | --program-tran=* \
1169 | --progr-tra=* | --program-tr=* | --program-t=*)
1170 program_transform_name=$ac_optarg ;;
1172 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173 ac_prev=pdfdir ;;
1174 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175 pdfdir=$ac_optarg ;;
1177 -psdir | --psdir | --psdi | --psd | --ps)
1178 ac_prev=psdir ;;
1179 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180 psdir=$ac_optarg ;;
1182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183 | -silent | --silent | --silen | --sile | --sil)
1184 silent=yes ;;
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 ac_prev=sbindir ;;
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 | --sbi=* | --sb=*)
1190 sbindir=$ac_optarg ;;
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1195 | --sha | --sh)
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 | --sha=* | --sh=*)
1201 sharedstatedir=$ac_optarg ;;
1203 -site | --site | --sit)
1204 ac_prev=site ;;
1205 -site=* | --site=* | --sit=*)
1206 site=$ac_optarg ;;
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 ac_prev=srcdir ;;
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226 verbose=yes ;;
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1231 -with-* | --with-*)
1232 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238 eval with_$ac_package=\$ac_optarg ;;
1240 -without-* | --without-*)
1241 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247 eval with_$ac_package=no ;;
1249 --x)
1250 # Obsolete; use --with-x.
1251 with_x=yes ;;
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254 | --x-incl | --x-inc | --x-in | --x-i)
1255 ac_prev=x_includes ;;
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258 x_includes=$ac_optarg ;;
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262 ac_prev=x_libraries ;;
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265 x_libraries=$ac_optarg ;;
1267 -*) { echo "$as_me: error: unrecognized option: $ac_option
1268 Try \`$0 --help' for more information." >&2
1269 { (exit 1); exit 1; }; }
1272 *=*)
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1277 { (exit 1); exit 1; }; }
1278 eval $ac_envvar=\$ac_optarg
1279 export $ac_envvar ;;
1282 # FIXME: should be removed in autoconf 3.0.
1283 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289 esac
1290 done
1292 if test -n "$ac_prev"; then
1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294 { echo "$as_me: error: missing argument to $ac_option" >&2
1295 { (exit 1); exit 1; }; }
1298 # Be sure to have absolute directory names.
1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1304 eval ac_val=\$$ac_var
1305 case $ac_val in
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 esac
1309 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310 { (exit 1); exit 1; }; }
1311 done
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325 If a cross compiler is detected then cross compile mode will be used." >&2
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334 test "$silent" = yes && exec 6>/dev/null
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 { echo "$as_me: error: Working directory cannot be determined" >&2
1341 { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 { echo "$as_me: error: pwd does not report name of working directory" >&2
1344 { (exit 1); exit 1; }; }
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$0" ||
1352 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$0" : 'X\(//\)[^/]' \| \
1354 X"$0" : 'X\(//\)$' \| \
1355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1356 echo X"$0" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1365 /^X\(\/\/\)$/{
1366 s//\1/
1369 /^X\(\/\).*/{
1370 s//\1/
1373 s/.*/./; q'`
1374 srcdir=$ac_confdir
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 srcdir=..
1378 else
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384 { (exit 1); exit 1; }; }
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1389 { (exit 1); exit 1; }; }
1390 pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 srcdir=.
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1414 cat <<_ACEOF
1415 \`configure' configures this package to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1424 Configuration:
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 [PREFIX]
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468 _ACEOF
1470 cat <<\_ACEOF
1472 System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1478 if test -n "$ac_init_help"; then
1480 cat <<\_ACEOF
1482 Optional Features:
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --enable-dev-mode Turn on developer mode
1486 --disable-largefile omit support for large files
1488 Optional Packages:
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1493 --with-curl=PATH use cURL files in PATH
1494 --with-curses=PATH use curses files in PATH
1495 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1496 PATH
1497 --with-gsm=PATH use GSM files in PATH , or 'internal'
1498 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1499 --with-imap=PATH use UW IMAP Toolkit files in PATH
1500 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1501 --with-kde=PATH use KDE files in PATH
1502 --with-misdn=PATH use mISDN User Library files in PATH
1503 --with-nbs=PATH use Network Broadcast Sound files in PATH
1504 --with-ncurses=PATH use ncurses files in PATH
1505 --with-netsnmp=PATH use Net-SNMP files in PATH
1506 --with-newt=PATH use newt files in PATH
1507 --with-odbc=PATH use unixODBC files in PATH
1508 --with-ogg=PATH use OGG files in PATH
1509 --with-osptk=PATH use OSP Toolkit files in PATH
1510 --with-oss=PATH use Open Sound System files in PATH
1511 --with-popt=PATH use popt files in PATH
1512 --with-postgres=PATH use PostgreSQL files in PATH
1513 --with-pri=PATH use ISDN PRI files in PATH
1514 --with-pwlib=PATH use PWlib files in PATH
1515 --with-h323=PATH use OpenH323 files in PATH
1516 --with-qt=PATH use Qt files in PATH
1517 --with-radius=PATH use Radius Client files in PATH
1518 --with-speex=PATH use Speex files in PATH
1519 --with-sqlite=PATH use SQLite files in PATH
1520 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1521 --with-ssl=PATH use OpenSSL files in PATH
1522 --with-tds=PATH use FreeTDS files in PATH
1523 --with-termcap=PATH use Termcap files in PATH
1524 --with-tinfo=PATH use Term Info files in PATH
1525 --with-tonezone=PATH use tonezone files in PATH
1526 --with-vorbis=PATH use Vorbis files in PATH
1527 --with-vpb=PATH use Voicetronix API files in PATH
1528 --with-z=PATH use zlib files in PATH
1529 --with-zaptel=PATH use Zaptel files in PATH
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 CPP C preprocessor
1540 CXX C++ compiler command
1541 CXXFLAGS C++ compiler flags
1542 CXXCPP C++ preprocessor
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1547 _ACEOF
1548 ac_status=$?
1551 if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554 test -d "$ac_dir" || continue
1555 ac_builddir=.
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1573 case $srcdir in
1574 .) # We are building in place.
1575 ac_srcdir=.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1597 else
1598 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1601 done
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606 cat <<\_ACEOF
1607 configure
1608 generated by GNU Autoconf 2.61
1610 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1611 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1615 "Asterisk"
1616 _ACEOF
1617 exit
1619 cat >config.log <<_ACEOF
1620 This file contains any messages produced by compilers while
1621 running configure, to aid debugging if configure makes a mistake.
1623 It was created by $as_me, which was
1624 generated by GNU Autoconf 2.61. Invocation command line was
1626 $ $0 $@
1628 _ACEOF
1629 exec 5>>config.log
1631 cat <<_ASUNAME
1632 ## --------- ##
1633 ## Platform. ##
1634 ## --------- ##
1636 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1637 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1638 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1639 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1640 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1642 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1643 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1645 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1646 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1647 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1648 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1649 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1650 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1651 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1653 _ASUNAME
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 echo "PATH: $as_dir"
1661 done
1662 IFS=$as_save_IFS
1664 } >&5
1666 cat >&5 <<_ACEOF
1669 ## ----------- ##
1670 ## Core tests. ##
1671 ## ----------- ##
1673 _ACEOF
1676 # Keep a trace of the command line.
1677 # Strip out --no-create and --no-recursion so they do not pile up.
1678 # Strip out --silent because we don't want to record it for future runs.
1679 # Also quote any args containing shell meta-characters.
1680 # Make two passes to allow for proper duplicate-argument suppression.
1681 ac_configure_args=
1682 ac_configure_args0=
1683 ac_configure_args1=
1684 ac_must_keep_next=false
1685 for ac_pass in 1 2
1687 for ac_arg
1689 case $ac_arg in
1690 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1692 | -silent | --silent | --silen | --sile | --sil)
1693 continue ;;
1694 *\'*)
1695 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1696 esac
1697 case $ac_pass in
1698 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1700 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1701 if test $ac_must_keep_next = true; then
1702 ac_must_keep_next=false # Got value, back to normal.
1703 else
1704 case $ac_arg in
1705 *=* | --config-cache | -C | -disable-* | --disable-* \
1706 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1707 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1708 | -with-* | --with-* | -without-* | --without-* | --x)
1709 case "$ac_configure_args0 " in
1710 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1711 esac
1713 -* ) ac_must_keep_next=true ;;
1714 esac
1716 ac_configure_args="$ac_configure_args '$ac_arg'"
1718 esac
1719 done
1720 done
1721 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1722 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1724 # When interrupted or exit'd, cleanup temporary files, and complete
1725 # config.log. We remove comments because anyway the quotes in there
1726 # would cause problems or look ugly.
1727 # WARNING: Use '\'' to represent an apostrophe within the trap.
1728 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1729 trap 'exit_status=$?
1730 # Save into config.log some information that might help in debugging.
1732 echo
1734 cat <<\_ASBOX
1735 ## ---------------- ##
1736 ## Cache variables. ##
1737 ## ---------------- ##
1738 _ASBOX
1739 echo
1740 # The following way of writing the cache mishandles newlines in values,
1742 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1743 eval ac_val=\$$ac_var
1744 case $ac_val in #(
1745 *${as_nl}*)
1746 case $ac_var in #(
1747 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1748 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1749 esac
1750 case $ac_var in #(
1751 _ | IFS | as_nl) ;; #(
1752 *) $as_unset $ac_var ;;
1753 esac ;;
1754 esac
1755 done
1756 (set) 2>&1 |
1757 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1758 *${as_nl}ac_space=\ *)
1759 sed -n \
1760 "s/'\''/'\''\\\\'\'''\''/g;
1761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1762 ;; #(
1764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1766 esac |
1767 sort
1769 echo
1771 cat <<\_ASBOX
1772 ## ----------------- ##
1773 ## Output variables. ##
1774 ## ----------------- ##
1775 _ASBOX
1776 echo
1777 for ac_var in $ac_subst_vars
1779 eval ac_val=\$$ac_var
1780 case $ac_val in
1781 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782 esac
1783 echo "$ac_var='\''$ac_val'\''"
1784 done | sort
1785 echo
1787 if test -n "$ac_subst_files"; then
1788 cat <<\_ASBOX
1789 ## ------------------- ##
1790 ## File substitutions. ##
1791 ## ------------------- ##
1792 _ASBOX
1793 echo
1794 for ac_var in $ac_subst_files
1796 eval ac_val=\$$ac_var
1797 case $ac_val in
1798 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1799 esac
1800 echo "$ac_var='\''$ac_val'\''"
1801 done | sort
1802 echo
1805 if test -s confdefs.h; then
1806 cat <<\_ASBOX
1807 ## ----------- ##
1808 ## confdefs.h. ##
1809 ## ----------- ##
1810 _ASBOX
1811 echo
1812 cat confdefs.h
1813 echo
1815 test "$ac_signal" != 0 &&
1816 echo "$as_me: caught signal $ac_signal"
1817 echo "$as_me: exit $exit_status"
1818 } >&5
1819 rm -f core *.core core.conftest.* &&
1820 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1821 exit $exit_status
1823 for ac_signal in 1 2 13 15; do
1824 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1825 done
1826 ac_signal=0
1828 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1829 rm -f -r conftest* confdefs.h
1831 # Predefined preprocessor variables.
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_NAME "$PACKAGE_NAME"
1835 _ACEOF
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1840 _ACEOF
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1845 _ACEOF
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_STRING "$PACKAGE_STRING"
1850 _ACEOF
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1855 _ACEOF
1858 # Let the site file select an alternate cache file if it wants to.
1859 # Prefer explicitly selected file to automatically selected ones.
1860 if test -n "$CONFIG_SITE"; then
1861 set x "$CONFIG_SITE"
1862 elif test "x$prefix" != xNONE; then
1863 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1864 else
1865 set x "$ac_default_prefix/share/config.site" \
1866 "$ac_default_prefix/etc/config.site"
1868 shift
1869 for ac_site_file
1871 if test -r "$ac_site_file"; then
1872 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1873 echo "$as_me: loading site script $ac_site_file" >&6;}
1874 sed 's/^/| /' "$ac_site_file" >&5
1875 . "$ac_site_file"
1877 done
1879 if test -r "$cache_file"; then
1880 # Some versions of bash will fail to source /dev/null (special
1881 # files actually), so we avoid doing that.
1882 if test -f "$cache_file"; then
1883 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1884 echo "$as_me: loading cache $cache_file" >&6;}
1885 case $cache_file in
1886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1887 *) . "./$cache_file";;
1888 esac
1890 else
1891 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1892 echo "$as_me: creating cache $cache_file" >&6;}
1893 >$cache_file
1896 ac_header_list="$ac_header_list sys/time.h"
1897 ac_header_list="$ac_header_list unistd.h"
1898 ac_func_list="$ac_func_list alarm"
1899 ac_header_list="$ac_header_list utime.h"
1900 # Check that the precious variables saved in the cache have kept the same
1901 # value.
1902 ac_cache_corrupted=false
1903 for ac_var in $ac_precious_vars; do
1904 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1905 eval ac_new_set=\$ac_env_${ac_var}_set
1906 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1907 eval ac_new_val=\$ac_env_${ac_var}_value
1908 case $ac_old_set,$ac_new_set in
1909 set,)
1910 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1911 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1912 ac_cache_corrupted=: ;;
1913 ,set)
1914 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1915 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1916 ac_cache_corrupted=: ;;
1917 ,);;
1919 if test "x$ac_old_val" != "x$ac_new_val"; then
1920 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1921 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1922 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1923 echo "$as_me: former value: $ac_old_val" >&2;}
1924 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1925 echo "$as_me: current value: $ac_new_val" >&2;}
1926 ac_cache_corrupted=:
1927 fi;;
1928 esac
1929 # Pass precious variables to config.status.
1930 if test "$ac_new_set" = set; then
1931 case $ac_new_val in
1932 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 *) ac_arg=$ac_var=$ac_new_val ;;
1934 esac
1935 case " $ac_configure_args " in
1936 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1937 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1938 esac
1940 done
1941 if $ac_cache_corrupted; then
1942 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1945 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1946 { (exit 1); exit 1; }; }
1965 ac_ext=c
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973 # cross-compile macros
1974 ac_aux_dir=
1975 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1976 if test -f "$ac_dir/install-sh"; then
1977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/install-sh -c"
1979 break
1980 elif test -f "$ac_dir/install.sh"; then
1981 ac_aux_dir=$ac_dir
1982 ac_install_sh="$ac_aux_dir/install.sh -c"
1983 break
1984 elif test -f "$ac_dir/shtool"; then
1985 ac_aux_dir=$ac_dir
1986 ac_install_sh="$ac_aux_dir/shtool install -c"
1987 break
1989 done
1990 if test -z "$ac_aux_dir"; then
1991 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1992 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1993 { (exit 1); exit 1; }; }
1996 # These three variables are undocumented and unsupported,
1997 # and are intended to be withdrawn in a future Autoconf release.
1998 # They can cause serious problems if a builder's source tree is in a directory
1999 # whose full name contains unusual characters.
2000 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2001 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2002 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2005 # Make sure we can run config.sub.
2006 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2007 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2008 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2009 { (exit 1); exit 1; }; }
2011 { echo "$as_me:$LINENO: checking build system type" >&5
2012 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2013 if test "${ac_cv_build+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016 ac_build_alias=$build_alias
2017 test "x$ac_build_alias" = x &&
2018 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2019 test "x$ac_build_alias" = x &&
2020 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2021 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2022 { (exit 1); exit 1; }; }
2023 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2024 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2025 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2026 { (exit 1); exit 1; }; }
2029 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2030 echo "${ECHO_T}$ac_cv_build" >&6; }
2031 case $ac_cv_build in
2032 *-*-*) ;;
2033 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2034 echo "$as_me: error: invalid value of canonical build" >&2;}
2035 { (exit 1); exit 1; }; };;
2036 esac
2037 build=$ac_cv_build
2038 ac_save_IFS=$IFS; IFS='-'
2039 set x $ac_cv_build
2040 shift
2041 build_cpu=$1
2042 build_vendor=$2
2043 shift; shift
2044 # Remember, the first character of IFS is used to create $*,
2045 # except with old shells:
2046 build_os=$*
2047 IFS=$ac_save_IFS
2048 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2051 { echo "$as_me:$LINENO: checking host system type" >&5
2052 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2053 if test "${ac_cv_host+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056 if test "x$host_alias" = x; then
2057 ac_cv_host=$ac_cv_build
2058 else
2059 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2060 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2061 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2062 { (exit 1); exit 1; }; }
2066 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2067 echo "${ECHO_T}$ac_cv_host" >&6; }
2068 case $ac_cv_host in
2069 *-*-*) ;;
2070 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2071 echo "$as_me: error: invalid value of canonical host" >&2;}
2072 { (exit 1); exit 1; }; };;
2073 esac
2074 host=$ac_cv_host
2075 ac_save_IFS=$IFS; IFS='-'
2076 set x $ac_cv_host
2077 shift
2078 host_cpu=$1
2079 host_vendor=$2
2080 shift; shift
2081 # Remember, the first character of IFS is used to create $*,
2082 # except with old shells:
2083 host_os=$*
2084 IFS=$ac_save_IFS
2085 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2089 # check existence of the package
2092 # specify output header file
2093 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2100 cat >>confdefs.h <<\_ACEOF
2101 #define _GNU_SOURCE 1
2102 _ACEOF
2105 ac_ext=c
2106 ac_cpp='$CPP $CPPFLAGS'
2107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110 if test -n "$ac_tool_prefix"; then
2111 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2112 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118 if test -n "$CC"; then
2119 ac_cv_prog_CC="$CC" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130 break 2
2132 done
2133 done
2134 IFS=$as_save_IFS
2138 CC=$ac_cv_prog_CC
2139 if test -n "$CC"; then
2140 { echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6; }
2142 else
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2149 if test -z "$ac_cv_prog_CC"; then
2150 ac_ct_CC=$CC
2151 # Extract the first word of "gcc", so it can be a program name with args.
2152 set dummy gcc; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158 if test -n "$ac_ct_CC"; then
2159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 ac_cv_prog_ac_ct_CC="gcc"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 break 2
2172 done
2173 done
2174 IFS=$as_save_IFS
2178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2179 if test -n "$ac_ct_CC"; then
2180 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2181 echo "${ECHO_T}$ac_ct_CC" >&6; }
2182 else
2183 { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2187 if test "x$ac_ct_CC" = x; then
2188 CC=""
2189 else
2190 case $cross_compiling:$ac_tool_warned in
2191 yes:)
2192 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2193 whose name does not start with the host triplet. If you think this
2194 configuration is useful to you, please write to autoconf@gnu.org." >&5
2195 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2196 whose name does not start with the host triplet. If you think this
2197 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2198 ac_tool_warned=yes ;;
2199 esac
2200 CC=$ac_ct_CC
2202 else
2203 CC="$ac_cv_prog_CC"
2206 if test -z "$CC"; then
2207 if test -n "$ac_tool_prefix"; then
2208 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2209 set dummy ${ac_tool_prefix}cc; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_CC+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 if test -n "$CC"; then
2216 ac_cv_prog_CC="$CC" # Let the user override the test.
2217 else
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 ac_cv_prog_CC="${ac_tool_prefix}cc"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2229 done
2230 done
2231 IFS=$as_save_IFS
2235 CC=$ac_cv_prog_CC
2236 if test -n "$CC"; then
2237 { echo "$as_me:$LINENO: result: $CC" >&5
2238 echo "${ECHO_T}$CC" >&6; }
2239 else
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2247 if test -z "$CC"; then
2248 # Extract the first word of "cc", so it can be a program name with args.
2249 set dummy cc; ac_word=$2
2250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2252 if test "${ac_cv_prog_CC+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255 if test -n "$CC"; then
2256 ac_cv_prog_CC="$CC" # Let the user override the test.
2257 else
2258 ac_prog_rejected=no
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2267 ac_prog_rejected=yes
2268 continue
2270 ac_cv_prog_CC="cc"
2271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 break 2
2274 done
2275 done
2276 IFS=$as_save_IFS
2278 if test $ac_prog_rejected = yes; then
2279 # We found a bogon in the path, so make sure we never use it.
2280 set dummy $ac_cv_prog_CC
2281 shift
2282 if test $# != 0; then
2283 # We chose a different compiler from the bogus one.
2284 # However, it has the same basename, so the bogon will be chosen
2285 # first if we set CC to just the basename; use the full file name.
2286 shift
2287 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2292 CC=$ac_cv_prog_CC
2293 if test -n "$CC"; then
2294 { echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6; }
2296 else
2297 { echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6; }
2303 if test -z "$CC"; then
2304 if test -n "$ac_tool_prefix"; then
2305 for ac_prog in cl.exe
2307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_CC+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314 if test -n "$CC"; then
2315 ac_cv_prog_CC="$CC" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2328 done
2329 done
2330 IFS=$as_save_IFS
2334 CC=$ac_cv_prog_CC
2335 if test -n "$CC"; then
2336 { echo "$as_me:$LINENO: result: $CC" >&5
2337 echo "${ECHO_T}$CC" >&6; }
2338 else
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2344 test -n "$CC" && break
2345 done
2347 if test -z "$CC"; then
2348 ac_ct_CC=$CC
2349 for ac_prog in cl.exe
2351 # Extract the first word of "$ac_prog", so it can be a program name with args.
2352 set dummy $ac_prog; ac_word=$2
2353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358 if test -n "$ac_ct_CC"; then
2359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2360 else
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2368 ac_cv_prog_ac_ct_CC="$ac_prog"
2369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 break 2
2372 done
2373 done
2374 IFS=$as_save_IFS
2378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2379 if test -n "$ac_ct_CC"; then
2380 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2381 echo "${ECHO_T}$ac_ct_CC" >&6; }
2382 else
2383 { echo "$as_me:$LINENO: result: no" >&5
2384 echo "${ECHO_T}no" >&6; }
2388 test -n "$ac_ct_CC" && break
2389 done
2391 if test "x$ac_ct_CC" = x; then
2392 CC=""
2393 else
2394 case $cross_compiling:$ac_tool_warned in
2395 yes:)
2396 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet. If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&5
2399 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2402 ac_tool_warned=yes ;;
2403 esac
2404 CC=$ac_ct_CC
2411 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2412 See \`config.log' for more details." >&5
2413 echo "$as_me: error: no acceptable C compiler found in \$PATH
2414 See \`config.log' for more details." >&2;}
2415 { (exit 1); exit 1; }; }
2417 # Provide some information about the compiler.
2418 echo "$as_me:$LINENO: checking for C compiler version" >&5
2419 ac_compiler=`set X $ac_compile; echo $2`
2420 { (ac_try="$ac_compiler --version >&5"
2421 case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2424 esac
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_compiler --version >&5") 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }
2430 { (ac_try="$ac_compiler -v >&5"
2431 case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2434 esac
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_compiler -v >&5") 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }
2440 { (ac_try="$ac_compiler -V >&5"
2441 case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2444 esac
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446 (eval "$ac_compiler -V >&5") 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }
2451 cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h. */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2459 main ()
2463 return 0;
2465 _ACEOF
2466 ac_clean_files_save=$ac_clean_files
2467 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2468 # Try to create an executable without -o first, disregard a.out.
2469 # It will help us diagnose broken compilers, and finding out an intuition
2470 # of exeext.
2471 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2472 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2473 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2475 # List of possible output files, starting from the most likely.
2476 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2477 # only as a last resort. b.out is created by i960 compilers.
2478 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2480 # The IRIX 6 linker writes into existing files which may not be
2481 # executable, retaining their permissions. Remove them first so a
2482 # subsequent execution test works.
2483 ac_rmfiles=
2484 for ac_file in $ac_files
2486 case $ac_file in
2487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2489 esac
2490 done
2491 rm -f $ac_rmfiles
2493 if { (ac_try="$ac_link_default"
2494 case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2497 esac
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_link_default") 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; then
2503 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2505 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2506 # so that the user can short-circuit this test for compilers unknown to
2507 # Autoconf.
2508 for ac_file in $ac_files ''
2510 test -f "$ac_file" || continue
2511 case $ac_file in
2512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2514 [ab].out )
2515 # We found the default executable, but exeext='' is most
2516 # certainly right.
2517 break;;
2518 *.* )
2519 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2520 then :; else
2521 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2523 # We set ac_cv_exeext here because the later test for it is not
2524 # safe: cross compilers may not add the suffix if given an `-o'
2525 # argument, so we may need to know it at that point already.
2526 # Even if this section looks crufty: it has the advantage of
2527 # actually working.
2528 break;;
2530 break;;
2531 esac
2532 done
2533 test "$ac_cv_exeext" = no && ac_cv_exeext=
2535 else
2536 ac_file=''
2539 { echo "$as_me:$LINENO: result: $ac_file" >&5
2540 echo "${ECHO_T}$ac_file" >&6; }
2541 if test -z "$ac_file"; then
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2545 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: C compiler cannot create executables
2548 See \`config.log' for more details." >&2;}
2549 { (exit 77); exit 77; }; }
2552 ac_exeext=$ac_cv_exeext
2554 # Check that the compiler produces executables we can run. If not, either
2555 # the compiler is broken, or we cross compile.
2556 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2557 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2558 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2559 # If not cross compiling, check that we can run a simple program.
2560 if test "$cross_compiling" != yes; then
2561 if { ac_try='./$ac_file'
2562 { (case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_try") 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 cross_compiling=no
2572 else
2573 if test "$cross_compiling" = maybe; then
2574 cross_compiling=yes
2575 else
2576 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2577 If you meant to cross compile, use \`--host'.
2578 See \`config.log' for more details." >&5
2579 echo "$as_me: error: cannot run C compiled programs.
2580 If you meant to cross compile, use \`--host'.
2581 See \`config.log' for more details." >&2;}
2582 { (exit 1); exit 1; }; }
2586 { echo "$as_me:$LINENO: result: yes" >&5
2587 echo "${ECHO_T}yes" >&6; }
2589 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2590 ac_clean_files=$ac_clean_files_save
2591 # Check that the compiler produces executables we can run. If not, either
2592 # the compiler is broken, or we cross compile.
2593 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2594 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2595 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2596 echo "${ECHO_T}$cross_compiling" >&6; }
2598 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2599 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2600 if { (ac_try="$ac_link"
2601 case "(($ac_try" in
2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603 *) ac_try_echo=$ac_try;;
2604 esac
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606 (eval "$ac_link") 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; then
2610 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2611 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2612 # work properly (i.e., refer to `conftest.exe'), while it won't with
2613 # `rm'.
2614 for ac_file in conftest.exe conftest conftest.*; do
2615 test -f "$ac_file" || continue
2616 case $ac_file in
2617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2618 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2619 break;;
2620 * ) break;;
2621 esac
2622 done
2623 else
2624 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2625 See \`config.log' for more details." >&5
2626 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2627 See \`config.log' for more details." >&2;}
2628 { (exit 1); exit 1; }; }
2631 rm -f conftest$ac_cv_exeext
2632 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2633 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2635 rm -f conftest.$ac_ext
2636 EXEEXT=$ac_cv_exeext
2637 ac_exeext=$EXEEXT
2638 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2639 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2640 if test "${ac_cv_objext+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643 cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h. */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2651 main ()
2655 return 0;
2657 _ACEOF
2658 rm -f conftest.o conftest.obj
2659 if { (ac_try="$ac_compile"
2660 case "(($ac_try" in
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2663 esac
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665 (eval "$ac_compile") 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; then
2669 for ac_file in conftest.o conftest.obj conftest.*; do
2670 test -f "$ac_file" || continue;
2671 case $ac_file in
2672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2673 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2674 break;;
2675 esac
2676 done
2677 else
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2681 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2682 See \`config.log' for more details." >&5
2683 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2684 See \`config.log' for more details." >&2;}
2685 { (exit 1); exit 1; }; }
2688 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2690 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2691 echo "${ECHO_T}$ac_cv_objext" >&6; }
2692 OBJEXT=$ac_cv_objext
2693 ac_objext=$OBJEXT
2694 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2695 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2696 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h. */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2707 main ()
2709 #ifndef __GNUC__
2710 choke me
2711 #endif
2714 return 0;
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2719 case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compile") 2>conftest.er1
2725 ac_status=$?
2726 grep -v '^ *+' conftest.er1 >conftest.err
2727 rm -f conftest.er1
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } && {
2731 test -z "$ac_c_werror_flag" ||
2732 test ! -s conftest.err
2733 } && test -s conftest.$ac_objext; then
2734 ac_compiler_gnu=yes
2735 else
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2739 ac_compiler_gnu=no
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2746 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2747 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2748 GCC=`test $ac_compiler_gnu = yes && echo yes`
2749 ac_test_CFLAGS=${CFLAGS+set}
2750 ac_save_CFLAGS=$CFLAGS
2751 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2752 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_cc_g+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756 ac_save_c_werror_flag=$ac_c_werror_flag
2757 ac_c_werror_flag=yes
2758 ac_cv_prog_cc_g=no
2759 CFLAGS="-g"
2760 cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h. */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2768 main ()
2772 return 0;
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (ac_try="$ac_compile"
2777 case "(($ac_try" in
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2780 esac
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_compile") 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } && {
2789 test -z "$ac_c_werror_flag" ||
2790 test ! -s conftest.err
2791 } && test -s conftest.$ac_objext; then
2792 ac_cv_prog_cc_g=yes
2793 else
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 CFLAGS=""
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2806 main ()
2810 return 0;
2812 _ACEOF
2813 rm -f conftest.$ac_objext
2814 if { (ac_try="$ac_compile"
2815 case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_compile") 2>conftest.er1
2821 ac_status=$?
2822 grep -v '^ *+' conftest.er1 >conftest.err
2823 rm -f conftest.er1
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } && {
2827 test -z "$ac_c_werror_flag" ||
2828 test ! -s conftest.err
2829 } && test -s conftest.$ac_objext; then
2831 else
2832 echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2835 ac_c_werror_flag=$ac_save_c_werror_flag
2836 CFLAGS="-g"
2837 cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h. */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2845 main ()
2849 return 0;
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (ac_try="$ac_compile"
2854 case "(($ac_try" in
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2857 esac
2858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859 (eval "$ac_compile") 2>conftest.er1
2860 ac_status=$?
2861 grep -v '^ *+' conftest.er1 >conftest.err
2862 rm -f conftest.er1
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } && {
2866 test -z "$ac_c_werror_flag" ||
2867 test ! -s conftest.err
2868 } && test -s conftest.$ac_objext; then
2869 ac_cv_prog_cc_g=yes
2870 else
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884 ac_c_werror_flag=$ac_save_c_werror_flag
2886 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2887 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2888 if test "$ac_test_CFLAGS" = set; then
2889 CFLAGS=$ac_save_CFLAGS
2890 elif test $ac_cv_prog_cc_g = yes; then
2891 if test "$GCC" = yes; then
2892 CFLAGS="-g -O2"
2893 else
2894 CFLAGS="-g"
2896 else
2897 if test "$GCC" = yes; then
2898 CFLAGS="-O2"
2899 else
2900 CFLAGS=
2903 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2904 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2905 if test "${ac_cv_prog_cc_c89+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 ac_cv_prog_cc_c89=no
2909 ac_save_CC=$CC
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2916 #include <stdarg.h>
2917 #include <stdio.h>
2918 #include <sys/types.h>
2919 #include <sys/stat.h>
2920 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2921 struct buf { int x; };
2922 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2923 static char *e (p, i)
2924 char **p;
2925 int i;
2927 return p[i];
2929 static char *f (char * (*g) (char **, int), char **p, ...)
2931 char *s;
2932 va_list v;
2933 va_start (v,p);
2934 s = g (p, va_arg (v,int));
2935 va_end (v);
2936 return s;
2939 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2940 function prototypes and stuff, but not '\xHH' hex character constants.
2941 These don't provoke an error unfortunately, instead are silently treated
2942 as 'x'. The following induces an error, until -std is added to get
2943 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2944 array size at least. It's necessary to write '\x00'==0 to get something
2945 that's true only with -std. */
2946 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2948 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2949 inside strings and character constants. */
2950 #define FOO(x) 'x'
2951 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2953 int test (int i, double x);
2954 struct s1 {int (*f) (int a);};
2955 struct s2 {int (*f) (double a);};
2956 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2957 int argc;
2958 char **argv;
2960 main ()
2962 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2964 return 0;
2966 _ACEOF
2967 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2968 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2970 CC="$ac_save_CC $ac_arg"
2971 rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2973 case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compile") 2>conftest.er1
2979 ac_status=$?
2980 grep -v '^ *+' conftest.er1 >conftest.err
2981 rm -f conftest.er1
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } && {
2985 test -z "$ac_c_werror_flag" ||
2986 test ! -s conftest.err
2987 } && test -s conftest.$ac_objext; then
2988 ac_cv_prog_cc_c89=$ac_arg
2989 else
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2996 rm -f core conftest.err conftest.$ac_objext
2997 test "x$ac_cv_prog_cc_c89" != "xno" && break
2998 done
2999 rm -f conftest.$ac_ext
3000 CC=$ac_save_CC
3003 # AC_CACHE_VAL
3004 case "x$ac_cv_prog_cc_c89" in
3006 { echo "$as_me:$LINENO: result: none needed" >&5
3007 echo "${ECHO_T}none needed" >&6; } ;;
3008 xno)
3009 { echo "$as_me:$LINENO: result: unsupported" >&5
3010 echo "${ECHO_T}unsupported" >&6; } ;;
3012 CC="$CC $ac_cv_prog_cc_c89"
3013 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3014 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3015 esac
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025 ac_ext=c
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3031 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3032 # On Suns, sometimes $CPP names a directory.
3033 if test -n "$CPP" && test -d "$CPP"; then
3034 CPP=
3036 if test -z "$CPP"; then
3037 if test "${ac_cv_prog_CPP+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 else
3040 # Double quotes because CPP needs to be expanded
3041 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3043 ac_preproc_ok=false
3044 for ac_c_preproc_warn_flag in '' yes
3046 # Use a header file that comes with gcc, so configuring glibc
3047 # with a fresh cross-compiler works.
3048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3049 # <limits.h> exists even on freestanding compilers.
3050 # On the NeXT, cc -E runs the code through the compiler's parser,
3051 # not just through cpp. "Syntax error" is here to catch this case.
3052 cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h. */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058 #ifdef __STDC__
3059 # include <limits.h>
3060 #else
3061 # include <assert.h>
3062 #endif
3063 Syntax error
3064 _ACEOF
3065 if { (ac_try="$ac_cpp conftest.$ac_ext"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } >/dev/null && {
3078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3080 }; then
3082 else
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3086 # Broken: fails on valid input.
3087 continue
3090 rm -f conftest.err conftest.$ac_ext
3092 # OK, works on sane cases. Now check whether nonexistent headers
3093 # can be detected and how.
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3100 #include <ac_nonexistent.h>
3101 _ACEOF
3102 if { (ac_try="$ac_cpp conftest.$ac_ext"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3109 ac_status=$?
3110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } >/dev/null && {
3115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3116 test ! -s conftest.err
3117 }; then
3118 # Broken: success on invalid input.
3119 continue
3120 else
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 # Passes both tests.
3125 ac_preproc_ok=:
3126 break
3129 rm -f conftest.err conftest.$ac_ext
3131 done
3132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3133 rm -f conftest.err conftest.$ac_ext
3134 if $ac_preproc_ok; then
3135 break
3138 done
3139 ac_cv_prog_CPP=$CPP
3142 CPP=$ac_cv_prog_CPP
3143 else
3144 ac_cv_prog_CPP=$CPP
3146 { echo "$as_me:$LINENO: result: $CPP" >&5
3147 echo "${ECHO_T}$CPP" >&6; }
3148 ac_preproc_ok=false
3149 for ac_c_preproc_warn_flag in '' yes
3151 # Use a header file that comes with gcc, so configuring glibc
3152 # with a fresh cross-compiler works.
3153 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3154 # <limits.h> exists even on freestanding compilers.
3155 # On the NeXT, cc -E runs the code through the compiler's parser,
3156 # not just through cpp. "Syntax error" is here to catch this case.
3157 cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h. */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3163 #ifdef __STDC__
3164 # include <limits.h>
3165 #else
3166 # include <assert.h>
3167 #endif
3168 Syntax error
3169 _ACEOF
3170 if { (ac_try="$ac_cpp conftest.$ac_ext"
3171 case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3177 ac_status=$?
3178 grep -v '^ *+' conftest.er1 >conftest.err
3179 rm -f conftest.er1
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } >/dev/null && {
3183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3184 test ! -s conftest.err
3185 }; then
3187 else
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 # Broken: fails on valid input.
3192 continue
3195 rm -f conftest.err conftest.$ac_ext
3197 # OK, works on sane cases. Now check whether nonexistent headers
3198 # can be detected and how.
3199 cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h. */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3205 #include <ac_nonexistent.h>
3206 _ACEOF
3207 if { (ac_try="$ac_cpp conftest.$ac_ext"
3208 case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211 esac
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3214 ac_status=$?
3215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } >/dev/null && {
3220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3221 test ! -s conftest.err
3222 }; then
3223 # Broken: success on invalid input.
3224 continue
3225 else
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3229 # Passes both tests.
3230 ac_preproc_ok=:
3231 break
3234 rm -f conftest.err conftest.$ac_ext
3236 done
3237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3238 rm -f conftest.err conftest.$ac_ext
3239 if $ac_preproc_ok; then
3241 else
3242 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3243 See \`config.log' for more details." >&5
3244 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3245 See \`config.log' for more details." >&2;}
3246 { (exit 1); exit 1; }; }
3249 ac_ext=c
3250 ac_cpp='$CPP $CPPFLAGS'
3251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3257 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3258 if test "${ac_cv_path_GREP+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261 # Extract the first word of "grep ggrep" to use in msg output
3262 if test -z "$GREP"; then
3263 set dummy grep ggrep; ac_prog_name=$2
3264 if test "${ac_cv_path_GREP+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267 ac_path_GREP_found=false
3268 # Loop through the user's path and test for each of PROGNAME-LIST
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_prog in grep ggrep; do
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3277 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3278 # Check for GNU ac_path_GREP and select it if it is found.
3279 # Check for GNU $ac_path_GREP
3280 case `"$ac_path_GREP" --version 2>&1` in
3281 *GNU*)
3282 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3284 ac_count=0
3285 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3286 while :
3288 cat "conftest.in" "conftest.in" >"conftest.tmp"
3289 mv "conftest.tmp" "conftest.in"
3290 cp "conftest.in" "conftest.nl"
3291 echo 'GREP' >> "conftest.nl"
3292 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3294 ac_count=`expr $ac_count + 1`
3295 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3296 # Best one so far, save it but keep looking for a better one
3297 ac_cv_path_GREP="$ac_path_GREP"
3298 ac_path_GREP_max=$ac_count
3300 # 10*(2^10) chars as input seems more than enough
3301 test $ac_count -gt 10 && break
3302 done
3303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3304 esac
3307 $ac_path_GREP_found && break 3
3308 done
3309 done
3311 done
3312 IFS=$as_save_IFS
3317 GREP="$ac_cv_path_GREP"
3318 if test -z "$GREP"; then
3319 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3320 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3321 { (exit 1); exit 1; }; }
3324 else
3325 ac_cv_path_GREP=$GREP
3330 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3331 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3332 GREP="$ac_cv_path_GREP"
3335 { echo "$as_me:$LINENO: checking for egrep" >&5
3336 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3337 if test "${ac_cv_path_EGREP+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3341 then ac_cv_path_EGREP="$GREP -E"
3342 else
3343 # Extract the first word of "egrep" to use in msg output
3344 if test -z "$EGREP"; then
3345 set dummy egrep; ac_prog_name=$2
3346 if test "${ac_cv_path_EGREP+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 ac_path_EGREP_found=false
3350 # Loop through the user's path and test for each of PROGNAME-LIST
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_prog in egrep; do
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3359 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3360 # Check for GNU ac_path_EGREP and select it if it is found.
3361 # Check for GNU $ac_path_EGREP
3362 case `"$ac_path_EGREP" --version 2>&1` in
3363 *GNU*)
3364 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3366 ac_count=0
3367 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3368 while :
3370 cat "conftest.in" "conftest.in" >"conftest.tmp"
3371 mv "conftest.tmp" "conftest.in"
3372 cp "conftest.in" "conftest.nl"
3373 echo 'EGREP' >> "conftest.nl"
3374 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3376 ac_count=`expr $ac_count + 1`
3377 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3378 # Best one so far, save it but keep looking for a better one
3379 ac_cv_path_EGREP="$ac_path_EGREP"
3380 ac_path_EGREP_max=$ac_count
3382 # 10*(2^10) chars as input seems more than enough
3383 test $ac_count -gt 10 && break
3384 done
3385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3386 esac
3389 $ac_path_EGREP_found && break 3
3390 done
3391 done
3393 done
3394 IFS=$as_save_IFS
3399 EGREP="$ac_cv_path_EGREP"
3400 if test -z "$EGREP"; then
3401 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3402 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3403 { (exit 1); exit 1; }; }
3406 else
3407 ac_cv_path_EGREP=$EGREP
3413 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3414 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3415 EGREP="$ac_cv_path_EGREP"
3419 { echo "$as_me:$LINENO: checking for AIX" >&5
3420 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3421 cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h. */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427 #ifdef _AIX
3429 #endif
3431 _ACEOF
3432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3433 $EGREP "yes" >/dev/null 2>&1; then
3434 { echo "$as_me:$LINENO: result: yes" >&5
3435 echo "${ECHO_T}yes" >&6; }
3436 cat >>confdefs.h <<\_ACEOF
3437 #define _ALL_SOURCE 1
3438 _ACEOF
3440 else
3441 { echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6; }
3444 rm -f conftest*
3447 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3448 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3449 if test "${ac_cv_header_stdc+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h. */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458 #include <stdlib.h>
3459 #include <stdarg.h>
3460 #include <string.h>
3461 #include <float.h>
3464 main ()
3468 return 0;
3470 _ACEOF
3471 rm -f conftest.$ac_objext
3472 if { (ac_try="$ac_compile"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_compile") 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } && {
3485 test -z "$ac_c_werror_flag" ||
3486 test ! -s conftest.err
3487 } && test -s conftest.$ac_objext; then
3488 ac_cv_header_stdc=yes
3489 else
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3493 ac_cv_header_stdc=no
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 if test $ac_cv_header_stdc = yes; then
3499 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 #include <string.h>
3508 _ACEOF
3509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3510 $EGREP "memchr" >/dev/null 2>&1; then
3512 else
3513 ac_cv_header_stdc=no
3515 rm -f conftest*
3519 if test $ac_cv_header_stdc = yes; then
3520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #include <stdlib.h>
3529 _ACEOF
3530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3531 $EGREP "free" >/dev/null 2>&1; then
3533 else
3534 ac_cv_header_stdc=no
3536 rm -f conftest*
3540 if test $ac_cv_header_stdc = yes; then
3541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3542 if test "$cross_compiling" = yes; then
3544 else
3545 cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 #include <ctype.h>
3552 #include <stdlib.h>
3553 #if ((' ' & 0x0FF) == 0x020)
3554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3556 #else
3557 # define ISLOWER(c) \
3558 (('a' <= (c) && (c) <= 'i') \
3559 || ('j' <= (c) && (c) <= 'r') \
3560 || ('s' <= (c) && (c) <= 'z'))
3561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3562 #endif
3564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3566 main ()
3568 int i;
3569 for (i = 0; i < 256; i++)
3570 if (XOR (islower (i), ISLOWER (i))
3571 || toupper (i) != TOUPPER (i))
3572 return 2;
3573 return 0;
3575 _ACEOF
3576 rm -f conftest$ac_exeext
3577 if { (ac_try="$ac_link"
3578 case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_link") 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3587 { (case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_try") 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3597 else
3598 echo "$as_me: program exited with status $ac_status" >&5
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 ( exit $ac_status )
3603 ac_cv_header_stdc=no
3605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3611 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3612 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3613 if test $ac_cv_header_stdc = yes; then
3615 cat >>confdefs.h <<\_ACEOF
3616 #define STDC_HEADERS 1
3617 _ACEOF
3621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3631 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3632 inttypes.h stdint.h unistd.h
3634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640 cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h. */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 $ac_includes_default
3648 #include <$ac_header>
3649 _ACEOF
3650 rm -f conftest.$ac_objext
3651 if { (ac_try="$ac_compile"
3652 case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655 esac
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_compile") 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } && {
3664 test -z "$ac_c_werror_flag" ||
3665 test ! -s conftest.err
3666 } && test -s conftest.$ac_objext; then
3667 eval "$as_ac_Header=yes"
3668 else
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3672 eval "$as_ac_Header=no"
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 ac_res=`eval echo '${'$as_ac_Header'}'`
3678 { echo "$as_me:$LINENO: result: $ac_res" >&5
3679 echo "${ECHO_T}$ac_res" >&6; }
3680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3681 cat >>confdefs.h <<_ACEOF
3682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3683 _ACEOF
3687 done
3690 if test "${ac_cv_header_minix_config_h+set}" = set; then
3691 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3692 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3693 if test "${ac_cv_header_minix_config_h+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3697 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3698 else
3699 # Is the header compilable?
3700 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3701 echo $ECHO_N "checking minix/config.h usability... $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 $ac_includes_default
3709 #include <minix/config.h>
3710 _ACEOF
3711 rm -f conftest.$ac_objext
3712 if { (ac_try="$ac_compile"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_compile") 2>conftest.er1
3719 ac_status=$?
3720 grep -v '^ *+' conftest.er1 >conftest.err
3721 rm -f conftest.er1
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } && {
3725 test -z "$ac_c_werror_flag" ||
3726 test ! -s conftest.err
3727 } && test -s conftest.$ac_objext; then
3728 ac_header_compiler=yes
3729 else
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 ac_header_compiler=no
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3738 echo "${ECHO_T}$ac_header_compiler" >&6; }
3740 # Is the header present?
3741 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3742 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3743 cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h. */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3749 #include <minix/config.h>
3750 _ACEOF
3751 if { (ac_try="$ac_cpp conftest.$ac_ext"
3752 case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755 esac
3756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3758 ac_status=$?
3759 grep -v '^ *+' conftest.er1 >conftest.err
3760 rm -f conftest.er1
3761 cat conftest.err >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } >/dev/null && {
3764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3765 test ! -s conftest.err
3766 }; then
3767 ac_header_preproc=yes
3768 else
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3772 ac_header_preproc=no
3775 rm -f conftest.err conftest.$ac_ext
3776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3777 echo "${ECHO_T}$ac_header_preproc" >&6; }
3779 # So? What about this header?
3780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3781 yes:no: )
3782 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3783 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3784 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3785 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3786 ac_header_preproc=yes
3788 no:yes:* )
3789 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3790 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3791 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3792 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3793 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3794 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3795 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3796 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3797 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3798 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3799 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3800 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3803 esac
3804 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3805 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3806 if test "${ac_cv_header_minix_config_h+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809 ac_cv_header_minix_config_h=$ac_header_preproc
3811 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3812 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3815 if test $ac_cv_header_minix_config_h = yes; then
3816 MINIX=yes
3817 else
3818 MINIX=
3822 if test "$MINIX" = yes; then
3824 cat >>confdefs.h <<\_ACEOF
3825 #define _POSIX_SOURCE 1
3826 _ACEOF
3829 cat >>confdefs.h <<\_ACEOF
3830 #define _POSIX_1_SOURCE 2
3831 _ACEOF
3834 cat >>confdefs.h <<\_ACEOF
3835 #define _MINIX 1
3836 _ACEOF
3850 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3851 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3852 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855 cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h. */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3862 # define __EXTENSIONS__ 1
3863 $ac_includes_default
3865 main ()
3869 return 0;
3871 _ACEOF
3872 rm -f conftest.$ac_objext
3873 if { (ac_try="$ac_compile"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_compile") 2>conftest.er1
3880 ac_status=$?
3881 grep -v '^ *+' conftest.er1 >conftest.err
3882 rm -f conftest.er1
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } && {
3886 test -z "$ac_c_werror_flag" ||
3887 test ! -s conftest.err
3888 } && test -s conftest.$ac_objext; then
3889 ac_cv_safe_to_define___extensions__=yes
3890 else
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3894 ac_cv_safe_to_define___extensions__=no
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3900 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3901 test $ac_cv_safe_to_define___extensions__ = yes &&
3902 cat >>confdefs.h <<\_ACEOF
3903 #define __EXTENSIONS__ 1
3904 _ACEOF
3906 cat >>confdefs.h <<\_ACEOF
3907 #define _POSIX_PTHREAD_SEMANTICS 1
3908 _ACEOF
3910 cat >>confdefs.h <<\_ACEOF
3911 #define _TANDEM_SOURCE 1
3912 _ACEOF
3916 case "${host_os}" in
3917 freebsd*)
3918 ac_default_prefix=/usr/local
3919 CPPFLAGS=-I/usr/local/include
3920 LDFLAGS=-L/usr/local/lib
3923 ac_default_prefix=/usr
3924 if test ${sysconfdir} = '${prefix}/etc'; then
3925 sysconfdir=/etc
3927 if test ${mandir} = '${prefix}/man'; then
3928 mandir=/usr/share/man
3931 esac
3933 if test ${localstatedir} = '${prefix}/var'; then
3934 localstatedir=/var
3937 BUILD_PLATFORM=${build}
3938 BUILD_CPU=${build_cpu}
3939 BUILD_VENDOR=${build_vendor}
3940 BUILD_OS=${build_os}
3947 HOST_PLATFORM=${host}
3948 HOST_CPU=${host_cpu}
3949 HOST_VENDOR=${host_vendor}
3950 HOST_OS=${host_os}
3957 case "${host_os}" in
3958 freebsd*)
3959 OSARCH=FreeBSD
3961 netbsd*)
3962 OSARCH=NetBSD
3964 openbsd*)
3965 OSARCH=OpenBSD
3967 solaris*)
3968 OSARCH=SunOS
3971 OSARCH=${HOST_OS}
3973 esac
3977 # check for uname
3978 if test -n "$ac_tool_prefix"; then
3979 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
3980 set dummy ${ac_tool_prefix}uname; ac_word=$2
3981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3983 if test "${ac_cv_path_UNAME+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 case $UNAME in
3987 [\\/]* | ?:[\\/]*)
3988 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4002 done
4003 done
4004 IFS=$as_save_IFS
4007 esac
4009 UNAME=$ac_cv_path_UNAME
4010 if test -n "$UNAME"; then
4011 { echo "$as_me:$LINENO: result: $UNAME" >&5
4012 echo "${ECHO_T}$UNAME" >&6; }
4013 else
4014 { echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6; }
4020 if test -z "$ac_cv_path_UNAME"; then
4021 ac_pt_UNAME=$UNAME
4022 # Extract the first word of "uname", so it can be a program name with args.
4023 set dummy uname; ac_word=$2
4024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4026 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029 case $ac_pt_UNAME in
4030 [\\/]* | ?:[\\/]*)
4031 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4041 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4045 done
4046 done
4047 IFS=$as_save_IFS
4050 esac
4052 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4053 if test -n "$ac_pt_UNAME"; then
4054 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4055 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4056 else
4057 { echo "$as_me:$LINENO: result: no" >&5
4058 echo "${ECHO_T}no" >&6; }
4061 if test "x$ac_pt_UNAME" = x; then
4062 UNAME="No"
4063 else
4064 case $cross_compiling:$ac_tool_warned in
4065 yes:)
4066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4067 whose name does not start with the host triplet. If you think this
4068 configuration is useful to you, please write to autoconf@gnu.org." >&5
4069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4070 whose name does not start with the host triplet. If you think this
4071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4072 ac_tool_warned=yes ;;
4073 esac
4074 UNAME=$ac_pt_UNAME
4076 else
4077 UNAME="$ac_cv_path_UNAME"
4080 if test ! x"${UNAME}" = xNo; then
4081 PBX_OSREV=$(${UNAME} -r)
4091 # cross-compile checks
4092 if test "${cross_compiling}" = "yes";
4093 then
4094 if test -n "$ac_tool_prefix"; then
4095 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4096 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4099 if test "${ac_cv_prog_CC+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 if test -n "$CC"; then
4103 ac_cv_prog_CC="$CC" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4116 done
4117 done
4118 IFS=$as_save_IFS
4122 CC=$ac_cv_prog_CC
4123 if test -n "$CC"; then
4124 { echo "$as_me:$LINENO: result: $CC" >&5
4125 echo "${ECHO_T}$CC" >&6; }
4126 else
4127 { echo "$as_me:$LINENO: result: no" >&5
4128 echo "${ECHO_T}no" >&6; }
4133 if test -z "$ac_cv_prog_CC"; then
4134 ac_ct_CC=$CC
4135 # Extract the first word of "gcc", so it can be a program name with args.
4136 set dummy gcc; ac_word=$2
4137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142 if test -n "$ac_ct_CC"; then
4143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4144 else
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH
4148 IFS=$as_save_IFS
4149 test -z "$as_dir" && as_dir=.
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4152 ac_cv_prog_ac_ct_CC="gcc"
4153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 break 2
4156 done
4157 done
4158 IFS=$as_save_IFS
4162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4163 if test -n "$ac_ct_CC"; then
4164 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4165 echo "${ECHO_T}$ac_ct_CC" >&6; }
4166 else
4167 { echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6; }
4171 if test "x$ac_ct_CC" = x; then
4172 CC=":"
4173 else
4174 case $cross_compiling:$ac_tool_warned in
4175 yes:)
4176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4177 whose name does not start with the host triplet. If you think this
4178 configuration is useful to you, please write to autoconf@gnu.org." >&5
4179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4180 whose name does not start with the host triplet. If you think this
4181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4182 ac_tool_warned=yes ;;
4183 esac
4184 CC=$ac_ct_CC
4186 else
4187 CC="$ac_cv_prog_CC"
4190 if test -n "$ac_tool_prefix"; then
4191 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4192 set dummy ${ac_tool_prefix}g++; ac_word=$2
4193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4195 if test "${ac_cv_prog_CXX+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198 if test -n "$CXX"; then
4199 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 break 2
4212 done
4213 done
4214 IFS=$as_save_IFS
4218 CXX=$ac_cv_prog_CXX
4219 if test -n "$CXX"; then
4220 { echo "$as_me:$LINENO: result: $CXX" >&5
4221 echo "${ECHO_T}$CXX" >&6; }
4222 else
4223 { echo "$as_me:$LINENO: result: no" >&5
4224 echo "${ECHO_T}no" >&6; }
4229 if test -z "$ac_cv_prog_CXX"; then
4230 ac_ct_CXX=$CXX
4231 # Extract the first word of "g++", so it can be a program name with args.
4232 set dummy g++; ac_word=$2
4233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4235 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 if test -n "$ac_ct_CXX"; then
4239 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 ac_cv_prog_ac_ct_CXX="g++"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4252 done
4253 done
4254 IFS=$as_save_IFS
4258 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4259 if test -n "$ac_ct_CXX"; then
4260 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4261 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4262 else
4263 { echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6; }
4267 if test "x$ac_ct_CXX" = x; then
4268 CXX=":"
4269 else
4270 case $cross_compiling:$ac_tool_warned in
4271 yes:)
4272 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4273 whose name does not start with the host triplet. If you think this
4274 configuration is useful to you, please write to autoconf@gnu.org." >&5
4275 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4276 whose name does not start with the host triplet. If you think this
4277 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4278 ac_tool_warned=yes ;;
4279 esac
4280 CXX=$ac_ct_CXX
4282 else
4283 CXX="$ac_cv_prog_CXX"
4286 if test -n "$ac_tool_prefix"; then
4287 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4288 set dummy ${ac_tool_prefix}ld; ac_word=$2
4289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4291 if test "${ac_cv_prog_LD+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294 if test -n "$LD"; then
4295 ac_cv_prog_LD="$LD" # Let the user override the test.
4296 else
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4304 ac_cv_prog_LD="${ac_tool_prefix}ld"
4305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 break 2
4308 done
4309 done
4310 IFS=$as_save_IFS
4314 LD=$ac_cv_prog_LD
4315 if test -n "$LD"; then
4316 { echo "$as_me:$LINENO: result: $LD" >&5
4317 echo "${ECHO_T}$LD" >&6; }
4318 else
4319 { echo "$as_me:$LINENO: result: no" >&5
4320 echo "${ECHO_T}no" >&6; }
4325 if test -z "$ac_cv_prog_LD"; then
4326 ac_ct_LD=$LD
4327 # Extract the first word of "ld", so it can be a program name with args.
4328 set dummy ld; ac_word=$2
4329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4331 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334 if test -n "$ac_ct_LD"; then
4335 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4336 else
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_prog_ac_ct_LD="ld"
4345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4348 done
4349 done
4350 IFS=$as_save_IFS
4354 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4355 if test -n "$ac_ct_LD"; then
4356 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4357 echo "${ECHO_T}$ac_ct_LD" >&6; }
4358 else
4359 { echo "$as_me:$LINENO: result: no" >&5
4360 echo "${ECHO_T}no" >&6; }
4363 if test "x$ac_ct_LD" = x; then
4364 LD=":"
4365 else
4366 case $cross_compiling:$ac_tool_warned in
4367 yes:)
4368 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4369 whose name does not start with the host triplet. If you think this
4370 configuration is useful to you, please write to autoconf@gnu.org." >&5
4371 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4372 whose name does not start with the host triplet. If you think this
4373 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4374 ac_tool_warned=yes ;;
4375 esac
4376 LD=$ac_ct_LD
4378 else
4379 LD="$ac_cv_prog_LD"
4382 if test -n "$ac_tool_prefix"; then
4383 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4384 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387 if test "${ac_cv_prog_RANLIB+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390 if test -n "$RANLIB"; then
4391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4404 done
4405 done
4406 IFS=$as_save_IFS
4410 RANLIB=$ac_cv_prog_RANLIB
4411 if test -n "$RANLIB"; then
4412 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4413 echo "${ECHO_T}$RANLIB" >&6; }
4414 else
4415 { echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6; }
4421 if test -z "$ac_cv_prog_RANLIB"; then
4422 ac_ct_RANLIB=$RANLIB
4423 # Extract the first word of "ranlib", so it can be a program name with args.
4424 set dummy ranlib; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 if test -n "$ac_ct_RANLIB"; then
4431 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_ac_ct_RANLIB="ranlib"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4444 done
4445 done
4446 IFS=$as_save_IFS
4450 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4451 if test -n "$ac_ct_RANLIB"; then
4452 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4453 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4454 else
4455 { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4459 if test "x$ac_ct_RANLIB" = x; then
4460 RANLIB=":"
4461 else
4462 case $cross_compiling:$ac_tool_warned in
4463 yes:)
4464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4465 whose name does not start with the host triplet. If you think this
4466 configuration is useful to you, please write to autoconf@gnu.org." >&5
4467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4468 whose name does not start with the host triplet. If you think this
4469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4470 ac_tool_warned=yes ;;
4471 esac
4472 RANLIB=$ac_ct_RANLIB
4474 else
4475 RANLIB="$ac_cv_prog_RANLIB"
4478 if test -n "$ac_tool_prefix"; then
4479 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4480 set dummy ${ac_tool_prefix}ar; ac_word=$2
4481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4483 if test "${ac_cv_prog_AR+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486 if test -n "$AR"; then
4487 ac_cv_prog_AR="$AR" # Let the user override the test.
4488 else
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496 ac_cv_prog_AR="${ac_tool_prefix}ar"
4497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 break 2
4500 done
4501 done
4502 IFS=$as_save_IFS
4506 AR=$ac_cv_prog_AR
4507 if test -n "$AR"; then
4508 { echo "$as_me:$LINENO: result: $AR" >&5
4509 echo "${ECHO_T}$AR" >&6; }
4510 else
4511 { echo "$as_me:$LINENO: result: no" >&5
4512 echo "${ECHO_T}no" >&6; }
4517 if test -z "$ac_cv_prog_AR"; then
4518 ac_ct_AR=$AR
4519 # Extract the first word of "ar", so it can be a program name with args.
4520 set dummy ar; ac_word=$2
4521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4523 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 if test -n "$ac_ct_AR"; then
4527 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_ac_ct_AR="ar"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4540 done
4541 done
4542 IFS=$as_save_IFS
4546 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4547 if test -n "$ac_ct_AR"; then
4548 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4549 echo "${ECHO_T}$ac_ct_AR" >&6; }
4550 else
4551 { echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6; }
4555 if test "x$ac_ct_AR" = x; then
4556 AR=":"
4557 else
4558 case $cross_compiling:$ac_tool_warned in
4559 yes:)
4560 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4561 whose name does not start with the host triplet. If you think this
4562 configuration is useful to you, please write to autoconf@gnu.org." >&5
4563 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4564 whose name does not start with the host triplet. If you think this
4565 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4566 ac_tool_warned=yes ;;
4567 esac
4568 AR=$ac_ct_AR
4570 else
4571 AR="$ac_cv_prog_AR"
4576 # Checks for programs.
4577 ac_ext=c
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582 if test -n "$ac_tool_prefix"; then
4583 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4584 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_prog_CC+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 if test -n "$CC"; then
4591 ac_cv_prog_CC="$CC" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4604 done
4605 done
4606 IFS=$as_save_IFS
4610 CC=$ac_cv_prog_CC
4611 if test -n "$CC"; then
4612 { echo "$as_me:$LINENO: result: $CC" >&5
4613 echo "${ECHO_T}$CC" >&6; }
4614 else
4615 { echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6; }
4621 if test -z "$ac_cv_prog_CC"; then
4622 ac_ct_CC=$CC
4623 # Extract the first word of "gcc", so it can be a program name with args.
4624 set dummy gcc; ac_word=$2
4625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630 if test -n "$ac_ct_CC"; then
4631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_prog_ac_ct_CC="gcc"
4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4644 done
4645 done
4646 IFS=$as_save_IFS
4650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4651 if test -n "$ac_ct_CC"; then
4652 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4653 echo "${ECHO_T}$ac_ct_CC" >&6; }
4654 else
4655 { echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6; }
4659 if test "x$ac_ct_CC" = x; then
4660 CC=""
4661 else
4662 case $cross_compiling:$ac_tool_warned in
4663 yes:)
4664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4665 whose name does not start with the host triplet. If you think this
4666 configuration is useful to you, please write to autoconf@gnu.org." >&5
4667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4668 whose name does not start with the host triplet. If you think this
4669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4670 ac_tool_warned=yes ;;
4671 esac
4672 CC=$ac_ct_CC
4674 else
4675 CC="$ac_cv_prog_CC"
4678 if test -z "$CC"; then
4679 if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4681 set dummy ${ac_tool_prefix}cc; ac_word=$2
4682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4684 if test "${ac_cv_prog_CC+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687 if test -n "$CC"; then
4688 ac_cv_prog_CC="$CC" # Let the user override the test.
4689 else
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 ac_cv_prog_CC="${ac_tool_prefix}cc"
4698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4701 done
4702 done
4703 IFS=$as_save_IFS
4707 CC=$ac_cv_prog_CC
4708 if test -n "$CC"; then
4709 { echo "$as_me:$LINENO: result: $CC" >&5
4710 echo "${ECHO_T}$CC" >&6; }
4711 else
4712 { echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6; }
4719 if test -z "$CC"; then
4720 # Extract the first word of "cc", so it can be a program name with args.
4721 set dummy cc; ac_word=$2
4722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724 if test "${ac_cv_prog_CC+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727 if test -n "$CC"; then
4728 ac_cv_prog_CC="$CC" # Let the user override the test.
4729 else
4730 ac_prog_rejected=no
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4739 ac_prog_rejected=yes
4740 continue
4742 ac_cv_prog_CC="cc"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4746 done
4747 done
4748 IFS=$as_save_IFS
4750 if test $ac_prog_rejected = yes; then
4751 # We found a bogon in the path, so make sure we never use it.
4752 set dummy $ac_cv_prog_CC
4753 shift
4754 if test $# != 0; then
4755 # We chose a different compiler from the bogus one.
4756 # However, it has the same basename, so the bogon will be chosen
4757 # first if we set CC to just the basename; use the full file name.
4758 shift
4759 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4764 CC=$ac_cv_prog_CC
4765 if test -n "$CC"; then
4766 { echo "$as_me:$LINENO: result: $CC" >&5
4767 echo "${ECHO_T}$CC" >&6; }
4768 else
4769 { echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6; }
4775 if test -z "$CC"; then
4776 if test -n "$ac_tool_prefix"; then
4777 for ac_prog in cl.exe
4779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783 if test "${ac_cv_prog_CC+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786 if test -n "$CC"; then
4787 ac_cv_prog_CC="$CC" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4800 done
4801 done
4802 IFS=$as_save_IFS
4806 CC=$ac_cv_prog_CC
4807 if test -n "$CC"; then
4808 { echo "$as_me:$LINENO: result: $CC" >&5
4809 echo "${ECHO_T}$CC" >&6; }
4810 else
4811 { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4816 test -n "$CC" && break
4817 done
4819 if test -z "$CC"; then
4820 ac_ct_CC=$CC
4821 for ac_prog in cl.exe
4823 # Extract the first word of "$ac_prog", so it can be a program name with args.
4824 set dummy $ac_prog; ac_word=$2
4825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830 if test -n "$ac_ct_CC"; then
4831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4832 else
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_prog_ac_ct_CC="$ac_prog"
4841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 break 2
4844 done
4845 done
4846 IFS=$as_save_IFS
4850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4851 if test -n "$ac_ct_CC"; then
4852 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4853 echo "${ECHO_T}$ac_ct_CC" >&6; }
4854 else
4855 { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4860 test -n "$ac_ct_CC" && break
4861 done
4863 if test "x$ac_ct_CC" = x; then
4864 CC=""
4865 else
4866 case $cross_compiling:$ac_tool_warned in
4867 yes:)
4868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4869 whose name does not start with the host triplet. If you think this
4870 configuration is useful to you, please write to autoconf@gnu.org." >&5
4871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4872 whose name does not start with the host triplet. If you think this
4873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4874 ac_tool_warned=yes ;;
4875 esac
4876 CC=$ac_ct_CC
4883 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4884 See \`config.log' for more details." >&5
4885 echo "$as_me: error: no acceptable C compiler found in \$PATH
4886 See \`config.log' for more details." >&2;}
4887 { (exit 1); exit 1; }; }
4889 # Provide some information about the compiler.
4890 echo "$as_me:$LINENO: checking for C compiler version" >&5
4891 ac_compiler=`set X $ac_compile; echo $2`
4892 { (ac_try="$ac_compiler --version >&5"
4893 case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896 esac
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898 (eval "$ac_compiler --version >&5") 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }
4902 { (ac_try="$ac_compiler -v >&5"
4903 case "(($ac_try" in
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4906 esac
4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908 (eval "$ac_compiler -v >&5") 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }
4912 { (ac_try="$ac_compiler -V >&5"
4913 case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916 esac
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918 (eval "$ac_compiler -V >&5") 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }
4923 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4924 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4925 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928 cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h. */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4936 main ()
4938 #ifndef __GNUC__
4939 choke me
4940 #endif
4943 return 0;
4945 _ACEOF
4946 rm -f conftest.$ac_objext
4947 if { (ac_try="$ac_compile"
4948 case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951 esac
4952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_compile") 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } && {
4960 test -z "$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4962 } && test -s conftest.$ac_objext; then
4963 ac_compiler_gnu=yes
4964 else
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4968 ac_compiler_gnu=no
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4975 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4976 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4977 GCC=`test $ac_compiler_gnu = yes && echo yes`
4978 ac_test_CFLAGS=${CFLAGS+set}
4979 ac_save_CFLAGS=$CFLAGS
4980 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4981 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4982 if test "${ac_cv_prog_cc_g+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985 ac_save_c_werror_flag=$ac_c_werror_flag
4986 ac_c_werror_flag=yes
4987 ac_cv_prog_cc_g=no
4988 CFLAGS="-g"
4989 cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h. */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4997 main ()
5001 return 0;
5003 _ACEOF
5004 rm -f conftest.$ac_objext
5005 if { (ac_try="$ac_compile"
5006 case "(($ac_try" in
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5009 esac
5010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011 (eval "$ac_compile") 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } && {
5018 test -z "$ac_c_werror_flag" ||
5019 test ! -s conftest.err
5020 } && test -s conftest.$ac_objext; then
5021 ac_cv_prog_cc_g=yes
5022 else
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5026 CFLAGS=""
5027 cat >conftest.$ac_ext <<_ACEOF
5028 /* confdefs.h. */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5035 main ()
5039 return 0;
5041 _ACEOF
5042 rm -f conftest.$ac_objext
5043 if { (ac_try="$ac_compile"
5044 case "(($ac_try" in
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5047 esac
5048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_compile") 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && {
5056 test -z "$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5058 } && test -s conftest.$ac_objext; then
5060 else
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 ac_c_werror_flag=$ac_save_c_werror_flag
5065 CFLAGS="-g"
5066 cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5074 main ()
5078 return 0;
5080 _ACEOF
5081 rm -f conftest.$ac_objext
5082 if { (ac_try="$ac_compile"
5083 case "(($ac_try" in
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5086 esac
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088 (eval "$ac_compile") 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } && {
5095 test -z "$ac_c_werror_flag" ||
5096 test ! -s conftest.err
5097 } && test -s conftest.$ac_objext; then
5098 ac_cv_prog_cc_g=yes
5099 else
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5113 ac_c_werror_flag=$ac_save_c_werror_flag
5115 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5116 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5117 if test "$ac_test_CFLAGS" = set; then
5118 CFLAGS=$ac_save_CFLAGS
5119 elif test $ac_cv_prog_cc_g = yes; then
5120 if test "$GCC" = yes; then
5121 CFLAGS="-g -O2"
5122 else
5123 CFLAGS="-g"
5125 else
5126 if test "$GCC" = yes; then
5127 CFLAGS="-O2"
5128 else
5129 CFLAGS=
5132 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5133 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5134 if test "${ac_cv_prog_cc_c89+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137 ac_cv_prog_cc_c89=no
5138 ac_save_CC=$CC
5139 cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h. */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 #include <stdarg.h>
5146 #include <stdio.h>
5147 #include <sys/types.h>
5148 #include <sys/stat.h>
5149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5150 struct buf { int x; };
5151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5152 static char *e (p, i)
5153 char **p;
5154 int i;
5156 return p[i];
5158 static char *f (char * (*g) (char **, int), char **p, ...)
5160 char *s;
5161 va_list v;
5162 va_start (v,p);
5163 s = g (p, va_arg (v,int));
5164 va_end (v);
5165 return s;
5168 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5169 function prototypes and stuff, but not '\xHH' hex character constants.
5170 These don't provoke an error unfortunately, instead are silently treated
5171 as 'x'. The following induces an error, until -std is added to get
5172 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5173 array size at least. It's necessary to write '\x00'==0 to get something
5174 that's true only with -std. */
5175 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5177 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5178 inside strings and character constants. */
5179 #define FOO(x) 'x'
5180 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5182 int test (int i, double x);
5183 struct s1 {int (*f) (int a);};
5184 struct s2 {int (*f) (double a);};
5185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5186 int argc;
5187 char **argv;
5189 main ()
5191 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5193 return 0;
5195 _ACEOF
5196 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5197 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5199 CC="$ac_save_CC $ac_arg"
5200 rm -f conftest.$ac_objext
5201 if { (ac_try="$ac_compile"
5202 case "(($ac_try" in
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5205 esac
5206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207 (eval "$ac_compile") 2>conftest.er1
5208 ac_status=$?
5209 grep -v '^ *+' conftest.er1 >conftest.err
5210 rm -f conftest.er1
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } && {
5214 test -z "$ac_c_werror_flag" ||
5215 test ! -s conftest.err
5216 } && test -s conftest.$ac_objext; then
5217 ac_cv_prog_cc_c89=$ac_arg
5218 else
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5225 rm -f core conftest.err conftest.$ac_objext
5226 test "x$ac_cv_prog_cc_c89" != "xno" && break
5227 done
5228 rm -f conftest.$ac_ext
5229 CC=$ac_save_CC
5232 # AC_CACHE_VAL
5233 case "x$ac_cv_prog_cc_c89" in
5235 { echo "$as_me:$LINENO: result: none needed" >&5
5236 echo "${ECHO_T}none needed" >&6; } ;;
5237 xno)
5238 { echo "$as_me:$LINENO: result: unsupported" >&5
5239 echo "${ECHO_T}unsupported" >&6; } ;;
5241 CC="$CC $ac_cv_prog_cc_c89"
5242 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5243 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5244 esac
5247 ac_ext=c
5248 ac_cpp='$CPP $CPPFLAGS'
5249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5253 ac_ext=cpp
5254 ac_cpp='$CXXCPP $CPPFLAGS'
5255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5258 if test -z "$CXX"; then
5259 if test -n "$CCC"; then
5260 CXX=$CCC
5261 else
5262 if test -n "$ac_tool_prefix"; then
5263 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5269 if test "${ac_cv_prog_CXX+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 if test -n "$CXX"; then
5273 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5286 done
5287 done
5288 IFS=$as_save_IFS
5292 CXX=$ac_cv_prog_CXX
5293 if test -n "$CXX"; then
5294 { echo "$as_me:$LINENO: result: $CXX" >&5
5295 echo "${ECHO_T}$CXX" >&6; }
5296 else
5297 { echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6; }
5302 test -n "$CXX" && break
5303 done
5305 if test -z "$CXX"; then
5306 ac_ct_CXX=$CXX
5307 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5309 # Extract the first word of "$ac_prog", so it can be a program name with args.
5310 set dummy $ac_prog; ac_word=$2
5311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5313 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316 if test -n "$ac_ct_CXX"; then
5317 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_ac_ct_CXX="$ac_prog"
5327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5330 done
5331 done
5332 IFS=$as_save_IFS
5336 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5337 if test -n "$ac_ct_CXX"; then
5338 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5339 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5340 else
5341 { echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6; }
5346 test -n "$ac_ct_CXX" && break
5347 done
5349 if test "x$ac_ct_CXX" = x; then
5350 CXX="g++"
5351 else
5352 case $cross_compiling:$ac_tool_warned in
5353 yes:)
5354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5355 whose name does not start with the host triplet. If you think this
5356 configuration is useful to you, please write to autoconf@gnu.org." >&5
5357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5358 whose name does not start with the host triplet. If you think this
5359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5360 ac_tool_warned=yes ;;
5361 esac
5362 CXX=$ac_ct_CXX
5368 # Provide some information about the compiler.
5369 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5370 ac_compiler=`set X $ac_compile; echo $2`
5371 { (ac_try="$ac_compiler --version >&5"
5372 case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5375 esac
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_compiler --version >&5") 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }
5381 { (ac_try="$ac_compiler -v >&5"
5382 case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_compiler -v >&5") 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }
5391 { (ac_try="$ac_compiler -V >&5"
5392 case "(($ac_try" in
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5395 esac
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_compiler -V >&5") 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }
5402 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5403 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5404 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5415 main ()
5417 #ifndef __GNUC__
5418 choke me
5419 #endif
5422 return 0;
5424 _ACEOF
5425 rm -f conftest.$ac_objext
5426 if { (ac_try="$ac_compile"
5427 case "(($ac_try" in
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5430 esac
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432 (eval "$ac_compile") 2>conftest.er1
5433 ac_status=$?
5434 grep -v '^ *+' conftest.er1 >conftest.err
5435 rm -f conftest.er1
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } && {
5439 test -z "$ac_cxx_werror_flag" ||
5440 test ! -s conftest.err
5441 } && test -s conftest.$ac_objext; then
5442 ac_compiler_gnu=yes
5443 else
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 ac_compiler_gnu=no
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5454 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5455 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5456 GXX=`test $ac_compiler_gnu = yes && echo yes`
5457 ac_test_CXXFLAGS=${CXXFLAGS+set}
5458 ac_save_CXXFLAGS=$CXXFLAGS
5459 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5460 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5461 if test "${ac_cv_prog_cxx_g+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5465 ac_cxx_werror_flag=yes
5466 ac_cv_prog_cxx_g=no
5467 CXXFLAGS="-g"
5468 cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h. */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5476 main ()
5480 return 0;
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5485 case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5488 esac
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_compile") 2>conftest.er1
5491 ac_status=$?
5492 grep -v '^ *+' conftest.er1 >conftest.err
5493 rm -f conftest.er1
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_cxx_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest.$ac_objext; then
5500 ac_cv_prog_cxx_g=yes
5501 else
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 CXXFLAGS=""
5506 cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h. */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5514 main ()
5518 return 0;
5520 _ACEOF
5521 rm -f conftest.$ac_objext
5522 if { (ac_try="$ac_compile"
5523 case "(($ac_try" in
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5526 esac
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_compile") 2>conftest.er1
5529 ac_status=$?
5530 grep -v '^ *+' conftest.er1 >conftest.err
5531 rm -f conftest.er1
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && {
5535 test -z "$ac_cxx_werror_flag" ||
5536 test ! -s conftest.err
5537 } && test -s conftest.$ac_objext; then
5539 else
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5544 CXXFLAGS="-g"
5545 cat >conftest.$ac_ext <<_ACEOF
5546 /* confdefs.h. */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5553 main ()
5557 return 0;
5559 _ACEOF
5560 rm -f conftest.$ac_objext
5561 if { (ac_try="$ac_compile"
5562 case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565 esac
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_cxx_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5577 ac_cv_prog_cxx_g=yes
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5594 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5595 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5596 if test "$ac_test_CXXFLAGS" = set; then
5597 CXXFLAGS=$ac_save_CXXFLAGS
5598 elif test $ac_cv_prog_cxx_g = yes; then
5599 if test "$GXX" = yes; then
5600 CXXFLAGS="-g -O2"
5601 else
5602 CXXFLAGS="-g"
5604 else
5605 if test "$GXX" = yes; then
5606 CXXFLAGS="-O2"
5607 else
5608 CXXFLAGS=
5611 ac_ext=c
5612 ac_cpp='$CPP $CPPFLAGS'
5613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5617 ac_ext=c
5618 ac_cpp='$CPP $CPPFLAGS'
5619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5622 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5623 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5624 # On Suns, sometimes $CPP names a directory.
5625 if test -n "$CPP" && test -d "$CPP"; then
5626 CPP=
5628 if test -z "$CPP"; then
5629 if test "${ac_cv_prog_CPP+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632 # Double quotes because CPP needs to be expanded
5633 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5635 ac_preproc_ok=false
5636 for ac_c_preproc_warn_flag in '' yes
5638 # Use a header file that comes with gcc, so configuring glibc
5639 # with a fresh cross-compiler works.
5640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5641 # <limits.h> exists even on freestanding compilers.
5642 # On the NeXT, cc -E runs the code through the compiler's parser,
5643 # not just through cpp. "Syntax error" is here to catch this case.
5644 cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h. */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 #ifdef __STDC__
5651 # include <limits.h>
5652 #else
5653 # include <assert.h>
5654 #endif
5655 Syntax error
5656 _ACEOF
5657 if { (ac_try="$ac_cpp conftest.$ac_ext"
5658 case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } >/dev/null && {
5670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 }; then
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 # Broken: fails on valid input.
5679 continue
5682 rm -f conftest.err conftest.$ac_ext
5684 # OK, works on sane cases. Now check whether nonexistent headers
5685 # can be detected and how.
5686 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 #include <ac_nonexistent.h>
5693 _ACEOF
5694 if { (ac_try="$ac_cpp conftest.$ac_ext"
5695 case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698 esac
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } >/dev/null && {
5707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5708 test ! -s conftest.err
5709 }; then
5710 # Broken: success on invalid input.
5711 continue
5712 else
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5716 # Passes both tests.
5717 ac_preproc_ok=:
5718 break
5721 rm -f conftest.err conftest.$ac_ext
5723 done
5724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5725 rm -f conftest.err conftest.$ac_ext
5726 if $ac_preproc_ok; then
5727 break
5730 done
5731 ac_cv_prog_CPP=$CPP
5734 CPP=$ac_cv_prog_CPP
5735 else
5736 ac_cv_prog_CPP=$CPP
5738 { echo "$as_me:$LINENO: result: $CPP" >&5
5739 echo "${ECHO_T}$CPP" >&6; }
5740 ac_preproc_ok=false
5741 for ac_c_preproc_warn_flag in '' yes
5743 # Use a header file that comes with gcc, so configuring glibc
5744 # with a fresh cross-compiler works.
5745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746 # <limits.h> exists even on freestanding compilers.
5747 # On the NeXT, cc -E runs the code through the compiler's parser,
5748 # not just through cpp. "Syntax error" is here to catch this case.
5749 cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h. */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 #ifdef __STDC__
5756 # include <limits.h>
5757 #else
5758 # include <assert.h>
5759 #endif
5760 Syntax error
5761 _ACEOF
5762 if { (ac_try="$ac_cpp conftest.$ac_ext"
5763 case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } >/dev/null && {
5775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5776 test ! -s conftest.err
5777 }; then
5779 else
5780 echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5783 # Broken: fails on valid input.
5784 continue
5787 rm -f conftest.err conftest.$ac_ext
5789 # OK, works on sane cases. Now check whether nonexistent headers
5790 # can be detected and how.
5791 cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h. */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797 #include <ac_nonexistent.h>
5798 _ACEOF
5799 if { (ac_try="$ac_cpp conftest.$ac_ext"
5800 case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } >/dev/null && {
5812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 }; then
5815 # Broken: success on invalid input.
5816 continue
5817 else
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5821 # Passes both tests.
5822 ac_preproc_ok=:
5823 break
5826 rm -f conftest.err conftest.$ac_ext
5828 done
5829 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5830 rm -f conftest.err conftest.$ac_ext
5831 if $ac_preproc_ok; then
5833 else
5834 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5835 See \`config.log' for more details." >&5
5836 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5837 See \`config.log' for more details." >&2;}
5838 { (exit 1); exit 1; }; }
5841 ac_ext=c
5842 ac_cpp='$CPP $CPPFLAGS'
5843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5847 ac_ext=cpp
5848 ac_cpp='$CXXCPP $CPPFLAGS'
5849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5852 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5853 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5854 if test -z "$CXXCPP"; then
5855 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858 # Double quotes because CXXCPP needs to be expanded
5859 for CXXCPP in "$CXX -E" "/lib/cpp"
5861 ac_preproc_ok=false
5862 for ac_cxx_preproc_warn_flag in '' yes
5864 # Use a header file that comes with gcc, so configuring glibc
5865 # with a fresh cross-compiler works.
5866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5867 # <limits.h> exists even on freestanding compilers.
5868 # On the NeXT, cc -E runs the code through the compiler's parser,
5869 # not just through cpp. "Syntax error" is here to catch this case.
5870 cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h. */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 #ifdef __STDC__
5877 # include <limits.h>
5878 #else
5879 # include <assert.h>
5880 #endif
5881 Syntax error
5882 _ACEOF
5883 if { (ac_try="$ac_cpp conftest.$ac_ext"
5884 case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887 esac
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } >/dev/null && {
5896 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5897 test ! -s conftest.err
5898 }; then
5900 else
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5904 # Broken: fails on valid input.
5905 continue
5908 rm -f conftest.err conftest.$ac_ext
5910 # OK, works on sane cases. Now check whether nonexistent headers
5911 # can be detected and how.
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 #include <ac_nonexistent.h>
5919 _ACEOF
5920 if { (ac_try="$ac_cpp conftest.$ac_ext"
5921 case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } >/dev/null && {
5933 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5934 test ! -s conftest.err
5935 }; then
5936 # Broken: success on invalid input.
5937 continue
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5942 # Passes both tests.
5943 ac_preproc_ok=:
5944 break
5947 rm -f conftest.err conftest.$ac_ext
5949 done
5950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5951 rm -f conftest.err conftest.$ac_ext
5952 if $ac_preproc_ok; then
5953 break
5956 done
5957 ac_cv_prog_CXXCPP=$CXXCPP
5960 CXXCPP=$ac_cv_prog_CXXCPP
5961 else
5962 ac_cv_prog_CXXCPP=$CXXCPP
5964 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5965 echo "${ECHO_T}$CXXCPP" >&6; }
5966 ac_preproc_ok=false
5967 for ac_cxx_preproc_warn_flag in '' yes
5969 # Use a header file that comes with gcc, so configuring glibc
5970 # with a fresh cross-compiler works.
5971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5972 # <limits.h> exists even on freestanding compilers.
5973 # On the NeXT, cc -E runs the code through the compiler's parser,
5974 # not just through cpp. "Syntax error" is here to catch this case.
5975 cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h. */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 #ifdef __STDC__
5982 # include <limits.h>
5983 #else
5984 # include <assert.h>
5985 #endif
5986 Syntax error
5987 _ACEOF
5988 if { (ac_try="$ac_cpp conftest.$ac_ext"
5989 case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } >/dev/null && {
6001 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6002 test ! -s conftest.err
6003 }; then
6005 else
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6009 # Broken: fails on valid input.
6010 continue
6013 rm -f conftest.err conftest.$ac_ext
6015 # OK, works on sane cases. Now check whether nonexistent headers
6016 # can be detected and how.
6017 cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h. */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 #include <ac_nonexistent.h>
6024 _ACEOF
6025 if { (ac_try="$ac_cpp conftest.$ac_ext"
6026 case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6029 esac
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6032 ac_status=$?
6033 grep -v '^ *+' conftest.er1 >conftest.err
6034 rm -f conftest.er1
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } >/dev/null && {
6038 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6039 test ! -s conftest.err
6040 }; then
6041 # Broken: success on invalid input.
6042 continue
6043 else
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6047 # Passes both tests.
6048 ac_preproc_ok=:
6049 break
6052 rm -f conftest.err conftest.$ac_ext
6054 done
6055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6056 rm -f conftest.err conftest.$ac_ext
6057 if $ac_preproc_ok; then
6059 else
6060 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6061 See \`config.log' for more details." >&5
6062 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6063 See \`config.log' for more details." >&2;}
6064 { (exit 1); exit 1; }; }
6067 ac_ext=c
6068 ac_cpp='$CPP $CPPFLAGS'
6069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6073 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6074 # the developers regenerating the configure script don't have to install libtool.
6075 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6076 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6077 if test "${ac_cv_path_SED+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6081 for ac_i in 1 2 3 4 5 6 7; do
6082 ac_script="$ac_script$as_nl$ac_script"
6083 done
6084 echo "$ac_script" | sed 99q >conftest.sed
6085 $as_unset ac_script || ac_script=
6086 # Extract the first word of "sed gsed" to use in msg output
6087 if test -z "$SED"; then
6088 set dummy sed gsed; ac_prog_name=$2
6089 if test "${ac_cv_path_SED+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092 ac_path_SED_found=false
6093 # Loop through the user's path and test for each of PROGNAME-LIST
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH
6097 IFS=$as_save_IFS
6098 test -z "$as_dir" && as_dir=.
6099 for ac_prog in sed gsed; do
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6102 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6103 # Check for GNU ac_path_SED and select it if it is found.
6104 # Check for GNU $ac_path_SED
6105 case `"$ac_path_SED" --version 2>&1` in
6106 *GNU*)
6107 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6109 ac_count=0
6110 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6111 while :
6113 cat "conftest.in" "conftest.in" >"conftest.tmp"
6114 mv "conftest.tmp" "conftest.in"
6115 cp "conftest.in" "conftest.nl"
6116 echo '' >> "conftest.nl"
6117 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6119 ac_count=`expr $ac_count + 1`
6120 if test $ac_count -gt ${ac_path_SED_max-0}; then
6121 # Best one so far, save it but keep looking for a better one
6122 ac_cv_path_SED="$ac_path_SED"
6123 ac_path_SED_max=$ac_count
6125 # 10*(2^10) chars as input seems more than enough
6126 test $ac_count -gt 10 && break
6127 done
6128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6129 esac
6132 $ac_path_SED_found && break 3
6133 done
6134 done
6136 done
6137 IFS=$as_save_IFS
6142 SED="$ac_cv_path_SED"
6143 if test -z "$SED"; then
6144 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6145 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6146 { (exit 1); exit 1; }; }
6149 else
6150 ac_cv_path_SED=$SED
6154 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6155 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6156 SED="$ac_cv_path_SED"
6157 rm -f conftest.sed
6159 { echo "$as_me:$LINENO: checking for egrep" >&5
6160 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6161 if test "${ac_cv_prog_egrep+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6165 then ac_cv_prog_egrep='grep -E'
6166 else ac_cv_prog_egrep='egrep'
6169 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6170 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6171 EGREP=$ac_cv_prog_egrep
6175 # Check whether --with-gnu-ld was given.
6176 if test "${with_gnu_ld+set}" = set; then
6177 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6178 else
6179 with_gnu_ld=no
6182 ac_prog=ld
6183 if test "$GCC" = yes; then
6184 # Check if gcc -print-prog-name=ld gives a path.
6185 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6186 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6187 case $host in
6188 *-*-mingw*)
6189 # gcc leaves a trailing carriage return which upsets mingw
6190 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6192 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6193 esac
6194 case $ac_prog in
6195 # Accept absolute paths.
6196 [\\/]* | ?:[\\/]*)
6197 re_direlt='/[^/][^/]*/\.\./'
6198 # Canonicalize the pathname of ld
6199 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6200 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6201 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6202 done
6203 test -z "$LD" && LD="$ac_prog"
6206 # If it fails, then pretend we aren't using GCC.
6207 ac_prog=ld
6210 # If it is relative, then search for the first ld in PATH.
6211 with_gnu_ld=unknown
6213 esac
6214 elif test "$with_gnu_ld" = yes; then
6215 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6216 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6217 else
6218 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6219 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6221 if test "${lt_cv_path_LD+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224 if test -z "$LD"; then
6225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6226 for ac_dir in $PATH; do
6227 IFS="$lt_save_ifs"
6228 test -z "$ac_dir" && ac_dir=.
6229 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6230 lt_cv_path_LD="$ac_dir/$ac_prog"
6231 # Check to see if the program is GNU ld. I'd rather use --version,
6232 # but apparently some variants of GNU ld only accept -v.
6233 # Break only if it was the GNU/non-GNU ld that we prefer.
6234 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6235 *GNU* | *'with BFD'*)
6236 test "$with_gnu_ld" != no && break
6239 test "$with_gnu_ld" != yes && break
6241 esac
6243 done
6244 IFS="$lt_save_ifs"
6245 else
6246 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6250 LD="$lt_cv_path_LD"
6251 if test -n "$LD"; then
6252 { echo "$as_me:$LINENO: result: $LD" >&5
6253 echo "${ECHO_T}$LD" >&6; }
6254 else
6255 { echo "$as_me:$LINENO: result: no" >&5
6256 echo "${ECHO_T}no" >&6; }
6258 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6259 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6260 { (exit 1); exit 1; }; }
6261 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6262 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6263 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6267 case `$LD -v 2>&1 </dev/null` in
6268 *GNU* | *'with BFD'*)
6269 lt_cv_prog_gnu_ld=yes
6272 lt_cv_prog_gnu_ld=no
6274 esac
6276 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6277 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6278 with_gnu_ld=$lt_cv_prog_gnu_ld
6281 for ac_prog in gawk mawk nawk awk
6283 # Extract the first word of "$ac_prog", so it can be a program name with args.
6284 set dummy $ac_prog; ac_word=$2
6285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287 if test "${ac_cv_prog_AWK+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290 if test -n "$AWK"; then
6291 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_prog_AWK="$ac_prog"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6304 done
6305 done
6306 IFS=$as_save_IFS
6310 AWK=$ac_cv_prog_AWK
6311 if test -n "$AWK"; then
6312 { echo "$as_me:$LINENO: result: $AWK" >&5
6313 echo "${ECHO_T}$AWK" >&6; }
6314 else
6315 { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6320 test -n "$AWK" && break
6321 done
6323 # Find a good install program. We prefer a C program (faster),
6324 # so one script is as good as another. But avoid the broken or
6325 # incompatible versions:
6326 # SysV /etc/install, /usr/sbin/install
6327 # SunOS /usr/etc/install
6328 # IRIX /sbin/install
6329 # AIX /bin/install
6330 # AmigaOS /C/install, which installs bootblocks on floppy discs
6331 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6332 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6333 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6334 # OS/2's system install, which has a completely different semantic
6335 # ./install, which can be erroneously created by make from ./install.sh.
6336 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6337 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6338 if test -z "$INSTALL"; then
6339 if test "${ac_cv_path_install+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 # Account for people who put trailing slashes in PATH elements.
6348 case $as_dir/ in
6349 ./ | .// | /cC/* | \
6350 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6351 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6352 /usr/ucb/* ) ;;
6354 # OSF1 and SCO ODT 3.0 have their own names for install.
6355 # Don't use installbsd from OSF since it installs stuff as root
6356 # by default.
6357 for ac_prog in ginstall scoinst install; do
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6360 if test $ac_prog = install &&
6361 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6362 # AIX install. It has an incompatible calling convention.
6364 elif test $ac_prog = install &&
6365 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6366 # program-specific install script used by HP pwplus--don't use.
6368 else
6369 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6370 break 3
6373 done
6374 done
6376 esac
6377 done
6378 IFS=$as_save_IFS
6382 if test "${ac_cv_path_install+set}" = set; then
6383 INSTALL=$ac_cv_path_install
6384 else
6385 # As a last resort, use the slow shell script. Don't cache a
6386 # value for INSTALL within a source directory, because that will
6387 # break other packages using the cache if that directory is
6388 # removed, or if the value is a relative name.
6389 INSTALL=$ac_install_sh
6392 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6393 echo "${ECHO_T}$INSTALL" >&6; }
6395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6396 # It thinks the first close brace ends the variable substitution.
6397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6403 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6404 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6405 LN_S=$as_ln_s
6406 if test "$LN_S" = "ln -s"; then
6407 { echo "$as_me:$LINENO: result: yes" >&5
6408 echo "${ECHO_T}yes" >&6; }
6409 else
6410 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6411 echo "${ECHO_T}no, using $LN_S" >&6; }
6414 if test -n "$ac_tool_prefix"; then
6415 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6416 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6419 if test "${ac_cv_prog_RANLIB+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422 if test -n "$RANLIB"; then
6423 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 break 2
6436 done
6437 done
6438 IFS=$as_save_IFS
6442 RANLIB=$ac_cv_prog_RANLIB
6443 if test -n "$RANLIB"; then
6444 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6445 echo "${ECHO_T}$RANLIB" >&6; }
6446 else
6447 { echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6; }
6453 if test -z "$ac_cv_prog_RANLIB"; then
6454 ac_ct_RANLIB=$RANLIB
6455 # Extract the first word of "ranlib", so it can be a program name with args.
6456 set dummy ranlib; ac_word=$2
6457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6459 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462 if test -n "$ac_ct_RANLIB"; then
6463 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_prog_ac_ct_RANLIB="ranlib"
6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6476 done
6477 done
6478 IFS=$as_save_IFS
6482 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6483 if test -n "$ac_ct_RANLIB"; then
6484 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6485 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6486 else
6487 { echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6; }
6491 if test "x$ac_ct_RANLIB" = x; then
6492 RANLIB=":"
6493 else
6494 case $cross_compiling:$ac_tool_warned in
6495 yes:)
6496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6497 whose name does not start with the host triplet. If you think this
6498 configuration is useful to you, please write to autoconf@gnu.org." >&5
6499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6500 whose name does not start with the host triplet. If you think this
6501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6502 ac_tool_warned=yes ;;
6503 esac
6504 RANLIB=$ac_ct_RANLIB
6506 else
6507 RANLIB="$ac_cv_prog_RANLIB"
6510 { echo "$as_me:$LINENO: checking for GNU make" >&5
6511 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6512 if test "${GNU_MAKE+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515 GNU_MAKE='Not Found' ;
6516 GNU_MAKE_VERSION_MAJOR=0 ;
6517 GNU_MAKE_VERSION_MINOR=0 ;
6518 for a in make gmake gnumake ; do
6519 if test -z "$a" ; then continue ; fi ;
6520 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6521 GNU_MAKE=$a ;
6522 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6523 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6524 break;
6526 done ;
6529 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6530 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6531 if test "x$GNU_MAKE" = "xNot Found" ; then
6532 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6533 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6534 { (exit 1); exit 1; }; }
6535 exit 1
6540 GNU_LD=0
6541 if test "x$with_gnu_ld" = "xyes" ; then
6542 GNU_LD=1
6546 # Extract the first word of "grep", so it can be a program name with args.
6547 set dummy grep; 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_GREP+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553 case $GREP in
6554 [\\/]* | ?:[\\/]*)
6555 ac_cv_path_GREP="$GREP" # 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_GREP="$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_GREP" && ac_cv_path_GREP=":"
6575 esac
6577 GREP=$ac_cv_path_GREP
6578 if test -n "$GREP"; then
6579 { echo "$as_me:$LINENO: result: $GREP" >&5
6580 echo "${ECHO_T}$GREP" >&6; }
6581 else
6582 { echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6; }
6587 # Extract the first word of "ar", so it can be a program name with args.
6588 set dummy ar; 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_AR+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594 case $AR in
6595 [\\/]* | ?:[\\/]*)
6596 ac_cv_path_AR="$AR" # 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_AR="$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_AR" && ac_cv_path_AR=":"
6616 esac
6618 AR=$ac_cv_path_AR
6619 if test -n "$AR"; then
6620 { echo "$as_me:$LINENO: result: $AR" >&5
6621 echo "${ECHO_T}$AR" >&6; }
6622 else
6623 { echo "$as_me:$LINENO: result: no" >&5
6624 echo "${ECHO_T}no" >&6; }
6628 # Extract the first word of "find", so it can be a program name with args.
6629 set dummy find; 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_FIND+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635 case $FIND in
6636 [\\/]* | ?:[\\/]*)
6637 ac_cv_path_FIND="$FIND" # 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_FIND="$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_FIND" && ac_cv_path_FIND=":"
6657 esac
6659 FIND=$ac_cv_path_FIND
6660 if test -n "$FIND"; then
6661 { echo "$as_me:$LINENO: result: $FIND" >&5
6662 echo "${ECHO_T}$FIND" >&6; }
6663 else
6664 { echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6; }
6669 # Extract the first word of "compress", so it can be a program name with args.
6670 set dummy compress; 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_COMPRESS+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676 case $COMPRESS in
6677 [\\/]* | ?:[\\/]*)
6678 ac_cv_path_COMPRESS="$COMPRESS" # 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_COMPRESS="$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_COMPRESS" && ac_cv_path_COMPRESS=":"
6698 esac
6700 COMPRESS=$ac_cv_path_COMPRESS
6701 if test -n "$COMPRESS"; then
6702 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6703 echo "${ECHO_T}$COMPRESS" >&6; }
6704 else
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6710 # Extract the first word of "basename", so it can be a program name with args.
6711 set dummy basename; 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_BASENAME+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 case $BASENAME in
6718 [\\/]* | ?:[\\/]*)
6719 ac_cv_path_BASENAME="$BASENAME" # 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_BASENAME="$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_BASENAME" && ac_cv_path_BASENAME=":"
6739 esac
6741 BASENAME=$ac_cv_path_BASENAME
6742 if test -n "$BASENAME"; then
6743 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6744 echo "${ECHO_T}$BASENAME" >&6; }
6745 else
6746 { echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6; }
6751 # Extract the first word of "id", so it can be a program name with args.
6752 set dummy id; 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_ID+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 case $ID in
6759 [\\/]* | ?:[\\/]*)
6760 ac_cv_path_ID="$ID" # 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_ID="$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_ID" && ac_cv_path_ID=":"
6780 esac
6782 ID=$ac_cv_path_ID
6783 if test -n "$ID"; then
6784 { echo "$as_me:$LINENO: result: $ID" >&5
6785 echo "${ECHO_T}$ID" >&6; }
6786 else
6787 { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6792 # Extract the first word of "dirname", so it can be a program name with args.
6793 set dummy dirname; 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_DIRNAME+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 case $DIRNAME in
6800 [\\/]* | ?:[\\/]*)
6801 ac_cv_path_DIRNAME="$DIRNAME" # 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_DIRNAME="$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_DIRNAME" && ac_cv_path_DIRNAME=":"
6821 esac
6823 DIRNAME=$ac_cv_path_DIRNAME
6824 if test -n "$DIRNAME"; then
6825 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6826 echo "${ECHO_T}$DIRNAME" >&6; }
6827 else
6828 { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6833 # Extract the first word of "sh", so it can be a program name with args.
6834 set dummy sh; 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_SHELL+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840 case $SHELL in
6841 [\\/]* | ?:[\\/]*)
6842 ac_cv_path_SHELL="$SHELL" # 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_SHELL="$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_SHELL" && ac_cv_path_SHELL=":"
6862 esac
6864 SHELL=$ac_cv_path_SHELL
6865 if test -n "$SHELL"; then
6866 { echo "$as_me:$LINENO: result: $SHELL" >&5
6867 echo "${ECHO_T}$SHELL" >&6; }
6868 else
6869 { echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6; }
6874 # Extract the first word of "ln", so it can be a program name with args.
6875 set dummy ln; 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_LN+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 case $LN in
6882 [\\/]* | ?:[\\/]*)
6883 ac_cv_path_LN="$LN" # 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_LN="$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_LN" && ac_cv_path_LN=":"
6903 esac
6905 LN=$ac_cv_path_LN
6906 if test -n "$LN"; then
6907 { echo "$as_me:$LINENO: result: $LN" >&5
6908 echo "${ECHO_T}$LN" >&6; }
6909 else
6910 { echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6; }
6915 # Extract the first word of "dot", so it can be a program name with args.
6916 set dummy dot; 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_DOT+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922 case $DOT in
6923 [\\/]* | ?:[\\/]*)
6924 ac_cv_path_DOT="$DOT" # 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_DOT="$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_DOT" && ac_cv_path_DOT=":"
6944 esac
6946 DOT=$ac_cv_path_DOT
6947 if test -n "$DOT"; then
6948 { echo "$as_me:$LINENO: result: $DOT" >&5
6949 echo "${ECHO_T}$DOT" >&6; }
6950 else
6951 { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6956 # Extract the first word of "strip", so it can be a program name with args.
6957 set dummy strip; 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_STRIP+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 case $STRIP in
6964 [\\/]* | ?:[\\/]*)
6965 ac_cv_path_STRIP="$STRIP" # 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_STRIP="$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_STRIP" && ac_cv_path_STRIP=":"
6985 esac
6987 STRIP=$ac_cv_path_STRIP
6988 if test -n "$STRIP"; then
6989 { echo "$as_me:$LINENO: result: $STRIP" >&5
6990 echo "${ECHO_T}$STRIP" >&6; }
6991 else
6992 { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6997 # Extract the first word of "wget", so it can be a program name with args.
6998 set dummy wget; ac_word=$2
6999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7001 if test "${ac_cv_path_WGET+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004 case $WGET in
7005 [\\/]* | ?:[\\/]*)
7006 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7012 IFS=$as_save_IFS
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7016 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 break 2
7020 done
7021 done
7022 IFS=$as_save_IFS
7024 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7026 esac
7028 WGET=$ac_cv_path_WGET
7029 if test -n "$WGET"; then
7030 { echo "$as_me:$LINENO: result: $WGET" >&5
7031 echo "${ECHO_T}$WGET" >&6; }
7032 else
7033 { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7038 if test "${WGET}" != ":" ; then
7039 DOWNLOAD=${WGET}
7040 else
7041 # Extract the first word of "fetch", so it can be a program name with args.
7042 set dummy fetch; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_path_FETCH+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048 case $FETCH in
7049 [\\/]* | ?:[\\/]*)
7050 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7064 done
7065 done
7066 IFS=$as_save_IFS
7068 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7070 esac
7072 FETCH=$ac_cv_path_FETCH
7073 if test -n "$FETCH"; then
7074 { echo "$as_me:$LINENO: result: $FETCH" >&5
7075 echo "${ECHO_T}$FETCH" >&6; }
7076 else
7077 { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7082 DOWNLOAD=${FETCH}
7089 ac_ext=c
7090 ac_cpp='$CPP $CPPFLAGS'
7091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7095 acx_pthread_ok=no
7097 # We used to check for pthread.h first, but this fails if pthread.h
7098 # requires special compiler flags (e.g. on True64 or Sequent).
7099 # It gets checked for in the link test anyway.
7101 # First of all, check if the user has set any of the PTHREAD_LIBS,
7102 # etcetera environment variables, and if threads linking works using
7103 # them:
7104 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7105 save_CFLAGS="$CFLAGS"
7106 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7107 save_LIBS="$LIBS"
7108 LIBS="$PTHREAD_LIBS $LIBS"
7109 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7110 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7111 cat >conftest.$ac_ext <<_ACEOF
7112 /* confdefs.h. */
7113 _ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7118 /* Override any GCC internal prototype to avoid an error.
7119 Use char because int might match the return type of a GCC
7120 builtin and then its argument prototype would still apply. */
7121 #ifdef __cplusplus
7122 extern "C"
7123 #endif
7124 char pthread_join ();
7126 main ()
7128 return pthread_join ();
7130 return 0;
7132 _ACEOF
7133 rm -f conftest.$ac_objext conftest$ac_exeext
7134 if { (ac_try="$ac_link"
7135 case "(($ac_try" in
7136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7137 *) ac_try_echo=$ac_try;;
7138 esac
7139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7140 (eval "$ac_link") 2>conftest.er1
7141 ac_status=$?
7142 grep -v '^ *+' conftest.er1 >conftest.err
7143 rm -f conftest.er1
7144 cat conftest.err >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && {
7147 test -z "$ac_c_werror_flag" ||
7148 test ! -s conftest.err
7149 } && test -s conftest$ac_exeext &&
7150 $as_test_x conftest$ac_exeext; then
7151 acx_pthread_ok=yes
7152 else
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7160 conftest$ac_exeext conftest.$ac_ext
7161 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7162 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7163 if test x"$acx_pthread_ok" = xno; then
7164 PTHREAD_LIBS=""
7165 PTHREAD_CFLAGS=""
7167 LIBS="$save_LIBS"
7168 CFLAGS="$save_CFLAGS"
7171 # We must check for the threads library under a number of different
7172 # names; the ordering is very important because some systems
7173 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7174 # libraries is broken (non-POSIX).
7176 # Create a list of thread flags to try. Items starting with a "-" are
7177 # C compiler flags, and other items are library names, except for "none"
7178 # which indicates that we try without any flags at all, and "pthread-config"
7179 # which is a program returning the flags for the Pth emulation library.
7181 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7183 # The ordering *is* (sometimes) important. Some notes on the
7184 # individual items follow:
7186 # pthreads: AIX (must check this before -lpthread)
7187 # none: in case threads are in libc; should be tried before -Kthread and
7188 # other compiler flags to prevent continual compiler warnings
7189 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7190 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7191 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7192 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7193 # -pthreads: Solaris/gcc
7194 # -mthreads: Mingw32/gcc, Lynx/gcc
7195 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7196 # doesn't hurt to check since this sometimes defines pthreads too;
7197 # also defines -D_REENTRANT)
7198 # ... -mt is also the pthreads flag for HP/aCC
7199 # pthread: Linux, etcetera
7200 # --thread-safe: KAI C++
7201 # pthread-config: use pthread-config program (for GNU Pth library)
7203 case "${host_cpu}-${host_os}" in
7204 *solaris*)
7206 # On Solaris (at least, for some versions), libc contains stubbed
7207 # (non-functional) versions of the pthreads routines, so link-based
7208 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7209 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7210 # a function called by this macro, so we could check for that, but
7211 # who knows whether they'll stub that too in a future libc.) So,
7212 # we'll just look for -pthreads and -lpthread first:
7214 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7216 esac
7218 if test x"$acx_pthread_ok" = xno; then
7219 for flag in $acx_pthread_flags; do
7221 case $flag in
7222 none)
7223 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7224 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7228 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7229 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7230 PTHREAD_CFLAGS="$flag"
7233 pthread-config)
7234 # Extract the first word of "pthread-config", so it can be a program name with args.
7235 set dummy pthread-config; ac_word=$2
7236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7238 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 if test -n "$acx_pthread_config"; then
7242 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_prog_acx_pthread_config="yes"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7255 done
7256 done
7257 IFS=$as_save_IFS
7259 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7262 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7263 if test -n "$acx_pthread_config"; then
7264 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7265 echo "${ECHO_T}$acx_pthread_config" >&6; }
7266 else
7267 { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7272 if test x"$acx_pthread_config" = xno; then continue; fi
7273 PTHREAD_CFLAGS="`pthread-config --cflags`"
7274 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7278 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7279 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7280 PTHREAD_LIBS="-l$flag"
7282 esac
7284 save_LIBS="$LIBS"
7285 save_CFLAGS="$CFLAGS"
7286 LIBS="$PTHREAD_LIBS $LIBS"
7287 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7289 # Check for various functions. We must include pthread.h,
7290 # since some functions may be macros. (On the Sequent, we
7291 # need a special flag -Kthread to make this header compile.)
7292 # We check for pthread_join because it is in -lpthread on IRIX
7293 # while pthread_create is in libc. We check for pthread_attr_init
7294 # due to DEC craziness with -lpthreads. We check for
7295 # pthread_cleanup_push because it is one of the few pthread
7296 # functions on Solaris that doesn't have a non-functional libc stub.
7297 # We try pthread_create on general principles.
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h. */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 #include <pthread.h>
7306 main ()
7308 pthread_t th; pthread_join(th, 0);
7309 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7310 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7312 return 0;
7314 _ACEOF
7315 rm -f conftest.$ac_objext conftest$ac_exeext
7316 if { (ac_try="$ac_link"
7317 case "(($ac_try" in
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7320 esac
7321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322 (eval "$ac_link") 2>conftest.er1
7323 ac_status=$?
7324 grep -v '^ *+' conftest.er1 >conftest.err
7325 rm -f conftest.er1
7326 cat conftest.err >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } && {
7329 test -z "$ac_c_werror_flag" ||
7330 test ! -s conftest.err
7331 } && test -s conftest$ac_exeext &&
7332 $as_test_x conftest$ac_exeext; then
7333 acx_pthread_ok=yes
7334 else
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7342 conftest$ac_exeext conftest.$ac_ext
7344 LIBS="$save_LIBS"
7345 CFLAGS="$save_CFLAGS"
7347 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7348 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7349 if test "x$acx_pthread_ok" = xyes; then
7350 break;
7353 PTHREAD_LIBS=""
7354 PTHREAD_CFLAGS=""
7355 done
7358 # Various other checks:
7359 if test "x$acx_pthread_ok" = xyes; then
7360 save_LIBS="$LIBS"
7361 LIBS="$PTHREAD_LIBS $LIBS"
7362 save_CFLAGS="$CFLAGS"
7363 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7365 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7366 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7367 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7368 attr_name=unknown
7369 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7370 cat >conftest.$ac_ext <<_ACEOF
7371 /* confdefs.h. */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 #include <pthread.h>
7378 main ()
7380 int attr=$attr; return attr;
7382 return 0;
7384 _ACEOF
7385 rm -f conftest.$ac_objext conftest$ac_exeext
7386 if { (ac_try="$ac_link"
7387 case "(($ac_try" in
7388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389 *) ac_try_echo=$ac_try;;
7390 esac
7391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7392 (eval "$ac_link") 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && {
7399 test -z "$ac_c_werror_flag" ||
7400 test ! -s conftest.err
7401 } && test -s conftest$ac_exeext &&
7402 $as_test_x conftest$ac_exeext; then
7403 attr_name=$attr; break
7404 else
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7412 conftest$ac_exeext conftest.$ac_ext
7413 done
7414 { echo "$as_me:$LINENO: result: $attr_name" >&5
7415 echo "${ECHO_T}$attr_name" >&6; }
7416 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7418 cat >>confdefs.h <<_ACEOF
7419 #define PTHREAD_CREATE_JOINABLE $attr_name
7420 _ACEOF
7424 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7425 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7426 flag=no
7427 case "${host_cpu}-${host_os}" in
7428 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7429 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7430 esac
7431 { echo "$as_me:$LINENO: result: ${flag}" >&5
7432 echo "${ECHO_T}${flag}" >&6; }
7433 if test "x$flag" != xno; then
7434 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7437 LIBS="$save_LIBS"
7438 CFLAGS="$save_CFLAGS"
7440 # More AIX lossage: must compile with xlc_r or cc_r
7441 if test x"$GCC" != xyes; then
7442 for ac_prog in xlc_r cc_r
7444 # Extract the first word of "$ac_prog", so it can be a program name with args.
7445 set dummy $ac_prog; ac_word=$2
7446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7448 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451 if test -n "$PTHREAD_CC"; then
7452 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461 ac_cv_prog_PTHREAD_CC="$ac_prog"
7462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7465 done
7466 done
7467 IFS=$as_save_IFS
7471 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7472 if test -n "$PTHREAD_CC"; then
7473 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7474 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7475 else
7476 { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7481 test -n "$PTHREAD_CC" && break
7482 done
7483 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7485 else
7486 PTHREAD_CC=$CC
7488 else
7489 PTHREAD_CC="$CC"
7496 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7497 if test x"$acx_pthread_ok" = xyes; then
7499 cat >>confdefs.h <<\_ACEOF
7500 #define HAVE_PTHREAD 1
7501 _ACEOF
7504 else
7505 acx_pthread_ok=no
7508 ac_ext=c
7509 ac_cpp='$CPP $CPPFLAGS'
7510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7516 ac_ext=c
7517 ac_cpp='$CPP $CPPFLAGS'
7518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7523 # Check whether --enable-dev-mode was given.
7524 if test "${enable_dev_mode+set}" = set; then
7525 enableval=$enable_dev_mode; case "${enableval}" in
7526 y|ye|yes) AST_DEVMODE=yes ;;
7527 n|no) AST_DEVMODE=no ;;
7528 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7529 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7530 { (exit 1); exit 1; }; } ;;
7531 esac
7536 # package option names should be in alphabetical order
7537 # by the --with option name, to make things easier for the users :-)
7540 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7541 ALSA_OPTION="asound"
7543 # Check whether --with-asound was given.
7544 if test "${with_asound+set}" = set; then
7545 withval=$with_asound;
7546 case ${withval} in
7547 n|no)
7548 USE_ALSA=no
7550 y|ye|yes)
7551 ALSA_MANDATORY="yes"
7554 ALSA_DIR="${withval}"
7555 ALSA_MANDATORY="yes"
7557 esac
7561 PBX_ALSA=0
7568 CURL_DESCRIP="cURL"
7569 CURL_OPTION="curl"
7571 # Check whether --with-curl was given.
7572 if test "${with_curl+set}" = set; then
7573 withval=$with_curl;
7574 case ${withval} in
7575 n|no)
7576 USE_CURL=no
7578 y|ye|yes)
7579 CURL_MANDATORY="yes"
7582 CURL_DIR="${withval}"
7583 CURL_MANDATORY="yes"
7585 esac
7589 PBX_CURL=0
7596 CURSES_DESCRIP="curses"
7597 CURSES_OPTION="curses"
7599 # Check whether --with-curses was given.
7600 if test "${with_curses+set}" = set; then
7601 withval=$with_curses;
7602 case ${withval} in
7603 n|no)
7604 USE_CURSES=no
7606 y|ye|yes)
7607 CURSES_MANDATORY="yes"
7610 CURSES_DIR="${withval}"
7611 CURSES_MANDATORY="yes"
7613 esac
7617 PBX_CURSES=0
7624 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7625 GNUTLS_OPTION="gnutls"
7627 # Check whether --with-gnutls was given.
7628 if test "${with_gnutls+set}" = set; then
7629 withval=$with_gnutls;
7630 case ${withval} in
7631 n|no)
7632 USE_GNUTLS=no
7634 y|ye|yes)
7635 GNUTLS_MANDATORY="yes"
7638 GNUTLS_DIR="${withval}"
7639 GNUTLS_MANDATORY="yes"
7641 esac
7645 PBX_GNUTLS=0
7652 GSM_DESCRIP="GSM"
7653 GSM_OPTION="gsm"
7655 # Check whether --with-gsm was given.
7656 if test "${with_gsm+set}" = set; then
7657 withval=$with_gsm;
7658 case ${withval} in
7659 n|no)
7660 USE_GSM=no
7662 y|ye|yes)
7663 GSM_MANDATORY="yes"
7666 GSM_DIR="${withval}"
7667 GSM_MANDATORY="yes"
7669 esac
7673 PBX_GSM=0
7680 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7681 IKSEMEL_OPTION="iksemel"
7683 # Check whether --with-iksemel was given.
7684 if test "${with_iksemel+set}" = set; then
7685 withval=$with_iksemel;
7686 case ${withval} in
7687 n|no)
7688 USE_IKSEMEL=no
7690 y|ye|yes)
7691 IKSEMEL_MANDATORY="yes"
7694 IKSEMEL_DIR="${withval}"
7695 IKSEMEL_MANDATORY="yes"
7697 esac
7701 PBX_IKSEMEL=0
7708 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7709 IMAP_TK_OPTION="imap"
7711 # Check whether --with-imap was given.
7712 if test "${with_imap+set}" = set; then
7713 withval=$with_imap;
7714 case ${withval} in
7715 n|no)
7716 USE_IMAP_TK=no
7718 y|ye|yes)
7719 IMAP_TK_MANDATORY="yes"
7722 IMAP_TK_DIR="${withval}"
7723 IMAP_TK_MANDATORY="yes"
7725 esac
7729 PBX_IMAP_TK=0
7736 ISDNNET_DESCRIP="ISDN4Linux Library"
7737 ISDNNET_OPTION="isdnnet"
7739 # Check whether --with-isdnnet was given.
7740 if test "${with_isdnnet+set}" = set; then
7741 withval=$with_isdnnet;
7742 case ${withval} in
7743 n|no)
7744 USE_ISDNNET=no
7746 y|ye|yes)
7747 ISDNNET_MANDATORY="yes"
7750 ISDNNET_DIR="${withval}"
7751 ISDNNET_MANDATORY="yes"
7753 esac
7757 PBX_ISDNNET=0
7764 KDE_DESCRIP="KDE"
7765 KDE_OPTION="kde"
7767 # Check whether --with-kde was given.
7768 if test "${with_kde+set}" = set; then
7769 withval=$with_kde;
7770 case ${withval} in
7771 n|no)
7772 USE_KDE=no
7774 y|ye|yes)
7775 KDE_MANDATORY="yes"
7778 KDE_DIR="${withval}"
7779 KDE_MANDATORY="yes"
7781 esac
7785 PBX_KDE=0
7792 MISDN_DESCRIP="mISDN User Library"
7793 MISDN_OPTION="misdn"
7795 # Check whether --with-misdn was given.
7796 if test "${with_misdn+set}" = set; then
7797 withval=$with_misdn;
7798 case ${withval} in
7799 n|no)
7800 USE_MISDN=no
7802 y|ye|yes)
7803 MISDN_MANDATORY="yes"
7806 MISDN_DIR="${withval}"
7807 MISDN_MANDATORY="yes"
7809 esac
7813 PBX_MISDN=0
7820 NBS_DESCRIP="Network Broadcast Sound"
7821 NBS_OPTION="nbs"
7823 # Check whether --with-nbs was given.
7824 if test "${with_nbs+set}" = set; then
7825 withval=$with_nbs;
7826 case ${withval} in
7827 n|no)
7828 USE_NBS=no
7830 y|ye|yes)
7831 NBS_MANDATORY="yes"
7834 NBS_DIR="${withval}"
7835 NBS_MANDATORY="yes"
7837 esac
7841 PBX_NBS=0
7848 NCURSES_DESCRIP="ncurses"
7849 NCURSES_OPTION="ncurses"
7851 # Check whether --with-ncurses was given.
7852 if test "${with_ncurses+set}" = set; then
7853 withval=$with_ncurses;
7854 case ${withval} in
7855 n|no)
7856 USE_NCURSES=no
7858 y|ye|yes)
7859 NCURSES_MANDATORY="yes"
7862 NCURSES_DIR="${withval}"
7863 NCURSES_MANDATORY="yes"
7865 esac
7869 PBX_NCURSES=0
7876 NETSNMP_DESCRIP="Net-SNMP"
7877 NETSNMP_OPTION="netsnmp"
7879 # Check whether --with-netsnmp was given.
7880 if test "${with_netsnmp+set}" = set; then
7881 withval=$with_netsnmp;
7882 case ${withval} in
7883 n|no)
7884 USE_NETSNMP=no
7886 y|ye|yes)
7887 NETSNMP_MANDATORY="yes"
7890 NETSNMP_DIR="${withval}"
7891 NETSNMP_MANDATORY="yes"
7893 esac
7897 PBX_NETSNMP=0
7904 NEWT_DESCRIP="newt"
7905 NEWT_OPTION="newt"
7907 # Check whether --with-newt was given.
7908 if test "${with_newt+set}" = set; then
7909 withval=$with_newt;
7910 case ${withval} in
7911 n|no)
7912 USE_NEWT=no
7914 y|ye|yes)
7915 NEWT_MANDATORY="yes"
7918 NEWT_DIR="${withval}"
7919 NEWT_MANDATORY="yes"
7921 esac
7925 PBX_NEWT=0
7932 UNIXODBC_DESCRIP="unixODBC"
7933 UNIXODBC_OPTION="odbc"
7935 # Check whether --with-odbc was given.
7936 if test "${with_odbc+set}" = set; then
7937 withval=$with_odbc;
7938 case ${withval} in
7939 n|no)
7940 USE_UNIXODBC=no
7942 y|ye|yes)
7943 UNIXODBC_MANDATORY="yes"
7946 UNIXODBC_DIR="${withval}"
7947 UNIXODBC_MANDATORY="yes"
7949 esac
7953 PBX_UNIXODBC=0
7960 OGG_DESCRIP="OGG"
7961 OGG_OPTION="ogg"
7963 # Check whether --with-ogg was given.
7964 if test "${with_ogg+set}" = set; then
7965 withval=$with_ogg;
7966 case ${withval} in
7967 n|no)
7968 USE_OGG=no
7970 y|ye|yes)
7971 OGG_MANDATORY="yes"
7974 OGG_DIR="${withval}"
7975 OGG_MANDATORY="yes"
7977 esac
7981 PBX_OGG=0
7988 OSPTK_DESCRIP="OSP Toolkit"
7989 OSPTK_OPTION="osptk"
7991 # Check whether --with-osptk was given.
7992 if test "${with_osptk+set}" = set; then
7993 withval=$with_osptk;
7994 case ${withval} in
7995 n|no)
7996 USE_OSPTK=no
7998 y|ye|yes)
7999 OSPTK_MANDATORY="yes"
8002 OSPTK_DIR="${withval}"
8003 OSPTK_MANDATORY="yes"
8005 esac
8009 PBX_OSPTK=0
8016 OSS_DESCRIP="Open Sound System"
8017 OSS_OPTION="oss"
8019 # Check whether --with-oss was given.
8020 if test "${with_oss+set}" = set; then
8021 withval=$with_oss;
8022 case ${withval} in
8023 n|no)
8024 USE_OSS=no
8026 y|ye|yes)
8027 OSS_MANDATORY="yes"
8030 OSS_DIR="${withval}"
8031 OSS_MANDATORY="yes"
8033 esac
8037 PBX_OSS=0
8044 POPT_DESCRIP="popt"
8045 POPT_OPTION="popt"
8047 # Check whether --with-popt was given.
8048 if test "${with_popt+set}" = set; then
8049 withval=$with_popt;
8050 case ${withval} in
8051 n|no)
8052 USE_POPT=no
8054 y|ye|yes)
8055 POPT_MANDATORY="yes"
8058 POPT_DIR="${withval}"
8059 POPT_MANDATORY="yes"
8061 esac
8065 PBX_POPT=0
8072 PGSQL_DESCRIP="PostgreSQL"
8073 PGSQL_OPTION="postgres"
8075 # Check whether --with-postgres was given.
8076 if test "${with_postgres+set}" = set; then
8077 withval=$with_postgres;
8078 case ${withval} in
8079 n|no)
8080 USE_PGSQL=no
8082 y|ye|yes)
8083 PGSQL_MANDATORY="yes"
8086 PGSQL_DIR="${withval}"
8087 PGSQL_MANDATORY="yes"
8089 esac
8093 PBX_PGSQL=0
8100 PRI_DESCRIP="ISDN PRI"
8101 PRI_OPTION="pri"
8103 # Check whether --with-pri was given.
8104 if test "${with_pri+set}" = set; then
8105 withval=$with_pri;
8106 case ${withval} in
8107 n|no)
8108 USE_PRI=no
8110 y|ye|yes)
8111 PRI_MANDATORY="yes"
8114 PRI_DIR="${withval}"
8115 PRI_MANDATORY="yes"
8117 esac
8121 PBX_PRI=0
8128 PWLIB_DESCRIP="PWlib"
8129 PWLIB_OPTION="pwlib"
8131 # Check whether --with-pwlib was given.
8132 if test "${with_pwlib+set}" = set; then
8133 withval=$with_pwlib;
8134 case ${withval} in
8135 n|no)
8136 USE_PWLIB=no
8138 y|ye|yes)
8139 PWLIB_MANDATORY="yes"
8142 PWLIB_DIR="${withval}"
8143 PWLIB_MANDATORY="yes"
8145 esac
8149 PBX_PWLIB=0
8156 OPENH323_DESCRIP="OpenH323"
8157 OPENH323_OPTION="h323"
8159 # Check whether --with-h323 was given.
8160 if test "${with_h323+set}" = set; then
8161 withval=$with_h323;
8162 case ${withval} in
8163 n|no)
8164 USE_OPENH323=no
8166 y|ye|yes)
8167 OPENH323_MANDATORY="yes"
8170 OPENH323_DIR="${withval}"
8171 OPENH323_MANDATORY="yes"
8173 esac
8177 PBX_OPENH323=0
8184 QT_DESCRIP="Qt"
8185 QT_OPTION="qt"
8187 # Check whether --with-qt was given.
8188 if test "${with_qt+set}" = set; then
8189 withval=$with_qt;
8190 case ${withval} in
8191 n|no)
8192 USE_QT=no
8194 y|ye|yes)
8195 QT_MANDATORY="yes"
8198 QT_DIR="${withval}"
8199 QT_MANDATORY="yes"
8201 esac
8205 PBX_QT=0
8212 RADIUS_DESCRIP="Radius Client"
8213 RADIUS_OPTION="radius"
8215 # Check whether --with-radius was given.
8216 if test "${with_radius+set}" = set; then
8217 withval=$with_radius;
8218 case ${withval} in
8219 n|no)
8220 USE_RADIUS=no
8222 y|ye|yes)
8223 RADIUS_MANDATORY="yes"
8226 RADIUS_DIR="${withval}"
8227 RADIUS_MANDATORY="yes"
8229 esac
8233 PBX_RADIUS=0
8240 SPEEX_DESCRIP="Speex"
8241 SPEEX_OPTION="speex"
8243 # Check whether --with-speex was given.
8244 if test "${with_speex+set}" = set; then
8245 withval=$with_speex;
8246 case ${withval} in
8247 n|no)
8248 USE_SPEEX=no
8250 y|ye|yes)
8251 SPEEX_MANDATORY="yes"
8254 SPEEX_DIR="${withval}"
8255 SPEEX_MANDATORY="yes"
8257 esac
8261 PBX_SPEEX=0
8268 SQLITE_DESCRIP="SQLite"
8269 SQLITE_OPTION="sqlite"
8271 # Check whether --with-sqlite was given.
8272 if test "${with_sqlite+set}" = set; then
8273 withval=$with_sqlite;
8274 case ${withval} in
8275 n|no)
8276 USE_SQLITE=no
8278 y|ye|yes)
8279 SQLITE_MANDATORY="yes"
8282 SQLITE_DIR="${withval}"
8283 SQLITE_MANDATORY="yes"
8285 esac
8289 PBX_SQLITE=0
8296 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8297 SUPPSERV_OPTION="suppserv"
8299 # Check whether --with-suppserv was given.
8300 if test "${with_suppserv+set}" = set; then
8301 withval=$with_suppserv;
8302 case ${withval} in
8303 n|no)
8304 USE_SUPPSERV=no
8306 y|ye|yes)
8307 SUPPSERV_MANDATORY="yes"
8310 SUPPSERV_DIR="${withval}"
8311 SUPPSERV_MANDATORY="yes"
8313 esac
8317 PBX_SUPPSERV=0
8324 OPENSSL_DESCRIP="OpenSSL"
8325 OPENSSL_OPTION="ssl"
8327 # Check whether --with-ssl was given.
8328 if test "${with_ssl+set}" = set; then
8329 withval=$with_ssl;
8330 case ${withval} in
8331 n|no)
8332 USE_OPENSSL=no
8334 y|ye|yes)
8335 OPENSSL_MANDATORY="yes"
8338 OPENSSL_DIR="${withval}"
8339 OPENSSL_MANDATORY="yes"
8341 esac
8345 PBX_OPENSSL=0
8352 FREETDS_DESCRIP="FreeTDS"
8353 FREETDS_OPTION="tds"
8355 # Check whether --with-tds was given.
8356 if test "${with_tds+set}" = set; then
8357 withval=$with_tds;
8358 case ${withval} in
8359 n|no)
8360 USE_FREETDS=no
8362 y|ye|yes)
8363 FREETDS_MANDATORY="yes"
8366 FREETDS_DIR="${withval}"
8367 FREETDS_MANDATORY="yes"
8369 esac
8373 PBX_FREETDS=0
8380 TERMCAP_DESCRIP="Termcap"
8381 TERMCAP_OPTION="termcap"
8383 # Check whether --with-termcap was given.
8384 if test "${with_termcap+set}" = set; then
8385 withval=$with_termcap;
8386 case ${withval} in
8387 n|no)
8388 USE_TERMCAP=no
8390 y|ye|yes)
8391 TERMCAP_MANDATORY="yes"
8394 TERMCAP_DIR="${withval}"
8395 TERMCAP_MANDATORY="yes"
8397 esac
8401 PBX_TERMCAP=0
8408 TINFO_DESCRIP="Term Info"
8409 TINFO_OPTION="tinfo"
8411 # Check whether --with-tinfo was given.
8412 if test "${with_tinfo+set}" = set; then
8413 withval=$with_tinfo;
8414 case ${withval} in
8415 n|no)
8416 USE_TINFO=no
8418 y|ye|yes)
8419 TINFO_MANDATORY="yes"
8422 TINFO_DIR="${withval}"
8423 TINFO_MANDATORY="yes"
8425 esac
8429 PBX_TINFO=0
8436 TONEZONE_DESCRIP="tonezone"
8437 TONEZONE_OPTION="tonezone"
8439 # Check whether --with-tonezone was given.
8440 if test "${with_tonezone+set}" = set; then
8441 withval=$with_tonezone;
8442 case ${withval} in
8443 n|no)
8444 USE_TONEZONE=no
8446 y|ye|yes)
8447 TONEZONE_MANDATORY="yes"
8450 TONEZONE_DIR="${withval}"
8451 TONEZONE_MANDATORY="yes"
8453 esac
8457 PBX_TONEZONE=0
8464 VORBIS_DESCRIP="Vorbis"
8465 VORBIS_OPTION="vorbis"
8467 # Check whether --with-vorbis was given.
8468 if test "${with_vorbis+set}" = set; then
8469 withval=$with_vorbis;
8470 case ${withval} in
8471 n|no)
8472 USE_VORBIS=no
8474 y|ye|yes)
8475 VORBIS_MANDATORY="yes"
8478 VORBIS_DIR="${withval}"
8479 VORBIS_MANDATORY="yes"
8481 esac
8485 PBX_VORBIS=0
8492 VPB_DESCRIP="Voicetronix API"
8493 VPB_OPTION="vpb"
8495 # Check whether --with-vpb was given.
8496 if test "${with_vpb+set}" = set; then
8497 withval=$with_vpb;
8498 case ${withval} in
8499 n|no)
8500 USE_VPB=no
8502 y|ye|yes)
8503 VPB_MANDATORY="yes"
8506 VPB_DIR="${withval}"
8507 VPB_MANDATORY="yes"
8509 esac
8513 PBX_VPB=0
8520 ZLIB_DESCRIP="zlib"
8521 ZLIB_OPTION="z"
8523 # Check whether --with-z was given.
8524 if test "${with_z+set}" = set; then
8525 withval=$with_z;
8526 case ${withval} in
8527 n|no)
8528 USE_ZLIB=no
8530 y|ye|yes)
8531 ZLIB_MANDATORY="yes"
8534 ZLIB_DIR="${withval}"
8535 ZLIB_MANDATORY="yes"
8537 esac
8541 PBX_ZLIB=0
8548 ZAPTEL_DESCRIP="Zaptel"
8549 ZAPTEL_OPTION="zaptel"
8551 # Check whether --with-zaptel was given.
8552 if test "${with_zaptel+set}" = set; then
8553 withval=$with_zaptel;
8554 case ${withval} in
8555 n|no)
8556 USE_ZAPTEL=no
8558 y|ye|yes)
8559 ZAPTEL_MANDATORY="yes"
8562 ZAPTEL_DIR="${withval}"
8563 ZAPTEL_MANDATORY="yes"
8565 esac
8569 PBX_ZAPTEL=0
8576 # check for basic system features and functionality before
8577 # checking for package libraries
8579 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8580 # for constant arguments. Useless!
8581 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8582 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8583 if test "${ac_cv_working_alloca_h+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586 cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h. */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8592 #include <alloca.h>
8594 main ()
8596 char *p = (char *) alloca (2 * sizeof (int));
8597 if (p) return 0;
8599 return 0;
8601 _ACEOF
8602 rm -f conftest.$ac_objext conftest$ac_exeext
8603 if { (ac_try="$ac_link"
8604 case "(($ac_try" in
8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606 *) ac_try_echo=$ac_try;;
8607 esac
8608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609 (eval "$ac_link") 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } && {
8616 test -z "$ac_c_werror_flag" ||
8617 test ! -s conftest.err
8618 } && test -s conftest$ac_exeext &&
8619 $as_test_x conftest$ac_exeext; then
8620 ac_cv_working_alloca_h=yes
8621 else
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8625 ac_cv_working_alloca_h=no
8628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8629 conftest$ac_exeext conftest.$ac_ext
8631 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8632 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8633 if test $ac_cv_working_alloca_h = yes; then
8635 cat >>confdefs.h <<\_ACEOF
8636 #define HAVE_ALLOCA_H 1
8637 _ACEOF
8641 { echo "$as_me:$LINENO: checking for alloca" >&5
8642 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8643 if test "${ac_cv_func_alloca_works+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646 cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h. */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8652 #ifdef __GNUC__
8653 # define alloca __builtin_alloca
8654 #else
8655 # ifdef _MSC_VER
8656 # include <malloc.h>
8657 # define alloca _alloca
8658 # else
8659 # ifdef HAVE_ALLOCA_H
8660 # include <alloca.h>
8661 # else
8662 # ifdef _AIX
8663 #pragma alloca
8664 # else
8665 # ifndef alloca /* predefined by HP cc +Olibcalls */
8666 char *alloca ();
8667 # endif
8668 # endif
8669 # endif
8670 # endif
8671 #endif
8674 main ()
8676 char *p = (char *) alloca (1);
8677 if (p) return 0;
8679 return 0;
8681 _ACEOF
8682 rm -f conftest.$ac_objext conftest$ac_exeext
8683 if { (ac_try="$ac_link"
8684 case "(($ac_try" in
8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686 *) ac_try_echo=$ac_try;;
8687 esac
8688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689 (eval "$ac_link") 2>conftest.er1
8690 ac_status=$?
8691 grep -v '^ *+' conftest.er1 >conftest.err
8692 rm -f conftest.er1
8693 cat conftest.err >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && {
8696 test -z "$ac_c_werror_flag" ||
8697 test ! -s conftest.err
8698 } && test -s conftest$ac_exeext &&
8699 $as_test_x conftest$ac_exeext; then
8700 ac_cv_func_alloca_works=yes
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_cv_func_alloca_works=no
8708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8709 conftest$ac_exeext conftest.$ac_ext
8711 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8712 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8714 if test $ac_cv_func_alloca_works = yes; then
8716 cat >>confdefs.h <<\_ACEOF
8717 #define HAVE_ALLOCA 1
8718 _ACEOF
8720 else
8721 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8722 # that cause trouble. Some versions do not even contain alloca or
8723 # contain a buggy version. If you still want to use their alloca,
8724 # use ar to extract alloca.o from them instead of compiling alloca.c.
8726 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8728 cat >>confdefs.h <<\_ACEOF
8729 #define C_ALLOCA 1
8730 _ACEOF
8733 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8734 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8735 if test "${ac_cv_os_cray+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 #if defined CRAY && ! defined CRAY2
8745 webecray
8746 #else
8747 wenotbecray
8748 #endif
8750 _ACEOF
8751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8752 $EGREP "webecray" >/dev/null 2>&1; then
8753 ac_cv_os_cray=yes
8754 else
8755 ac_cv_os_cray=no
8757 rm -f conftest*
8760 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8761 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8762 if test $ac_cv_os_cray = yes; then
8763 for ac_func in _getb67 GETB67 getb67; do
8764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770 cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h. */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8778 #define $ac_func innocuous_$ac_func
8780 /* System header to define __stub macros and hopefully few prototypes,
8781 which can conflict with char $ac_func (); below.
8782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8783 <limits.h> exists even on freestanding compilers. */
8785 #ifdef __STDC__
8786 # include <limits.h>
8787 #else
8788 # include <assert.h>
8789 #endif
8791 #undef $ac_func
8793 /* Override any GCC internal prototype to avoid an error.
8794 Use char because int might match the return type of a GCC
8795 builtin and then its argument prototype would still apply. */
8796 #ifdef __cplusplus
8797 extern "C"
8798 #endif
8799 char $ac_func ();
8800 /* The GNU C library defines this for functions which it implements
8801 to always fail with ENOSYS. Some functions are actually named
8802 something starting with __ and the normal name is an alias. */
8803 #if defined __stub_$ac_func || defined __stub___$ac_func
8804 choke me
8805 #endif
8808 main ()
8810 return $ac_func ();
8812 return 0;
8814 _ACEOF
8815 rm -f conftest.$ac_objext conftest$ac_exeext
8816 if { (ac_try="$ac_link"
8817 case "(($ac_try" in
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8820 esac
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_link") 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } && {
8829 test -z "$ac_c_werror_flag" ||
8830 test ! -s conftest.err
8831 } && test -s conftest$ac_exeext &&
8832 $as_test_x conftest$ac_exeext; then
8833 eval "$as_ac_var=yes"
8834 else
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 eval "$as_ac_var=no"
8841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8842 conftest$ac_exeext conftest.$ac_ext
8844 ac_res=`eval echo '${'$as_ac_var'}'`
8845 { echo "$as_me:$LINENO: result: $ac_res" >&5
8846 echo "${ECHO_T}$ac_res" >&6; }
8847 if test `eval echo '${'$as_ac_var'}'` = yes; then
8849 cat >>confdefs.h <<_ACEOF
8850 #define CRAY_STACKSEG_END $ac_func
8851 _ACEOF
8853 break
8856 done
8859 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8860 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8861 if test "${ac_cv_c_stack_direction+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864 if test "$cross_compiling" = yes; then
8865 ac_cv_c_stack_direction=0
8866 else
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h. */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 $ac_includes_default
8875 find_stack_direction ()
8877 static char *addr = 0;
8878 auto char dummy;
8879 if (addr == 0)
8881 addr = &dummy;
8882 return find_stack_direction ();
8884 else
8885 return (&dummy > addr) ? 1 : -1;
8889 main ()
8891 return find_stack_direction () < 0;
8893 _ACEOF
8894 rm -f conftest$ac_exeext
8895 if { (ac_try="$ac_link"
8896 case "(($ac_try" in
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8899 esac
8900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8901 (eval "$ac_link") 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8905 { (case "(($ac_try" in
8906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8908 esac
8909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8910 (eval "$ac_try") 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 ac_cv_c_stack_direction=1
8915 else
8916 echo "$as_me: program exited with status $ac_status" >&5
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8920 ( exit $ac_status )
8921 ac_cv_c_stack_direction=-1
8923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8928 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8929 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8931 cat >>confdefs.h <<_ACEOF
8932 #define STACK_DIRECTION $ac_cv_c_stack_direction
8933 _ACEOF
8943 ac_header_dirent=no
8944 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8945 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8946 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8947 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
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 #include <sys/types.h>
8958 #include <$ac_hdr>
8961 main ()
8963 if ((DIR *) 0)
8964 return 0;
8966 return 0;
8968 _ACEOF
8969 rm -f conftest.$ac_objext
8970 if { (ac_try="$ac_compile"
8971 case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974 esac
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_compile") 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } && {
8983 test -z "$ac_c_werror_flag" ||
8984 test ! -s conftest.err
8985 } && test -s conftest.$ac_objext; then
8986 eval "$as_ac_Header=yes"
8987 else
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 eval "$as_ac_Header=no"
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 ac_res=`eval echo '${'$as_ac_Header'}'`
8997 { echo "$as_me:$LINENO: result: $ac_res" >&5
8998 echo "${ECHO_T}$ac_res" >&6; }
8999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9000 cat >>confdefs.h <<_ACEOF
9001 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9002 _ACEOF
9004 ac_header_dirent=$ac_hdr; break
9007 done
9008 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9009 if test $ac_header_dirent = dirent.h; then
9010 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9011 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9012 if test "${ac_cv_search_opendir+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 ac_func_search_save_LIBS=$LIBS
9016 cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h. */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9023 /* Override any GCC internal prototype to avoid an error.
9024 Use char because int might match the return type of a GCC
9025 builtin and then its argument prototype would still apply. */
9026 #ifdef __cplusplus
9027 extern "C"
9028 #endif
9029 char opendir ();
9031 main ()
9033 return opendir ();
9035 return 0;
9037 _ACEOF
9038 for ac_lib in '' dir; do
9039 if test -z "$ac_lib"; then
9040 ac_res="none required"
9041 else
9042 ac_res=-l$ac_lib
9043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (ac_try="$ac_link"
9047 case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9050 esac
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_link") 2>conftest.er1
9053 ac_status=$?
9054 grep -v '^ *+' conftest.er1 >conftest.err
9055 rm -f conftest.er1
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } && {
9059 test -z "$ac_c_werror_flag" ||
9060 test ! -s conftest.err
9061 } && test -s conftest$ac_exeext &&
9062 $as_test_x conftest$ac_exeext; then
9063 ac_cv_search_opendir=$ac_res
9064 else
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9072 conftest$ac_exeext
9073 if test "${ac_cv_search_opendir+set}" = set; then
9074 break
9076 done
9077 if test "${ac_cv_search_opendir+set}" = set; then
9079 else
9080 ac_cv_search_opendir=no
9082 rm conftest.$ac_ext
9083 LIBS=$ac_func_search_save_LIBS
9085 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9086 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9087 ac_res=$ac_cv_search_opendir
9088 if test "$ac_res" != no; then
9089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9093 else
9094 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9095 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9096 if test "${ac_cv_search_opendir+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 else
9099 ac_func_search_save_LIBS=$LIBS
9100 cat >conftest.$ac_ext <<_ACEOF
9101 /* confdefs.h. */
9102 _ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9107 /* Override any GCC internal prototype to avoid an error.
9108 Use char because int might match the return type of a GCC
9109 builtin and then its argument prototype would still apply. */
9110 #ifdef __cplusplus
9111 extern "C"
9112 #endif
9113 char opendir ();
9115 main ()
9117 return opendir ();
9119 return 0;
9121 _ACEOF
9122 for ac_lib in '' x; do
9123 if test -z "$ac_lib"; then
9124 ac_res="none required"
9125 else
9126 ac_res=-l$ac_lib
9127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9129 rm -f conftest.$ac_objext conftest$ac_exeext
9130 if { (ac_try="$ac_link"
9131 case "(($ac_try" in
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9134 esac
9135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136 (eval "$ac_link") 2>conftest.er1
9137 ac_status=$?
9138 grep -v '^ *+' conftest.er1 >conftest.err
9139 rm -f conftest.er1
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } && {
9143 test -z "$ac_c_werror_flag" ||
9144 test ! -s conftest.err
9145 } && test -s conftest$ac_exeext &&
9146 $as_test_x conftest$ac_exeext; then
9147 ac_cv_search_opendir=$ac_res
9148 else
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9156 conftest$ac_exeext
9157 if test "${ac_cv_search_opendir+set}" = set; then
9158 break
9160 done
9161 if test "${ac_cv_search_opendir+set}" = set; then
9163 else
9164 ac_cv_search_opendir=no
9166 rm conftest.$ac_ext
9167 LIBS=$ac_func_search_save_LIBS
9169 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9170 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9171 ac_res=$ac_cv_search_opendir
9172 if test "$ac_res" != no; then
9173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9179 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9180 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9181 if test "${ac_cv_header_stdc+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184 cat >conftest.$ac_ext <<_ACEOF
9185 /* confdefs.h. */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9190 #include <stdlib.h>
9191 #include <stdarg.h>
9192 #include <string.h>
9193 #include <float.h>
9196 main ()
9200 return 0;
9202 _ACEOF
9203 rm -f conftest.$ac_objext
9204 if { (ac_try="$ac_compile"
9205 case "(($ac_try" in
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9208 esac
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_compile") 2>conftest.er1
9211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } && {
9217 test -z "$ac_c_werror_flag" ||
9218 test ! -s conftest.err
9219 } && test -s conftest.$ac_objext; then
9220 ac_cv_header_stdc=yes
9221 else
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9225 ac_cv_header_stdc=no
9228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230 if test $ac_cv_header_stdc = yes; then
9231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9232 cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h. */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9238 #include <string.h>
9240 _ACEOF
9241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9242 $EGREP "memchr" >/dev/null 2>&1; then
9244 else
9245 ac_cv_header_stdc=no
9247 rm -f conftest*
9251 if test $ac_cv_header_stdc = yes; then
9252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9253 cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h. */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9259 #include <stdlib.h>
9261 _ACEOF
9262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9263 $EGREP "free" >/dev/null 2>&1; then
9265 else
9266 ac_cv_header_stdc=no
9268 rm -f conftest*
9272 if test $ac_cv_header_stdc = yes; then
9273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9274 if test "$cross_compiling" = yes; then
9276 else
9277 cat >conftest.$ac_ext <<_ACEOF
9278 /* confdefs.h. */
9279 _ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283 #include <ctype.h>
9284 #include <stdlib.h>
9285 #if ((' ' & 0x0FF) == 0x020)
9286 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9287 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9288 #else
9289 # define ISLOWER(c) \
9290 (('a' <= (c) && (c) <= 'i') \
9291 || ('j' <= (c) && (c) <= 'r') \
9292 || ('s' <= (c) && (c) <= 'z'))
9293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9294 #endif
9296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9298 main ()
9300 int i;
9301 for (i = 0; i < 256; i++)
9302 if (XOR (islower (i), ISLOWER (i))
9303 || toupper (i) != TOUPPER (i))
9304 return 2;
9305 return 0;
9307 _ACEOF
9308 rm -f conftest$ac_exeext
9309 if { (ac_try="$ac_link"
9310 case "(($ac_try" in
9311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9312 *) ac_try_echo=$ac_try;;
9313 esac
9314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315 (eval "$ac_link") 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9319 { (case "(($ac_try" in
9320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9321 *) ac_try_echo=$ac_try;;
9322 esac
9323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9324 (eval "$ac_try") 2>&5
9325 ac_status=$?
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; }; then
9329 else
9330 echo "$as_me: program exited with status $ac_status" >&5
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9334 ( exit $ac_status )
9335 ac_cv_header_stdc=no
9337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9343 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9344 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9345 if test $ac_cv_header_stdc = yes; then
9347 cat >>confdefs.h <<\_ACEOF
9348 #define STDC_HEADERS 1
9349 _ACEOF
9353 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9354 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9355 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358 cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h. */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9364 #include <sys/types.h>
9365 #include <sys/wait.h>
9366 #ifndef WEXITSTATUS
9367 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9368 #endif
9369 #ifndef WIFEXITED
9370 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9371 #endif
9374 main ()
9376 int s;
9377 wait (&s);
9378 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9380 return 0;
9382 _ACEOF
9383 rm -f conftest.$ac_objext
9384 if { (ac_try="$ac_compile"
9385 case "(($ac_try" in
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9388 esac
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_compile") 2>conftest.er1
9391 ac_status=$?
9392 grep -v '^ *+' conftest.er1 >conftest.err
9393 rm -f conftest.er1
9394 cat conftest.err >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && {
9397 test -z "$ac_c_werror_flag" ||
9398 test ! -s conftest.err
9399 } && test -s conftest.$ac_objext; then
9400 ac_cv_header_sys_wait_h=yes
9401 else
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 ac_cv_header_sys_wait_h=no
9408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9411 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9412 if test $ac_cv_header_sys_wait_h = yes; then
9414 cat >>confdefs.h <<\_ACEOF
9415 #define HAVE_SYS_WAIT_H 1
9416 _ACEOF
9443 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
9445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 ac_res=`eval echo '${'$as_ac_Header'}'`
9453 { echo "$as_me:$LINENO: result: $ac_res" >&5
9454 echo "${ECHO_T}$ac_res" >&6; }
9455 else
9456 # Is the header compilable?
9457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9459 cat >conftest.$ac_ext <<_ACEOF
9460 /* confdefs.h. */
9461 _ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 $ac_includes_default
9466 #include <$ac_header>
9467 _ACEOF
9468 rm -f conftest.$ac_objext
9469 if { (ac_try="$ac_compile"
9470 case "(($ac_try" in
9471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9472 *) ac_try_echo=$ac_try;;
9473 esac
9474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9475 (eval "$ac_compile") 2>conftest.er1
9476 ac_status=$?
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } && {
9482 test -z "$ac_c_werror_flag" ||
9483 test ! -s conftest.err
9484 } && test -s conftest.$ac_objext; then
9485 ac_header_compiler=yes
9486 else
9487 echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9490 ac_header_compiler=no
9493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9495 echo "${ECHO_T}$ac_header_compiler" >&6; }
9497 # Is the header present?
9498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9500 cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h. */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9506 #include <$ac_header>
9507 _ACEOF
9508 if { (ac_try="$ac_cpp conftest.$ac_ext"
9509 case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9512 esac
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9515 ac_status=$?
9516 grep -v '^ *+' conftest.er1 >conftest.err
9517 rm -f conftest.er1
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } >/dev/null && {
9521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9522 test ! -s conftest.err
9523 }; then
9524 ac_header_preproc=yes
9525 else
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9529 ac_header_preproc=no
9532 rm -f conftest.err conftest.$ac_ext
9533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9534 echo "${ECHO_T}$ac_header_preproc" >&6; }
9536 # So? What about this header?
9537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9538 yes:no: )
9539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9543 ac_header_preproc=yes
9545 no:yes:* )
9546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9560 esac
9561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566 eval "$as_ac_Header=\$ac_header_preproc"
9568 ac_res=`eval echo '${'$as_ac_Header'}'`
9569 { echo "$as_me:$LINENO: result: $ac_res" >&5
9570 echo "${ECHO_T}$ac_res" >&6; }
9573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9574 cat >>confdefs.h <<_ACEOF
9575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9576 _ACEOF
9580 done
9583 # Check whether --enable-largefile was given.
9584 if test "${enable_largefile+set}" = set; then
9585 enableval=$enable_largefile;
9588 if test "$enable_largefile" != no; then
9590 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9591 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9592 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 else
9595 ac_cv_sys_largefile_CC=no
9596 if test "$GCC" != yes; then
9597 ac_save_CC=$CC
9598 while :; do
9599 # IRIX 6.2 and later do not support large files by default,
9600 # so use the C compiler's -n32 option if that helps.
9601 cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h. */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 #include <sys/types.h>
9608 /* Check that off_t can represent 2**63 - 1 correctly.
9609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9610 since some C++ compilers masquerading as C compilers
9611 incorrectly reject 9223372036854775807. */
9612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9614 && LARGE_OFF_T % 2147483647 == 1)
9615 ? 1 : -1];
9617 main ()
9621 return 0;
9623 _ACEOF
9624 rm -f conftest.$ac_objext
9625 if { (ac_try="$ac_compile"
9626 case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_compile") 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest.$ac_objext; then
9641 break
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9649 rm -f core conftest.err conftest.$ac_objext
9650 CC="$CC -n32"
9651 rm -f conftest.$ac_objext
9652 if { (ac_try="$ac_compile"
9653 case "(($ac_try" in
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9656 esac
9657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$ac_compile") 2>conftest.er1
9659 ac_status=$?
9660 grep -v '^ *+' conftest.er1 >conftest.err
9661 rm -f conftest.er1
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } && {
9665 test -z "$ac_c_werror_flag" ||
9666 test ! -s conftest.err
9667 } && test -s conftest.$ac_objext; then
9668 ac_cv_sys_largefile_CC=' -n32'; break
9669 else
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9676 rm -f core conftest.err conftest.$ac_objext
9677 break
9678 done
9679 CC=$ac_save_CC
9680 rm -f conftest.$ac_ext
9683 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9684 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9685 if test "$ac_cv_sys_largefile_CC" != no; then
9686 CC=$CC$ac_cv_sys_largefile_CC
9689 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9690 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9691 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694 while :; do
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h. */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 #include <sys/types.h>
9702 /* Check that off_t can represent 2**63 - 1 correctly.
9703 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9704 since some C++ compilers masquerading as C compilers
9705 incorrectly reject 9223372036854775807. */
9706 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9707 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9708 && LARGE_OFF_T % 2147483647 == 1)
9709 ? 1 : -1];
9711 main ()
9715 return 0;
9717 _ACEOF
9718 rm -f conftest.$ac_objext
9719 if { (ac_try="$ac_compile"
9720 case "(($ac_try" in
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9723 esac
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_compile") 2>conftest.er1
9726 ac_status=$?
9727 grep -v '^ *+' conftest.er1 >conftest.err
9728 rm -f conftest.er1
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } && {
9732 test -z "$ac_c_werror_flag" ||
9733 test ! -s conftest.err
9734 } && test -s conftest.$ac_objext; then
9735 ac_cv_sys_file_offset_bits=no; break
9736 else
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h. */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 #define _FILE_OFFSET_BITS 64
9751 #include <sys/types.h>
9752 /* Check that off_t can represent 2**63 - 1 correctly.
9753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9754 since some C++ compilers masquerading as C compilers
9755 incorrectly reject 9223372036854775807. */
9756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9758 && LARGE_OFF_T % 2147483647 == 1)
9759 ? 1 : -1];
9761 main ()
9765 return 0;
9767 _ACEOF
9768 rm -f conftest.$ac_objext
9769 if { (ac_try="$ac_compile"
9770 case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773 esac
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_compile") 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && {
9782 test -z "$ac_c_werror_flag" ||
9783 test ! -s conftest.err
9784 } && test -s conftest.$ac_objext; then
9785 ac_cv_sys_file_offset_bits=64; break
9786 else
9787 echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794 ac_cv_sys_file_offset_bits=unknown
9795 break
9796 done
9798 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9799 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9800 case $ac_cv_sys_file_offset_bits in #(
9801 no | unknown) ;;
9803 cat >>confdefs.h <<_ACEOF
9804 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9805 _ACEOF
9807 esac
9808 rm -f conftest*
9809 if test $ac_cv_sys_file_offset_bits = unknown; then
9810 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9811 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9812 if test "${ac_cv_sys_large_files+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 else
9815 while :; do
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h. */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 #include <sys/types.h>
9823 /* Check that off_t can represent 2**63 - 1 correctly.
9824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9825 since some C++ compilers masquerading as C compilers
9826 incorrectly reject 9223372036854775807. */
9827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9829 && LARGE_OFF_T % 2147483647 == 1)
9830 ? 1 : -1];
9832 main ()
9836 return 0;
9838 _ACEOF
9839 rm -f conftest.$ac_objext
9840 if { (ac_try="$ac_compile"
9841 case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844 esac
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_compile") 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } && {
9853 test -z "$ac_c_werror_flag" ||
9854 test ! -s conftest.err
9855 } && test -s conftest.$ac_objext; then
9856 ac_cv_sys_large_files=no; break
9857 else
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9865 cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h. */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9871 #define _LARGE_FILES 1
9872 #include <sys/types.h>
9873 /* Check that off_t can represent 2**63 - 1 correctly.
9874 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9875 since some C++ compilers masquerading as C compilers
9876 incorrectly reject 9223372036854775807. */
9877 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9878 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9879 && LARGE_OFF_T % 2147483647 == 1)
9880 ? 1 : -1];
9882 main ()
9886 return 0;
9888 _ACEOF
9889 rm -f conftest.$ac_objext
9890 if { (ac_try="$ac_compile"
9891 case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9894 esac
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_compile") 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } && {
9903 test -z "$ac_c_werror_flag" ||
9904 test ! -s conftest.err
9905 } && test -s conftest.$ac_objext; then
9906 ac_cv_sys_large_files=1; break
9907 else
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9915 ac_cv_sys_large_files=unknown
9916 break
9917 done
9919 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9920 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
9921 case $ac_cv_sys_large_files in #(
9922 no | unknown) ;;
9924 cat >>confdefs.h <<_ACEOF
9925 #define _LARGE_FILES $ac_cv_sys_large_files
9926 _ACEOF
9928 esac
9929 rm -f conftest*
9934 # Checks for typedefs, structures, and compiler characteristics.
9935 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9936 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
9937 if test "${ac_cv_header_stdbool_h+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940 cat >conftest.$ac_ext <<_ACEOF
9941 /* confdefs.h. */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9947 #include <stdbool.h>
9948 #ifndef bool
9949 "error: bool is not defined"
9950 #endif
9951 #ifndef false
9952 "error: false is not defined"
9953 #endif
9954 #if false
9955 "error: false is not 0"
9956 #endif
9957 #ifndef true
9958 "error: true is not defined"
9959 #endif
9960 #if true != 1
9961 "error: true is not 1"
9962 #endif
9963 #ifndef __bool_true_false_are_defined
9964 "error: __bool_true_false_are_defined is not defined"
9965 #endif
9967 struct s { _Bool s: 1; _Bool t; } s;
9969 char a[true == 1 ? 1 : -1];
9970 char b[false == 0 ? 1 : -1];
9971 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9972 char d[(bool) 0.5 == true ? 1 : -1];
9973 bool e = &s;
9974 char f[(_Bool) 0.0 == false ? 1 : -1];
9975 char g[true];
9976 char h[sizeof (_Bool)];
9977 char i[sizeof s.t];
9978 enum { j = false, k = true, l = false * true, m = true * 256 };
9979 _Bool n[m];
9980 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9981 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9982 # if defined __xlc__ || defined __GNUC__
9983 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9984 reported by James Lemley on 2005-10-05; see
9985 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9986 This test is not quite right, since xlc is allowed to
9987 reject this program, as the initializer for xlcbug is
9988 not one of the forms that C requires support for.
9989 However, doing the test right would require a runtime
9990 test, and that would make cross-compilation harder.
9991 Let us hope that IBM fixes the xlc bug, and also adds
9992 support for this kind of constant expression. In the
9993 meantime, this test will reject xlc, which is OK, since
9994 our stdbool.h substitute should suffice. We also test
9995 this with GCC, where it should work, to detect more
9996 quickly whether someone messes up the test in the
9997 future. */
9998 char digs[] = "0123456789";
9999 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10000 # endif
10001 /* Catch a bug in an HP-UX C compiler. See
10002 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10003 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10005 _Bool q = true;
10006 _Bool *pq = &q;
10009 main ()
10012 *pq |= q;
10013 *pq |= ! q;
10014 /* Refer to every declared value, to avoid compiler optimizations. */
10015 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10016 + !m + !n + !o + !p + !q + !pq);
10019 return 0;
10021 _ACEOF
10022 rm -f conftest.$ac_objext
10023 if { (ac_try="$ac_compile"
10024 case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_compile") 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } && {
10036 test -z "$ac_c_werror_flag" ||
10037 test ! -s conftest.err
10038 } && test -s conftest.$ac_objext; then
10039 ac_cv_header_stdbool_h=yes
10040 else
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10044 ac_cv_header_stdbool_h=no
10047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10049 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10050 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10051 { echo "$as_me:$LINENO: checking for _Bool" >&5
10052 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10053 if test "${ac_cv_type__Bool+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056 cat >conftest.$ac_ext <<_ACEOF
10057 /* confdefs.h. */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 $ac_includes_default
10063 typedef _Bool ac__type_new_;
10065 main ()
10067 if ((ac__type_new_ *) 0)
10068 return 0;
10069 if (sizeof (ac__type_new_))
10070 return 0;
10072 return 0;
10074 _ACEOF
10075 rm -f conftest.$ac_objext
10076 if { (ac_try="$ac_compile"
10077 case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10080 esac
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_compile") 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } && {
10089 test -z "$ac_c_werror_flag" ||
10090 test ! -s conftest.err
10091 } && test -s conftest.$ac_objext; then
10092 ac_cv_type__Bool=yes
10093 else
10094 echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10097 ac_cv_type__Bool=no
10100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10102 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10103 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10104 if test $ac_cv_type__Bool = yes; then
10106 cat >>confdefs.h <<_ACEOF
10107 #define HAVE__BOOL 1
10108 _ACEOF
10113 if test $ac_cv_header_stdbool_h = yes; then
10115 cat >>confdefs.h <<\_ACEOF
10116 #define HAVE_STDBOOL_H 1
10117 _ACEOF
10121 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10122 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10123 if test "${ac_cv_c_const+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h. */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10134 main ()
10136 /* FIXME: Include the comments suggested by Paul. */
10137 #ifndef __cplusplus
10138 /* Ultrix mips cc rejects this. */
10139 typedef int charset[2];
10140 const charset cs;
10141 /* SunOS 4.1.1 cc rejects this. */
10142 char const *const *pcpcc;
10143 char **ppc;
10144 /* NEC SVR4.0.2 mips cc rejects this. */
10145 struct point {int x, y;};
10146 static struct point const zero = {0,0};
10147 /* AIX XL C 1.02.0.0 rejects this.
10148 It does not let you subtract one const X* pointer from another in
10149 an arm of an if-expression whose if-part is not a constant
10150 expression */
10151 const char *g = "string";
10152 pcpcc = &g + (g ? g-g : 0);
10153 /* HPUX 7.0 cc rejects these. */
10154 ++pcpcc;
10155 ppc = (char**) pcpcc;
10156 pcpcc = (char const *const *) ppc;
10157 { /* SCO 3.2v4 cc rejects this. */
10158 char *t;
10159 char const *s = 0 ? (char *) 0 : (char const *) 0;
10161 *t++ = 0;
10162 if (s) return 0;
10164 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10165 int x[] = {25, 17};
10166 const int *foo = &x[0];
10167 ++foo;
10169 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10170 typedef const int *iptr;
10171 iptr p = 0;
10172 ++p;
10174 { /* AIX XL C 1.02.0.0 rejects this saying
10175 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10176 struct s { int j; const int *ap[3]; };
10177 struct s *b; b->j = 5;
10179 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10180 const int foo = 10;
10181 if (!foo) return 0;
10183 return !cs[0] && !zero.x;
10184 #endif
10187 return 0;
10189 _ACEOF
10190 rm -f conftest.$ac_objext
10191 if { (ac_try="$ac_compile"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195 esac
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_compile") 2>conftest.er1
10198 ac_status=$?
10199 grep -v '^ *+' conftest.er1 >conftest.err
10200 rm -f conftest.er1
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } && {
10204 test -z "$ac_c_werror_flag" ||
10205 test ! -s conftest.err
10206 } && test -s conftest.$ac_objext; then
10207 ac_cv_c_const=yes
10208 else
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10212 ac_cv_c_const=no
10215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10217 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10218 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10219 if test $ac_cv_c_const = no; then
10221 cat >>confdefs.h <<\_ACEOF
10222 #define const
10223 _ACEOF
10227 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10228 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10229 if test "${ac_cv_type_uid_t+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h. */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 #include <sys/types.h>
10240 _ACEOF
10241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10242 $EGREP "uid_t" >/dev/null 2>&1; then
10243 ac_cv_type_uid_t=yes
10244 else
10245 ac_cv_type_uid_t=no
10247 rm -f conftest*
10250 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10251 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10252 if test $ac_cv_type_uid_t = no; then
10254 cat >>confdefs.h <<\_ACEOF
10255 #define uid_t int
10256 _ACEOF
10259 cat >>confdefs.h <<\_ACEOF
10260 #define gid_t int
10261 _ACEOF
10265 { echo "$as_me:$LINENO: checking for inline" >&5
10266 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10267 if test "${ac_cv_c_inline+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270 ac_cv_c_inline=no
10271 for ac_kw in inline __inline__ __inline; do
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h. */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278 #ifndef __cplusplus
10279 typedef int foo_t;
10280 static $ac_kw foo_t static_foo () {return 0; }
10281 $ac_kw foo_t foo () {return 0; }
10282 #endif
10284 _ACEOF
10285 rm -f conftest.$ac_objext
10286 if { (ac_try="$ac_compile"
10287 case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10290 esac
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292 (eval "$ac_compile") 2>conftest.er1
10293 ac_status=$?
10294 grep -v '^ *+' conftest.er1 >conftest.err
10295 rm -f conftest.er1
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } && {
10299 test -z "$ac_c_werror_flag" ||
10300 test ! -s conftest.err
10301 } && test -s conftest.$ac_objext; then
10302 ac_cv_c_inline=$ac_kw
10303 else
10304 echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311 test "$ac_cv_c_inline" != no && break
10312 done
10315 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10316 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10319 case $ac_cv_c_inline in
10320 inline | yes) ;;
10322 case $ac_cv_c_inline in
10323 no) ac_val=;;
10324 *) ac_val=$ac_cv_c_inline;;
10325 esac
10326 cat >>confdefs.h <<_ACEOF
10327 #ifndef __cplusplus
10328 #define inline $ac_val
10329 #endif
10330 _ACEOF
10332 esac
10334 { echo "$as_me:$LINENO: checking for mode_t" >&5
10335 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
10336 if test "${ac_cv_type_mode_t+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 else
10339 cat >conftest.$ac_ext <<_ACEOF
10340 /* confdefs.h. */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 $ac_includes_default
10346 typedef mode_t ac__type_new_;
10348 main ()
10350 if ((ac__type_new_ *) 0)
10351 return 0;
10352 if (sizeof (ac__type_new_))
10353 return 0;
10355 return 0;
10357 _ACEOF
10358 rm -f conftest.$ac_objext
10359 if { (ac_try="$ac_compile"
10360 case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_compile") 2>conftest.er1
10366 ac_status=$?
10367 grep -v '^ *+' conftest.er1 >conftest.err
10368 rm -f conftest.er1
10369 cat conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && {
10372 test -z "$ac_c_werror_flag" ||
10373 test ! -s conftest.err
10374 } && test -s conftest.$ac_objext; then
10375 ac_cv_type_mode_t=yes
10376 else
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_cv_type_mode_t=no
10383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10386 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10387 if test $ac_cv_type_mode_t = yes; then
10389 else
10391 cat >>confdefs.h <<_ACEOF
10392 #define mode_t int
10393 _ACEOF
10397 { echo "$as_me:$LINENO: checking for off_t" >&5
10398 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
10399 if test "${ac_cv_type_off_t+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402 cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h. */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 $ac_includes_default
10409 typedef off_t ac__type_new_;
10411 main ()
10413 if ((ac__type_new_ *) 0)
10414 return 0;
10415 if (sizeof (ac__type_new_))
10416 return 0;
10418 return 0;
10420 _ACEOF
10421 rm -f conftest.$ac_objext
10422 if { (ac_try="$ac_compile"
10423 case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10426 esac
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_compile") 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && {
10435 test -z "$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10437 } && test -s conftest.$ac_objext; then
10438 ac_cv_type_off_t=yes
10439 else
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_cv_type_off_t=no
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10448 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10449 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10450 if test $ac_cv_type_off_t = yes; then
10452 else
10454 cat >>confdefs.h <<_ACEOF
10455 #define off_t long int
10456 _ACEOF
10460 { echo "$as_me:$LINENO: checking for pid_t" >&5
10461 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10462 if test "${ac_cv_type_pid_t+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 $ac_includes_default
10472 typedef pid_t ac__type_new_;
10474 main ()
10476 if ((ac__type_new_ *) 0)
10477 return 0;
10478 if (sizeof (ac__type_new_))
10479 return 0;
10481 return 0;
10483 _ACEOF
10484 rm -f conftest.$ac_objext
10485 if { (ac_try="$ac_compile"
10486 case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489 esac
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_compile") 2>conftest.er1
10492 ac_status=$?
10493 grep -v '^ *+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } && {
10498 test -z "$ac_c_werror_flag" ||
10499 test ! -s conftest.err
10500 } && test -s conftest.$ac_objext; then
10501 ac_cv_type_pid_t=yes
10502 else
10503 echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10506 ac_cv_type_pid_t=no
10509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10511 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10512 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10513 if test $ac_cv_type_pid_t = yes; then
10515 else
10517 cat >>confdefs.h <<_ACEOF
10518 #define pid_t int
10519 _ACEOF
10523 { echo "$as_me:$LINENO: checking for size_t" >&5
10524 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10525 if test "${ac_cv_type_size_t+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528 cat >conftest.$ac_ext <<_ACEOF
10529 /* confdefs.h. */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10534 $ac_includes_default
10535 typedef size_t ac__type_new_;
10537 main ()
10539 if ((ac__type_new_ *) 0)
10540 return 0;
10541 if (sizeof (ac__type_new_))
10542 return 0;
10544 return 0;
10546 _ACEOF
10547 rm -f conftest.$ac_objext
10548 if { (ac_try="$ac_compile"
10549 case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_compile") 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest.$ac_objext; then
10564 ac_cv_type_size_t=yes
10565 else
10566 echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10569 ac_cv_type_size_t=no
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10574 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10575 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10576 if test $ac_cv_type_size_t = yes; then
10578 else
10580 cat >>confdefs.h <<_ACEOF
10581 #define size_t unsigned int
10582 _ACEOF
10586 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10587 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10588 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591 cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h. */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 $ac_includes_default
10599 main ()
10601 static struct stat ac_aggr;
10602 if (ac_aggr.st_blksize)
10603 return 0;
10605 return 0;
10607 _ACEOF
10608 rm -f conftest.$ac_objext
10609 if { (ac_try="$ac_compile"
10610 case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10613 esac
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_compile") 2>conftest.er1
10616 ac_status=$?
10617 grep -v '^ *+' conftest.er1 >conftest.err
10618 rm -f conftest.er1
10619 cat conftest.err >&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && {
10622 test -z "$ac_c_werror_flag" ||
10623 test ! -s conftest.err
10624 } && test -s conftest.$ac_objext; then
10625 ac_cv_member_struct_stat_st_blksize=yes
10626 else
10627 echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10630 cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h. */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 $ac_includes_default
10638 main ()
10640 static struct stat ac_aggr;
10641 if (sizeof ac_aggr.st_blksize)
10642 return 0;
10644 return 0;
10646 _ACEOF
10647 rm -f conftest.$ac_objext
10648 if { (ac_try="$ac_compile"
10649 case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652 esac
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_compile") 2>conftest.er1
10655 ac_status=$?
10656 grep -v '^ *+' conftest.er1 >conftest.err
10657 rm -f conftest.er1
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } && {
10661 test -z "$ac_c_werror_flag" ||
10662 test ! -s conftest.err
10663 } && test -s conftest.$ac_objext; then
10664 ac_cv_member_struct_stat_st_blksize=yes
10665 else
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 ac_cv_member_struct_stat_st_blksize=no
10672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10677 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10678 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10679 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10681 cat >>confdefs.h <<_ACEOF
10682 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10683 _ACEOF
10688 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10689 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10690 if test "${ac_cv_header_time+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 else
10693 cat >conftest.$ac_ext <<_ACEOF
10694 /* confdefs.h. */
10695 _ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10699 #include <sys/types.h>
10700 #include <sys/time.h>
10701 #include <time.h>
10704 main ()
10706 if ((struct tm *) 0)
10707 return 0;
10709 return 0;
10711 _ACEOF
10712 rm -f conftest.$ac_objext
10713 if { (ac_try="$ac_compile"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_compile") 2>conftest.er1
10720 ac_status=$?
10721 grep -v '^ *+' conftest.er1 >conftest.err
10722 rm -f conftest.er1
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && {
10726 test -z "$ac_c_werror_flag" ||
10727 test ! -s conftest.err
10728 } && test -s conftest.$ac_objext; then
10729 ac_cv_header_time=yes
10730 else
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 ac_cv_header_time=no
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10739 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10740 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10741 if test $ac_cv_header_time = yes; then
10743 cat >>confdefs.h <<\_ACEOF
10744 #define TIME_WITH_SYS_TIME 1
10745 _ACEOF
10749 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10750 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
10751 if test "${ac_cv_struct_tm+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754 cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h. */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 #include <sys/types.h>
10761 #include <time.h>
10764 main ()
10766 struct tm tm;
10767 int *p = &tm.tm_sec;
10768 return !p;
10770 return 0;
10772 _ACEOF
10773 rm -f conftest.$ac_objext
10774 if { (ac_try="$ac_compile"
10775 case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_compile") 2>conftest.er1
10781 ac_status=$?
10782 grep -v '^ *+' conftest.er1 >conftest.err
10783 rm -f conftest.er1
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } && {
10787 test -z "$ac_c_werror_flag" ||
10788 test ! -s conftest.err
10789 } && test -s conftest.$ac_objext; then
10790 ac_cv_struct_tm=time.h
10791 else
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_cv_struct_tm=sys/time.h
10798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10800 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10801 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10802 if test $ac_cv_struct_tm = sys/time.h; then
10804 cat >>confdefs.h <<\_ACEOF
10805 #define TM_IN_SYS_TIME 1
10806 _ACEOF
10810 { echo "$as_me:$LINENO: checking for working volatile" >&5
10811 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
10812 if test "${ac_cv_c_volatile+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 else
10815 cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h. */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10823 main ()
10826 volatile int x;
10827 int * volatile y = (int *) 0;
10828 return !x && !y;
10830 return 0;
10832 _ACEOF
10833 rm -f conftest.$ac_objext
10834 if { (ac_try="$ac_compile"
10835 case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10838 esac
10839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840 (eval "$ac_compile") 2>conftest.er1
10841 ac_status=$?
10842 grep -v '^ *+' conftest.er1 >conftest.err
10843 rm -f conftest.er1
10844 cat conftest.err >&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } && {
10847 test -z "$ac_c_werror_flag" ||
10848 test ! -s conftest.err
10849 } && test -s conftest.$ac_objext; then
10850 ac_cv_c_volatile=yes
10851 else
10852 echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 ac_cv_c_volatile=no
10858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10861 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
10862 if test $ac_cv_c_volatile = no; then
10864 cat >>confdefs.h <<\_ACEOF
10865 #define volatile
10866 _ACEOF
10870 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10871 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10872 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h. */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 $ac_includes_default
10882 typedef ptrdiff_t ac__type_new_;
10884 main ()
10886 if ((ac__type_new_ *) 0)
10887 return 0;
10888 if (sizeof (ac__type_new_))
10889 return 0;
10891 return 0;
10893 _ACEOF
10894 rm -f conftest.$ac_objext
10895 if { (ac_try="$ac_compile"
10896 case "(($ac_try" in
10897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10899 esac
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_compile") 2>conftest.er1
10902 ac_status=$?
10903 grep -v '^ *+' conftest.er1 >conftest.err
10904 rm -f conftest.er1
10905 cat conftest.err >&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } && {
10908 test -z "$ac_c_werror_flag" ||
10909 test ! -s conftest.err
10910 } && test -s conftest.$ac_objext; then
10911 ac_cv_type_ptrdiff_t=yes
10912 else
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10916 ac_cv_type_ptrdiff_t=no
10919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10921 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10922 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10923 if test $ac_cv_type_ptrdiff_t = yes; then
10925 cat >>confdefs.h <<_ACEOF
10926 #define HAVE_PTRDIFF_T 1
10927 _ACEOF
10933 # Checks for library functions.
10935 for ac_header in unistd.h
10937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 ac_res=`eval echo '${'$as_ac_Header'}'`
10945 { echo "$as_me:$LINENO: result: $ac_res" >&5
10946 echo "${ECHO_T}$ac_res" >&6; }
10947 else
10948 # Is the header compilable?
10949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10951 cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h. */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 $ac_includes_default
10958 #include <$ac_header>
10959 _ACEOF
10960 rm -f conftest.$ac_objext
10961 if { (ac_try="$ac_compile"
10962 case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965 esac
10966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967 (eval "$ac_compile") 2>conftest.er1
10968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } && {
10974 test -z "$ac_c_werror_flag" ||
10975 test ! -s conftest.err
10976 } && test -s conftest.$ac_objext; then
10977 ac_header_compiler=yes
10978 else
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10982 ac_header_compiler=no
10985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10987 echo "${ECHO_T}$ac_header_compiler" >&6; }
10989 # Is the header present?
10990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 #include <$ac_header>
10999 _ACEOF
11000 if { (ac_try="$ac_cpp conftest.$ac_ext"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004 esac
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11007 ac_status=$?
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } >/dev/null && {
11013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11014 test ! -s conftest.err
11015 }; then
11016 ac_header_preproc=yes
11017 else
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11021 ac_header_preproc=no
11024 rm -f conftest.err conftest.$ac_ext
11025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11026 echo "${ECHO_T}$ac_header_preproc" >&6; }
11028 # So? What about this header?
11029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11030 yes:no: )
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11035 ac_header_preproc=yes
11037 no:yes:* )
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11052 esac
11053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058 eval "$as_ac_Header=\$ac_header_preproc"
11060 ac_res=`eval echo '${'$as_ac_Header'}'`
11061 { echo "$as_me:$LINENO: result: $ac_res" >&5
11062 echo "${ECHO_T}$ac_res" >&6; }
11065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11066 cat >>confdefs.h <<_ACEOF
11067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11068 _ACEOF
11072 done
11074 { echo "$as_me:$LINENO: checking for working chown" >&5
11075 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
11076 if test "${ac_cv_func_chown_works+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 if test "$cross_compiling" = yes; then
11080 ac_cv_func_chown_works=no
11081 else
11082 cat >conftest.$ac_ext <<_ACEOF
11083 /* confdefs.h. */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11088 $ac_includes_default
11089 #include <fcntl.h>
11092 main ()
11094 char *f = "conftest.chown";
11095 struct stat before, after;
11097 if (creat (f, 0600) < 0)
11098 return 1;
11099 if (stat (f, &before) < 0)
11100 return 1;
11101 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11102 return 1;
11103 if (stat (f, &after) < 0)
11104 return 1;
11105 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11108 return 0;
11110 _ACEOF
11111 rm -f conftest$ac_exeext
11112 if { (ac_try="$ac_link"
11113 case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11116 esac
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_link") 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11122 { (case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11125 esac
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_try") 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 ac_cv_func_chown_works=yes
11132 else
11133 echo "$as_me: program exited with status $ac_status" >&5
11134 echo "$as_me: failed program was:" >&5
11135 sed 's/^/| /' conftest.$ac_ext >&5
11137 ( exit $ac_status )
11138 ac_cv_func_chown_works=no
11140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11144 rm -f conftest.chown
11147 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11148 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11149 if test $ac_cv_func_chown_works = yes; then
11151 cat >>confdefs.h <<\_ACEOF
11152 #define HAVE_CHOWN 1
11153 _ACEOF
11157 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11158 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
11159 if test "${ac_cv_func_closedir_void+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 else
11162 if test "$cross_compiling" = yes; then
11163 ac_cv_func_closedir_void=yes
11164 else
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h. */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 $ac_includes_default
11172 #include <$ac_header_dirent>
11173 #ifndef __cplusplus
11174 int closedir ();
11175 #endif
11178 main ()
11180 return closedir (opendir (".")) != 0;
11182 return 0;
11184 _ACEOF
11185 rm -f conftest$ac_exeext
11186 if { (ac_try="$ac_link"
11187 case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11190 esac
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_link") 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11196 { (case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11199 esac
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_try") 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 ac_cv_func_closedir_void=no
11206 else
11207 echo "$as_me: program exited with status $ac_status" >&5
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 ( exit $ac_status )
11212 ac_cv_func_closedir_void=yes
11214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11219 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11220 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11221 if test $ac_cv_func_closedir_void = yes; then
11223 cat >>confdefs.h <<\_ACEOF
11224 #define CLOSEDIR_VOID 1
11225 _ACEOF
11229 { echo "$as_me:$LINENO: checking for error_at_line" >&5
11230 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
11231 if test "${ac_cv_lib_error_at_line+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 else
11234 cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h. */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 #include <error.h>
11242 main ()
11244 error_at_line (0, 0, "", 0, "an error occurred");
11246 return 0;
11248 _ACEOF
11249 rm -f conftest.$ac_objext conftest$ac_exeext
11250 if { (ac_try="$ac_link"
11251 case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11254 esac
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_link") 2>conftest.er1
11257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } && {
11263 test -z "$ac_c_werror_flag" ||
11264 test ! -s conftest.err
11265 } && test -s conftest$ac_exeext &&
11266 $as_test_x conftest$ac_exeext; then
11267 ac_cv_lib_error_at_line=yes
11268 else
11269 echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11272 ac_cv_lib_error_at_line=no
11275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11276 conftest$ac_exeext conftest.$ac_ext
11278 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11279 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11280 if test $ac_cv_lib_error_at_line = no; then
11281 case " $LIBOBJS " in
11282 *" error.$ac_objext "* ) ;;
11283 *) LIBOBJS="$LIBOBJS error.$ac_objext"
11285 esac
11290 for ac_header in vfork.h
11292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 ac_res=`eval echo '${'$as_ac_Header'}'`
11300 { echo "$as_me:$LINENO: result: $ac_res" >&5
11301 echo "${ECHO_T}$ac_res" >&6; }
11302 else
11303 # Is the header compilable?
11304 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11306 cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h. */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11312 $ac_includes_default
11313 #include <$ac_header>
11314 _ACEOF
11315 rm -f conftest.$ac_objext
11316 if { (ac_try="$ac_compile"
11317 case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11320 esac
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_compile") 2>conftest.er1
11323 ac_status=$?
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } && {
11329 test -z "$ac_c_werror_flag" ||
11330 test ! -s conftest.err
11331 } && test -s conftest.$ac_objext; then
11332 ac_header_compiler=yes
11333 else
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_header_compiler=no
11340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11342 echo "${ECHO_T}$ac_header_compiler" >&6; }
11344 # Is the header present?
11345 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11347 cat >conftest.$ac_ext <<_ACEOF
11348 /* confdefs.h. */
11349 _ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11353 #include <$ac_header>
11354 _ACEOF
11355 if { (ac_try="$ac_cpp conftest.$ac_ext"
11356 case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11359 esac
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } >/dev/null && {
11368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11369 test ! -s conftest.err
11370 }; then
11371 ac_header_preproc=yes
11372 else
11373 echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11376 ac_header_preproc=no
11379 rm -f conftest.err conftest.$ac_ext
11380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381 echo "${ECHO_T}$ac_header_preproc" >&6; }
11383 # So? What about this header?
11384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11385 yes:no: )
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11390 ac_header_preproc=yes
11392 no:yes:* )
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11407 esac
11408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413 eval "$as_ac_Header=\$ac_header_preproc"
11415 ac_res=`eval echo '${'$as_ac_Header'}'`
11416 { echo "$as_me:$LINENO: result: $ac_res" >&5
11417 echo "${ECHO_T}$ac_res" >&6; }
11420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11421 cat >>confdefs.h <<_ACEOF
11422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11423 _ACEOF
11427 done
11431 for ac_func in fork vfork
11433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11438 else
11439 cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h. */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11447 #define $ac_func innocuous_$ac_func
11449 /* System header to define __stub macros and hopefully few prototypes,
11450 which can conflict with char $ac_func (); below.
11451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11452 <limits.h> exists even on freestanding compilers. */
11454 #ifdef __STDC__
11455 # include <limits.h>
11456 #else
11457 # include <assert.h>
11458 #endif
11460 #undef $ac_func
11462 /* Override any GCC internal prototype to avoid an error.
11463 Use char because int might match the return type of a GCC
11464 builtin and then its argument prototype would still apply. */
11465 #ifdef __cplusplus
11466 extern "C"
11467 #endif
11468 char $ac_func ();
11469 /* The GNU C library defines this for functions which it implements
11470 to always fail with ENOSYS. Some functions are actually named
11471 something starting with __ and the normal name is an alias. */
11472 #if defined __stub_$ac_func || defined __stub___$ac_func
11473 choke me
11474 #endif
11477 main ()
11479 return $ac_func ();
11481 return 0;
11483 _ACEOF
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (ac_try="$ac_link"
11486 case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11489 esac
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_link") 2>conftest.er1
11492 ac_status=$?
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } && {
11498 test -z "$ac_c_werror_flag" ||
11499 test ! -s conftest.err
11500 } && test -s conftest$ac_exeext &&
11501 $as_test_x conftest$ac_exeext; then
11502 eval "$as_ac_var=yes"
11503 else
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11507 eval "$as_ac_var=no"
11510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11511 conftest$ac_exeext conftest.$ac_ext
11513 ac_res=`eval echo '${'$as_ac_var'}'`
11514 { echo "$as_me:$LINENO: result: $ac_res" >&5
11515 echo "${ECHO_T}$ac_res" >&6; }
11516 if test `eval echo '${'$as_ac_var'}'` = yes; then
11517 cat >>confdefs.h <<_ACEOF
11518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11519 _ACEOF
11522 done
11524 if test "x$ac_cv_func_fork" = xyes; then
11525 { echo "$as_me:$LINENO: checking for working fork" >&5
11526 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11527 if test "${ac_cv_func_fork_works+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530 if test "$cross_compiling" = yes; then
11531 ac_cv_func_fork_works=cross
11532 else
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 $ac_includes_default
11541 main ()
11544 /* By Ruediger Kuhlmann. */
11545 return fork () < 0;
11548 return 0;
11550 _ACEOF
11551 rm -f conftest$ac_exeext
11552 if { (ac_try="$ac_link"
11553 case "(($ac_try" in
11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11555 *) ac_try_echo=$ac_try;;
11556 esac
11557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11558 (eval "$ac_link") 2>&5
11559 ac_status=$?
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11562 { (case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565 esac
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_try") 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 ac_cv_func_fork_works=yes
11572 else
11573 echo "$as_me: program exited with status $ac_status" >&5
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 ( exit $ac_status )
11578 ac_cv_func_fork_works=no
11580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11585 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11586 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11588 else
11589 ac_cv_func_fork_works=$ac_cv_func_fork
11591 if test "x$ac_cv_func_fork_works" = xcross; then
11592 case $host in
11593 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
11594 # Override, as these systems have only a dummy fork() stub
11595 ac_cv_func_fork_works=no
11598 ac_cv_func_fork_works=yes
11600 esac
11601 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11602 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11604 ac_cv_func_vfork_works=$ac_cv_func_vfork
11605 if test "x$ac_cv_func_vfork" = xyes; then
11606 { echo "$as_me:$LINENO: checking for working vfork" >&5
11607 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11608 if test "${ac_cv_func_vfork_works+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611 if test "$cross_compiling" = yes; then
11612 ac_cv_func_vfork_works=cross
11613 else
11614 cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h. */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11620 /* Thanks to Paul Eggert for this test. */
11621 $ac_includes_default
11622 #include <sys/wait.h>
11623 #ifdef HAVE_VFORK_H
11624 # include <vfork.h>
11625 #endif
11626 /* On some sparc systems, changes by the child to local and incoming
11627 argument registers are propagated back to the parent. The compiler
11628 is told about this with #include <vfork.h>, but some compilers
11629 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11630 static variable whose address is put into a register that is
11631 clobbered by the vfork. */
11632 static void
11633 #ifdef __cplusplus
11634 sparc_address_test (int arg)
11635 # else
11636 sparc_address_test (arg) int arg;
11637 #endif
11639 static pid_t child;
11640 if (!child) {
11641 child = vfork ();
11642 if (child < 0) {
11643 perror ("vfork");
11644 _exit(2);
11646 if (!child) {
11647 arg = getpid();
11648 write(-1, "", 0);
11649 _exit (arg);
11655 main ()
11657 pid_t parent = getpid ();
11658 pid_t child;
11660 sparc_address_test (0);
11662 child = vfork ();
11664 if (child == 0) {
11665 /* Here is another test for sparc vfork register problems. This
11666 test uses lots of local variables, at least as many local
11667 variables as main has allocated so far including compiler
11668 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11669 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11670 reuse the register of parent for one of the local variables,
11671 since it will think that parent can't possibly be used any more
11672 in this routine. Assigning to the local variable will thus
11673 munge parent in the parent process. */
11674 pid_t
11675 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11676 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11677 /* Convince the compiler that p..p7 are live; otherwise, it might
11678 use the same hardware register for all 8 local variables. */
11679 if (p != p1 || p != p2 || p != p3 || p != p4
11680 || p != p5 || p != p6 || p != p7)
11681 _exit(1);
11683 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11684 from child file descriptors. If the child closes a descriptor
11685 before it execs or exits, this munges the parent's descriptor
11686 as well. Test for this by closing stdout in the child. */
11687 _exit(close(fileno(stdout)) != 0);
11688 } else {
11689 int status;
11690 struct stat st;
11692 while (wait(&status) != child)
11694 return (
11695 /* Was there some problem with vforking? */
11696 child < 0
11698 /* Did the child fail? (This shouldn't happen.) */
11699 || status
11701 /* Did the vfork/compiler bug occur? */
11702 || parent != getpid()
11704 /* Did the file descriptor bug occur? */
11705 || fstat(fileno(stdout), &st) != 0
11709 _ACEOF
11710 rm -f conftest$ac_exeext
11711 if { (ac_try="$ac_link"
11712 case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11715 esac
11716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717 (eval "$ac_link") 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11721 { (case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11724 esac
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726 (eval "$ac_try") 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 ac_cv_func_vfork_works=yes
11731 else
11732 echo "$as_me: program exited with status $ac_status" >&5
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 ( exit $ac_status )
11737 ac_cv_func_vfork_works=no
11739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11744 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11745 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11748 if test "x$ac_cv_func_fork_works" = xcross; then
11749 ac_cv_func_vfork_works=$ac_cv_func_vfork
11750 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11751 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11754 if test "x$ac_cv_func_vfork_works" = xyes; then
11756 cat >>confdefs.h <<\_ACEOF
11757 #define HAVE_WORKING_VFORK 1
11758 _ACEOF
11760 else
11762 cat >>confdefs.h <<\_ACEOF
11763 #define vfork fork
11764 _ACEOF
11767 if test "x$ac_cv_func_fork_works" = xyes; then
11769 cat >>confdefs.h <<\_ACEOF
11770 #define HAVE_WORKING_FORK 1
11771 _ACEOF
11775 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11776 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
11777 if test "${ac_cv_sys_largefile_source+set}" = set; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11779 else
11780 while :; do
11781 cat >conftest.$ac_ext <<_ACEOF
11782 /* confdefs.h. */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 #include <sys/types.h> /* for off_t */
11788 #include <stdio.h>
11790 main ()
11792 int (*fp) (FILE *, off_t, int) = fseeko;
11793 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11795 return 0;
11797 _ACEOF
11798 rm -f conftest.$ac_objext conftest$ac_exeext
11799 if { (ac_try="$ac_link"
11800 case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_link") 2>conftest.er1
11806 ac_status=$?
11807 grep -v '^ *+' conftest.er1 >conftest.err
11808 rm -f conftest.er1
11809 cat conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } && {
11812 test -z "$ac_c_werror_flag" ||
11813 test ! -s conftest.err
11814 } && test -s conftest$ac_exeext &&
11815 $as_test_x conftest$ac_exeext; then
11816 ac_cv_sys_largefile_source=no; break
11817 else
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11825 conftest$ac_exeext conftest.$ac_ext
11826 cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h. */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 #define _LARGEFILE_SOURCE 1
11833 #include <sys/types.h> /* for off_t */
11834 #include <stdio.h>
11836 main ()
11838 int (*fp) (FILE *, off_t, int) = fseeko;
11839 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11841 return 0;
11843 _ACEOF
11844 rm -f conftest.$ac_objext conftest$ac_exeext
11845 if { (ac_try="$ac_link"
11846 case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_link") 2>conftest.er1
11852 ac_status=$?
11853 grep -v '^ *+' conftest.er1 >conftest.err
11854 rm -f conftest.er1
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } && {
11858 test -z "$ac_c_werror_flag" ||
11859 test ! -s conftest.err
11860 } && test -s conftest$ac_exeext &&
11861 $as_test_x conftest$ac_exeext; then
11862 ac_cv_sys_largefile_source=1; break
11863 else
11864 echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11871 conftest$ac_exeext conftest.$ac_ext
11872 ac_cv_sys_largefile_source=unknown
11873 break
11874 done
11876 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11877 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
11878 case $ac_cv_sys_largefile_source in #(
11879 no | unknown) ;;
11881 cat >>confdefs.h <<_ACEOF
11882 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11883 _ACEOF
11885 esac
11886 rm -f conftest*
11888 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11889 # in glibc 2.1.3, but that breaks too many other things.
11890 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11891 if test $ac_cv_sys_largefile_source != unknown; then
11893 cat >>confdefs.h <<\_ACEOF
11894 #define HAVE_FSEEKO 1
11895 _ACEOF
11899 if test $ac_cv_c_compiler_gnu = yes; then
11900 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11901 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11902 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905 ac_pattern="Autoconf.*'x'"
11906 cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h. */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11912 #include <sgtty.h>
11913 Autoconf TIOCGETP
11914 _ACEOF
11915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11916 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11917 ac_cv_prog_gcc_traditional=yes
11918 else
11919 ac_cv_prog_gcc_traditional=no
11921 rm -f conftest*
11924 if test $ac_cv_prog_gcc_traditional = no; then
11925 cat >conftest.$ac_ext <<_ACEOF
11926 /* confdefs.h. */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 #include <termio.h>
11932 Autoconf TCGETA
11933 _ACEOF
11934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11935 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11936 ac_cv_prog_gcc_traditional=yes
11938 rm -f conftest*
11942 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11943 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11944 if test $ac_cv_prog_gcc_traditional = yes; then
11945 CC="$CC -traditional"
11949 # XXX: these are commented out until we determine whether it matters if our malloc()
11950 # acts exactly like glibc's or not
11951 # AC_FUNC_MALLOC
11952 # AC_FUNC_REALLOC
11953 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11954 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11955 if test "${ac_cv_func_memcmp_working+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 else
11958 if test "$cross_compiling" = yes; then
11959 ac_cv_func_memcmp_working=no
11960 else
11961 cat >conftest.$ac_ext <<_ACEOF
11962 /* confdefs.h. */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 $ac_includes_default
11969 main ()
11972 /* Some versions of memcmp are not 8-bit clean. */
11973 char c0 = '\100', c1 = '\200', c2 = '\201';
11974 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11975 return 1;
11977 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11978 or more and with at least one buffer not starting on a 4-byte boundary.
11979 William Lewis provided this test program. */
11981 char foo[21];
11982 char bar[21];
11983 int i;
11984 for (i = 0; i < 4; i++)
11986 char *a = foo + i;
11987 char *b = bar + i;
11988 strcpy (a, "--------01111111");
11989 strcpy (b, "--------10000000");
11990 if (memcmp (a, b, 16) >= 0)
11991 return 1;
11993 return 0;
11997 return 0;
11999 _ACEOF
12000 rm -f conftest$ac_exeext
12001 if { (ac_try="$ac_link"
12002 case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005 esac
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_link") 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12011 { (case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12014 esac
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_try") 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 ac_cv_func_memcmp_working=yes
12021 else
12022 echo "$as_me: program exited with status $ac_status" >&5
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12026 ( exit $ac_status )
12027 ac_cv_func_memcmp_working=no
12029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12034 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12035 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12036 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12037 *" memcmp.$ac_objext "* ) ;;
12038 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12040 esac
12047 for ac_header in $ac_header_list
12049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12056 ac_res=`eval echo '${'$as_ac_Header'}'`
12057 { echo "$as_me:$LINENO: result: $ac_res" >&5
12058 echo "${ECHO_T}$ac_res" >&6; }
12059 else
12060 # Is the header compilable?
12061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12063 cat >conftest.$ac_ext <<_ACEOF
12064 /* confdefs.h. */
12065 _ACEOF
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h. */
12069 $ac_includes_default
12070 #include <$ac_header>
12071 _ACEOF
12072 rm -f conftest.$ac_objext
12073 if { (ac_try="$ac_compile"
12074 case "(($ac_try" in
12075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076 *) ac_try_echo=$ac_try;;
12077 esac
12078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079 (eval "$ac_compile") 2>conftest.er1
12080 ac_status=$?
12081 grep -v '^ *+' conftest.er1 >conftest.err
12082 rm -f conftest.er1
12083 cat conftest.err >&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } && {
12086 test -z "$ac_c_werror_flag" ||
12087 test ! -s conftest.err
12088 } && test -s conftest.$ac_objext; then
12089 ac_header_compiler=yes
12090 else
12091 echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12094 ac_header_compiler=no
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12099 echo "${ECHO_T}$ac_header_compiler" >&6; }
12101 # Is the header present?
12102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h. */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 #include <$ac_header>
12111 _ACEOF
12112 if { (ac_try="$ac_cpp conftest.$ac_ext"
12113 case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } >/dev/null && {
12125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12126 test ! -s conftest.err
12127 }; then
12128 ac_header_preproc=yes
12129 else
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12133 ac_header_preproc=no
12136 rm -f conftest.err conftest.$ac_ext
12137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12138 echo "${ECHO_T}$ac_header_preproc" >&6; }
12140 # So? What about this header?
12141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12142 yes:no: )
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12147 ac_header_preproc=yes
12149 no:yes:* )
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12164 esac
12165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170 eval "$as_ac_Header=\$ac_header_preproc"
12172 ac_res=`eval echo '${'$as_ac_Header'}'`
12173 { echo "$as_me:$LINENO: result: $ac_res" >&5
12174 echo "${ECHO_T}$ac_res" >&6; }
12177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12178 cat >>confdefs.h <<_ACEOF
12179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12180 _ACEOF
12184 done
12194 for ac_func in $ac_func_list
12196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h. */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12210 #define $ac_func innocuous_$ac_func
12212 /* System header to define __stub macros and hopefully few prototypes,
12213 which can conflict with char $ac_func (); below.
12214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12215 <limits.h> exists even on freestanding compilers. */
12217 #ifdef __STDC__
12218 # include <limits.h>
12219 #else
12220 # include <assert.h>
12221 #endif
12223 #undef $ac_func
12225 /* Override any GCC internal prototype to avoid an error.
12226 Use char because int might match the return type of a GCC
12227 builtin and then its argument prototype would still apply. */
12228 #ifdef __cplusplus
12229 extern "C"
12230 #endif
12231 char $ac_func ();
12232 /* The GNU C library defines this for functions which it implements
12233 to always fail with ENOSYS. Some functions are actually named
12234 something starting with __ and the normal name is an alias. */
12235 #if defined __stub_$ac_func || defined __stub___$ac_func
12236 choke me
12237 #endif
12240 main ()
12242 return $ac_func ();
12244 return 0;
12246 _ACEOF
12247 rm -f conftest.$ac_objext conftest$ac_exeext
12248 if { (ac_try="$ac_link"
12249 case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12252 esac
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_link") 2>conftest.er1
12255 ac_status=$?
12256 grep -v '^ *+' conftest.er1 >conftest.err
12257 rm -f conftest.er1
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } && {
12261 test -z "$ac_c_werror_flag" ||
12262 test ! -s conftest.err
12263 } && test -s conftest$ac_exeext &&
12264 $as_test_x conftest$ac_exeext; then
12265 eval "$as_ac_var=yes"
12266 else
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 eval "$as_ac_var=no"
12273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12274 conftest$ac_exeext conftest.$ac_ext
12276 ac_res=`eval echo '${'$as_ac_var'}'`
12277 { echo "$as_me:$LINENO: result: $ac_res" >&5
12278 echo "${ECHO_T}$ac_res" >&6; }
12279 if test `eval echo '${'$as_ac_var'}'` = yes; then
12280 cat >>confdefs.h <<_ACEOF
12281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12282 _ACEOF
12285 done
12303 { echo "$as_me:$LINENO: checking for working mktime" >&5
12304 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
12305 if test "${ac_cv_func_working_mktime+set}" = set; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 else
12308 if test "$cross_compiling" = yes; then
12309 ac_cv_func_working_mktime=no
12310 else
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 /* Test program from Paul Eggert and Tony Leneis. */
12318 #ifdef TIME_WITH_SYS_TIME
12319 # include <sys/time.h>
12320 # include <time.h>
12321 #else
12322 # ifdef HAVE_SYS_TIME_H
12323 # include <sys/time.h>
12324 # else
12325 # include <time.h>
12326 # endif
12327 #endif
12329 #include <stdlib.h>
12331 #ifdef HAVE_UNISTD_H
12332 # include <unistd.h>
12333 #endif
12335 #ifndef HAVE_ALARM
12336 # define alarm(X) /* empty */
12337 #endif
12339 /* Work around redefinition to rpl_putenv by other config tests. */
12340 #undef putenv
12342 static time_t time_t_max;
12343 static time_t time_t_min;
12345 /* Values we'll use to set the TZ environment variable. */
12346 static char *tz_strings[] = {
12347 (char *) 0, "TZ=GMT0", "TZ=JST-9",
12348 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12350 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12352 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
12353 Based on a problem report from Andreas Jaeger. */
12354 static int
12355 spring_forward_gap ()
12357 /* glibc (up to about 1998-10-07) failed this test. */
12358 struct tm tm;
12360 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12361 instead of "TZ=America/Vancouver" in order to detect the bug even
12362 on systems that don't support the Olson extension, or don't have the
12363 full zoneinfo tables installed. */
12364 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12366 tm.tm_year = 98;
12367 tm.tm_mon = 3;
12368 tm.tm_mday = 5;
12369 tm.tm_hour = 2;
12370 tm.tm_min = 0;
12371 tm.tm_sec = 0;
12372 tm.tm_isdst = -1;
12373 return mktime (&tm) != (time_t) -1;
12376 static int
12377 mktime_test1 (now)
12378 time_t now;
12380 struct tm *lt;
12381 return ! (lt = localtime (&now)) || mktime (lt) == now;
12384 static int
12385 mktime_test (now)
12386 time_t now;
12388 return (mktime_test1 (now)
12389 && mktime_test1 ((time_t) (time_t_max - now))
12390 && mktime_test1 ((time_t) (time_t_min + now)));
12393 static int
12394 irix_6_4_bug ()
12396 /* Based on code from Ariel Faigon. */
12397 struct tm tm;
12398 tm.tm_year = 96;
12399 tm.tm_mon = 3;
12400 tm.tm_mday = 0;
12401 tm.tm_hour = 0;
12402 tm.tm_min = 0;
12403 tm.tm_sec = 0;
12404 tm.tm_isdst = -1;
12405 mktime (&tm);
12406 return tm.tm_mon == 2 && tm.tm_mday == 31;
12409 static int
12410 bigtime_test (j)
12411 int j;
12413 struct tm tm;
12414 time_t now;
12415 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12416 now = mktime (&tm);
12417 if (now != (time_t) -1)
12419 struct tm *lt = localtime (&now);
12420 if (! (lt
12421 && lt->tm_year == tm.tm_year
12422 && lt->tm_mon == tm.tm_mon
12423 && lt->tm_mday == tm.tm_mday
12424 && lt->tm_hour == tm.tm_hour
12425 && lt->tm_min == tm.tm_min
12426 && lt->tm_sec == tm.tm_sec
12427 && lt->tm_yday == tm.tm_yday
12428 && lt->tm_wday == tm.tm_wday
12429 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12430 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12431 return 0;
12433 return 1;
12436 static int
12437 year_2050_test ()
12439 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12440 ignoring leap seconds. */
12441 unsigned long int answer = 2527315200UL;
12443 struct tm tm;
12444 time_t t;
12445 tm.tm_year = 2050 - 1900;
12446 tm.tm_mon = 2 - 1;
12447 tm.tm_mday = 1;
12448 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12449 tm.tm_isdst = -1;
12451 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12452 instead of "TZ=America/Vancouver" in order to detect the bug even
12453 on systems that don't support the Olson extension, or don't have the
12454 full zoneinfo tables installed. */
12455 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12457 t = mktime (&tm);
12459 /* Check that the result is either a failure, or close enough
12460 to the correct answer that we can assume the discrepancy is
12461 due to leap seconds. */
12462 return (t == (time_t) -1
12463 || (0 < t && answer - 120 <= t && t <= answer + 120));
12467 main ()
12469 time_t t, delta;
12470 int i, j;
12472 /* This test makes some buggy mktime implementations loop.
12473 Give up after 60 seconds; a mktime slower than that
12474 isn't worth using anyway. */
12475 alarm (60);
12477 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12478 continue;
12479 time_t_max--;
12480 if ((time_t) -1 < 0)
12481 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
12482 continue;
12483 delta = time_t_max / 997; /* a suitable prime number */
12484 for (i = 0; i < N_STRINGS; i++)
12486 if (tz_strings[i])
12487 putenv (tz_strings[i]);
12489 for (t = 0; t <= time_t_max - delta; t += delta)
12490 if (! mktime_test (t))
12491 return 1;
12492 if (! (mktime_test ((time_t) 1)
12493 && mktime_test ((time_t) (60 * 60))
12494 && mktime_test ((time_t) (60 * 60 * 24))))
12495 return 1;
12497 for (j = 1; 0 < j; j *= 2)
12498 if (! bigtime_test (j))
12499 return 1;
12500 if (! bigtime_test (j - 1))
12501 return 1;
12503 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12505 _ACEOF
12506 rm -f conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_link") 2>&5
12514 ac_status=$?
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12517 { (case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12520 esac
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_try") 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 ac_cv_func_working_mktime=yes
12527 else
12528 echo "$as_me: program exited with status $ac_status" >&5
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12532 ( exit $ac_status )
12533 ac_cv_func_working_mktime=no
12535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12540 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12541 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
12542 if test $ac_cv_func_working_mktime = no; then
12543 case " $LIBOBJS " in
12544 *" mktime.$ac_objext "* ) ;;
12545 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12547 esac
12553 for ac_header in stdlib.h unistd.h
12555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 ac_res=`eval echo '${'$as_ac_Header'}'`
12563 { echo "$as_me:$LINENO: result: $ac_res" >&5
12564 echo "${ECHO_T}$ac_res" >&6; }
12565 else
12566 # Is the header compilable?
12567 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12569 cat >conftest.$ac_ext <<_ACEOF
12570 /* confdefs.h. */
12571 _ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h. */
12575 $ac_includes_default
12576 #include <$ac_header>
12577 _ACEOF
12578 rm -f conftest.$ac_objext
12579 if { (ac_try="$ac_compile"
12580 case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12583 esac
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_compile") 2>conftest.er1
12586 ac_status=$?
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest.$ac_objext; then
12595 ac_header_compiler=yes
12596 else
12597 echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12600 ac_header_compiler=no
12603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12605 echo "${ECHO_T}$ac_header_compiler" >&6; }
12607 # Is the header present?
12608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12610 cat >conftest.$ac_ext <<_ACEOF
12611 /* confdefs.h. */
12612 _ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616 #include <$ac_header>
12617 _ACEOF
12618 if { (ac_try="$ac_cpp conftest.$ac_ext"
12619 case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12622 esac
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } >/dev/null && {
12631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12632 test ! -s conftest.err
12633 }; then
12634 ac_header_preproc=yes
12635 else
12636 echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12639 ac_header_preproc=no
12642 rm -f conftest.err conftest.$ac_ext
12643 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12644 echo "${ECHO_T}$ac_header_preproc" >&6; }
12646 # So? What about this header?
12647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12648 yes:no: )
12649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12653 ac_header_preproc=yes
12655 no:yes:* )
12656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12663 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12670 esac
12671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676 eval "$as_ac_Header=\$ac_header_preproc"
12678 ac_res=`eval echo '${'$as_ac_Header'}'`
12679 { echo "$as_me:$LINENO: result: $ac_res" >&5
12680 echo "${ECHO_T}$ac_res" >&6; }
12683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12684 cat >>confdefs.h <<_ACEOF
12685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12686 _ACEOF
12690 done
12693 for ac_func in getpagesize
12695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12696 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12698 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 else
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12709 #define $ac_func innocuous_$ac_func
12711 /* System header to define __stub macros and hopefully few prototypes,
12712 which can conflict with char $ac_func (); below.
12713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12714 <limits.h> exists even on freestanding compilers. */
12716 #ifdef __STDC__
12717 # include <limits.h>
12718 #else
12719 # include <assert.h>
12720 #endif
12722 #undef $ac_func
12724 /* Override any GCC internal prototype to avoid an error.
12725 Use char because int might match the return type of a GCC
12726 builtin and then its argument prototype would still apply. */
12727 #ifdef __cplusplus
12728 extern "C"
12729 #endif
12730 char $ac_func ();
12731 /* The GNU C library defines this for functions which it implements
12732 to always fail with ENOSYS. Some functions are actually named
12733 something starting with __ and the normal name is an alias. */
12734 #if defined __stub_$ac_func || defined __stub___$ac_func
12735 choke me
12736 #endif
12739 main ()
12741 return $ac_func ();
12743 return 0;
12745 _ACEOF
12746 rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (ac_try="$ac_link"
12748 case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12751 esac
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_link") 2>conftest.er1
12754 ac_status=$?
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -f conftest.er1
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } && {
12760 test -z "$ac_c_werror_flag" ||
12761 test ! -s conftest.err
12762 } && test -s conftest$ac_exeext &&
12763 $as_test_x conftest$ac_exeext; then
12764 eval "$as_ac_var=yes"
12765 else
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12769 eval "$as_ac_var=no"
12772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12773 conftest$ac_exeext conftest.$ac_ext
12775 ac_res=`eval echo '${'$as_ac_var'}'`
12776 { echo "$as_me:$LINENO: result: $ac_res" >&5
12777 echo "${ECHO_T}$ac_res" >&6; }
12778 if test `eval echo '${'$as_ac_var'}'` = yes; then
12779 cat >>confdefs.h <<_ACEOF
12780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12781 _ACEOF
12784 done
12786 { echo "$as_me:$LINENO: checking for working mmap" >&5
12787 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12788 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791 if test "$cross_compiling" = yes; then
12792 ac_cv_func_mmap_fixed_mapped=no
12793 else
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h. */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 $ac_includes_default
12801 /* malloc might have been renamed as rpl_malloc. */
12802 #undef malloc
12804 /* Thanks to Mike Haertel and Jim Avera for this test.
12805 Here is a matrix of mmap possibilities:
12806 mmap private not fixed
12807 mmap private fixed at somewhere currently unmapped
12808 mmap private fixed at somewhere already mapped
12809 mmap shared not fixed
12810 mmap shared fixed at somewhere currently unmapped
12811 mmap shared fixed at somewhere already mapped
12812 For private mappings, we should verify that changes cannot be read()
12813 back from the file, nor mmap's back from the file at a different
12814 address. (There have been systems where private was not correctly
12815 implemented like the infamous i386 svr4.0, and systems where the
12816 VM page cache was not coherent with the file system buffer cache
12817 like early versions of FreeBSD and possibly contemporary NetBSD.)
12818 For shared mappings, we should conversely verify that changes get
12819 propagated back to all the places they're supposed to be.
12821 Grep wants private fixed already mapped.
12822 The main things grep needs to know about mmap are:
12823 * does it exist and is it safe to write into the mmap'd area
12824 * how to use it (BSD variants) */
12826 #include <fcntl.h>
12827 #include <sys/mman.h>
12829 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12830 char *malloc ();
12831 #endif
12833 /* This mess was copied from the GNU getpagesize.h. */
12834 #ifndef HAVE_GETPAGESIZE
12835 /* Assume that all systems that can run configure have sys/param.h. */
12836 # ifndef HAVE_SYS_PARAM_H
12837 # define HAVE_SYS_PARAM_H 1
12838 # endif
12840 # ifdef _SC_PAGESIZE
12841 # define getpagesize() sysconf(_SC_PAGESIZE)
12842 # else /* no _SC_PAGESIZE */
12843 # ifdef HAVE_SYS_PARAM_H
12844 # include <sys/param.h>
12845 # ifdef EXEC_PAGESIZE
12846 # define getpagesize() EXEC_PAGESIZE
12847 # else /* no EXEC_PAGESIZE */
12848 # ifdef NBPG
12849 # define getpagesize() NBPG * CLSIZE
12850 # ifndef CLSIZE
12851 # define CLSIZE 1
12852 # endif /* no CLSIZE */
12853 # else /* no NBPG */
12854 # ifdef NBPC
12855 # define getpagesize() NBPC
12856 # else /* no NBPC */
12857 # ifdef PAGESIZE
12858 # define getpagesize() PAGESIZE
12859 # endif /* PAGESIZE */
12860 # endif /* no NBPC */
12861 # endif /* no NBPG */
12862 # endif /* no EXEC_PAGESIZE */
12863 # else /* no HAVE_SYS_PARAM_H */
12864 # define getpagesize() 8192 /* punt totally */
12865 # endif /* no HAVE_SYS_PARAM_H */
12866 # endif /* no _SC_PAGESIZE */
12868 #endif /* no HAVE_GETPAGESIZE */
12871 main ()
12873 char *data, *data2, *data3;
12874 int i, pagesize;
12875 int fd;
12877 pagesize = getpagesize ();
12879 /* First, make a file with some known garbage in it. */
12880 data = (char *) malloc (pagesize);
12881 if (!data)
12882 return 1;
12883 for (i = 0; i < pagesize; ++i)
12884 *(data + i) = rand ();
12885 umask (0);
12886 fd = creat ("conftest.mmap", 0600);
12887 if (fd < 0)
12888 return 1;
12889 if (write (fd, data, pagesize) != pagesize)
12890 return 1;
12891 close (fd);
12893 /* Next, try to mmap the file at a fixed address which already has
12894 something else allocated at it. If we can, also make sure that
12895 we see the same garbage. */
12896 fd = open ("conftest.mmap", O_RDWR);
12897 if (fd < 0)
12898 return 1;
12899 data2 = (char *) malloc (2 * pagesize);
12900 if (!data2)
12901 return 1;
12902 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12903 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12904 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12905 return 1;
12906 for (i = 0; i < pagesize; ++i)
12907 if (*(data + i) != *(data2 + i))
12908 return 1;
12910 /* Finally, make sure that changes to the mapped area do not
12911 percolate back to the file as seen by read(). (This is a bug on
12912 some variants of i386 svr4.0.) */
12913 for (i = 0; i < pagesize; ++i)
12914 *(data2 + i) = *(data2 + i) + 1;
12915 data3 = (char *) malloc (pagesize);
12916 if (!data3)
12917 return 1;
12918 if (read (fd, data3, pagesize) != pagesize)
12919 return 1;
12920 for (i = 0; i < pagesize; ++i)
12921 if (*(data + i) != *(data3 + i))
12922 return 1;
12923 close (fd);
12924 return 0;
12926 _ACEOF
12927 rm -f conftest$ac_exeext
12928 if { (ac_try="$ac_link"
12929 case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932 esac
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_link") 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12938 { (case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12941 esac
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943 (eval "$ac_try") 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 ac_cv_func_mmap_fixed_mapped=yes
12948 else
12949 echo "$as_me: program exited with status $ac_status" >&5
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12953 ( exit $ac_status )
12954 ac_cv_func_mmap_fixed_mapped=no
12956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12961 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12962 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12963 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12965 cat >>confdefs.h <<\_ACEOF
12966 #define HAVE_MMAP 1
12967 _ACEOF
12970 rm -f conftest.mmap
12974 for ac_header in sys/select.h sys/socket.h
12976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 ac_res=`eval echo '${'$as_ac_Header'}'`
12984 { echo "$as_me:$LINENO: result: $ac_res" >&5
12985 echo "${ECHO_T}$ac_res" >&6; }
12986 else
12987 # Is the header compilable?
12988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12990 cat >conftest.$ac_ext <<_ACEOF
12991 /* confdefs.h. */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12996 $ac_includes_default
12997 #include <$ac_header>
12998 _ACEOF
12999 rm -f conftest.$ac_objext
13000 if { (ac_try="$ac_compile"
13001 case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13004 esac
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_compile") 2>conftest.er1
13007 ac_status=$?
13008 grep -v '^ *+' conftest.er1 >conftest.err
13009 rm -f conftest.er1
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } && {
13013 test -z "$ac_c_werror_flag" ||
13014 test ! -s conftest.err
13015 } && test -s conftest.$ac_objext; then
13016 ac_header_compiler=yes
13017 else
13018 echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13021 ac_header_compiler=no
13024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13026 echo "${ECHO_T}$ac_header_compiler" >&6; }
13028 # Is the header present?
13029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13031 cat >conftest.$ac_ext <<_ACEOF
13032 /* confdefs.h. */
13033 _ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13037 #include <$ac_header>
13038 _ACEOF
13039 if { (ac_try="$ac_cpp conftest.$ac_ext"
13040 case "(($ac_try" in
13041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13043 esac
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13046 ac_status=$?
13047 grep -v '^ *+' conftest.er1 >conftest.err
13048 rm -f conftest.er1
13049 cat conftest.err >&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } >/dev/null && {
13052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13053 test ! -s conftest.err
13054 }; then
13055 ac_header_preproc=yes
13056 else
13057 echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13060 ac_header_preproc=no
13063 rm -f conftest.err conftest.$ac_ext
13064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13065 echo "${ECHO_T}$ac_header_preproc" >&6; }
13067 # So? What about this header?
13068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13069 yes:no: )
13070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13074 ac_header_preproc=yes
13076 no:yes:* )
13077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13091 esac
13092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097 eval "$as_ac_Header=\$ac_header_preproc"
13099 ac_res=`eval echo '${'$as_ac_Header'}'`
13100 { echo "$as_me:$LINENO: result: $ac_res" >&5
13101 echo "${ECHO_T}$ac_res" >&6; }
13104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13105 cat >>confdefs.h <<_ACEOF
13106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13107 _ACEOF
13111 done
13113 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13114 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13115 if test "${ac_cv_func_select_args+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 else
13118 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13119 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13120 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13121 cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h. */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13127 $ac_includes_default
13128 #ifdef HAVE_SYS_SELECT_H
13129 # include <sys/select.h>
13130 #endif
13131 #ifdef HAVE_SYS_SOCKET_H
13132 # include <sys/socket.h>
13133 #endif
13136 main ()
13138 extern int select ($ac_arg1,
13139 $ac_arg234, $ac_arg234, $ac_arg234,
13140 $ac_arg5);
13142 return 0;
13144 _ACEOF
13145 rm -f conftest.$ac_objext
13146 if { (ac_try="$ac_compile"
13147 case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13150 esac
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_compile") 2>conftest.er1
13153 ac_status=$?
13154 grep -v '^ *+' conftest.er1 >conftest.err
13155 rm -f conftest.er1
13156 cat conftest.err >&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } && {
13159 test -z "$ac_c_werror_flag" ||
13160 test ! -s conftest.err
13161 } && test -s conftest.$ac_objext; then
13162 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13163 else
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13171 done
13172 done
13173 done
13174 # Provide a safe default value.
13175 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13178 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13179 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13180 ac_save_IFS=$IFS; IFS=','
13181 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13182 IFS=$ac_save_IFS
13183 shift
13185 cat >>confdefs.h <<_ACEOF
13186 #define SELECT_TYPE_ARG1 $1
13187 _ACEOF
13190 cat >>confdefs.h <<_ACEOF
13191 #define SELECT_TYPE_ARG234 ($2)
13192 _ACEOF
13195 cat >>confdefs.h <<_ACEOF
13196 #define SELECT_TYPE_ARG5 ($3)
13197 _ACEOF
13199 rm -f conftest*
13201 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13202 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13203 if test "$ac_cv_prog_cc_c89" != no; then
13204 { echo "$as_me:$LINENO: result: yes" >&5
13205 echo "${ECHO_T}yes" >&6; }
13207 cat >>confdefs.h <<\_ACEOF
13208 #define PROTOTYPES 1
13209 _ACEOF
13212 cat >>confdefs.h <<\_ACEOF
13213 #define __PROTOTYPES 1
13214 _ACEOF
13216 else
13217 { echo "$as_me:$LINENO: result: no" >&5
13218 echo "${ECHO_T}no" >&6; }
13221 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13222 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13223 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226 ac_cv_func_setvbuf_reversed=no
13227 cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h. */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13233 #include <stdio.h>
13234 # ifdef PROTOTYPES
13235 int (setvbuf) (FILE *, int, char *, size_t);
13236 # endif
13238 main ()
13240 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13242 return 0;
13244 _ACEOF
13245 rm -f conftest.$ac_objext conftest$ac_exeext
13246 if { (ac_try="$ac_link"
13247 case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13250 esac
13251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252 (eval "$ac_link") 2>conftest.er1
13253 ac_status=$?
13254 grep -v '^ *+' conftest.er1 >conftest.err
13255 rm -f conftest.er1
13256 cat conftest.err >&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } && {
13259 test -z "$ac_c_werror_flag" ||
13260 test ! -s conftest.err
13261 } && test -s conftest$ac_exeext &&
13262 $as_test_x conftest$ac_exeext; then
13263 cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h. */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269 #include <stdio.h>
13270 # ifdef PROTOTYPES
13271 int (setvbuf) (FILE *, int, char *, size_t);
13272 # endif
13274 main ()
13276 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13278 return 0;
13280 _ACEOF
13281 rm -f conftest.$ac_objext conftest$ac_exeext
13282 if { (ac_try="$ac_link"
13283 case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13286 esac
13287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_link") 2>conftest.er1
13289 ac_status=$?
13290 grep -v '^ *+' conftest.er1 >conftest.err
13291 rm -f conftest.er1
13292 cat conftest.err >&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } && {
13295 test -z "$ac_c_werror_flag" ||
13296 test ! -s conftest.err
13297 } && test -s conftest$ac_exeext &&
13298 $as_test_x conftest$ac_exeext; then
13299 # It compiles and links either way, so it must not be declared
13300 # with a prototype and most likely this is a K&R C compiler.
13301 # Try running it.
13302 if test "$cross_compiling" = yes; then
13303 : # Assume setvbuf is not reversed when cross-compiling.
13304 else
13305 cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h. */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 $ac_includes_default
13313 main ()
13315 /* This call has the arguments reversed.
13316 A reversed system may check and see that the address of buf
13317 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13318 char buf;
13319 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13320 return 1;
13321 putchar ('\r');
13322 return 0; /* Non-reversed systems SEGV here. */
13324 return 0;
13326 _ACEOF
13327 rm -f conftest$ac_exeext
13328 if { (ac_try="$ac_link"
13329 case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13332 esac
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_link") 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13341 esac
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_try") 2>&5
13344 ac_status=$?
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; }; then
13347 ac_cv_func_setvbuf_reversed=yes
13348 else
13349 echo "$as_me: program exited with status $ac_status" >&5
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13358 ac_cv_func_setvbuf_reversed=yes
13359 else
13360 echo "$as_me: failed program was:" >&5
13361 sed 's/^/| /' conftest.$ac_ext >&5
13366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13367 conftest$ac_exeext conftest.$ac_ext
13368 else
13369 echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13376 conftest$ac_exeext conftest.$ac_ext
13378 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13379 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13380 if test $ac_cv_func_setvbuf_reversed = yes; then
13382 cat >>confdefs.h <<\_ACEOF
13383 #define SETVBUF_REVERSED 1
13384 _ACEOF
13388 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13389 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13390 if test "${ac_cv_type_signal+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 else
13393 cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h. */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13399 #include <sys/types.h>
13400 #include <signal.h>
13403 main ()
13405 return *(signal (0, 0)) (0) == 1;
13407 return 0;
13409 _ACEOF
13410 rm -f conftest.$ac_objext
13411 if { (ac_try="$ac_compile"
13412 case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13415 esac
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_compile") 2>conftest.er1
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } && {
13424 test -z "$ac_c_werror_flag" ||
13425 test ! -s conftest.err
13426 } && test -s conftest.$ac_objext; then
13427 ac_cv_type_signal=int
13428 else
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 ac_cv_type_signal=void
13435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13438 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13440 cat >>confdefs.h <<_ACEOF
13441 #define RETSIGTYPE $ac_cv_type_signal
13442 _ACEOF
13445 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13446 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13447 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450 rm -f conftest.sym conftest.file
13451 echo >conftest.file
13452 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13453 if test "$cross_compiling" = yes; then
13454 ac_cv_func_lstat_dereferences_slashed_symlink=no
13455 else
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 $ac_includes_default
13464 main ()
13466 struct stat sbuf;
13467 /* Linux will dereference the symlink and fail.
13468 That is better in the sense that it means we will not
13469 have to compile and use the lstat wrapper. */
13470 return lstat ("conftest.sym/", &sbuf) == 0;
13472 return 0;
13474 _ACEOF
13475 rm -f conftest$ac_exeext
13476 if { (ac_try="$ac_link"
13477 case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480 esac
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_link") 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13486 { (case "(($ac_try" in
13487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488 *) ac_try_echo=$ac_try;;
13489 esac
13490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491 (eval "$ac_try") 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; }; then
13495 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13496 else
13497 echo "$as_me: program exited with status $ac_status" >&5
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13501 ( exit $ac_status )
13502 ac_cv_func_lstat_dereferences_slashed_symlink=no
13504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13508 else
13509 # If the `ln -s' command failed, then we probably don't even
13510 # have an lstat function.
13511 ac_cv_func_lstat_dereferences_slashed_symlink=no
13513 rm -f conftest.sym conftest.file
13516 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13517 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13519 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13521 cat >>confdefs.h <<_ACEOF
13522 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13523 _ACEOF
13526 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13527 case " $LIBOBJS " in
13528 *" lstat.$ac_objext "* ) ;;
13529 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13531 esac
13535 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13536 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13537 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540 if test "$cross_compiling" = yes; then
13541 ac_cv_func_stat_empty_string_bug=yes
13542 else
13543 cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h. */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13549 $ac_includes_default
13551 main ()
13553 struct stat sbuf;
13554 return stat ("", &sbuf) == 0;
13556 return 0;
13558 _ACEOF
13559 rm -f conftest$ac_exeext
13560 if { (ac_try="$ac_link"
13561 case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13564 esac
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_link") 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13570 { (case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_try") 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 ac_cv_func_stat_empty_string_bug=no
13580 else
13581 echo "$as_me: program exited with status $ac_status" >&5
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13585 ( exit $ac_status )
13586 ac_cv_func_stat_empty_string_bug=yes
13588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13593 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13594 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13595 if test $ac_cv_func_stat_empty_string_bug = yes; then
13596 case " $LIBOBJS " in
13597 *" stat.$ac_objext "* ) ;;
13598 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13600 esac
13603 cat >>confdefs.h <<_ACEOF
13604 #define HAVE_STAT_EMPTY_STRING_BUG 1
13605 _ACEOF
13609 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13610 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13611 if test "${ac_cv_func_strcoll_works+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614 if test "$cross_compiling" = yes; then
13615 ac_cv_func_strcoll_works=no
13616 else
13617 cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h. */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 $ac_includes_default
13625 main ()
13627 return (strcoll ("abc", "def") >= 0 ||
13628 strcoll ("ABC", "DEF") >= 0 ||
13629 strcoll ("123", "456") >= 0)
13631 return 0;
13633 _ACEOF
13634 rm -f conftest$ac_exeext
13635 if { (ac_try="$ac_link"
13636 case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13639 esac
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_link") 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_cv_func_strcoll_works=yes
13655 else
13656 echo "$as_me: program exited with status $ac_status" >&5
13657 echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13660 ( exit $ac_status )
13661 ac_cv_func_strcoll_works=no
13663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13668 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13669 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13670 if test $ac_cv_func_strcoll_works = yes; then
13672 cat >>confdefs.h <<\_ACEOF
13673 #define HAVE_STRCOLL 1
13674 _ACEOF
13679 for ac_func in strftime
13681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13685 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 else
13687 cat >conftest.$ac_ext <<_ACEOF
13688 /* confdefs.h. */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13695 #define $ac_func innocuous_$ac_func
13697 /* System header to define __stub macros and hopefully few prototypes,
13698 which can conflict with char $ac_func (); below.
13699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13700 <limits.h> exists even on freestanding compilers. */
13702 #ifdef __STDC__
13703 # include <limits.h>
13704 #else
13705 # include <assert.h>
13706 #endif
13708 #undef $ac_func
13710 /* Override any GCC internal prototype to avoid an error.
13711 Use char because int might match the return type of a GCC
13712 builtin and then its argument prototype would still apply. */
13713 #ifdef __cplusplus
13714 extern "C"
13715 #endif
13716 char $ac_func ();
13717 /* The GNU C library defines this for functions which it implements
13718 to always fail with ENOSYS. Some functions are actually named
13719 something starting with __ and the normal name is an alias. */
13720 #if defined __stub_$ac_func || defined __stub___$ac_func
13721 choke me
13722 #endif
13725 main ()
13727 return $ac_func ();
13729 return 0;
13731 _ACEOF
13732 rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (ac_try="$ac_link"
13734 case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_link") 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } && {
13746 test -z "$ac_c_werror_flag" ||
13747 test ! -s conftest.err
13748 } && test -s conftest$ac_exeext &&
13749 $as_test_x conftest$ac_exeext; then
13750 eval "$as_ac_var=yes"
13751 else
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13755 eval "$as_ac_var=no"
13758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13759 conftest$ac_exeext conftest.$ac_ext
13761 ac_res=`eval echo '${'$as_ac_var'}'`
13762 { echo "$as_me:$LINENO: result: $ac_res" >&5
13763 echo "${ECHO_T}$ac_res" >&6; }
13764 if test `eval echo '${'$as_ac_var'}'` = yes; then
13765 cat >>confdefs.h <<_ACEOF
13766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13767 _ACEOF
13769 else
13770 # strftime is in -lintl on SCO UNIX.
13771 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13772 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13773 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776 ac_check_lib_save_LIBS=$LIBS
13777 LIBS="-lintl $LIBS"
13778 cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h. */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13785 /* Override any GCC internal prototype to avoid an error.
13786 Use char because int might match the return type of a GCC
13787 builtin and then its argument prototype would still apply. */
13788 #ifdef __cplusplus
13789 extern "C"
13790 #endif
13791 char strftime ();
13793 main ()
13795 return strftime ();
13797 return 0;
13799 _ACEOF
13800 rm -f conftest.$ac_objext conftest$ac_exeext
13801 if { (ac_try="$ac_link"
13802 case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_link") 2>conftest.er1
13808 ac_status=$?
13809 grep -v '^ *+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } && {
13814 test -z "$ac_c_werror_flag" ||
13815 test ! -s conftest.err
13816 } && test -s conftest$ac_exeext &&
13817 $as_test_x conftest$ac_exeext; then
13818 ac_cv_lib_intl_strftime=yes
13819 else
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 ac_cv_lib_intl_strftime=no
13826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13827 conftest$ac_exeext conftest.$ac_ext
13828 LIBS=$ac_check_lib_save_LIBS
13830 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13831 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13832 if test $ac_cv_lib_intl_strftime = yes; then
13833 cat >>confdefs.h <<\_ACEOF
13834 #define HAVE_STRFTIME 1
13835 _ACEOF
13837 LIBS="-lintl $LIBS"
13841 done
13843 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13844 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13845 if test "${ac_cv_func_strnlen_working+set}" = set; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 else
13848 if test "$cross_compiling" = yes; then
13849 ac_cv_func_strnlen_working=no
13850 else
13851 cat >conftest.$ac_ext <<_ACEOF
13852 /* confdefs.h. */
13853 _ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h. */
13857 $ac_includes_default
13859 main ()
13862 #define S "foobar"
13863 #define S_LEN (sizeof S - 1)
13865 /* At least one implementation is buggy: that of AIX 4.3 would
13866 give strnlen (S, 1) == 3. */
13868 int i;
13869 for (i = 0; i < S_LEN + 1; ++i)
13871 int expected = i <= S_LEN ? i : S_LEN;
13872 if (strnlen (S, i) != expected)
13873 return 1;
13875 return 0;
13878 return 0;
13880 _ACEOF
13881 rm -f conftest$ac_exeext
13882 if { (ac_try="$ac_link"
13883 case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13886 esac
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_link") 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13892 { (case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13895 esac
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_try") 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_cv_func_strnlen_working=yes
13902 else
13903 echo "$as_me: program exited with status $ac_status" >&5
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 ( exit $ac_status )
13908 ac_cv_func_strnlen_working=no
13910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13915 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13916 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13917 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13918 *" strnlen.$ac_objext "* ) ;;
13919 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13921 esac
13924 { echo "$as_me:$LINENO: checking for working strtod" >&5
13925 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13926 if test "${ac_cv_func_strtod+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929 if test "$cross_compiling" = yes; then
13930 ac_cv_func_strtod=no
13931 else
13932 cat >conftest.$ac_ext <<_ACEOF
13933 /* confdefs.h. */
13934 _ACEOF
13935 cat confdefs.h >>conftest.$ac_ext
13936 cat >>conftest.$ac_ext <<_ACEOF
13937 /* end confdefs.h. */
13939 $ac_includes_default
13940 #ifndef strtod
13941 double strtod ();
13942 #endif
13944 main()
13947 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13948 char *string = " +69";
13949 char *term;
13950 double value;
13951 value = strtod (string, &term);
13952 if (value != 69 || term != (string + 4))
13953 return 1;
13957 /* Under Solaris 2.4, strtod returns the wrong value for the
13958 terminating character under some conditions. */
13959 char *string = "NaN";
13960 char *term;
13961 strtod (string, &term);
13962 if (term != string && *(term - 1) == 0)
13963 return 1;
13965 return 0;
13968 _ACEOF
13969 rm -f conftest$ac_exeext
13970 if { (ac_try="$ac_link"
13971 case "(($ac_try" in
13972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13974 esac
13975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13976 (eval "$ac_link") 2>&5
13977 ac_status=$?
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13980 { (case "(($ac_try" in
13981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982 *) ac_try_echo=$ac_try;;
13983 esac
13984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985 (eval "$ac_try") 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; }; then
13989 ac_cv_func_strtod=yes
13990 else
13991 echo "$as_me: program exited with status $ac_status" >&5
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13995 ( exit $ac_status )
13996 ac_cv_func_strtod=no
13998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14003 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14004 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14005 if test $ac_cv_func_strtod = no; then
14006 case " $LIBOBJS " in
14007 *" strtod.$ac_objext "* ) ;;
14008 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14010 esac
14012 { echo "$as_me:$LINENO: checking for pow" >&5
14013 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
14014 if test "${ac_cv_func_pow+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017 cat >conftest.$ac_ext <<_ACEOF
14018 /* confdefs.h. */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14023 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14025 #define pow innocuous_pow
14027 /* System header to define __stub macros and hopefully few prototypes,
14028 which can conflict with char pow (); below.
14029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14030 <limits.h> exists even on freestanding compilers. */
14032 #ifdef __STDC__
14033 # include <limits.h>
14034 #else
14035 # include <assert.h>
14036 #endif
14038 #undef pow
14040 /* Override any GCC internal prototype to avoid an error.
14041 Use char because int might match the return type of a GCC
14042 builtin and then its argument prototype would still apply. */
14043 #ifdef __cplusplus
14044 extern "C"
14045 #endif
14046 char pow ();
14047 /* The GNU C library defines this for functions which it implements
14048 to always fail with ENOSYS. Some functions are actually named
14049 something starting with __ and the normal name is an alias. */
14050 #if defined __stub_pow || defined __stub___pow
14051 choke me
14052 #endif
14055 main ()
14057 return pow ();
14059 return 0;
14061 _ACEOF
14062 rm -f conftest.$ac_objext conftest$ac_exeext
14063 if { (ac_try="$ac_link"
14064 case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14067 esac
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069 (eval "$ac_link") 2>conftest.er1
14070 ac_status=$?
14071 grep -v '^ *+' conftest.er1 >conftest.err
14072 rm -f conftest.er1
14073 cat conftest.err >&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } && {
14076 test -z "$ac_c_werror_flag" ||
14077 test ! -s conftest.err
14078 } && test -s conftest$ac_exeext &&
14079 $as_test_x conftest$ac_exeext; then
14080 ac_cv_func_pow=yes
14081 else
14082 echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14085 ac_cv_func_pow=no
14088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14089 conftest$ac_exeext conftest.$ac_ext
14091 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14092 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14094 if test $ac_cv_func_pow = no; then
14095 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14096 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14097 if test "${ac_cv_lib_m_pow+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 else
14100 ac_check_lib_save_LIBS=$LIBS
14101 LIBS="-lm $LIBS"
14102 cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h. */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14109 /* Override any GCC internal prototype to avoid an error.
14110 Use char because int might match the return type of a GCC
14111 builtin and then its argument prototype would still apply. */
14112 #ifdef __cplusplus
14113 extern "C"
14114 #endif
14115 char pow ();
14117 main ()
14119 return pow ();
14121 return 0;
14123 _ACEOF
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_link") 2>conftest.er1
14132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest$ac_exeext &&
14141 $as_test_x conftest$ac_exeext; then
14142 ac_cv_lib_m_pow=yes
14143 else
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 ac_cv_lib_m_pow=no
14150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14151 conftest$ac_exeext conftest.$ac_ext
14152 LIBS=$ac_check_lib_save_LIBS
14154 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14155 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14156 if test $ac_cv_lib_m_pow = yes; then
14157 POW_LIB=-lm
14158 else
14159 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14160 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14175 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14176 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14177 if test "${ac_cv_func_utime_null+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 else
14180 rm -f conftest.data; >conftest.data
14181 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14182 if test "$cross_compiling" = yes; then
14183 ac_cv_func_utime_null=no
14184 else
14185 cat >conftest.$ac_ext <<_ACEOF
14186 /* confdefs.h. */
14187 _ACEOF
14188 cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h. */
14191 $ac_includes_default
14192 #ifdef HAVE_UTIME_H
14193 # include <utime.h>
14194 #endif
14196 main ()
14198 struct stat s, t;
14199 return ! (stat ("conftest.data", &s) == 0
14200 && utime ("conftest.data", 0) == 0
14201 && stat ("conftest.data", &t) == 0
14202 && t.st_mtime >= s.st_mtime
14203 && t.st_mtime - s.st_mtime < 120);
14205 return 0;
14207 _ACEOF
14208 rm -f conftest$ac_exeext
14209 if { (ac_try="$ac_link"
14210 case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14213 esac
14214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_link") 2>&5
14216 ac_status=$?
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 ac_cv_func_utime_null=yes
14229 else
14230 echo "$as_me: program exited with status $ac_status" >&5
14231 echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14234 ( exit $ac_status )
14235 ac_cv_func_utime_null=no
14237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14242 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14243 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14244 if test $ac_cv_func_utime_null = yes; then
14246 cat >>confdefs.h <<\_ACEOF
14247 #define HAVE_UTIME_NULL 1
14248 _ACEOF
14251 rm -f conftest.data
14254 for ac_func in vprintf
14256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262 cat >conftest.$ac_ext <<_ACEOF
14263 /* confdefs.h. */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14270 #define $ac_func innocuous_$ac_func
14272 /* System header to define __stub macros and hopefully few prototypes,
14273 which can conflict with char $ac_func (); below.
14274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14275 <limits.h> exists even on freestanding compilers. */
14277 #ifdef __STDC__
14278 # include <limits.h>
14279 #else
14280 # include <assert.h>
14281 #endif
14283 #undef $ac_func
14285 /* Override any GCC internal prototype to avoid an error.
14286 Use char because int might match the return type of a GCC
14287 builtin and then its argument prototype would still apply. */
14288 #ifdef __cplusplus
14289 extern "C"
14290 #endif
14291 char $ac_func ();
14292 /* The GNU C library defines this for functions which it implements
14293 to always fail with ENOSYS. Some functions are actually named
14294 something starting with __ and the normal name is an alias. */
14295 #if defined __stub_$ac_func || defined __stub___$ac_func
14296 choke me
14297 #endif
14300 main ()
14302 return $ac_func ();
14304 return 0;
14306 _ACEOF
14307 rm -f conftest.$ac_objext conftest$ac_exeext
14308 if { (ac_try="$ac_link"
14309 case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14312 esac
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_link") 2>conftest.er1
14315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } && {
14321 test -z "$ac_c_werror_flag" ||
14322 test ! -s conftest.err
14323 } && test -s conftest$ac_exeext &&
14324 $as_test_x conftest$ac_exeext; then
14325 eval "$as_ac_var=yes"
14326 else
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 eval "$as_ac_var=no"
14333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14334 conftest$ac_exeext conftest.$ac_ext
14336 ac_res=`eval echo '${'$as_ac_var'}'`
14337 { echo "$as_me:$LINENO: result: $ac_res" >&5
14338 echo "${ECHO_T}$ac_res" >&6; }
14339 if test `eval echo '${'$as_ac_var'}'` = yes; then
14340 cat >>confdefs.h <<_ACEOF
14341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14342 _ACEOF
14344 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14345 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14346 if test "${ac_cv_func__doprnt+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349 cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h. */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14357 #define _doprnt innocuous__doprnt
14359 /* System header to define __stub macros and hopefully few prototypes,
14360 which can conflict with char _doprnt (); below.
14361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14362 <limits.h> exists even on freestanding compilers. */
14364 #ifdef __STDC__
14365 # include <limits.h>
14366 #else
14367 # include <assert.h>
14368 #endif
14370 #undef _doprnt
14372 /* Override any GCC internal prototype to avoid an error.
14373 Use char because int might match the return type of a GCC
14374 builtin and then its argument prototype would still apply. */
14375 #ifdef __cplusplus
14376 extern "C"
14377 #endif
14378 char _doprnt ();
14379 /* The GNU C library defines this for functions which it implements
14380 to always fail with ENOSYS. Some functions are actually named
14381 something starting with __ and the normal name is an alias. */
14382 #if defined __stub__doprnt || defined __stub____doprnt
14383 choke me
14384 #endif
14387 main ()
14389 return _doprnt ();
14391 return 0;
14393 _ACEOF
14394 rm -f conftest.$ac_objext conftest$ac_exeext
14395 if { (ac_try="$ac_link"
14396 case "(($ac_try" in
14397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398 *) ac_try_echo=$ac_try;;
14399 esac
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401 (eval "$ac_link") 2>conftest.er1
14402 ac_status=$?
14403 grep -v '^ *+' conftest.er1 >conftest.err
14404 rm -f conftest.er1
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } && {
14408 test -z "$ac_c_werror_flag" ||
14409 test ! -s conftest.err
14410 } && test -s conftest$ac_exeext &&
14411 $as_test_x conftest$ac_exeext; then
14412 ac_cv_func__doprnt=yes
14413 else
14414 echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14417 ac_cv_func__doprnt=no
14420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14421 conftest$ac_exeext conftest.$ac_ext
14423 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14424 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14425 if test $ac_cv_func__doprnt = yes; then
14427 cat >>confdefs.h <<\_ACEOF
14428 #define HAVE_DOPRNT 1
14429 _ACEOF
14434 done
14484 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
14486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 else
14492 cat >conftest.$ac_ext <<_ACEOF
14493 /* confdefs.h. */
14494 _ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h. */
14498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14500 #define $ac_func innocuous_$ac_func
14502 /* System header to define __stub macros and hopefully few prototypes,
14503 which can conflict with char $ac_func (); below.
14504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14505 <limits.h> exists even on freestanding compilers. */
14507 #ifdef __STDC__
14508 # include <limits.h>
14509 #else
14510 # include <assert.h>
14511 #endif
14513 #undef $ac_func
14515 /* Override any GCC internal prototype to avoid an error.
14516 Use char because int might match the return type of a GCC
14517 builtin and then its argument prototype would still apply. */
14518 #ifdef __cplusplus
14519 extern "C"
14520 #endif
14521 char $ac_func ();
14522 /* The GNU C library defines this for functions which it implements
14523 to always fail with ENOSYS. Some functions are actually named
14524 something starting with __ and the normal name is an alias. */
14525 #if defined __stub_$ac_func || defined __stub___$ac_func
14526 choke me
14527 #endif
14530 main ()
14532 return $ac_func ();
14534 return 0;
14536 _ACEOF
14537 rm -f conftest.$ac_objext conftest$ac_exeext
14538 if { (ac_try="$ac_link"
14539 case "(($ac_try" in
14540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14542 esac
14543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14544 (eval "$ac_link") 2>conftest.er1
14545 ac_status=$?
14546 grep -v '^ *+' conftest.er1 >conftest.err
14547 rm -f conftest.er1
14548 cat conftest.err >&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } && {
14551 test -z "$ac_c_werror_flag" ||
14552 test ! -s conftest.err
14553 } && test -s conftest$ac_exeext &&
14554 $as_test_x conftest$ac_exeext; then
14555 eval "$as_ac_var=yes"
14556 else
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14560 eval "$as_ac_var=no"
14563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14564 conftest$ac_exeext conftest.$ac_ext
14566 ac_res=`eval echo '${'$as_ac_var'}'`
14567 { echo "$as_me:$LINENO: result: $ac_res" >&5
14568 echo "${ECHO_T}$ac_res" >&6; }
14569 if test `eval echo '${'$as_ac_var'}'` = yes; then
14570 cat >>confdefs.h <<_ACEOF
14571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14572 _ACEOF
14575 done
14578 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14579 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14580 cat >conftest.$ac_ext <<_ACEOF
14581 /* confdefs.h. */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 #include <pthread.h>
14588 main ()
14590 int foo = PTHREAD_RWLOCK_INITIALIZER;
14592 return 0;
14594 _ACEOF
14595 rm -f conftest.$ac_objext conftest$ac_exeext
14596 if { (ac_try="$ac_link"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_link") 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } && {
14609 test -z "$ac_c_werror_flag" ||
14610 test ! -s conftest.err
14611 } && test -s conftest$ac_exeext &&
14612 $as_test_x conftest$ac_exeext; then
14613 { echo "$as_me:$LINENO: result: yes" >&5
14614 echo "${ECHO_T}yes" >&6; }
14616 cat >>confdefs.h <<\_ACEOF
14617 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14618 _ACEOF
14620 else
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 { echo "$as_me:$LINENO: result: no" >&5
14625 echo "${ECHO_T}no" >&6; }
14629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14630 conftest$ac_exeext conftest.$ac_ext
14632 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14633 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14634 cat >conftest.$ac_ext <<_ACEOF
14635 /* confdefs.h. */
14636 _ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h. */
14640 #include <pthread.h>
14642 main ()
14644 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14646 return 0;
14648 _ACEOF
14649 rm -f conftest.$ac_objext conftest$ac_exeext
14650 if { (ac_try="$ac_link"
14651 case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14654 esac
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_link") 2>conftest.er1
14657 ac_status=$?
14658 grep -v '^ *+' conftest.er1 >conftest.err
14659 rm -f conftest.er1
14660 cat conftest.err >&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } && {
14663 test -z "$ac_c_werror_flag" ||
14664 test ! -s conftest.err
14665 } && test -s conftest$ac_exeext &&
14666 $as_test_x conftest$ac_exeext; then
14667 { echo "$as_me:$LINENO: result: yes" >&5
14668 echo "${ECHO_T}yes" >&6; }
14670 cat >>confdefs.h <<\_ACEOF
14671 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14672 _ACEOF
14674 else
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14678 { echo "$as_me:$LINENO: result: no" >&5
14679 echo "${ECHO_T}no" >&6; }
14683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14684 conftest$ac_exeext conftest.$ac_ext
14686 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14687 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14688 cat >conftest.$ac_ext <<_ACEOF
14689 /* confdefs.h. */
14690 _ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h. */
14696 main ()
14698 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14700 return 0;
14702 _ACEOF
14703 rm -f conftest.$ac_objext conftest$ac_exeext
14704 if { (ac_try="$ac_link"
14705 case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14708 esac
14709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710 (eval "$ac_link") 2>conftest.er1
14711 ac_status=$?
14712 grep -v '^ *+' conftest.er1 >conftest.err
14713 rm -f conftest.er1
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } && {
14717 test -z "$ac_c_werror_flag" ||
14718 test ! -s conftest.err
14719 } && test -s conftest$ac_exeext &&
14720 $as_test_x conftest$ac_exeext; then
14721 { echo "$as_me:$LINENO: result: yes" >&5
14722 echo "${ECHO_T}yes" >&6; }
14724 cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_GCC_ATOMICS 1
14726 _ACEOF
14728 else
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 { echo "$as_me:$LINENO: result: no" >&5
14733 echo "${ECHO_T}no" >&6; }
14737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14738 conftest$ac_exeext conftest.$ac_ext
14741 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14742 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14743 cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h. */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 static int __attribute__((pure)) test(void) {}
14751 main ()
14755 return 0;
14757 _ACEOF
14758 rm -f conftest.$ac_objext
14759 if { (ac_try="$ac_compile"
14760 case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14763 esac
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_compile") 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } && {
14772 test -z "$ac_c_werror_flag" ||
14773 test ! -s conftest.err
14774 } && test -s conftest.$ac_objext; then
14775 { echo "$as_me:$LINENO: result: yes" >&5
14776 echo "${ECHO_T}yes" >&6; }
14778 cat >>confdefs.h <<_ACEOF
14779 #define HAVE_ATTRIBUTE_pure 1
14780 _ACEOF
14782 else
14783 echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14786 { echo "$as_me:$LINENO: result: no" >&5
14787 echo "${ECHO_T}no" >&6; }
14790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14793 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14794 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14795 cat >conftest.$ac_ext <<_ACEOF
14796 /* confdefs.h. */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 static int __attribute__((malloc)) test(void) {}
14803 main ()
14807 return 0;
14809 _ACEOF
14810 rm -f conftest.$ac_objext
14811 if { (ac_try="$ac_compile"
14812 case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_compile") 2>conftest.er1
14818 ac_status=$?
14819 grep -v '^ *+' conftest.er1 >conftest.err
14820 rm -f conftest.er1
14821 cat conftest.err >&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } && {
14824 test -z "$ac_c_werror_flag" ||
14825 test ! -s conftest.err
14826 } && test -s conftest.$ac_objext; then
14827 { echo "$as_me:$LINENO: result: yes" >&5
14828 echo "${ECHO_T}yes" >&6; }
14830 cat >>confdefs.h <<_ACEOF
14831 #define HAVE_ATTRIBUTE_malloc 1
14832 _ACEOF
14834 else
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 { echo "$as_me:$LINENO: result: no" >&5
14839 echo "${ECHO_T}no" >&6; }
14842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14845 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
14846 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
14847 cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h. */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 static int __attribute__((const)) test(void) {}
14855 main ()
14859 return 0;
14861 _ACEOF
14862 rm -f conftest.$ac_objext
14863 if { (ac_try="$ac_compile"
14864 case "(($ac_try" in
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866 *) ac_try_echo=$ac_try;;
14867 esac
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869 (eval "$ac_compile") 2>conftest.er1
14870 ac_status=$?
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } && {
14876 test -z "$ac_c_werror_flag" ||
14877 test ! -s conftest.err
14878 } && test -s conftest.$ac_objext; then
14879 { echo "$as_me:$LINENO: result: yes" >&5
14880 echo "${ECHO_T}yes" >&6; }
14882 cat >>confdefs.h <<_ACEOF
14883 #define HAVE_ATTRIBUTE_const 1
14884 _ACEOF
14886 else
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 { echo "$as_me:$LINENO: result: no" >&5
14891 echo "${ECHO_T}no" >&6; }
14894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
14898 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
14899 cat >conftest.$ac_ext <<_ACEOF
14900 /* confdefs.h. */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14905 static int __attribute__((unused)) test(void) {}
14907 main ()
14911 return 0;
14913 _ACEOF
14914 rm -f conftest.$ac_objext
14915 if { (ac_try="$ac_compile"
14916 case "(($ac_try" in
14917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918 *) ac_try_echo=$ac_try;;
14919 esac
14920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14921 (eval "$ac_compile") 2>conftest.er1
14922 ac_status=$?
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } && {
14928 test -z "$ac_c_werror_flag" ||
14929 test ! -s conftest.err
14930 } && test -s conftest.$ac_objext; then
14931 { echo "$as_me:$LINENO: result: yes" >&5
14932 echo "${ECHO_T}yes" >&6; }
14934 cat >>confdefs.h <<_ACEOF
14935 #define HAVE_ATTRIBUTE_unused 1
14936 _ACEOF
14938 else
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 { echo "$as_me:$LINENO: result: no" >&5
14943 echo "${ECHO_T}no" >&6; }
14946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
14950 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
14951 cat >conftest.$ac_ext <<_ACEOF
14952 /* confdefs.h. */
14953 _ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14957 static int __attribute__((always_inline)) test(void) {}
14959 main ()
14963 return 0;
14965 _ACEOF
14966 rm -f conftest.$ac_objext
14967 if { (ac_try="$ac_compile"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14971 esac
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_compile") 2>conftest.er1
14974 ac_status=$?
14975 grep -v '^ *+' conftest.er1 >conftest.err
14976 rm -f conftest.er1
14977 cat conftest.err >&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } && {
14980 test -z "$ac_c_werror_flag" ||
14981 test ! -s conftest.err
14982 } && test -s conftest.$ac_objext; then
14983 { echo "$as_me:$LINENO: result: yes" >&5
14984 echo "${ECHO_T}yes" >&6; }
14986 cat >>confdefs.h <<_ACEOF
14987 #define HAVE_ATTRIBUTE_always_inline 1
14988 _ACEOF
14990 else
14991 echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14994 { echo "$as_me:$LINENO: result: no" >&5
14995 echo "${ECHO_T}no" >&6; }
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
15002 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
15003 saved_CFLAGS="${CFLAGS}"
15004 CFLAGS="${CFLAGS} -ffunction-sections"
15005 cat >conftest.$ac_ext <<_ACEOF
15006 /* confdefs.h. */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15013 main ()
15015 int x = 1;
15017 return 0;
15019 _ACEOF
15020 rm -f conftest.$ac_objext
15021 if { (ac_try="$ac_compile"
15022 case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15025 esac
15026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_compile") 2>conftest.er1
15028 ac_status=$?
15029 grep -v '^ *+' conftest.er1 >conftest.err
15030 rm -f conftest.er1
15031 cat conftest.err >&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } && {
15034 test -z "$ac_c_werror_flag" ||
15035 test ! -s conftest.err
15036 } && test -s conftest.$ac_objext; then
15037 { echo "$as_me:$LINENO: result: yes" >&5
15038 echo "${ECHO_T}yes" >&6; }
15039 saved_LDFLAGS="${LDFLAGS}"
15040 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15041 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
15042 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
15043 cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h. */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15051 main ()
15053 int x = 1;
15055 return 0;
15057 _ACEOF
15058 rm -f conftest.$ac_objext conftest$ac_exeext
15059 if { (ac_try="$ac_link"
15060 case "(($ac_try" in
15061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062 *) ac_try_echo=$ac_try;;
15063 esac
15064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065 (eval "$ac_link") 2>conftest.er1
15066 ac_status=$?
15067 grep -v '^ *+' conftest.er1 >conftest.err
15068 rm -f conftest.er1
15069 cat conftest.err >&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } && {
15072 test -z "$ac_c_werror_flag" ||
15073 test ! -s conftest.err
15074 } && test -s conftest$ac_exeext &&
15075 $as_test_x conftest$ac_exeext; then
15076 { echo "$as_me:$LINENO: result: yes" >&5
15077 echo "${ECHO_T}yes" >&6; }
15078 GC_CFLAGS="-ffunction-sections"
15079 GC_LDFLAGS="-Wl,--gc-sections"
15080 else
15081 echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.$ac_ext >&5
15084 { echo "$as_me:$LINENO: result: no" >&5
15085 echo "${ECHO_T}no" >&6; }
15089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15090 conftest$ac_exeext conftest.$ac_ext
15091 LDFLAGS="${saved_LDFLAGS}"
15092 else
15093 echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15096 { echo "$as_me:$LINENO: result: no" >&5
15097 echo "${ECHO_T}no" >&6; }
15101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15102 CFLAGS="${saved_CFLAGS}"
15106 { echo "$as_me:$LINENO: checking for res_ninit" >&5
15107 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
15108 cat >conftest.$ac_ext <<_ACEOF
15109 /* confdefs.h. */
15110 _ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15114 #include <resolv.h>
15116 main ()
15118 int foo = res_ninit(NULL);
15120 return 0;
15122 _ACEOF
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (ac_try="$ac_link"
15125 case "(($ac_try" in
15126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127 *) ac_try_echo=$ac_try;;
15128 esac
15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130 (eval "$ac_link") 2>conftest.er1
15131 ac_status=$?
15132 grep -v '^ *+' conftest.er1 >conftest.err
15133 rm -f conftest.er1
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } && {
15137 test -z "$ac_c_werror_flag" ||
15138 test ! -s conftest.err
15139 } && test -s conftest$ac_exeext &&
15140 $as_test_x conftest$ac_exeext; then
15141 { echo "$as_me:$LINENO: result: yes" >&5
15142 echo "${ECHO_T}yes" >&6; }
15144 cat >>confdefs.h <<\_ACEOF
15145 #define HAVE_RES_NINIT 1
15146 _ACEOF
15148 else
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15152 { echo "$as_me:$LINENO: result: no" >&5
15153 echo "${ECHO_T}no" >&6; }
15157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15158 conftest$ac_exeext conftest.$ac_ext
15160 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
15161 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
15162 cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h. */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15168 #include <dlfcn.h>
15170 main ()
15172 int foo = RTLD_NOLOAD;
15174 return 0;
15176 _ACEOF
15177 rm -f conftest.$ac_objext conftest$ac_exeext
15178 if { (ac_try="$ac_link"
15179 case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15182 esac
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_link") 2>conftest.er1
15185 ac_status=$?
15186 grep -v '^ *+' conftest.er1 >conftest.err
15187 rm -f conftest.er1
15188 cat conftest.err >&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); } && {
15191 test -z "$ac_c_werror_flag" ||
15192 test ! -s conftest.err
15193 } && test -s conftest$ac_exeext &&
15194 $as_test_x conftest$ac_exeext; then
15195 { echo "$as_me:$LINENO: result: yes" >&5
15196 echo "${ECHO_T}yes" >&6; }
15198 cat >>confdefs.h <<\_ACEOF
15199 #define HAVE_RTLD_NOLOAD 1
15200 _ACEOF
15202 else
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15206 { echo "$as_me:$LINENO: result: no" >&5
15207 echo "${ECHO_T}no" >&6; }
15211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15212 conftest$ac_exeext conftest.$ac_ext
15214 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
15215 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
15216 cat >conftest.$ac_ext <<_ACEOF
15217 /* confdefs.h. */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15222 #include <netinet/in.h>
15224 main ()
15226 int foo = IP_MTU_DISCOVER;
15228 return 0;
15230 _ACEOF
15231 rm -f conftest.$ac_objext conftest$ac_exeext
15232 if { (ac_try="$ac_link"
15233 case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15236 esac
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_link") 2>conftest.er1
15239 ac_status=$?
15240 grep -v '^ *+' conftest.er1 >conftest.err
15241 rm -f conftest.er1
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } && {
15245 test -z "$ac_c_werror_flag" ||
15246 test ! -s conftest.err
15247 } && test -s conftest$ac_exeext &&
15248 $as_test_x conftest$ac_exeext; then
15249 { echo "$as_me:$LINENO: result: yes" >&5
15250 echo "${ECHO_T}yes" >&6; }
15252 cat >>confdefs.h <<\_ACEOF
15253 #define HAVE_IP_MTU_DISCOVER 1
15254 _ACEOF
15256 else
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 { echo "$as_me:$LINENO: result: no" >&5
15261 echo "${ECHO_T}no" >&6; }
15265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15266 conftest$ac_exeext conftest.$ac_ext
15268 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15269 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15270 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15271 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15274 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15275 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15276 else
15277 # Is the header compilable?
15278 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
15279 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
15280 cat >conftest.$ac_ext <<_ACEOF
15281 /* confdefs.h. */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15286 $ac_includes_default
15287 #include <libkern/OSAtomic.h>
15288 _ACEOF
15289 rm -f conftest.$ac_objext
15290 if { (ac_try="$ac_compile"
15291 case "(($ac_try" in
15292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15293 *) ac_try_echo=$ac_try;;
15294 esac
15295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15296 (eval "$ac_compile") 2>conftest.er1
15297 ac_status=$?
15298 grep -v '^ *+' conftest.er1 >conftest.err
15299 rm -f conftest.er1
15300 cat conftest.err >&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } && {
15303 test -z "$ac_c_werror_flag" ||
15304 test ! -s conftest.err
15305 } && test -s conftest.$ac_objext; then
15306 ac_header_compiler=yes
15307 else
15308 echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15311 ac_header_compiler=no
15314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15316 echo "${ECHO_T}$ac_header_compiler" >&6; }
15318 # Is the header present?
15319 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
15320 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
15321 cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h. */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 #include <libkern/OSAtomic.h>
15328 _ACEOF
15329 if { (ac_try="$ac_cpp conftest.$ac_ext"
15330 case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15336 ac_status=$?
15337 grep -v '^ *+' conftest.er1 >conftest.err
15338 rm -f conftest.er1
15339 cat conftest.err >&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } >/dev/null && {
15342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15343 test ! -s conftest.err
15344 }; then
15345 ac_header_preproc=yes
15346 else
15347 echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15350 ac_header_preproc=no
15353 rm -f conftest.err conftest.$ac_ext
15354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15355 echo "${ECHO_T}$ac_header_preproc" >&6; }
15357 # So? What about this header?
15358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15359 yes:no: )
15360 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
15361 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15362 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
15363 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
15364 ac_header_preproc=yes
15366 no:yes:* )
15367 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
15368 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
15370 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
15371 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
15372 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
15373 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
15374 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
15375 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
15376 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
15378 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
15381 esac
15382 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15383 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15384 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15389 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15390 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15393 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15395 cat >>confdefs.h <<_ACEOF
15396 #define HAVE_OSX_ATOMICS 1
15397 _ACEOF
15403 { echo "$as_me:$LINENO: checking for int" >&5
15404 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
15405 if test "${ac_cv_type_int+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408 cat >conftest.$ac_ext <<_ACEOF
15409 /* confdefs.h. */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 $ac_includes_default
15415 typedef int ac__type_new_;
15417 main ()
15419 if ((ac__type_new_ *) 0)
15420 return 0;
15421 if (sizeof (ac__type_new_))
15422 return 0;
15424 return 0;
15426 _ACEOF
15427 rm -f conftest.$ac_objext
15428 if { (ac_try="$ac_compile"
15429 case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15432 esac
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_compile") 2>conftest.er1
15435 ac_status=$?
15436 grep -v '^ *+' conftest.er1 >conftest.err
15437 rm -f conftest.er1
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } && {
15441 test -z "$ac_c_werror_flag" ||
15442 test ! -s conftest.err
15443 } && test -s conftest.$ac_objext; then
15444 ac_cv_type_int=yes
15445 else
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 ac_cv_type_int=no
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15455 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15457 # The cast to long int works around a bug in the HP C Compiler
15458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15460 # This bug is HP SR number 8606223364.
15461 { echo "$as_me:$LINENO: checking size of int" >&5
15462 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15463 if test "${ac_cv_sizeof_int+set}" = set; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15465 else
15466 if test "$cross_compiling" = yes; then
15467 # Depending upon the size, compute the lo and hi bounds.
15468 cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h. */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 $ac_includes_default
15475 typedef int ac__type_sizeof_;
15477 main ()
15479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15480 test_array [0] = 0
15483 return 0;
15485 _ACEOF
15486 rm -f conftest.$ac_objext
15487 if { (ac_try="$ac_compile"
15488 case "(($ac_try" in
15489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15490 *) ac_try_echo=$ac_try;;
15491 esac
15492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15493 (eval "$ac_compile") 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } && {
15500 test -z "$ac_c_werror_flag" ||
15501 test ! -s conftest.err
15502 } && test -s conftest.$ac_objext; then
15503 ac_lo=0 ac_mid=0
15504 while :; do
15505 cat >conftest.$ac_ext <<_ACEOF
15506 /* confdefs.h. */
15507 _ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h. */
15511 $ac_includes_default
15512 typedef int ac__type_sizeof_;
15514 main ()
15516 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15517 test_array [0] = 0
15520 return 0;
15522 _ACEOF
15523 rm -f conftest.$ac_objext
15524 if { (ac_try="$ac_compile"
15525 case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15528 esac
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_compile") 2>conftest.er1
15531 ac_status=$?
15532 grep -v '^ *+' conftest.er1 >conftest.err
15533 rm -f conftest.er1
15534 cat conftest.err >&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } && {
15537 test -z "$ac_c_werror_flag" ||
15538 test ! -s conftest.err
15539 } && test -s conftest.$ac_objext; then
15540 ac_hi=$ac_mid; break
15541 else
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15545 ac_lo=`expr $ac_mid + 1`
15546 if test $ac_lo -le $ac_mid; then
15547 ac_lo= ac_hi=
15548 break
15550 ac_mid=`expr 2 '*' $ac_mid + 1`
15553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15554 done
15555 else
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 cat >conftest.$ac_ext <<_ACEOF
15560 /* confdefs.h. */
15561 _ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h. */
15565 $ac_includes_default
15566 typedef int ac__type_sizeof_;
15568 main ()
15570 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15571 test_array [0] = 0
15574 return 0;
15576 _ACEOF
15577 rm -f conftest.$ac_objext
15578 if { (ac_try="$ac_compile"
15579 case "(($ac_try" in
15580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15581 *) ac_try_echo=$ac_try;;
15582 esac
15583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15584 (eval "$ac_compile") 2>conftest.er1
15585 ac_status=$?
15586 grep -v '^ *+' conftest.er1 >conftest.err
15587 rm -f conftest.er1
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } && {
15591 test -z "$ac_c_werror_flag" ||
15592 test ! -s conftest.err
15593 } && test -s conftest.$ac_objext; then
15594 ac_hi=-1 ac_mid=-1
15595 while :; do
15596 cat >conftest.$ac_ext <<_ACEOF
15597 /* confdefs.h. */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15602 $ac_includes_default
15603 typedef int ac__type_sizeof_;
15605 main ()
15607 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15608 test_array [0] = 0
15611 return 0;
15613 _ACEOF
15614 rm -f conftest.$ac_objext
15615 if { (ac_try="$ac_compile"
15616 case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15619 esac
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_compile") 2>conftest.er1
15622 ac_status=$?
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } && {
15628 test -z "$ac_c_werror_flag" ||
15629 test ! -s conftest.err
15630 } && test -s conftest.$ac_objext; then
15631 ac_lo=$ac_mid; break
15632 else
15633 echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15636 ac_hi=`expr '(' $ac_mid ')' - 1`
15637 if test $ac_mid -le $ac_hi; then
15638 ac_lo= ac_hi=
15639 break
15641 ac_mid=`expr 2 '*' $ac_mid`
15644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15645 done
15646 else
15647 echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15650 ac_lo= ac_hi=
15653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657 # Binary search between lo and hi bounds.
15658 while test "x$ac_lo" != "x$ac_hi"; do
15659 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15660 cat >conftest.$ac_ext <<_ACEOF
15661 /* confdefs.h. */
15662 _ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15666 $ac_includes_default
15667 typedef int ac__type_sizeof_;
15669 main ()
15671 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15672 test_array [0] = 0
15675 return 0;
15677 _ACEOF
15678 rm -f conftest.$ac_objext
15679 if { (ac_try="$ac_compile"
15680 case "(($ac_try" in
15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682 *) ac_try_echo=$ac_try;;
15683 esac
15684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15685 (eval "$ac_compile") 2>conftest.er1
15686 ac_status=$?
15687 grep -v '^ *+' conftest.er1 >conftest.err
15688 rm -f conftest.er1
15689 cat conftest.err >&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } && {
15692 test -z "$ac_c_werror_flag" ||
15693 test ! -s conftest.err
15694 } && test -s conftest.$ac_objext; then
15695 ac_hi=$ac_mid
15696 else
15697 echo "$as_me: failed program was:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15700 ac_lo=`expr '(' $ac_mid ')' + 1`
15703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15704 done
15705 case $ac_lo in
15706 ?*) ac_cv_sizeof_int=$ac_lo;;
15707 '') if test "$ac_cv_type_int" = yes; then
15708 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15709 See \`config.log' for more details." >&5
15710 echo "$as_me: error: cannot compute sizeof (int)
15711 See \`config.log' for more details." >&2;}
15712 { (exit 77); exit 77; }; }
15713 else
15714 ac_cv_sizeof_int=0
15715 fi ;;
15716 esac
15717 else
15718 cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h. */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 $ac_includes_default
15725 typedef int ac__type_sizeof_;
15726 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15727 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15728 #include <stdio.h>
15729 #include <stdlib.h>
15731 main ()
15734 FILE *f = fopen ("conftest.val", "w");
15735 if (! f)
15736 return 1;
15737 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15739 long int i = longval ();
15740 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15741 return 1;
15742 fprintf (f, "%ld\n", i);
15744 else
15746 unsigned long int i = ulongval ();
15747 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15748 return 1;
15749 fprintf (f, "%lu\n", i);
15751 return ferror (f) || fclose (f) != 0;
15754 return 0;
15756 _ACEOF
15757 rm -f conftest$ac_exeext
15758 if { (ac_try="$ac_link"
15759 case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15762 esac
15763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764 (eval "$ac_link") 2>&5
15765 ac_status=$?
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15768 { (case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15771 esac
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_try") 2>&5
15774 ac_status=$?
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); }; }; then
15777 ac_cv_sizeof_int=`cat conftest.val`
15778 else
15779 echo "$as_me: program exited with status $ac_status" >&5
15780 echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15783 ( exit $ac_status )
15784 if test "$ac_cv_type_int" = yes; then
15785 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15786 See \`config.log' for more details." >&5
15787 echo "$as_me: error: cannot compute sizeof (int)
15788 See \`config.log' for more details." >&2;}
15789 { (exit 77); exit 77; }; }
15790 else
15791 ac_cv_sizeof_int=0
15794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15796 rm -f conftest.val
15798 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15799 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15803 cat >>confdefs.h <<_ACEOF
15804 #define SIZEOF_INT $ac_cv_sizeof_int
15805 _ACEOF
15809 # do the package library checks now
15812 if test "${USE_ALSA}" != "no"; then
15813 pbxlibdir=""
15814 if test "x${ALSA_DIR}" != "x"; then
15815 if test -d ${ALSA_DIR}/lib; then
15816 pbxlibdir="-L${ALSA_DIR}/lib"
15817 else
15818 pbxlibdir="-L${ALSA_DIR}"
15821 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
15822 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
15823 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 else
15826 ac_check_lib_save_LIBS=$LIBS
15827 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
15828 cat >conftest.$ac_ext <<_ACEOF
15829 /* confdefs.h. */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15835 /* Override any GCC internal prototype to avoid an error.
15836 Use char because int might match the return type of a GCC
15837 builtin and then its argument prototype would still apply. */
15838 #ifdef __cplusplus
15839 extern "C"
15840 #endif
15841 char snd_spcm_init ();
15843 main ()
15845 return snd_spcm_init ();
15847 return 0;
15849 _ACEOF
15850 rm -f conftest.$ac_objext conftest$ac_exeext
15851 if { (ac_try="$ac_link"
15852 case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15855 esac
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857 (eval "$ac_link") 2>conftest.er1
15858 ac_status=$?
15859 grep -v '^ *+' conftest.er1 >conftest.err
15860 rm -f conftest.er1
15861 cat conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } && {
15864 test -z "$ac_c_werror_flag" ||
15865 test ! -s conftest.err
15866 } && test -s conftest$ac_exeext &&
15867 $as_test_x conftest$ac_exeext; then
15868 ac_cv_lib_asound_snd_spcm_init=yes
15869 else
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15873 ac_cv_lib_asound_snd_spcm_init=no
15876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15877 conftest$ac_exeext conftest.$ac_ext
15878 LIBS=$ac_check_lib_save_LIBS
15880 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
15881 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15882 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15883 AST_ALSA_FOUND=yes
15884 else
15885 AST_ALSA_FOUND=no
15889 if test "${AST_ALSA_FOUND}" = "yes"; then
15890 ALSA_LIB="-lasound -lm -ldl"
15891 ALSA_HEADER_FOUND="1"
15892 if test "x${ALSA_DIR}" != "x"; then
15893 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15894 ALSA_INCLUDE="-I${ALSA_DIR}/include"
15895 saved_cppflags="${CPPFLAGS}"
15896 CPPFLAGS="${CPPFLAGS} -I${ALSA_DIR}/include"
15897 if test "xalsa/asoundlib.h" != "x" ; then
15898 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
15899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15900 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15901 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.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
15905 ac_res=`eval echo '${'$as_ac_Header'}'`
15906 { echo "$as_me:$LINENO: result: $ac_res" >&5
15907 echo "${ECHO_T}$ac_res" >&6; }
15908 else
15909 # Is the header compilable?
15910 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
15911 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
15912 cat >conftest.$ac_ext <<_ACEOF
15913 /* confdefs.h. */
15914 _ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15918 $ac_includes_default
15919 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15920 _ACEOF
15921 rm -f conftest.$ac_objext
15922 if { (ac_try="$ac_compile"
15923 case "(($ac_try" in
15924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925 *) ac_try_echo=$ac_try;;
15926 esac
15927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15928 (eval "$ac_compile") 2>conftest.er1
15929 ac_status=$?
15930 grep -v '^ *+' conftest.er1 >conftest.err
15931 rm -f conftest.er1
15932 cat conftest.err >&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } && {
15935 test -z "$ac_c_werror_flag" ||
15936 test ! -s conftest.err
15937 } && test -s conftest.$ac_objext; then
15938 ac_header_compiler=yes
15939 else
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15943 ac_header_compiler=no
15946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15948 echo "${ECHO_T}$ac_header_compiler" >&6; }
15950 # Is the header present?
15951 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
15952 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
15953 cat >conftest.$ac_ext <<_ACEOF
15954 /* confdefs.h. */
15955 _ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15959 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15960 _ACEOF
15961 if { (ac_try="$ac_cpp conftest.$ac_ext"
15962 case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15965 esac
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15968 ac_status=$?
15969 grep -v '^ *+' conftest.er1 >conftest.err
15970 rm -f conftest.er1
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } >/dev/null && {
15974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15975 test ! -s conftest.err
15976 }; then
15977 ac_header_preproc=yes
15978 else
15979 echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15982 ac_header_preproc=no
15985 rm -f conftest.err conftest.$ac_ext
15986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15987 echo "${ECHO_T}$ac_header_preproc" >&6; }
15989 # So? What about this header?
15990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15991 yes:no: )
15992 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15993 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
15995 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15996 ac_header_preproc=yes
15998 no:yes:* )
15999 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16000 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16001 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16002 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16004 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16005 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16006 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16008 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16010 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16013 esac
16014 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16015 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 else
16019 eval "$as_ac_Header=\$ac_header_preproc"
16021 ac_res=`eval echo '${'$as_ac_Header'}'`
16022 { echo "$as_me:$LINENO: result: $ac_res" >&5
16023 echo "${ECHO_T}$ac_res" >&6; }
16026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16027 ALSA_HEADER_FOUND=1
16028 else
16029 ALSA_HEADER_FOUND=0
16034 CPPFLAGS="${saved_cppflags}"
16035 else
16036 if test "xalsa/asoundlib.h" != "x" ; then
16037 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16038 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16039 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16040 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16041 echo $ECHO_N "(cached) $ECHO_C" >&6
16043 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16044 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16045 else
16046 # Is the header compilable?
16047 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16048 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16049 cat >conftest.$ac_ext <<_ACEOF
16050 /* confdefs.h. */
16051 _ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16055 $ac_includes_default
16056 #include <alsa/asoundlib.h>
16057 _ACEOF
16058 rm -f conftest.$ac_objext
16059 if { (ac_try="$ac_compile"
16060 case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063 esac
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_compile") 2>conftest.er1
16066 ac_status=$?
16067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } && {
16072 test -z "$ac_c_werror_flag" ||
16073 test ! -s conftest.err
16074 } && test -s conftest.$ac_objext; then
16075 ac_header_compiler=yes
16076 else
16077 echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16080 ac_header_compiler=no
16083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16085 echo "${ECHO_T}$ac_header_compiler" >&6; }
16087 # Is the header present?
16088 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16089 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16090 cat >conftest.$ac_ext <<_ACEOF
16091 /* confdefs.h. */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 #include <alsa/asoundlib.h>
16097 _ACEOF
16098 if { (ac_try="$ac_cpp conftest.$ac_ext"
16099 case "(($ac_try" in
16100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101 *) ac_try_echo=$ac_try;;
16102 esac
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16105 ac_status=$?
16106 grep -v '^ *+' conftest.er1 >conftest.err
16107 rm -f conftest.er1
16108 cat conftest.err >&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } >/dev/null && {
16111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16112 test ! -s conftest.err
16113 }; then
16114 ac_header_preproc=yes
16115 else
16116 echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16119 ac_header_preproc=no
16122 rm -f conftest.err conftest.$ac_ext
16123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16124 echo "${ECHO_T}$ac_header_preproc" >&6; }
16126 # So? What about this header?
16127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16128 yes:no: )
16129 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16130 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16131 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16132 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16133 ac_header_preproc=yes
16135 no:yes:* )
16136 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16137 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16139 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16141 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16143 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16144 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16145 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16146 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16147 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16150 esac
16151 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16152 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16153 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 else
16156 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
16158 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16159 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16162 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16163 ALSA_HEADER_FOUND=1
16164 else
16165 ALSA_HEADER_FOUND=0
16171 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16172 if test ! -z "${ALSA_MANDATORY}" ;
16173 then
16174 { echo "$as_me:$LINENO: ***" >&5
16175 echo "$as_me: ***" >&6;}
16176 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16177 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16178 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16179 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16180 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16181 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16182 exit 1
16184 ALSA_LIB=""
16185 ALSA_INCLUDE=""
16186 PBX_ALSA=0
16187 else
16188 PBX_ALSA=1
16190 cat >>confdefs.h <<_ACEOF
16191 #define HAVE_ALSA 1
16192 _ACEOF
16195 elif test ! -z "${ALSA_MANDATORY}";
16196 then
16197 { echo "$as_me:$LINENO: ***" >&5
16198 echo "$as_me: ***" >&6;}
16199 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16200 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16201 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16202 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16203 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16204 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16205 exit 1
16211 if test "${USE_CURSES}" != "no"; then
16212 pbxlibdir=""
16213 if test "x${CURSES_DIR}" != "x"; then
16214 if test -d ${CURSES_DIR}/lib; then
16215 pbxlibdir="-L${CURSES_DIR}/lib"
16216 else
16217 pbxlibdir="-L${CURSES_DIR}"
16220 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16221 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16222 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 else
16225 ac_check_lib_save_LIBS=$LIBS
16226 LIBS="-lcurses ${pbxlibdir} $LIBS"
16227 cat >conftest.$ac_ext <<_ACEOF
16228 /* confdefs.h. */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16234 /* Override any GCC internal prototype to avoid an error.
16235 Use char because int might match the return type of a GCC
16236 builtin and then its argument prototype would still apply. */
16237 #ifdef __cplusplus
16238 extern "C"
16239 #endif
16240 char initscr ();
16242 main ()
16244 return initscr ();
16246 return 0;
16248 _ACEOF
16249 rm -f conftest.$ac_objext conftest$ac_exeext
16250 if { (ac_try="$ac_link"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16254 esac
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_link") 2>conftest.er1
16257 ac_status=$?
16258 grep -v '^ *+' conftest.er1 >conftest.err
16259 rm -f conftest.er1
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } && {
16263 test -z "$ac_c_werror_flag" ||
16264 test ! -s conftest.err
16265 } && test -s conftest$ac_exeext &&
16266 $as_test_x conftest$ac_exeext; then
16267 ac_cv_lib_curses_initscr=yes
16268 else
16269 echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16272 ac_cv_lib_curses_initscr=no
16275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16276 conftest$ac_exeext conftest.$ac_ext
16277 LIBS=$ac_check_lib_save_LIBS
16279 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16280 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16281 if test $ac_cv_lib_curses_initscr = yes; then
16282 AST_CURSES_FOUND=yes
16283 else
16284 AST_CURSES_FOUND=no
16288 if test "${AST_CURSES_FOUND}" = "yes"; then
16289 CURSES_LIB="-lcurses "
16290 CURSES_HEADER_FOUND="1"
16291 if test "x${CURSES_DIR}" != "x"; then
16292 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16293 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16294 saved_cppflags="${CPPFLAGS}"
16295 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16296 if test "xcurses.h" != "x" ; then
16297 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
16298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16299 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16300 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16304 ac_res=`eval echo '${'$as_ac_Header'}'`
16305 { echo "$as_me:$LINENO: result: $ac_res" >&5
16306 echo "${ECHO_T}$ac_res" >&6; }
16307 else
16308 # Is the header compilable?
16309 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16310 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16311 cat >conftest.$ac_ext <<_ACEOF
16312 /* confdefs.h. */
16313 _ACEOF
16314 cat confdefs.h >>conftest.$ac_ext
16315 cat >>conftest.$ac_ext <<_ACEOF
16316 /* end confdefs.h. */
16317 $ac_includes_default
16318 #include <${CURSES_DIR}/include/curses.h>
16319 _ACEOF
16320 rm -f conftest.$ac_objext
16321 if { (ac_try="$ac_compile"
16322 case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16325 esac
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_compile") 2>conftest.er1
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } && {
16334 test -z "$ac_c_werror_flag" ||
16335 test ! -s conftest.err
16336 } && test -s conftest.$ac_objext; then
16337 ac_header_compiler=yes
16338 else
16339 echo "$as_me: failed program was:" >&5
16340 sed 's/^/| /' conftest.$ac_ext >&5
16342 ac_header_compiler=no
16345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16347 echo "${ECHO_T}$ac_header_compiler" >&6; }
16349 # Is the header present?
16350 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16351 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16352 cat >conftest.$ac_ext <<_ACEOF
16353 /* confdefs.h. */
16354 _ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16358 #include <${CURSES_DIR}/include/curses.h>
16359 _ACEOF
16360 if { (ac_try="$ac_cpp conftest.$ac_ext"
16361 case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16364 esac
16365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16367 ac_status=$?
16368 grep -v '^ *+' conftest.er1 >conftest.err
16369 rm -f conftest.er1
16370 cat conftest.err >&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } >/dev/null && {
16373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16374 test ! -s conftest.err
16375 }; then
16376 ac_header_preproc=yes
16377 else
16378 echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16381 ac_header_preproc=no
16384 rm -f conftest.err conftest.$ac_ext
16385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16386 echo "${ECHO_T}$ac_header_preproc" >&6; }
16388 # So? What about this header?
16389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16390 yes:no: )
16391 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16392 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16393 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16394 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16395 ac_header_preproc=yes
16397 no:yes:* )
16398 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16399 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16401 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16403 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16404 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16405 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16406 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16407 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16408 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16409 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16412 esac
16413 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16414 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16416 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 else
16418 eval "$as_ac_Header=\$ac_header_preproc"
16420 ac_res=`eval echo '${'$as_ac_Header'}'`
16421 { echo "$as_me:$LINENO: result: $ac_res" >&5
16422 echo "${ECHO_T}$ac_res" >&6; }
16425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16426 CURSES_HEADER_FOUND=1
16427 else
16428 CURSES_HEADER_FOUND=0
16433 CPPFLAGS="${saved_cppflags}"
16434 else
16435 if test "xcurses.h" != "x" ; then
16436 if test "${ac_cv_header_curses_h+set}" = set; then
16437 { echo "$as_me:$LINENO: checking for curses.h" >&5
16438 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16439 if test "${ac_cv_header_curses_h+set}" = set; then
16440 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16443 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16444 else
16445 # Is the header compilable?
16446 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16447 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16448 cat >conftest.$ac_ext <<_ACEOF
16449 /* confdefs.h. */
16450 _ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h. */
16454 $ac_includes_default
16455 #include <curses.h>
16456 _ACEOF
16457 rm -f conftest.$ac_objext
16458 if { (ac_try="$ac_compile"
16459 case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_compile") 2>conftest.er1
16465 ac_status=$?
16466 grep -v '^ *+' conftest.er1 >conftest.err
16467 rm -f conftest.er1
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } && {
16471 test -z "$ac_c_werror_flag" ||
16472 test ! -s conftest.err
16473 } && test -s conftest.$ac_objext; then
16474 ac_header_compiler=yes
16475 else
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 ac_header_compiler=no
16482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16484 echo "${ECHO_T}$ac_header_compiler" >&6; }
16486 # Is the header present?
16487 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16488 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16489 cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h. */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16495 #include <curses.h>
16496 _ACEOF
16497 if { (ac_try="$ac_cpp conftest.$ac_ext"
16498 case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16501 esac
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16504 ac_status=$?
16505 grep -v '^ *+' conftest.er1 >conftest.err
16506 rm -f conftest.er1
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } >/dev/null && {
16510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16511 test ! -s conftest.err
16512 }; then
16513 ac_header_preproc=yes
16514 else
16515 echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.$ac_ext >&5
16518 ac_header_preproc=no
16521 rm -f conftest.err conftest.$ac_ext
16522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16523 echo "${ECHO_T}$ac_header_preproc" >&6; }
16525 # So? What about this header?
16526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16527 yes:no: )
16528 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16529 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16530 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16531 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16532 ac_header_preproc=yes
16534 no:yes:* )
16535 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16536 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16537 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16538 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16539 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16540 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16541 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16542 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16543 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16544 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16545 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16546 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16549 esac
16550 { echo "$as_me:$LINENO: checking for curses.h" >&5
16551 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16552 if test "${ac_cv_header_curses_h+set}" = set; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 else
16555 ac_cv_header_curses_h=$ac_header_preproc
16557 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16558 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16561 if test $ac_cv_header_curses_h = yes; then
16562 CURSES_HEADER_FOUND=1
16563 else
16564 CURSES_HEADER_FOUND=0
16570 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16571 if test ! -z "${CURSES_MANDATORY}" ;
16572 then
16573 { echo "$as_me:$LINENO: ***" >&5
16574 echo "$as_me: ***" >&6;}
16575 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16576 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16577 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16578 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16579 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16580 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16581 exit 1
16583 CURSES_LIB=""
16584 CURSES_INCLUDE=""
16585 PBX_CURSES=0
16586 else
16587 PBX_CURSES=1
16589 cat >>confdefs.h <<_ACEOF
16590 #define HAVE_CURSES 1
16591 _ACEOF
16594 elif test ! -z "${CURSES_MANDATORY}";
16595 then
16596 { echo "$as_me:$LINENO: ***" >&5
16597 echo "$as_me: ***" >&6;}
16598 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16599 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16600 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16601 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16602 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16603 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16604 exit 1
16609 GSM_INTERNAL="yes"
16611 GSM_SYSTEM="yes"
16612 if test "${USE_GSM}" != "no"; then
16613 if test "${GSM_DIR}" = "internal"; then
16614 GSM_SYSTEM="no"
16615 elif test "${GSM_DIR}" != ""; then
16616 GSM_INTERNAL="no"
16618 if test "${GSM_SYSTEM}" = "yes"; then
16619 gsmlibdir=""
16620 if test "x${GSM_DIR}" != "x"; then
16621 if test -d ${GSM_DIR}/lib; then
16622 gsmlibdir="-L${GSM_DIR}/lib"
16623 else
16624 gsmlibdir="-L${GSM_DIR}"
16627 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
16628 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
16629 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 else
16632 ac_check_lib_save_LIBS=$LIBS
16633 LIBS="-lgsm ${gsmlibdir} $LIBS"
16634 cat >conftest.$ac_ext <<_ACEOF
16635 /* confdefs.h. */
16636 _ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16641 /* Override any GCC internal prototype to avoid an error.
16642 Use char because int might match the return type of a GCC
16643 builtin and then its argument prototype would still apply. */
16644 #ifdef __cplusplus
16645 extern "C"
16646 #endif
16647 char gsm_create ();
16649 main ()
16651 return gsm_create ();
16653 return 0;
16655 _ACEOF
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (ac_try="$ac_link"
16658 case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661 esac
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_link") 2>conftest.er1
16664 ac_status=$?
16665 grep -v '^ *+' conftest.er1 >conftest.err
16666 rm -f conftest.er1
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } && {
16670 test -z "$ac_c_werror_flag" ||
16671 test ! -s conftest.err
16672 } && test -s conftest$ac_exeext &&
16673 $as_test_x conftest$ac_exeext; then
16674 ac_cv_lib_gsm_gsm_create=yes
16675 else
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16679 ac_cv_lib_gsm_gsm_create=no
16682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16683 conftest$ac_exeext conftest.$ac_ext
16684 LIBS=$ac_check_lib_save_LIBS
16686 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
16687 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16688 if test $ac_cv_lib_gsm_gsm_create = yes; then
16690 cat >>confdefs.h <<_ACEOF
16691 #define HAVE_GSM 1
16692 _ACEOF
16696 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16697 GSM_LIB="-lgsm"
16698 if test "x${GSM_DIR}" != "x"; then
16699 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
16700 GSM_INCLUDE="-I${GSM_DIR}/include"
16702 PBX_GSM=1
16703 GSM_INTERNAL="no"
16706 if test "${GSM_INTERNAL}" = "yes"; then
16707 PBX_GSM=1
16712 if test "${USE_IKSEMEL}" != "no"; then
16713 pbxlibdir=""
16714 if test "x${IKSEMEL_DIR}" != "x"; then
16715 if test -d ${IKSEMEL_DIR}/lib; then
16716 pbxlibdir="-L${IKSEMEL_DIR}/lib"
16717 else
16718 pbxlibdir="-L${IKSEMEL_DIR}"
16721 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
16722 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
16723 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
16724 echo $ECHO_N "(cached) $ECHO_C" >&6
16725 else
16726 ac_check_lib_save_LIBS=$LIBS
16727 LIBS="-liksemel ${pbxlibdir} $LIBS"
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h. */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16735 /* Override any GCC internal prototype to avoid an error.
16736 Use char because int might match the return type of a GCC
16737 builtin and then its argument prototype would still apply. */
16738 #ifdef __cplusplus
16739 extern "C"
16740 #endif
16741 char iks_start_sasl ();
16743 main ()
16745 return iks_start_sasl ();
16747 return 0;
16749 _ACEOF
16750 rm -f conftest.$ac_objext conftest$ac_exeext
16751 if { (ac_try="$ac_link"
16752 case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16755 esac
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_link") 2>conftest.er1
16758 ac_status=$?
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } && {
16764 test -z "$ac_c_werror_flag" ||
16765 test ! -s conftest.err
16766 } && test -s conftest$ac_exeext &&
16767 $as_test_x conftest$ac_exeext; then
16768 ac_cv_lib_iksemel_iks_start_sasl=yes
16769 else
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 ac_cv_lib_iksemel_iks_start_sasl=no
16776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16777 conftest$ac_exeext conftest.$ac_ext
16778 LIBS=$ac_check_lib_save_LIBS
16780 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16781 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16782 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16783 AST_IKSEMEL_FOUND=yes
16784 else
16785 AST_IKSEMEL_FOUND=no
16789 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16790 IKSEMEL_LIB="-liksemel "
16791 IKSEMEL_HEADER_FOUND="1"
16792 if test "x${IKSEMEL_DIR}" != "x"; then
16793 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16794 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
16795 saved_cppflags="${CPPFLAGS}"
16796 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
16797 if test "xiksemel.h" != "x" ; then
16798 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
16799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16800 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16801 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16805 ac_res=`eval echo '${'$as_ac_Header'}'`
16806 { echo "$as_me:$LINENO: result: $ac_res" >&5
16807 echo "${ECHO_T}$ac_res" >&6; }
16808 else
16809 # Is the header compilable?
16810 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
16811 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
16812 cat >conftest.$ac_ext <<_ACEOF
16813 /* confdefs.h. */
16814 _ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h. */
16818 $ac_includes_default
16819 #include <${IKSEMEL_DIR}/include/iksemel.h>
16820 _ACEOF
16821 rm -f conftest.$ac_objext
16822 if { (ac_try="$ac_compile"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826 esac
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_compile") 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } && {
16835 test -z "$ac_c_werror_flag" ||
16836 test ! -s conftest.err
16837 } && test -s conftest.$ac_objext; then
16838 ac_header_compiler=yes
16839 else
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 ac_header_compiler=no
16846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16848 echo "${ECHO_T}$ac_header_compiler" >&6; }
16850 # Is the header present?
16851 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
16852 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
16853 cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h. */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 #include <${IKSEMEL_DIR}/include/iksemel.h>
16860 _ACEOF
16861 if { (ac_try="$ac_cpp conftest.$ac_ext"
16862 case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16865 esac
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16868 ac_status=$?
16869 grep -v '^ *+' conftest.er1 >conftest.err
16870 rm -f conftest.er1
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } >/dev/null && {
16874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16875 test ! -s conftest.err
16876 }; then
16877 ac_header_preproc=yes
16878 else
16879 echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16882 ac_header_preproc=no
16885 rm -f conftest.err conftest.$ac_ext
16886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16887 echo "${ECHO_T}$ac_header_preproc" >&6; }
16889 # So? What about this header?
16890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16891 yes:no: )
16892 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16893 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16894 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
16895 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
16896 ac_header_preproc=yes
16898 no:yes:* )
16899 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
16900 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
16901 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
16902 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
16903 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
16904 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16906 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16907 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
16908 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
16910 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
16913 esac
16914 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16915 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16917 echo $ECHO_N "(cached) $ECHO_C" >&6
16918 else
16919 eval "$as_ac_Header=\$ac_header_preproc"
16921 ac_res=`eval echo '${'$as_ac_Header'}'`
16922 { echo "$as_me:$LINENO: result: $ac_res" >&5
16923 echo "${ECHO_T}$ac_res" >&6; }
16926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16927 IKSEMEL_HEADER_FOUND=1
16928 else
16929 IKSEMEL_HEADER_FOUND=0
16934 CPPFLAGS="${saved_cppflags}"
16935 else
16936 if test "xiksemel.h" != "x" ; then
16937 if test "${ac_cv_header_iksemel_h+set}" = set; then
16938 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16939 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16940 if test "${ac_cv_header_iksemel_h+set}" = set; then
16941 echo $ECHO_N "(cached) $ECHO_C" >&6
16943 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16944 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16945 else
16946 # Is the header compilable?
16947 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
16948 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
16949 cat >conftest.$ac_ext <<_ACEOF
16950 /* confdefs.h. */
16951 _ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h. */
16955 $ac_includes_default
16956 #include <iksemel.h>
16957 _ACEOF
16958 rm -f conftest.$ac_objext
16959 if { (ac_try="$ac_compile"
16960 case "(($ac_try" in
16961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962 *) ac_try_echo=$ac_try;;
16963 esac
16964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16965 (eval "$ac_compile") 2>conftest.er1
16966 ac_status=$?
16967 grep -v '^ *+' conftest.er1 >conftest.err
16968 rm -f conftest.er1
16969 cat conftest.err >&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); } && {
16972 test -z "$ac_c_werror_flag" ||
16973 test ! -s conftest.err
16974 } && test -s conftest.$ac_objext; then
16975 ac_header_compiler=yes
16976 else
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 ac_header_compiler=no
16983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16985 echo "${ECHO_T}$ac_header_compiler" >&6; }
16987 # Is the header present?
16988 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
16989 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
16990 cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h. */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 #include <iksemel.h>
16997 _ACEOF
16998 if { (ac_try="$ac_cpp conftest.$ac_ext"
16999 case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17002 esac
17003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17005 ac_status=$?
17006 grep -v '^ *+' conftest.er1 >conftest.err
17007 rm -f conftest.er1
17008 cat conftest.err >&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); } >/dev/null && {
17011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17012 test ! -s conftest.err
17013 }; then
17014 ac_header_preproc=yes
17015 else
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17019 ac_header_preproc=no
17022 rm -f conftest.err conftest.$ac_ext
17023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17024 echo "${ECHO_T}$ac_header_preproc" >&6; }
17026 # So? What about this header?
17027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17028 yes:no: )
17029 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
17030 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
17032 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
17033 ac_header_preproc=yes
17035 no:yes:* )
17036 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
17037 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
17038 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
17039 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
17040 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
17041 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
17042 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
17043 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
17044 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
17045 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
17046 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
17047 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
17050 esac
17051 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
17052 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
17053 if test "${ac_cv_header_iksemel_h+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 else
17056 ac_cv_header_iksemel_h=$ac_header_preproc
17058 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
17059 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
17062 if test $ac_cv_header_iksemel_h = yes; then
17063 IKSEMEL_HEADER_FOUND=1
17064 else
17065 IKSEMEL_HEADER_FOUND=0
17071 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
17072 if test ! -z "${IKSEMEL_MANDATORY}" ;
17073 then
17074 { echo "$as_me:$LINENO: ***" >&5
17075 echo "$as_me: ***" >&6;}
17076 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
17077 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
17078 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
17079 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
17080 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
17081 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
17082 exit 1
17084 IKSEMEL_LIB=""
17085 IKSEMEL_INCLUDE=""
17086 PBX_IKSEMEL=0
17087 else
17088 PBX_IKSEMEL=1
17090 cat >>confdefs.h <<_ACEOF
17091 #define HAVE_IKSEMEL 1
17092 _ACEOF
17095 elif test ! -z "${IKSEMEL_MANDATORY}";
17096 then
17097 { echo "$as_me:$LINENO: ***" >&5
17098 echo "$as_me: ***" >&6;}
17099 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
17100 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
17101 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17102 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17103 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
17104 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
17105 exit 1
17110 if test "${PBX_IKSEMEL}" = 1; then
17112 if test "${USE_GNUTLS}" != "no"; then
17113 pbxlibdir=""
17114 if test "x${GNUTLS_DIR}" != "x"; then
17115 if test -d ${GNUTLS_DIR}/lib; then
17116 pbxlibdir="-L${GNUTLS_DIR}/lib"
17117 else
17118 pbxlibdir="-L${GNUTLS_DIR}"
17121 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
17122 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
17123 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
17124 echo $ECHO_N "(cached) $ECHO_C" >&6
17125 else
17126 ac_check_lib_save_LIBS=$LIBS
17127 LIBS="-lgnutls ${pbxlibdir} $LIBS"
17128 cat >conftest.$ac_ext <<_ACEOF
17129 /* confdefs.h. */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17135 /* Override any GCC internal prototype to avoid an error.
17136 Use char because int might match the return type of a GCC
17137 builtin and then its argument prototype would still apply. */
17138 #ifdef __cplusplus
17139 extern "C"
17140 #endif
17141 char gnutls_bye ();
17143 main ()
17145 return gnutls_bye ();
17147 return 0;
17149 _ACEOF
17150 rm -f conftest.$ac_objext conftest$ac_exeext
17151 if { (ac_try="$ac_link"
17152 case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17155 esac
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_link") 2>conftest.er1
17158 ac_status=$?
17159 grep -v '^ *+' conftest.er1 >conftest.err
17160 rm -f conftest.er1
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } && {
17164 test -z "$ac_c_werror_flag" ||
17165 test ! -s conftest.err
17166 } && test -s conftest$ac_exeext &&
17167 $as_test_x conftest$ac_exeext; then
17168 ac_cv_lib_gnutls_gnutls_bye=yes
17169 else
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17173 ac_cv_lib_gnutls_gnutls_bye=no
17176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17177 conftest$ac_exeext conftest.$ac_ext
17178 LIBS=$ac_check_lib_save_LIBS
17180 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
17181 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
17182 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
17183 AST_GNUTLS_FOUND=yes
17184 else
17185 AST_GNUTLS_FOUND=no
17189 if test "${AST_GNUTLS_FOUND}" = "yes"; then
17190 GNUTLS_LIB="-lgnutls "
17191 GNUTLS_HEADER_FOUND="1"
17192 if test "x${GNUTLS_DIR}" != "x"; then
17193 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
17194 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
17195 saved_cppflags="${CPPFLAGS}"
17196 CPPFLAGS="${CPPFLAGS} -I${GNUTLS_DIR}/include"
17197 if test "x" != "x" ; then
17198 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/" | $as_tr_sh`
17199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17200 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
17201 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
17202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 ac_res=`eval echo '${'$as_ac_Header'}'`
17206 { echo "$as_me:$LINENO: result: $ac_res" >&5
17207 echo "${ECHO_T}$ac_res" >&6; }
17208 else
17209 # Is the header compilable?
17210 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ usability" >&5
17211 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ usability... $ECHO_C" >&6; }
17212 cat >conftest.$ac_ext <<_ACEOF
17213 /* confdefs.h. */
17214 _ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17218 $ac_includes_default
17219 #include <${GNUTLS_DIR}/include/>
17220 _ACEOF
17221 rm -f conftest.$ac_objext
17222 if { (ac_try="$ac_compile"
17223 case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_compile") 2>conftest.er1
17229 ac_status=$?
17230 grep -v '^ *+' conftest.er1 >conftest.err
17231 rm -f conftest.er1
17232 cat conftest.err >&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } && {
17235 test -z "$ac_c_werror_flag" ||
17236 test ! -s conftest.err
17237 } && test -s conftest.$ac_objext; then
17238 ac_header_compiler=yes
17239 else
17240 echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17243 ac_header_compiler=no
17246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17248 echo "${ECHO_T}$ac_header_compiler" >&6; }
17250 # Is the header present?
17251 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ presence" >&5
17252 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ presence... $ECHO_C" >&6; }
17253 cat >conftest.$ac_ext <<_ACEOF
17254 /* confdefs.h. */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17259 #include <${GNUTLS_DIR}/include/>
17260 _ACEOF
17261 if { (ac_try="$ac_cpp conftest.$ac_ext"
17262 case "(($ac_try" in
17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264 *) ac_try_echo=$ac_try;;
17265 esac
17266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17268 ac_status=$?
17269 grep -v '^ *+' conftest.er1 >conftest.err
17270 rm -f conftest.er1
17271 cat conftest.err >&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } >/dev/null && {
17274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17275 test ! -s conftest.err
17276 }; then
17277 ac_header_preproc=yes
17278 else
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_header_preproc=no
17285 rm -f conftest.err conftest.$ac_ext
17286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17287 echo "${ECHO_T}$ac_header_preproc" >&6; }
17289 # So? What about this header?
17290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17291 yes:no: )
17292 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
17293 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
17294 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&5
17295 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&2;}
17296 ac_header_preproc=yes
17298 no:yes:* )
17299 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&5
17300 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&2;}
17301 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&5
17302 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&2;}
17303 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&5
17304 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&2;}
17305 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
17306 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
17307 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&5
17308 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&2;}
17309 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&5
17310 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&2;}
17313 esac
17314 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
17315 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
17316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319 eval "$as_ac_Header=\$ac_header_preproc"
17321 ac_res=`eval echo '${'$as_ac_Header'}'`
17322 { echo "$as_me:$LINENO: result: $ac_res" >&5
17323 echo "${ECHO_T}$ac_res" >&6; }
17326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17327 GNUTLS_HEADER_FOUND=1
17328 else
17329 GNUTLS_HEADER_FOUND=0
17334 CPPFLAGS="${saved_cppflags}"
17335 else
17336 if test "x" != "x" ; then
17337 if test "${ac_cv_header_+set}" = set; then
17338 { echo "$as_me:$LINENO: checking for " >&5
17339 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
17340 if test "${ac_cv_header_+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
17344 echo "${ECHO_T}$ac_cv_header_" >&6; }
17345 else
17346 # Is the header compilable?
17347 { echo "$as_me:$LINENO: checking usability" >&5
17348 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
17349 cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h. */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17355 $ac_includes_default
17356 #include <>
17357 _ACEOF
17358 rm -f conftest.$ac_objext
17359 if { (ac_try="$ac_compile"
17360 case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17363 esac
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365 (eval "$ac_compile") 2>conftest.er1
17366 ac_status=$?
17367 grep -v '^ *+' conftest.er1 >conftest.err
17368 rm -f conftest.er1
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } && {
17372 test -z "$ac_c_werror_flag" ||
17373 test ! -s conftest.err
17374 } && test -s conftest.$ac_objext; then
17375 ac_header_compiler=yes
17376 else
17377 echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17380 ac_header_compiler=no
17383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17385 echo "${ECHO_T}$ac_header_compiler" >&6; }
17387 # Is the header present?
17388 { echo "$as_me:$LINENO: checking presence" >&5
17389 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
17390 cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h. */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396 #include <>
17397 _ACEOF
17398 if { (ac_try="$ac_cpp conftest.$ac_ext"
17399 case "(($ac_try" in
17400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401 *) ac_try_echo=$ac_try;;
17402 esac
17403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17405 ac_status=$?
17406 grep -v '^ *+' conftest.er1 >conftest.err
17407 rm -f conftest.er1
17408 cat conftest.err >&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } >/dev/null && {
17411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17412 test ! -s conftest.err
17413 }; then
17414 ac_header_preproc=yes
17415 else
17416 echo "$as_me: failed program was:" >&5
17417 sed 's/^/| /' conftest.$ac_ext >&5
17419 ac_header_preproc=no
17422 rm -f conftest.err conftest.$ac_ext
17423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17424 echo "${ECHO_T}$ac_header_preproc" >&6; }
17426 # So? What about this header?
17427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17428 yes:no: )
17429 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
17430 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
17431 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
17432 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
17433 ac_header_preproc=yes
17435 no:yes:* )
17436 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
17437 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
17438 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
17439 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
17440 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
17441 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
17442 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
17443 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
17444 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
17445 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
17446 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
17447 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
17450 esac
17451 { echo "$as_me:$LINENO: checking for " >&5
17452 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
17453 if test "${ac_cv_header_+set}" = set; then
17454 echo $ECHO_N "(cached) $ECHO_C" >&6
17455 else
17456 ac_cv_header_=$ac_header_preproc
17458 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
17459 echo "${ECHO_T}$ac_cv_header_" >&6; }
17462 if test $ac_cv_header_ = yes; then
17463 GNUTLS_HEADER_FOUND=1
17464 else
17465 GNUTLS_HEADER_FOUND=0
17471 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
17472 if test ! -z "${GNUTLS_MANDATORY}" ;
17473 then
17474 { echo "$as_me:$LINENO: ***" >&5
17475 echo "$as_me: ***" >&6;}
17476 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
17477 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
17478 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
17479 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
17480 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
17481 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
17482 exit 1
17484 GNUTLS_LIB=""
17485 GNUTLS_INCLUDE=""
17486 PBX_GNUTLS=0
17487 else
17488 PBX_GNUTLS=1
17490 cat >>confdefs.h <<_ACEOF
17491 #define HAVE_GNUTLS 1
17492 _ACEOF
17495 elif test ! -z "${GNUTLS_MANDATORY}";
17496 then
17497 { echo "$as_me:$LINENO: ***" >&5
17498 echo "$as_me: ***" >&6;}
17499 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
17500 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
17501 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17502 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17503 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
17504 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
17505 exit 1
17509 if test "${PBX_GNUTLS}" = 1; then
17510 IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
17514 if test "${USE_IMAP_TK}" != "no"; then
17515 if test "${IMAP_TK_DIR}" = ""; then
17516 IMAP_TK_DIR=`pwd`"/../imap-2004g"
17518 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
17519 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
17520 saved_cppflags="${CPPFLAGS}"
17521 saved_libs="${LIBS}"
17522 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
17523 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
17525 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
17526 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17527 cat >conftest.$ac_ext <<_ACEOF
17528 /* confdefs.h. */
17529 _ACEOF
17530 cat confdefs.h >>conftest.$ac_ext
17531 cat >>conftest.$ac_ext <<_ACEOF
17532 /* end confdefs.h. */
17533 #include "c-client.h"
17534 void mm_searched (MAILSTREAM *stream,unsigned long number)
17537 void mm_exists (MAILSTREAM *stream,unsigned long number)
17540 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17543 void mm_flags (MAILSTREAM *stream,unsigned long number)
17546 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17549 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17552 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17555 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17558 void mm_log (char *string,long errflg)
17561 void mm_dlog (char *string)
17564 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17567 void mm_critical (MAILSTREAM *stream)
17570 void mm_nocritical (MAILSTREAM *stream)
17573 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17576 void mm_fatal (char *string)
17580 main ()
17583 MAILSTREAM *foo = mail_open(NULL, "", 0);
17587 return 0;
17589 _ACEOF
17590 rm -f conftest.$ac_objext conftest$ac_exeext
17591 if { (ac_try="$ac_link"
17592 case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17595 esac
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_link") 2>conftest.er1
17598 ac_status=$?
17599 grep -v '^ *+' conftest.er1 >conftest.err
17600 rm -f conftest.er1
17601 cat conftest.err >&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); } && {
17604 test -z "$ac_c_werror_flag" ||
17605 test ! -s conftest.err
17606 } && test -s conftest$ac_exeext &&
17607 $as_test_x conftest$ac_exeext; then
17608 ac_cv_imap_tk="yes"
17609 else
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17613 ac_cv_imap_tk="no"
17617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17618 conftest$ac_exeext conftest.$ac_ext
17619 if test "${ac_cv_imap_tk}" = "yes"; then
17620 cat >conftest.$ac_ext <<_ACEOF
17621 /* confdefs.h. */
17622 _ACEOF
17623 cat confdefs.h >>conftest.$ac_ext
17624 cat >>conftest.$ac_ext <<_ACEOF
17625 /* end confdefs.h. */
17626 #include "c-client.h"
17627 void mm_searched (MAILSTREAM *stream,unsigned long number)
17630 void mm_exists (MAILSTREAM *stream,unsigned long number)
17633 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17636 void mm_flags (MAILSTREAM *stream,unsigned long number)
17639 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17642 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17645 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17648 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17651 void mm_log (char *string,long errflg)
17654 void mm_dlog (char *string)
17657 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17660 void mm_critical (MAILSTREAM *stream)
17663 void mm_nocritical (MAILSTREAM *stream)
17666 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17669 void mm_fatal (char *string)
17673 main ()
17676 long check = mail_expunge_full(NULL, "", 0);
17680 return 0;
17682 _ACEOF
17683 rm -f conftest.$ac_objext conftest$ac_exeext
17684 if { (ac_try="$ac_link"
17685 case "(($ac_try" in
17686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687 *) ac_try_echo=$ac_try;;
17688 esac
17689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17690 (eval "$ac_link") 2>conftest.er1
17691 ac_status=$?
17692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } && {
17697 test -z "$ac_c_werror_flag" ||
17698 test ! -s conftest.err
17699 } && test -s conftest$ac_exeext &&
17700 $as_test_x conftest$ac_exeext; then
17701 ac_cv_imap_tk2006="yes"
17702 else
17703 echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.$ac_ext >&5
17706 ac_cv_imap_tk2006="no"
17710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17711 conftest$ac_exeext conftest.$ac_ext
17713 CPPFLAGS="${saved_cppflags}"
17714 LIBS="${saved_libs}"
17715 if test "${ac_cv_imap_tk}" = "yes"; then
17716 { echo "$as_me:$LINENO: result: yes" >&5
17717 echo "${ECHO_T}yes" >&6; }
17718 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17719 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
17720 PBX_IMAP_TK=1
17722 cat >>confdefs.h <<\_ACEOF
17723 #define HAVE_IMAP_TK 1
17724 _ACEOF
17726 if test "${ac_cv_imap_tk2006}" = "yes"; then
17728 cat >>confdefs.h <<\_ACEOF
17729 #define HAVE_IMAP_TK2006 1
17730 _ACEOF
17733 elif test ! -z "${IMAP_TK_MANDATORY}"; then
17734 { echo "$as_me:$LINENO: result: no" >&5
17735 echo "${ECHO_T}no" >&6; }
17736 { echo "$as_me:$LINENO: ***" >&5
17737 echo "$as_me: ***" >&6;}
17738 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
17739 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
17740 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17741 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17742 { echo "$as_me:$LINENO: *** including --without-imap." >&5
17743 echo "$as_me: *** including --without-imap." >&6;}
17744 exit 1
17745 else
17746 { echo "$as_me:$LINENO: result: no" >&5
17747 echo "${ECHO_T}no" >&6; }
17751 ac_ext=cpp
17752 ac_cpp='$CXXCPP $CPPFLAGS'
17753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17758 if test "${USE_KDE}" != "no"; then
17759 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
17760 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
17761 saved_libs="${LIBS}"
17762 saved_cppflags="${CPPFLAGS}"
17763 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
17764 if test -d ${KDE_DIR}/lib; then
17765 kdelibdir="${KDE_DIR}/lib"
17766 else
17767 kdelibdir="${KDE_DIR}"
17769 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
17772 cat >conftest.$ac_ext <<_ACEOF
17773 /* confdefs.h. */
17774 _ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h. */
17778 #include "kcrash.h"
17780 main ()
17782 KCrash::defaultCrashHandler(1);
17784 return 0;
17787 _ACEOF
17788 rm -f conftest.$ac_objext conftest$ac_exeext
17789 if { (ac_try="$ac_link"
17790 case "(($ac_try" in
17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17793 esac
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795 (eval "$ac_link") 2>conftest.er1
17796 ac_status=$?
17797 grep -v '^ *+' conftest.er1 >conftest.err
17798 rm -f conftest.er1
17799 cat conftest.err >&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } && {
17802 test -z "$ac_cxx_werror_flag" ||
17803 test ! -s conftest.err
17804 } && test -s conftest$ac_exeext &&
17805 $as_test_x conftest$ac_exeext; then
17806 ac_cv_lib_kde_crash="yes"
17807 else
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17811 ac_cv_lib_kde_crash="no"
17814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17815 conftest$ac_exeext conftest.$ac_ext
17817 LIBS="${saved_libs}"
17818 CPPFLAGS="${saved_cppflags}"
17820 if test "${ac_cv_lib_kde_crash}" = "yes"; then
17821 { echo "$as_me:$LINENO: result: yes" >&5
17822 echo "${ECHO_T}yes" >&6; }
17823 KDE_LIB="-lkdecore -lkdeui"
17824 if test "${KDE_DIR}" != ""; then
17825 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
17826 KDE_INCLUDE="-I${KDE_DIR}/include"
17828 PBX_KDE=1
17830 cat >>confdefs.h <<\_ACEOF
17831 #define HAVE_LIBKDE 1
17832 _ACEOF
17834 elif test ! -z "${KDE_MANDATORY}"; then
17835 { echo "$as_me:$LINENO: result: no" >&5
17836 echo "${ECHO_T}no" >&6; }
17837 { echo "$as_me:$LINENO: ***" >&5
17838 echo "$as_me: ***" >&6;}
17839 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
17840 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
17841 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17842 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17843 { echo "$as_me:$LINENO: *** including --without-kde." >&5
17844 echo "$as_me: *** including --without-kde." >&6;}
17845 exit 1
17846 else
17847 { echo "$as_me:$LINENO: result: no" >&5
17848 echo "${ECHO_T}no" >&6; }
17851 if test "${PBX_KDE}" = 1; then
17852 if test -n "$ac_tool_prefix"; then
17853 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
17854 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
17855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17857 if test "${ac_cv_path_KDEINIT+set}" = set; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17859 else
17860 case $KDEINIT in
17861 [\\/]* | ?:[\\/]*)
17862 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
17865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17866 for as_dir in $PATH
17868 IFS=$as_save_IFS
17869 test -z "$as_dir" && as_dir=.
17870 for ac_exec_ext in '' $ac_executable_extensions; do
17871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17872 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17874 break 2
17876 done
17877 done
17878 IFS=$as_save_IFS
17881 esac
17883 KDEINIT=$ac_cv_path_KDEINIT
17884 if test -n "$KDEINIT"; then
17885 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
17886 echo "${ECHO_T}$KDEINIT" >&6; }
17887 else
17888 { echo "$as_me:$LINENO: result: no" >&5
17889 echo "${ECHO_T}no" >&6; }
17894 if test -z "$ac_cv_path_KDEINIT"; then
17895 ac_pt_KDEINIT=$KDEINIT
17896 # Extract the first word of "kdeinit", so it can be a program name with args.
17897 set dummy kdeinit; ac_word=$2
17898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17900 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903 case $ac_pt_KDEINIT in
17904 [\\/]* | ?:[\\/]*)
17905 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
17908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17909 for as_dir in $PATH
17911 IFS=$as_save_IFS
17912 test -z "$as_dir" && as_dir=.
17913 for ac_exec_ext in '' $ac_executable_extensions; do
17914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17915 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17917 break 2
17919 done
17920 done
17921 IFS=$as_save_IFS
17924 esac
17926 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
17927 if test -n "$ac_pt_KDEINIT"; then
17928 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
17929 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
17930 else
17931 { echo "$as_me:$LINENO: result: no" >&5
17932 echo "${ECHO_T}no" >&6; }
17935 if test "x$ac_pt_KDEINIT" = x; then
17936 KDEINIT="No"
17937 else
17938 case $cross_compiling:$ac_tool_warned in
17939 yes:)
17940 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17941 whose name does not start with the host triplet. If you think this
17942 configuration is useful to you, please write to autoconf@gnu.org." >&5
17943 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17944 whose name does not start with the host triplet. If you think this
17945 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17946 ac_tool_warned=yes ;;
17947 esac
17948 KDEINIT=$ac_pt_KDEINIT
17950 else
17951 KDEINIT="$ac_cv_path_KDEINIT"
17954 if test ! x"${KDEINIT}" = xNo; then
17955 KDEDIR=$(${DIRNAME} ${KDEINIT})
17956 KDEDIR=$(${DIRNAME} ${KDEDIR})
17961 ac_ext=c
17962 ac_cpp='$CPP $CPPFLAGS'
17963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17969 if test "${USE_MISDN}" != "no"; then
17970 pbxlibdir=""
17971 if test "x${MISDN_DIR}" != "x"; then
17972 if test -d ${MISDN_DIR}/lib; then
17973 pbxlibdir="-L${MISDN_DIR}/lib"
17974 else
17975 pbxlibdir="-L${MISDN_DIR}"
17978 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
17979 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
17980 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 else
17983 ac_check_lib_save_LIBS=$LIBS
17984 LIBS="-lmISDN ${pbxlibdir} $LIBS"
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. */
17992 /* Override any GCC internal prototype to avoid an error.
17993 Use char because int might match the return type of a GCC
17994 builtin and then its argument prototype would still apply. */
17995 #ifdef __cplusplus
17996 extern "C"
17997 #endif
17998 char mISDN_open ();
18000 main ()
18002 return mISDN_open ();
18004 return 0;
18006 _ACEOF
18007 rm -f conftest.$ac_objext conftest$ac_exeext
18008 if { (ac_try="$ac_link"
18009 case "(($ac_try" in
18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011 *) ac_try_echo=$ac_try;;
18012 esac
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014 (eval "$ac_link") 2>conftest.er1
18015 ac_status=$?
18016 grep -v '^ *+' conftest.er1 >conftest.err
18017 rm -f conftest.er1
18018 cat conftest.err >&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } && {
18021 test -z "$ac_c_werror_flag" ||
18022 test ! -s conftest.err
18023 } && test -s conftest$ac_exeext &&
18024 $as_test_x conftest$ac_exeext; then
18025 ac_cv_lib_mISDN_mISDN_open=yes
18026 else
18027 echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18030 ac_cv_lib_mISDN_mISDN_open=no
18033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18034 conftest$ac_exeext conftest.$ac_ext
18035 LIBS=$ac_check_lib_save_LIBS
18037 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
18038 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
18039 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
18040 AST_MISDN_FOUND=yes
18041 else
18042 AST_MISDN_FOUND=no
18046 if test "${AST_MISDN_FOUND}" = "yes"; then
18047 MISDN_LIB="-lmISDN "
18048 MISDN_HEADER_FOUND="1"
18049 if test "x${MISDN_DIR}" != "x"; then
18050 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
18051 MISDN_INCLUDE="-I${MISDN_DIR}/include"
18052 saved_cppflags="${CPPFLAGS}"
18053 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
18054 if test "xmISDNuser/mISDNlib.h" != "x" ; then
18055 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
18056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18057 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
18058 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
18059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18060 echo $ECHO_N "(cached) $ECHO_C" >&6
18062 ac_res=`eval echo '${'$as_ac_Header'}'`
18063 { echo "$as_me:$LINENO: result: $ac_res" >&5
18064 echo "${ECHO_T}$ac_res" >&6; }
18065 else
18066 # Is the header compilable?
18067 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
18068 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
18069 cat >conftest.$ac_ext <<_ACEOF
18070 /* confdefs.h. */
18071 _ACEOF
18072 cat confdefs.h >>conftest.$ac_ext
18073 cat >>conftest.$ac_ext <<_ACEOF
18074 /* end confdefs.h. */
18075 $ac_includes_default
18076 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
18077 _ACEOF
18078 rm -f conftest.$ac_objext
18079 if { (ac_try="$ac_compile"
18080 case "(($ac_try" in
18081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082 *) ac_try_echo=$ac_try;;
18083 esac
18084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18085 (eval "$ac_compile") 2>conftest.er1
18086 ac_status=$?
18087 grep -v '^ *+' conftest.er1 >conftest.err
18088 rm -f conftest.er1
18089 cat conftest.err >&5
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); } && {
18092 test -z "$ac_c_werror_flag" ||
18093 test ! -s conftest.err
18094 } && test -s conftest.$ac_objext; then
18095 ac_header_compiler=yes
18096 else
18097 echo "$as_me: failed program was:" >&5
18098 sed 's/^/| /' conftest.$ac_ext >&5
18100 ac_header_compiler=no
18103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18105 echo "${ECHO_T}$ac_header_compiler" >&6; }
18107 # Is the header present?
18108 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
18109 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
18110 cat >conftest.$ac_ext <<_ACEOF
18111 /* confdefs.h. */
18112 _ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h. */
18116 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
18117 _ACEOF
18118 if { (ac_try="$ac_cpp conftest.$ac_ext"
18119 case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18125 ac_status=$?
18126 grep -v '^ *+' conftest.er1 >conftest.err
18127 rm -f conftest.er1
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } >/dev/null && {
18131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18132 test ! -s conftest.err
18133 }; then
18134 ac_header_preproc=yes
18135 else
18136 echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18139 ac_header_preproc=no
18142 rm -f conftest.err conftest.$ac_ext
18143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18144 echo "${ECHO_T}$ac_header_preproc" >&6; }
18146 # So? What about this header?
18147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18148 yes:no: )
18149 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18150 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18151 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
18152 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
18153 ac_header_preproc=yes
18155 no:yes:* )
18156 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
18157 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
18158 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
18159 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
18160 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
18161 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
18162 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
18163 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18164 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
18165 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
18166 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
18167 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
18170 esac
18171 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
18172 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
18173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18175 else
18176 eval "$as_ac_Header=\$ac_header_preproc"
18178 ac_res=`eval echo '${'$as_ac_Header'}'`
18179 { echo "$as_me:$LINENO: result: $ac_res" >&5
18180 echo "${ECHO_T}$ac_res" >&6; }
18183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18184 MISDN_HEADER_FOUND=1
18185 else
18186 MISDN_HEADER_FOUND=0
18191 CPPFLAGS="${saved_cppflags}"
18192 else
18193 if test "xmISDNuser/mISDNlib.h" != "x" ; then
18194 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
18195 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
18196 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
18197 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18200 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
18201 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
18202 else
18203 # Is the header compilable?
18204 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
18205 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
18206 cat >conftest.$ac_ext <<_ACEOF
18207 /* confdefs.h. */
18208 _ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18212 $ac_includes_default
18213 #include <mISDNuser/mISDNlib.h>
18214 _ACEOF
18215 rm -f conftest.$ac_objext
18216 if { (ac_try="$ac_compile"
18217 case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18220 esac
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_compile") 2>conftest.er1
18223 ac_status=$?
18224 grep -v '^ *+' conftest.er1 >conftest.err
18225 rm -f conftest.er1
18226 cat conftest.err >&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } && {
18229 test -z "$ac_c_werror_flag" ||
18230 test ! -s conftest.err
18231 } && test -s conftest.$ac_objext; then
18232 ac_header_compiler=yes
18233 else
18234 echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18237 ac_header_compiler=no
18240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18242 echo "${ECHO_T}$ac_header_compiler" >&6; }
18244 # Is the header present?
18245 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
18246 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
18247 cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h. */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18253 #include <mISDNuser/mISDNlib.h>
18254 _ACEOF
18255 if { (ac_try="$ac_cpp conftest.$ac_ext"
18256 case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18259 esac
18260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18262 ac_status=$?
18263 grep -v '^ *+' conftest.er1 >conftest.err
18264 rm -f conftest.er1
18265 cat conftest.err >&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } >/dev/null && {
18268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18269 test ! -s conftest.err
18270 }; then
18271 ac_header_preproc=yes
18272 else
18273 echo "$as_me: failed program was:" >&5
18274 sed 's/^/| /' conftest.$ac_ext >&5
18276 ac_header_preproc=no
18279 rm -f conftest.err conftest.$ac_ext
18280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18281 echo "${ECHO_T}$ac_header_preproc" >&6; }
18283 # So? What about this header?
18284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18285 yes:no: )
18286 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18287 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18288 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
18289 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
18290 ac_header_preproc=yes
18292 no:yes:* )
18293 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
18294 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
18295 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
18296 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
18297 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
18298 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
18299 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
18300 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18301 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
18302 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
18303 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
18304 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
18307 esac
18308 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
18309 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
18310 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
18311 echo $ECHO_N "(cached) $ECHO_C" >&6
18312 else
18313 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
18315 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
18316 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
18319 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
18320 MISDN_HEADER_FOUND=1
18321 else
18322 MISDN_HEADER_FOUND=0
18328 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
18329 if test ! -z "${MISDN_MANDATORY}" ;
18330 then
18331 { echo "$as_me:$LINENO: ***" >&5
18332 echo "$as_me: ***" >&6;}
18333 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
18334 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
18335 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
18336 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
18337 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
18338 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
18339 exit 1
18341 MISDN_LIB=""
18342 MISDN_INCLUDE=""
18343 PBX_MISDN=0
18344 else
18345 PBX_MISDN=1
18347 cat >>confdefs.h <<_ACEOF
18348 #define HAVE_MISDN 1
18349 _ACEOF
18352 elif test ! -z "${MISDN_MANDATORY}";
18353 then
18354 { echo "$as_me:$LINENO: ***" >&5
18355 echo "$as_me: ***" >&6;}
18356 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
18357 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
18358 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18359 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18360 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
18361 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
18362 exit 1
18367 if test "${PBX_MISDN}" = 1; then
18369 if test "${USE_ISDNNET}" != "no"; then
18370 pbxlibdir=""
18371 if test "x${ISDNNET_DIR}" != "x"; then
18372 if test -d ${ISDNNET_DIR}/lib; then
18373 pbxlibdir="-L${ISDNNET_DIR}/lib"
18374 else
18375 pbxlibdir="-L${ISDNNET_DIR}"
18378 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
18379 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
18380 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 else
18383 ac_check_lib_save_LIBS=$LIBS
18384 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
18385 cat >conftest.$ac_ext <<_ACEOF
18386 /* confdefs.h. */
18387 _ACEOF
18388 cat confdefs.h >>conftest.$ac_ext
18389 cat >>conftest.$ac_ext <<_ACEOF
18390 /* end confdefs.h. */
18392 /* Override any GCC internal prototype to avoid an error.
18393 Use char because int might match the return type of a GCC
18394 builtin and then its argument prototype would still apply. */
18395 #ifdef __cplusplus
18396 extern "C"
18397 #endif
18398 char init_manager ();
18400 main ()
18402 return init_manager ();
18404 return 0;
18406 _ACEOF
18407 rm -f conftest.$ac_objext conftest$ac_exeext
18408 if { (ac_try="$ac_link"
18409 case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18412 esac
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_link") 2>conftest.er1
18415 ac_status=$?
18416 grep -v '^ *+' conftest.er1 >conftest.err
18417 rm -f conftest.er1
18418 cat conftest.err >&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } && {
18421 test -z "$ac_c_werror_flag" ||
18422 test ! -s conftest.err
18423 } && test -s conftest$ac_exeext &&
18424 $as_test_x conftest$ac_exeext; then
18425 ac_cv_lib_isdnnet_init_manager=yes
18426 else
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18430 ac_cv_lib_isdnnet_init_manager=no
18433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18434 conftest$ac_exeext conftest.$ac_ext
18435 LIBS=$ac_check_lib_save_LIBS
18437 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
18438 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
18439 if test $ac_cv_lib_isdnnet_init_manager = yes; then
18440 AST_ISDNNET_FOUND=yes
18441 else
18442 AST_ISDNNET_FOUND=no
18446 if test "${AST_ISDNNET_FOUND}" = "yes"; then
18447 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
18448 ISDNNET_HEADER_FOUND="1"
18449 if test "x${ISDNNET_DIR}" != "x"; then
18450 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
18451 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
18452 saved_cppflags="${CPPFLAGS}"
18453 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include"
18454 if test "xmISDNuser/isdn_net.h" != "x" ; then
18455 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
18456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18457 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18458 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 ac_res=`eval echo '${'$as_ac_Header'}'`
18463 { echo "$as_me:$LINENO: result: $ac_res" >&5
18464 echo "${ECHO_T}$ac_res" >&6; }
18465 else
18466 # Is the header compilable?
18467 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
18468 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18469 cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h. */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 $ac_includes_default
18476 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
18477 _ACEOF
18478 rm -f conftest.$ac_objext
18479 if { (ac_try="$ac_compile"
18480 case "(($ac_try" in
18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482 *) ac_try_echo=$ac_try;;
18483 esac
18484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485 (eval "$ac_compile") 2>conftest.er1
18486 ac_status=$?
18487 grep -v '^ *+' conftest.er1 >conftest.err
18488 rm -f conftest.er1
18489 cat conftest.err >&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } && {
18492 test -z "$ac_c_werror_flag" ||
18493 test ! -s conftest.err
18494 } && test -s conftest.$ac_objext; then
18495 ac_header_compiler=yes
18496 else
18497 echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18500 ac_header_compiler=no
18503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18505 echo "${ECHO_T}$ac_header_compiler" >&6; }
18507 # Is the header present?
18508 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
18509 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18510 cat >conftest.$ac_ext <<_ACEOF
18511 /* confdefs.h. */
18512 _ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18516 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
18517 _ACEOF
18518 if { (ac_try="$ac_cpp conftest.$ac_ext"
18519 case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18522 esac
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18525 ac_status=$?
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } >/dev/null && {
18531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18532 test ! -s conftest.err
18533 }; then
18534 ac_header_preproc=yes
18535 else
18536 echo "$as_me: failed program was:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18539 ac_header_preproc=no
18542 rm -f conftest.err conftest.$ac_ext
18543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18544 echo "${ECHO_T}$ac_header_preproc" >&6; }
18546 # So? What about this header?
18547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18548 yes:no: )
18549 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18550 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18551 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18552 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18553 ac_header_preproc=yes
18555 no:yes:* )
18556 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18557 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18558 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18559 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18560 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18561 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18562 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18563 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18564 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18565 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18566 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18567 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18570 esac
18571 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18572 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 else
18576 eval "$as_ac_Header=\$ac_header_preproc"
18578 ac_res=`eval echo '${'$as_ac_Header'}'`
18579 { echo "$as_me:$LINENO: result: $ac_res" >&5
18580 echo "${ECHO_T}$ac_res" >&6; }
18583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18584 ISDNNET_HEADER_FOUND=1
18585 else
18586 ISDNNET_HEADER_FOUND=0
18591 CPPFLAGS="${saved_cppflags}"
18592 else
18593 if test "xmISDNuser/isdn_net.h" != "x" ; then
18594 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18595 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18596 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18597 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18598 echo $ECHO_N "(cached) $ECHO_C" >&6
18600 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18601 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18602 else
18603 # Is the header compilable?
18604 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
18605 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18606 cat >conftest.$ac_ext <<_ACEOF
18607 /* confdefs.h. */
18608 _ACEOF
18609 cat confdefs.h >>conftest.$ac_ext
18610 cat >>conftest.$ac_ext <<_ACEOF
18611 /* end confdefs.h. */
18612 $ac_includes_default
18613 #include <mISDNuser/isdn_net.h>
18614 _ACEOF
18615 rm -f conftest.$ac_objext
18616 if { (ac_try="$ac_compile"
18617 case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18620 esac
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_compile") 2>conftest.er1
18623 ac_status=$?
18624 grep -v '^ *+' conftest.er1 >conftest.err
18625 rm -f conftest.er1
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } && {
18629 test -z "$ac_c_werror_flag" ||
18630 test ! -s conftest.err
18631 } && test -s conftest.$ac_objext; then
18632 ac_header_compiler=yes
18633 else
18634 echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18637 ac_header_compiler=no
18640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18642 echo "${ECHO_T}$ac_header_compiler" >&6; }
18644 # Is the header present?
18645 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
18646 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18647 cat >conftest.$ac_ext <<_ACEOF
18648 /* confdefs.h. */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18653 #include <mISDNuser/isdn_net.h>
18654 _ACEOF
18655 if { (ac_try="$ac_cpp conftest.$ac_ext"
18656 case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18659 esac
18660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18662 ac_status=$?
18663 grep -v '^ *+' conftest.er1 >conftest.err
18664 rm -f conftest.er1
18665 cat conftest.err >&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } >/dev/null && {
18668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18669 test ! -s conftest.err
18670 }; then
18671 ac_header_preproc=yes
18672 else
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18676 ac_header_preproc=no
18679 rm -f conftest.err conftest.$ac_ext
18680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18681 echo "${ECHO_T}$ac_header_preproc" >&6; }
18683 # So? What about this header?
18684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18685 yes:no: )
18686 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18687 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18688 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18689 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18690 ac_header_preproc=yes
18692 no:yes:* )
18693 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18694 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18695 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18696 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18697 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18698 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18699 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18700 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18701 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18702 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18703 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18704 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18707 esac
18708 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18709 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18710 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
18715 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18716 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18719 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
18720 ISDNNET_HEADER_FOUND=1
18721 else
18722 ISDNNET_HEADER_FOUND=0
18728 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
18729 if test ! -z "${ISDNNET_MANDATORY}" ;
18730 then
18731 { echo "$as_me:$LINENO: ***" >&5
18732 echo "$as_me: ***" >&6;}
18733 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
18734 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
18735 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
18736 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
18737 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18738 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18739 exit 1
18741 ISDNNET_LIB=""
18742 ISDNNET_INCLUDE=""
18743 PBX_ISDNNET=0
18744 else
18745 PBX_ISDNNET=1
18747 cat >>confdefs.h <<_ACEOF
18748 #define HAVE_ISDNNET 1
18749 _ACEOF
18752 elif test ! -z "${ISDNNET_MANDATORY}";
18753 then
18754 { echo "$as_me:$LINENO: ***" >&5
18755 echo "$as_me: ***" >&6;}
18756 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
18757 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
18758 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18759 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18760 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18761 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18762 exit 1
18767 if test "${USE_SUPPSERV}" != "no"; then
18768 pbxlibdir=""
18769 if test "x${SUPPSERV_DIR}" != "x"; then
18770 if test -d ${SUPPSERV_DIR}/lib; then
18771 pbxlibdir="-L${SUPPSERV_DIR}/lib"
18772 else
18773 pbxlibdir="-L${SUPPSERV_DIR}"
18776 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
18777 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
18778 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781 ac_check_lib_save_LIBS=$LIBS
18782 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
18783 cat >conftest.$ac_ext <<_ACEOF
18784 /* confdefs.h. */
18785 _ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h. */
18790 /* Override any GCC internal prototype to avoid an error.
18791 Use char because int might match the return type of a GCC
18792 builtin and then its argument prototype would still apply. */
18793 #ifdef __cplusplus
18794 extern "C"
18795 #endif
18796 char encodeFac ();
18798 main ()
18800 return encodeFac ();
18802 return 0;
18804 _ACEOF
18805 rm -f conftest.$ac_objext conftest$ac_exeext
18806 if { (ac_try="$ac_link"
18807 case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18810 esac
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_link") 2>conftest.er1
18813 ac_status=$?
18814 grep -v '^ *+' conftest.er1 >conftest.err
18815 rm -f conftest.er1
18816 cat conftest.err >&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } && {
18819 test -z "$ac_c_werror_flag" ||
18820 test ! -s conftest.err
18821 } && test -s conftest$ac_exeext &&
18822 $as_test_x conftest$ac_exeext; then
18823 ac_cv_lib_suppserv_encodeFac=yes
18824 else
18825 echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18828 ac_cv_lib_suppserv_encodeFac=no
18831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18832 conftest$ac_exeext conftest.$ac_ext
18833 LIBS=$ac_check_lib_save_LIBS
18835 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
18836 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
18837 if test $ac_cv_lib_suppserv_encodeFac = yes; then
18838 AST_SUPPSERV_FOUND=yes
18839 else
18840 AST_SUPPSERV_FOUND=no
18844 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
18845 SUPPSERV_LIB="-lsuppserv "
18846 SUPPSERV_HEADER_FOUND="1"
18847 if test "x${SUPPSERV_DIR}" != "x"; then
18848 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
18849 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
18850 saved_cppflags="${CPPFLAGS}"
18851 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
18852 if test "xmISDNuser/suppserv.h" != "x" ; then
18853 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
18854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18855 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18856 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18860 ac_res=`eval echo '${'$as_ac_Header'}'`
18861 { echo "$as_me:$LINENO: result: $ac_res" >&5
18862 echo "${ECHO_T}$ac_res" >&6; }
18863 else
18864 # Is the header compilable?
18865 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
18866 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18867 cat >conftest.$ac_ext <<_ACEOF
18868 /* confdefs.h. */
18869 _ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18873 $ac_includes_default
18874 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18875 _ACEOF
18876 rm -f conftest.$ac_objext
18877 if { (ac_try="$ac_compile"
18878 case "(($ac_try" in
18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880 *) ac_try_echo=$ac_try;;
18881 esac
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883 (eval "$ac_compile") 2>conftest.er1
18884 ac_status=$?
18885 grep -v '^ *+' conftest.er1 >conftest.err
18886 rm -f conftest.er1
18887 cat conftest.err >&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } && {
18890 test -z "$ac_c_werror_flag" ||
18891 test ! -s conftest.err
18892 } && test -s conftest.$ac_objext; then
18893 ac_header_compiler=yes
18894 else
18895 echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.$ac_ext >&5
18898 ac_header_compiler=no
18901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18903 echo "${ECHO_T}$ac_header_compiler" >&6; }
18905 # Is the header present?
18906 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
18907 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18908 cat >conftest.$ac_ext <<_ACEOF
18909 /* confdefs.h. */
18910 _ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18914 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18915 _ACEOF
18916 if { (ac_try="$ac_cpp conftest.$ac_ext"
18917 case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18920 esac
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18923 ac_status=$?
18924 grep -v '^ *+' conftest.er1 >conftest.err
18925 rm -f conftest.er1
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } >/dev/null && {
18929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18930 test ! -s conftest.err
18931 }; then
18932 ac_header_preproc=yes
18933 else
18934 echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18937 ac_header_preproc=no
18940 rm -f conftest.err conftest.$ac_ext
18941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18942 echo "${ECHO_T}$ac_header_preproc" >&6; }
18944 # So? What about this header?
18945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18946 yes:no: )
18947 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18948 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18949 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18950 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18951 ac_header_preproc=yes
18953 no:yes:* )
18954 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
18955 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18956 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18957 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18958 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18959 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18960 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18961 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18962 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18963 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18964 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18965 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18968 esac
18969 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18970 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18973 else
18974 eval "$as_ac_Header=\$ac_header_preproc"
18976 ac_res=`eval echo '${'$as_ac_Header'}'`
18977 { echo "$as_me:$LINENO: result: $ac_res" >&5
18978 echo "${ECHO_T}$ac_res" >&6; }
18981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18982 SUPPSERV_HEADER_FOUND=1
18983 else
18984 SUPPSERV_HEADER_FOUND=0
18989 CPPFLAGS="${saved_cppflags}"
18990 else
18991 if test "xmISDNuser/suppserv.h" != "x" ; then
18992 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18993 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18994 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18995 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18998 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18999 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
19000 else
19001 # Is the header compilable?
19002 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
19003 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
19004 cat >conftest.$ac_ext <<_ACEOF
19005 /* confdefs.h. */
19006 _ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h. */
19010 $ac_includes_default
19011 #include <mISDNuser/suppserv.h>
19012 _ACEOF
19013 rm -f conftest.$ac_objext
19014 if { (ac_try="$ac_compile"
19015 case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19018 esac
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_compile") 2>conftest.er1
19021 ac_status=$?
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && {
19027 test -z "$ac_c_werror_flag" ||
19028 test ! -s conftest.err
19029 } && test -s conftest.$ac_objext; then
19030 ac_header_compiler=yes
19031 else
19032 echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19035 ac_header_compiler=no
19038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19040 echo "${ECHO_T}$ac_header_compiler" >&6; }
19042 # Is the header present?
19043 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
19044 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
19045 cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h. */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19051 #include <mISDNuser/suppserv.h>
19052 _ACEOF
19053 if { (ac_try="$ac_cpp conftest.$ac_ext"
19054 case "(($ac_try" in
19055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056 *) ac_try_echo=$ac_try;;
19057 esac
19058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19060 ac_status=$?
19061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } >/dev/null && {
19066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19067 test ! -s conftest.err
19068 }; then
19069 ac_header_preproc=yes
19070 else
19071 echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19074 ac_header_preproc=no
19077 rm -f conftest.err conftest.$ac_ext
19078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19079 echo "${ECHO_T}$ac_header_preproc" >&6; }
19081 # So? What about this header?
19082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19083 yes:no: )
19084 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
19085 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19086 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
19087 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
19088 ac_header_preproc=yes
19090 no:yes:* )
19091 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
19092 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
19093 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
19094 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
19095 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
19096 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
19097 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
19098 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
19099 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
19100 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
19101 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
19102 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
19105 esac
19106 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
19107 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
19108 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19110 else
19111 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
19113 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
19114 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
19117 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
19118 SUPPSERV_HEADER_FOUND=1
19119 else
19120 SUPPSERV_HEADER_FOUND=0
19126 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
19127 if test ! -z "${SUPPSERV_MANDATORY}" ;
19128 then
19129 { echo "$as_me:$LINENO: ***" >&5
19130 echo "$as_me: ***" >&6;}
19131 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
19132 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
19133 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
19134 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
19135 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
19136 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
19137 exit 1
19139 SUPPSERV_LIB=""
19140 SUPPSERV_INCLUDE=""
19141 PBX_SUPPSERV=0
19142 else
19143 PBX_SUPPSERV=1
19145 cat >>confdefs.h <<_ACEOF
19146 #define HAVE_SUPPSERV 1
19147 _ACEOF
19150 elif test ! -z "${SUPPSERV_MANDATORY}";
19151 then
19152 { echo "$as_me:$LINENO: ***" >&5
19153 echo "$as_me: ***" >&6;}
19154 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
19155 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
19156 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19157 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19158 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
19159 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
19160 exit 1
19167 if test "${USE_NBS}" != "no"; then
19168 pbxlibdir=""
19169 if test "x${NBS_DIR}" != "x"; then
19170 if test -d ${NBS_DIR}/lib; then
19171 pbxlibdir="-L${NBS_DIR}/lib"
19172 else
19173 pbxlibdir="-L${NBS_DIR}"
19176 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
19177 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
19178 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
19179 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 else
19181 ac_check_lib_save_LIBS=$LIBS
19182 LIBS="-lnbs ${pbxlibdir} $LIBS"
19183 cat >conftest.$ac_ext <<_ACEOF
19184 /* confdefs.h. */
19185 _ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h. */
19190 /* Override any GCC internal prototype to avoid an error.
19191 Use char because int might match the return type of a GCC
19192 builtin and then its argument prototype would still apply. */
19193 #ifdef __cplusplus
19194 extern "C"
19195 #endif
19196 char nbs_connect ();
19198 main ()
19200 return nbs_connect ();
19202 return 0;
19204 _ACEOF
19205 rm -f conftest.$ac_objext conftest$ac_exeext
19206 if { (ac_try="$ac_link"
19207 case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19210 esac
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_link") 2>conftest.er1
19213 ac_status=$?
19214 grep -v '^ *+' conftest.er1 >conftest.err
19215 rm -f conftest.er1
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } && {
19219 test -z "$ac_c_werror_flag" ||
19220 test ! -s conftest.err
19221 } && test -s conftest$ac_exeext &&
19222 $as_test_x conftest$ac_exeext; then
19223 ac_cv_lib_nbs_nbs_connect=yes
19224 else
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19228 ac_cv_lib_nbs_nbs_connect=no
19231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19232 conftest$ac_exeext conftest.$ac_ext
19233 LIBS=$ac_check_lib_save_LIBS
19235 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
19236 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
19237 if test $ac_cv_lib_nbs_nbs_connect = yes; then
19238 AST_NBS_FOUND=yes
19239 else
19240 AST_NBS_FOUND=no
19244 if test "${AST_NBS_FOUND}" = "yes"; then
19245 NBS_LIB="-lnbs "
19246 NBS_HEADER_FOUND="1"
19247 if test "x${NBS_DIR}" != "x"; then
19248 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
19249 NBS_INCLUDE="-I${NBS_DIR}/include"
19250 saved_cppflags="${CPPFLAGS}"
19251 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include"
19252 if test "xnbs.h" != "x" ; then
19253 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
19254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19255 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
19256 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
19257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19258 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 ac_res=`eval echo '${'$as_ac_Header'}'`
19261 { echo "$as_me:$LINENO: result: $ac_res" >&5
19262 echo "${ECHO_T}$ac_res" >&6; }
19263 else
19264 # Is the header compilable?
19265 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
19266 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
19267 cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h. */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19273 $ac_includes_default
19274 #include <${NBS_DIR}/include/nbs.h>
19275 _ACEOF
19276 rm -f conftest.$ac_objext
19277 if { (ac_try="$ac_compile"
19278 case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19281 esac
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_compile") 2>conftest.er1
19284 ac_status=$?
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } && {
19290 test -z "$ac_c_werror_flag" ||
19291 test ! -s conftest.err
19292 } && test -s conftest.$ac_objext; then
19293 ac_header_compiler=yes
19294 else
19295 echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19298 ac_header_compiler=no
19301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19303 echo "${ECHO_T}$ac_header_compiler" >&6; }
19305 # Is the header present?
19306 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
19307 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
19308 cat >conftest.$ac_ext <<_ACEOF
19309 /* confdefs.h. */
19310 _ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19314 #include <${NBS_DIR}/include/nbs.h>
19315 _ACEOF
19316 if { (ac_try="$ac_cpp conftest.$ac_ext"
19317 case "(($ac_try" in
19318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19319 *) ac_try_echo=$ac_try;;
19320 esac
19321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19323 ac_status=$?
19324 grep -v '^ *+' conftest.er1 >conftest.err
19325 rm -f conftest.er1
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } >/dev/null && {
19329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19330 test ! -s conftest.err
19331 }; then
19332 ac_header_preproc=yes
19333 else
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 ac_header_preproc=no
19340 rm -f conftest.err conftest.$ac_ext
19341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19342 echo "${ECHO_T}$ac_header_preproc" >&6; }
19344 # So? What about this header?
19345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19346 yes:no: )
19347 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
19348 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19349 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
19350 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
19351 ac_header_preproc=yes
19353 no:yes:* )
19354 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
19355 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
19356 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
19357 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
19358 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
19359 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
19360 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
19361 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
19362 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
19363 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
19364 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
19365 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
19368 esac
19369 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
19370 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
19371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374 eval "$as_ac_Header=\$ac_header_preproc"
19376 ac_res=`eval echo '${'$as_ac_Header'}'`
19377 { echo "$as_me:$LINENO: result: $ac_res" >&5
19378 echo "${ECHO_T}$ac_res" >&6; }
19381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19382 NBS_HEADER_FOUND=1
19383 else
19384 NBS_HEADER_FOUND=0
19389 CPPFLAGS="${saved_cppflags}"
19390 else
19391 if test "xnbs.h" != "x" ; then
19392 if test "${ac_cv_header_nbs_h+set}" = set; then
19393 { echo "$as_me:$LINENO: checking for nbs.h" >&5
19394 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
19395 if test "${ac_cv_header_nbs_h+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
19399 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
19400 else
19401 # Is the header compilable?
19402 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
19403 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
19404 cat >conftest.$ac_ext <<_ACEOF
19405 /* confdefs.h. */
19406 _ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h. */
19410 $ac_includes_default
19411 #include <nbs.h>
19412 _ACEOF
19413 rm -f conftest.$ac_objext
19414 if { (ac_try="$ac_compile"
19415 case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19418 esac
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_compile") 2>conftest.er1
19421 ac_status=$?
19422 grep -v '^ *+' conftest.er1 >conftest.err
19423 rm -f conftest.er1
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } && {
19427 test -z "$ac_c_werror_flag" ||
19428 test ! -s conftest.err
19429 } && test -s conftest.$ac_objext; then
19430 ac_header_compiler=yes
19431 else
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19435 ac_header_compiler=no
19438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19440 echo "${ECHO_T}$ac_header_compiler" >&6; }
19442 # Is the header present?
19443 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
19444 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
19445 cat >conftest.$ac_ext <<_ACEOF
19446 /* confdefs.h. */
19447 _ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19451 #include <nbs.h>
19452 _ACEOF
19453 if { (ac_try="$ac_cpp conftest.$ac_ext"
19454 case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19457 esac
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19460 ac_status=$?
19461 grep -v '^ *+' conftest.er1 >conftest.err
19462 rm -f conftest.er1
19463 cat conftest.err >&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } >/dev/null && {
19466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19467 test ! -s conftest.err
19468 }; then
19469 ac_header_preproc=yes
19470 else
19471 echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ac_header_preproc=no
19477 rm -f conftest.err conftest.$ac_ext
19478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19479 echo "${ECHO_T}$ac_header_preproc" >&6; }
19481 # So? What about this header?
19482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19483 yes:no: )
19484 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
19485 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19486 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
19487 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
19488 ac_header_preproc=yes
19490 no:yes:* )
19491 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
19492 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
19493 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
19494 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
19495 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
19496 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
19497 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
19498 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
19499 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
19500 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
19501 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
19502 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
19505 esac
19506 { echo "$as_me:$LINENO: checking for nbs.h" >&5
19507 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
19508 if test "${ac_cv_header_nbs_h+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 else
19511 ac_cv_header_nbs_h=$ac_header_preproc
19513 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
19514 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
19517 if test $ac_cv_header_nbs_h = yes; then
19518 NBS_HEADER_FOUND=1
19519 else
19520 NBS_HEADER_FOUND=0
19526 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
19527 if test ! -z "${NBS_MANDATORY}" ;
19528 then
19529 { echo "$as_me:$LINENO: ***" >&5
19530 echo "$as_me: ***" >&6;}
19531 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
19532 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
19533 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
19534 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
19535 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19536 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19537 exit 1
19539 NBS_LIB=""
19540 NBS_INCLUDE=""
19541 PBX_NBS=0
19542 else
19543 PBX_NBS=1
19545 cat >>confdefs.h <<_ACEOF
19546 #define HAVE_NBS 1
19547 _ACEOF
19550 elif test ! -z "${NBS_MANDATORY}";
19551 then
19552 { echo "$as_me:$LINENO: ***" >&5
19553 echo "$as_me: ***" >&6;}
19554 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
19555 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
19556 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19557 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19558 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19559 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19560 exit 1
19566 if test "${USE_NCURSES}" != "no"; then
19567 pbxlibdir=""
19568 if test "x${NCURSES_DIR}" != "x"; then
19569 if test -d ${NCURSES_DIR}/lib; then
19570 pbxlibdir="-L${NCURSES_DIR}/lib"
19571 else
19572 pbxlibdir="-L${NCURSES_DIR}"
19575 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
19576 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
19577 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580 ac_check_lib_save_LIBS=$LIBS
19581 LIBS="-lncurses ${pbxlibdir} $LIBS"
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h. */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19589 /* Override any GCC internal prototype to avoid an error.
19590 Use char because int might match the return type of a GCC
19591 builtin and then its argument prototype would still apply. */
19592 #ifdef __cplusplus
19593 extern "C"
19594 #endif
19595 char initscr ();
19597 main ()
19599 return initscr ();
19601 return 0;
19603 _ACEOF
19604 rm -f conftest.$ac_objext conftest$ac_exeext
19605 if { (ac_try="$ac_link"
19606 case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19609 esac
19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611 (eval "$ac_link") 2>conftest.er1
19612 ac_status=$?
19613 grep -v '^ *+' conftest.er1 >conftest.err
19614 rm -f conftest.er1
19615 cat conftest.err >&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } && {
19618 test -z "$ac_c_werror_flag" ||
19619 test ! -s conftest.err
19620 } && test -s conftest$ac_exeext &&
19621 $as_test_x conftest$ac_exeext; then
19622 ac_cv_lib_ncurses_initscr=yes
19623 else
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19627 ac_cv_lib_ncurses_initscr=no
19630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19631 conftest$ac_exeext conftest.$ac_ext
19632 LIBS=$ac_check_lib_save_LIBS
19634 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
19635 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
19636 if test $ac_cv_lib_ncurses_initscr = yes; then
19637 AST_NCURSES_FOUND=yes
19638 else
19639 AST_NCURSES_FOUND=no
19643 if test "${AST_NCURSES_FOUND}" = "yes"; then
19644 NCURSES_LIB="-lncurses "
19645 NCURSES_HEADER_FOUND="1"
19646 if test "x${NCURSES_DIR}" != "x"; then
19647 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
19648 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
19649 saved_cppflags="${CPPFLAGS}"
19650 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
19651 if test "xcurses.h" != "x" ; then
19652 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
19653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19654 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19655 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 ac_res=`eval echo '${'$as_ac_Header'}'`
19660 { echo "$as_me:$LINENO: result: $ac_res" >&5
19661 echo "${ECHO_T}$ac_res" >&6; }
19662 else
19663 # Is the header compilable?
19664 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
19665 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
19666 cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h. */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 $ac_includes_default
19673 #include <${NCURSES_DIR}/include/curses.h>
19674 _ACEOF
19675 rm -f conftest.$ac_objext
19676 if { (ac_try="$ac_compile"
19677 case "(($ac_try" in
19678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679 *) ac_try_echo=$ac_try;;
19680 esac
19681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682 (eval "$ac_compile") 2>conftest.er1
19683 ac_status=$?
19684 grep -v '^ *+' conftest.er1 >conftest.err
19685 rm -f conftest.er1
19686 cat conftest.err >&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } && {
19689 test -z "$ac_c_werror_flag" ||
19690 test ! -s conftest.err
19691 } && test -s conftest.$ac_objext; then
19692 ac_header_compiler=yes
19693 else
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 ac_header_compiler=no
19700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19702 echo "${ECHO_T}$ac_header_compiler" >&6; }
19704 # Is the header present?
19705 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
19706 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
19707 cat >conftest.$ac_ext <<_ACEOF
19708 /* confdefs.h. */
19709 _ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h. */
19713 #include <${NCURSES_DIR}/include/curses.h>
19714 _ACEOF
19715 if { (ac_try="$ac_cpp conftest.$ac_ext"
19716 case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19719 esac
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19722 ac_status=$?
19723 grep -v '^ *+' conftest.er1 >conftest.err
19724 rm -f conftest.er1
19725 cat conftest.err >&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } >/dev/null && {
19728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19729 test ! -s conftest.err
19730 }; then
19731 ac_header_preproc=yes
19732 else
19733 echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19736 ac_header_preproc=no
19739 rm -f conftest.err conftest.$ac_ext
19740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19741 echo "${ECHO_T}$ac_header_preproc" >&6; }
19743 # So? What about this header?
19744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19745 yes:no: )
19746 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19747 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19748 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
19749 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
19750 ac_header_preproc=yes
19752 no:yes:* )
19753 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
19754 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
19755 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
19756 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
19757 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
19758 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
19759 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
19760 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19761 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
19762 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
19763 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
19764 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
19767 esac
19768 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19769 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19772 else
19773 eval "$as_ac_Header=\$ac_header_preproc"
19775 ac_res=`eval echo '${'$as_ac_Header'}'`
19776 { echo "$as_me:$LINENO: result: $ac_res" >&5
19777 echo "${ECHO_T}$ac_res" >&6; }
19780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19781 NCURSES_HEADER_FOUND=1
19782 else
19783 NCURSES_HEADER_FOUND=0
19788 CPPFLAGS="${saved_cppflags}"
19789 else
19790 if test "xcurses.h" != "x" ; then
19791 if test "${ac_cv_header_curses_h+set}" = set; then
19792 { echo "$as_me:$LINENO: checking for curses.h" >&5
19793 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19794 if test "${ac_cv_header_curses_h+set}" = set; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19797 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19798 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19799 else
19800 # Is the header compilable?
19801 { echo "$as_me:$LINENO: checking curses.h usability" >&5
19802 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
19803 cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h. */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19809 $ac_includes_default
19810 #include <curses.h>
19811 _ACEOF
19812 rm -f conftest.$ac_objext
19813 if { (ac_try="$ac_compile"
19814 case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19817 esac
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_compile") 2>conftest.er1
19820 ac_status=$?
19821 grep -v '^ *+' conftest.er1 >conftest.err
19822 rm -f conftest.er1
19823 cat conftest.err >&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } && {
19826 test -z "$ac_c_werror_flag" ||
19827 test ! -s conftest.err
19828 } && test -s conftest.$ac_objext; then
19829 ac_header_compiler=yes
19830 else
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19834 ac_header_compiler=no
19837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19839 echo "${ECHO_T}$ac_header_compiler" >&6; }
19841 # Is the header present?
19842 { echo "$as_me:$LINENO: checking curses.h presence" >&5
19843 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
19844 cat >conftest.$ac_ext <<_ACEOF
19845 /* confdefs.h. */
19846 _ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19850 #include <curses.h>
19851 _ACEOF
19852 if { (ac_try="$ac_cpp conftest.$ac_ext"
19853 case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19856 esac
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19859 ac_status=$?
19860 grep -v '^ *+' conftest.er1 >conftest.err
19861 rm -f conftest.er1
19862 cat conftest.err >&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); } >/dev/null && {
19865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19866 test ! -s conftest.err
19867 }; then
19868 ac_header_preproc=yes
19869 else
19870 echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19873 ac_header_preproc=no
19876 rm -f conftest.err conftest.$ac_ext
19877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19878 echo "${ECHO_T}$ac_header_preproc" >&6; }
19880 # So? What about this header?
19881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19882 yes:no: )
19883 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19884 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19885 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
19886 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
19887 ac_header_preproc=yes
19889 no:yes:* )
19890 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
19891 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
19893 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
19894 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
19895 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
19897 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19898 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
19899 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
19900 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
19901 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
19904 esac
19905 { echo "$as_me:$LINENO: checking for curses.h" >&5
19906 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19907 if test "${ac_cv_header_curses_h+set}" = set; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 else
19910 ac_cv_header_curses_h=$ac_header_preproc
19912 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19913 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19916 if test $ac_cv_header_curses_h = yes; then
19917 NCURSES_HEADER_FOUND=1
19918 else
19919 NCURSES_HEADER_FOUND=0
19925 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
19926 if test ! -z "${NCURSES_MANDATORY}" ;
19927 then
19928 { echo "$as_me:$LINENO: ***" >&5
19929 echo "$as_me: ***" >&6;}
19930 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
19931 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
19932 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
19933 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
19934 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19935 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19936 exit 1
19938 NCURSES_LIB=""
19939 NCURSES_INCLUDE=""
19940 PBX_NCURSES=0
19941 else
19942 PBX_NCURSES=1
19944 cat >>confdefs.h <<_ACEOF
19945 #define HAVE_NCURSES 1
19946 _ACEOF
19949 elif test ! -z "${NCURSES_MANDATORY}";
19950 then
19951 { echo "$as_me:$LINENO: ***" >&5
19952 echo "$as_me: ***" >&6;}
19953 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
19954 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
19955 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19956 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19957 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19958 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19959 exit 1
19964 NETSNMP_CONFIG=No
19965 if test "${USE_NETSNMP}" != "no"; then
19966 if test "x${NETSNMP_DIR}" != "x"; then
19967 if test -n "$ac_tool_prefix"; then
19968 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19969 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19972 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975 case $NETSNMP_CONFIG in
19976 [\\/]* | ?:[\\/]*)
19977 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19981 for as_dir in ${NETSNMP_DIR}/bin
19983 IFS=$as_save_IFS
19984 test -z "$as_dir" && as_dir=.
19985 for ac_exec_ext in '' $ac_executable_extensions; do
19986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19987 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19989 break 2
19991 done
19992 done
19993 IFS=$as_save_IFS
19996 esac
19998 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19999 if test -n "$NETSNMP_CONFIG"; then
20000 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
20001 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
20002 else
20003 { echo "$as_me:$LINENO: result: no" >&5
20004 echo "${ECHO_T}no" >&6; }
20009 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
20010 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
20011 # Extract the first word of "net-snmp-config", so it can be a program name with args.
20012 set dummy net-snmp-config; ac_word=$2
20013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20015 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20017 else
20018 case $ac_pt_NETSNMP_CONFIG in
20019 [\\/]* | ?:[\\/]*)
20020 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
20023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20024 for as_dir in ${NETSNMP_DIR}/bin
20026 IFS=$as_save_IFS
20027 test -z "$as_dir" && as_dir=.
20028 for ac_exec_ext in '' $ac_executable_extensions; do
20029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20030 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20032 break 2
20034 done
20035 done
20036 IFS=$as_save_IFS
20039 esac
20041 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
20042 if test -n "$ac_pt_NETSNMP_CONFIG"; then
20043 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
20044 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
20045 else
20046 { echo "$as_me:$LINENO: result: no" >&5
20047 echo "${ECHO_T}no" >&6; }
20050 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
20051 NETSNMP_CONFIG="No"
20052 else
20053 case $cross_compiling:$ac_tool_warned in
20054 yes:)
20055 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20056 whose name does not start with the host triplet. If you think this
20057 configuration is useful to you, please write to autoconf@gnu.org." >&5
20058 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20059 whose name does not start with the host triplet. If you think this
20060 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20061 ac_tool_warned=yes ;;
20062 esac
20063 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
20065 else
20066 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
20069 if test x"${NETSNMP_CONFIG}" = xNo; then
20070 { echo "$as_me:$LINENO: ***" >&5
20071 echo "$as_me: ***" >&6;}
20072 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
20073 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
20074 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
20075 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
20076 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20077 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20078 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20079 echo "$as_me: *** including --without-netsnmp" >&6;}
20080 exit 1
20082 else
20083 if test -n "$ac_tool_prefix"; then
20084 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
20085 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
20086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20088 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091 case $NETSNMP_CONFIG in
20092 [\\/]* | ?:[\\/]*)
20093 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
20096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20097 for as_dir in $PATH
20099 IFS=$as_save_IFS
20100 test -z "$as_dir" && as_dir=.
20101 for ac_exec_ext in '' $ac_executable_extensions; do
20102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20103 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20105 break 2
20107 done
20108 done
20109 IFS=$as_save_IFS
20112 esac
20114 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
20115 if test -n "$NETSNMP_CONFIG"; then
20116 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
20117 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
20118 else
20119 { echo "$as_me:$LINENO: result: no" >&5
20120 echo "${ECHO_T}no" >&6; }
20125 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
20126 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
20127 # Extract the first word of "net-snmp-config", so it can be a program name with args.
20128 set dummy net-snmp-config; ac_word=$2
20129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20131 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
20132 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 else
20134 case $ac_pt_NETSNMP_CONFIG in
20135 [\\/]* | ?:[\\/]*)
20136 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
20139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20140 for as_dir in $PATH
20142 IFS=$as_save_IFS
20143 test -z "$as_dir" && as_dir=.
20144 for ac_exec_ext in '' $ac_executable_extensions; do
20145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20146 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20148 break 2
20150 done
20151 done
20152 IFS=$as_save_IFS
20155 esac
20157 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
20158 if test -n "$ac_pt_NETSNMP_CONFIG"; then
20159 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
20160 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
20161 else
20162 { echo "$as_me:$LINENO: result: no" >&5
20163 echo "${ECHO_T}no" >&6; }
20166 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
20167 NETSNMP_CONFIG="No"
20168 else
20169 case $cross_compiling:$ac_tool_warned in
20170 yes:)
20171 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20172 whose name does not start with the host triplet. If you think this
20173 configuration is useful to you, please write to autoconf@gnu.org." >&5
20174 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20175 whose name does not start with the host triplet. If you think this
20176 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20177 ac_tool_warned=yes ;;
20178 esac
20179 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
20181 else
20182 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
20187 if test x"${NETSNMP_CONFIG}" != xNo; then
20188 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
20190 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
20191 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
20192 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20194 else
20195 ac_check_lib_save_LIBS=$LIBS
20196 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
20197 cat >conftest.$ac_ext <<_ACEOF
20198 /* confdefs.h. */
20199 _ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20204 /* Override any GCC internal prototype to avoid an error.
20205 Use char because int might match the return type of a GCC
20206 builtin and then its argument prototype would still apply. */
20207 #ifdef __cplusplus
20208 extern "C"
20209 #endif
20210 char snmp_register_callback ();
20212 main ()
20214 return snmp_register_callback ();
20216 return 0;
20218 _ACEOF
20219 rm -f conftest.$ac_objext conftest$ac_exeext
20220 if { (ac_try="$ac_link"
20221 case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_link") 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } && {
20233 test -z "$ac_c_werror_flag" ||
20234 test ! -s conftest.err
20235 } && test -s conftest$ac_exeext &&
20236 $as_test_x conftest$ac_exeext; then
20237 ac_cv_lib_netsnmp_snmp_register_callback=yes
20238 else
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20242 ac_cv_lib_netsnmp_snmp_register_callback=no
20245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20246 conftest$ac_exeext conftest.$ac_ext
20247 LIBS=$ac_check_lib_save_LIBS
20249 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
20250 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
20251 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
20253 cat >>confdefs.h <<_ACEOF
20254 #define HAVE_NETSNMP 1
20255 _ACEOF
20260 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
20261 NETSNMP_LIB="${NETSNMP_libs}"
20262 PBX_NETSNMP=1
20263 elif test ! -z "${NETSNMP_MANDATORY}";
20264 then
20265 { echo "$as_me:$LINENO: ***" >&5
20266 echo "$as_me: ***" >&6;}
20267 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
20268 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
20269 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20270 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20271 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20272 echo "$as_me: *** including --without-netsnmp" >&6;}
20273 exit 1
20275 elif test ! -z "${NETSNMP_MANDATORY}";
20276 then
20277 { echo "$as_me:$LINENO: ***" >&5
20278 echo "$as_me: ***" >&6;}
20279 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
20280 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
20281 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20282 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20283 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20284 echo "$as_me: *** including --without-netsnmp" >&6;}
20285 exit 1
20289 if test "${USE_NEWT}" != "no"; then
20290 pbxlibdir=""
20291 if test "x${NEWT_DIR}" != "x"; then
20292 if test -d ${NEWT_DIR}/lib; then
20293 pbxlibdir="-L${NEWT_DIR}/lib"
20294 else
20295 pbxlibdir="-L${NEWT_DIR}"
20298 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
20299 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
20300 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303 ac_check_lib_save_LIBS=$LIBS
20304 LIBS="-lnewt ${pbxlibdir} $LIBS"
20305 cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h. */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20312 /* Override any GCC internal prototype to avoid an error.
20313 Use char because int might match the return type of a GCC
20314 builtin and then its argument prototype would still apply. */
20315 #ifdef __cplusplus
20316 extern "C"
20317 #endif
20318 char newtBell ();
20320 main ()
20322 return newtBell ();
20324 return 0;
20326 _ACEOF
20327 rm -f conftest.$ac_objext conftest$ac_exeext
20328 if { (ac_try="$ac_link"
20329 case "(($ac_try" in
20330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331 *) ac_try_echo=$ac_try;;
20332 esac
20333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20334 (eval "$ac_link") 2>conftest.er1
20335 ac_status=$?
20336 grep -v '^ *+' conftest.er1 >conftest.err
20337 rm -f conftest.er1
20338 cat conftest.err >&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } && {
20341 test -z "$ac_c_werror_flag" ||
20342 test ! -s conftest.err
20343 } && test -s conftest$ac_exeext &&
20344 $as_test_x conftest$ac_exeext; then
20345 ac_cv_lib_newt_newtBell=yes
20346 else
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 ac_cv_lib_newt_newtBell=no
20353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20354 conftest$ac_exeext conftest.$ac_ext
20355 LIBS=$ac_check_lib_save_LIBS
20357 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
20358 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
20359 if test $ac_cv_lib_newt_newtBell = yes; then
20360 AST_NEWT_FOUND=yes
20361 else
20362 AST_NEWT_FOUND=no
20366 if test "${AST_NEWT_FOUND}" = "yes"; then
20367 NEWT_LIB="-lnewt "
20368 NEWT_HEADER_FOUND="1"
20369 if test "x${NEWT_DIR}" != "x"; then
20370 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
20371 NEWT_INCLUDE="-I${NEWT_DIR}/include"
20372 saved_cppflags="${CPPFLAGS}"
20373 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
20374 if test "xnewt.h" != "x" ; then
20375 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
20376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20377 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
20378 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
20379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20382 ac_res=`eval echo '${'$as_ac_Header'}'`
20383 { echo "$as_me:$LINENO: result: $ac_res" >&5
20384 echo "${ECHO_T}$ac_res" >&6; }
20385 else
20386 # Is the header compilable?
20387 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
20388 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
20389 cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h. */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20395 $ac_includes_default
20396 #include <${NEWT_DIR}/include/newt.h>
20397 _ACEOF
20398 rm -f conftest.$ac_objext
20399 if { (ac_try="$ac_compile"
20400 case "(($ac_try" in
20401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402 *) ac_try_echo=$ac_try;;
20403 esac
20404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20405 (eval "$ac_compile") 2>conftest.er1
20406 ac_status=$?
20407 grep -v '^ *+' conftest.er1 >conftest.err
20408 rm -f conftest.er1
20409 cat conftest.err >&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } && {
20412 test -z "$ac_c_werror_flag" ||
20413 test ! -s conftest.err
20414 } && test -s conftest.$ac_objext; then
20415 ac_header_compiler=yes
20416 else
20417 echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20420 ac_header_compiler=no
20423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20425 echo "${ECHO_T}$ac_header_compiler" >&6; }
20427 # Is the header present?
20428 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
20429 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
20430 cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h. */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 #include <${NEWT_DIR}/include/newt.h>
20437 _ACEOF
20438 if { (ac_try="$ac_cpp conftest.$ac_ext"
20439 case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20442 esac
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20445 ac_status=$?
20446 grep -v '^ *+' conftest.er1 >conftest.err
20447 rm -f conftest.er1
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } >/dev/null && {
20451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20452 test ! -s conftest.err
20453 }; then
20454 ac_header_preproc=yes
20455 else
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20459 ac_header_preproc=no
20462 rm -f conftest.err conftest.$ac_ext
20463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20464 echo "${ECHO_T}$ac_header_preproc" >&6; }
20466 # So? What about this header?
20467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20468 yes:no: )
20469 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20470 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20471 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
20472 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
20473 ac_header_preproc=yes
20475 no:yes:* )
20476 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
20477 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
20478 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
20479 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
20480 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
20481 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
20482 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
20483 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20484 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
20485 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
20486 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
20487 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
20490 esac
20491 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
20492 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
20493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 else
20496 eval "$as_ac_Header=\$ac_header_preproc"
20498 ac_res=`eval echo '${'$as_ac_Header'}'`
20499 { echo "$as_me:$LINENO: result: $ac_res" >&5
20500 echo "${ECHO_T}$ac_res" >&6; }
20503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20504 NEWT_HEADER_FOUND=1
20505 else
20506 NEWT_HEADER_FOUND=0
20511 CPPFLAGS="${saved_cppflags}"
20512 else
20513 if test "xnewt.h" != "x" ; then
20514 if test "${ac_cv_header_newt_h+set}" = set; then
20515 { echo "$as_me:$LINENO: checking for newt.h" >&5
20516 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20517 if test "${ac_cv_header_newt_h+set}" = set; then
20518 echo $ECHO_N "(cached) $ECHO_C" >&6
20520 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20521 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20522 else
20523 # Is the header compilable?
20524 { echo "$as_me:$LINENO: checking newt.h usability" >&5
20525 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
20526 cat >conftest.$ac_ext <<_ACEOF
20527 /* confdefs.h. */
20528 _ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h. */
20532 $ac_includes_default
20533 #include <newt.h>
20534 _ACEOF
20535 rm -f conftest.$ac_objext
20536 if { (ac_try="$ac_compile"
20537 case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20540 esac
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542 (eval "$ac_compile") 2>conftest.er1
20543 ac_status=$?
20544 grep -v '^ *+' conftest.er1 >conftest.err
20545 rm -f conftest.er1
20546 cat conftest.err >&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } && {
20549 test -z "$ac_c_werror_flag" ||
20550 test ! -s conftest.err
20551 } && test -s conftest.$ac_objext; then
20552 ac_header_compiler=yes
20553 else
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20557 ac_header_compiler=no
20560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20562 echo "${ECHO_T}$ac_header_compiler" >&6; }
20564 # Is the header present?
20565 { echo "$as_me:$LINENO: checking newt.h presence" >&5
20566 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
20567 cat >conftest.$ac_ext <<_ACEOF
20568 /* confdefs.h. */
20569 _ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20573 #include <newt.h>
20574 _ACEOF
20575 if { (ac_try="$ac_cpp conftest.$ac_ext"
20576 case "(($ac_try" in
20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20579 esac
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20582 ac_status=$?
20583 grep -v '^ *+' conftest.er1 >conftest.err
20584 rm -f conftest.er1
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } >/dev/null && {
20588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20589 test ! -s conftest.err
20590 }; then
20591 ac_header_preproc=yes
20592 else
20593 echo "$as_me: failed program was:" >&5
20594 sed 's/^/| /' conftest.$ac_ext >&5
20596 ac_header_preproc=no
20599 rm -f conftest.err conftest.$ac_ext
20600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20601 echo "${ECHO_T}$ac_header_preproc" >&6; }
20603 # So? What about this header?
20604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20605 yes:no: )
20606 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20607 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20608 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
20609 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
20610 ac_header_preproc=yes
20612 no:yes:* )
20613 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
20614 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
20615 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
20616 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
20617 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
20618 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
20619 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
20620 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20621 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
20622 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
20623 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
20624 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
20627 esac
20628 { echo "$as_me:$LINENO: checking for newt.h" >&5
20629 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20630 if test "${ac_cv_header_newt_h+set}" = set; then
20631 echo $ECHO_N "(cached) $ECHO_C" >&6
20632 else
20633 ac_cv_header_newt_h=$ac_header_preproc
20635 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20636 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20639 if test $ac_cv_header_newt_h = yes; then
20640 NEWT_HEADER_FOUND=1
20641 else
20642 NEWT_HEADER_FOUND=0
20648 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
20649 if test ! -z "${NEWT_MANDATORY}" ;
20650 then
20651 { echo "$as_me:$LINENO: ***" >&5
20652 echo "$as_me: ***" >&6;}
20653 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
20654 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
20655 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
20656 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
20657 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20658 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20659 exit 1
20661 NEWT_LIB=""
20662 NEWT_INCLUDE=""
20663 PBX_NEWT=0
20664 else
20665 PBX_NEWT=1
20667 cat >>confdefs.h <<_ACEOF
20668 #define HAVE_NEWT 1
20669 _ACEOF
20672 elif test ! -z "${NEWT_MANDATORY}";
20673 then
20674 { echo "$as_me:$LINENO: ***" >&5
20675 echo "$as_me: ***" >&6;}
20676 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
20677 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
20678 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20679 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20680 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20681 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20682 exit 1
20688 if test "${USE_UNIXODBC}" != "no"; then
20689 pbxlibdir=""
20690 if test "x${UNIXODBC_DIR}" != "x"; then
20691 if test -d ${UNIXODBC_DIR}/lib; then
20692 pbxlibdir="-L${UNIXODBC_DIR}/lib"
20693 else
20694 pbxlibdir="-L${UNIXODBC_DIR}"
20697 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
20698 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
20699 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20701 else
20702 ac_check_lib_save_LIBS=$LIBS
20703 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
20704 cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h. */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20711 /* Override any GCC internal prototype to avoid an error.
20712 Use char because int might match the return type of a GCC
20713 builtin and then its argument prototype would still apply. */
20714 #ifdef __cplusplus
20715 extern "C"
20716 #endif
20717 char SQLConnect ();
20719 main ()
20721 return SQLConnect ();
20723 return 0;
20725 _ACEOF
20726 rm -f conftest.$ac_objext conftest$ac_exeext
20727 if { (ac_try="$ac_link"
20728 case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20731 esac
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_link") 2>conftest.er1
20734 ac_status=$?
20735 grep -v '^ *+' conftest.er1 >conftest.err
20736 rm -f conftest.er1
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } && {
20740 test -z "$ac_c_werror_flag" ||
20741 test ! -s conftest.err
20742 } && test -s conftest$ac_exeext &&
20743 $as_test_x conftest$ac_exeext; then
20744 ac_cv_lib_odbc_SQLConnect=yes
20745 else
20746 echo "$as_me: failed program was:" >&5
20747 sed 's/^/| /' conftest.$ac_ext >&5
20749 ac_cv_lib_odbc_SQLConnect=no
20752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20753 conftest$ac_exeext conftest.$ac_ext
20754 LIBS=$ac_check_lib_save_LIBS
20756 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
20757 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
20758 if test $ac_cv_lib_odbc_SQLConnect = yes; then
20759 AST_UNIXODBC_FOUND=yes
20760 else
20761 AST_UNIXODBC_FOUND=no
20765 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
20766 UNIXODBC_LIB="-lodbc -lltdl"
20767 UNIXODBC_HEADER_FOUND="1"
20768 if test "x${UNIXODBC_DIR}" != "x"; then
20769 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
20770 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
20771 saved_cppflags="${CPPFLAGS}"
20772 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
20773 if test "xsql.h" != "x" ; then
20774 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
20775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20776 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20777 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20781 ac_res=`eval echo '${'$as_ac_Header'}'`
20782 { echo "$as_me:$LINENO: result: $ac_res" >&5
20783 echo "${ECHO_T}$ac_res" >&6; }
20784 else
20785 # Is the header compilable?
20786 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
20787 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
20788 cat >conftest.$ac_ext <<_ACEOF
20789 /* confdefs.h. */
20790 _ACEOF
20791 cat confdefs.h >>conftest.$ac_ext
20792 cat >>conftest.$ac_ext <<_ACEOF
20793 /* end confdefs.h. */
20794 $ac_includes_default
20795 #include <${UNIXODBC_DIR}/include/sql.h>
20796 _ACEOF
20797 rm -f conftest.$ac_objext
20798 if { (ac_try="$ac_compile"
20799 case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20802 esac
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_compile") 2>conftest.er1
20805 ac_status=$?
20806 grep -v '^ *+' conftest.er1 >conftest.err
20807 rm -f conftest.er1
20808 cat conftest.err >&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); } && {
20811 test -z "$ac_c_werror_flag" ||
20812 test ! -s conftest.err
20813 } && test -s conftest.$ac_objext; then
20814 ac_header_compiler=yes
20815 else
20816 echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20819 ac_header_compiler=no
20822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20824 echo "${ECHO_T}$ac_header_compiler" >&6; }
20826 # Is the header present?
20827 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
20828 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
20829 cat >conftest.$ac_ext <<_ACEOF
20830 /* confdefs.h. */
20831 _ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h. */
20835 #include <${UNIXODBC_DIR}/include/sql.h>
20836 _ACEOF
20837 if { (ac_try="$ac_cpp conftest.$ac_ext"
20838 case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841 esac
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20844 ac_status=$?
20845 grep -v '^ *+' conftest.er1 >conftest.err
20846 rm -f conftest.er1
20847 cat conftest.err >&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } >/dev/null && {
20850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20851 test ! -s conftest.err
20852 }; then
20853 ac_header_preproc=yes
20854 else
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20858 ac_header_preproc=no
20861 rm -f conftest.err conftest.$ac_ext
20862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20863 echo "${ECHO_T}$ac_header_preproc" >&6; }
20865 # So? What about this header?
20866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20867 yes:no: )
20868 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20869 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20870 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
20871 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
20872 ac_header_preproc=yes
20874 no:yes:* )
20875 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
20876 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
20877 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
20878 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
20879 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
20880 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
20881 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
20882 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20883 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
20884 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
20885 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
20886 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
20889 esac
20890 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20891 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20894 else
20895 eval "$as_ac_Header=\$ac_header_preproc"
20897 ac_res=`eval echo '${'$as_ac_Header'}'`
20898 { echo "$as_me:$LINENO: result: $ac_res" >&5
20899 echo "${ECHO_T}$ac_res" >&6; }
20902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20903 UNIXODBC_HEADER_FOUND=1
20904 else
20905 UNIXODBC_HEADER_FOUND=0
20910 CPPFLAGS="${saved_cppflags}"
20911 else
20912 if test "xsql.h" != "x" ; then
20913 if test "${ac_cv_header_sql_h+set}" = set; then
20914 { echo "$as_me:$LINENO: checking for sql.h" >&5
20915 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20916 if test "${ac_cv_header_sql_h+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20919 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20920 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20921 else
20922 # Is the header compilable?
20923 { echo "$as_me:$LINENO: checking sql.h usability" >&5
20924 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
20925 cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h. */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20931 $ac_includes_default
20932 #include <sql.h>
20933 _ACEOF
20934 rm -f conftest.$ac_objext
20935 if { (ac_try="$ac_compile"
20936 case "(($ac_try" in
20937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938 *) ac_try_echo=$ac_try;;
20939 esac
20940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20941 (eval "$ac_compile") 2>conftest.er1
20942 ac_status=$?
20943 grep -v '^ *+' conftest.er1 >conftest.err
20944 rm -f conftest.er1
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } && {
20948 test -z "$ac_c_werror_flag" ||
20949 test ! -s conftest.err
20950 } && test -s conftest.$ac_objext; then
20951 ac_header_compiler=yes
20952 else
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 ac_header_compiler=no
20959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20961 echo "${ECHO_T}$ac_header_compiler" >&6; }
20963 # Is the header present?
20964 { echo "$as_me:$LINENO: checking sql.h presence" >&5
20965 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
20966 cat >conftest.$ac_ext <<_ACEOF
20967 /* confdefs.h. */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 #include <sql.h>
20973 _ACEOF
20974 if { (ac_try="$ac_cpp conftest.$ac_ext"
20975 case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20978 esac
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20981 ac_status=$?
20982 grep -v '^ *+' conftest.er1 >conftest.err
20983 rm -f conftest.er1
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } >/dev/null && {
20987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20988 test ! -s conftest.err
20989 }; then
20990 ac_header_preproc=yes
20991 else
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20995 ac_header_preproc=no
20998 rm -f conftest.err conftest.$ac_ext
20999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21000 echo "${ECHO_T}$ac_header_preproc" >&6; }
21002 # So? What about this header?
21003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21004 yes:no: )
21005 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
21006 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21007 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
21008 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
21009 ac_header_preproc=yes
21011 no:yes:* )
21012 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
21013 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
21014 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
21015 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
21016 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
21017 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
21018 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
21019 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
21020 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
21021 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
21022 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
21023 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
21026 esac
21027 { echo "$as_me:$LINENO: checking for sql.h" >&5
21028 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
21029 if test "${ac_cv_header_sql_h+set}" = set; then
21030 echo $ECHO_N "(cached) $ECHO_C" >&6
21031 else
21032 ac_cv_header_sql_h=$ac_header_preproc
21034 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
21035 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
21038 if test $ac_cv_header_sql_h = yes; then
21039 UNIXODBC_HEADER_FOUND=1
21040 else
21041 UNIXODBC_HEADER_FOUND=0
21047 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
21048 if test ! -z "${UNIXODBC_MANDATORY}" ;
21049 then
21050 { echo "$as_me:$LINENO: ***" >&5
21051 echo "$as_me: ***" >&6;}
21052 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
21053 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
21054 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
21055 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
21056 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
21057 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
21058 exit 1
21060 UNIXODBC_LIB=""
21061 UNIXODBC_INCLUDE=""
21062 PBX_UNIXODBC=0
21063 else
21064 PBX_UNIXODBC=1
21066 cat >>confdefs.h <<_ACEOF
21067 #define HAVE_UNIXODBC 1
21068 _ACEOF
21071 elif test ! -z "${UNIXODBC_MANDATORY}";
21072 then
21073 { echo "$as_me:$LINENO: ***" >&5
21074 echo "$as_me: ***" >&6;}
21075 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
21076 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
21077 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21078 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21079 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
21080 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
21081 exit 1
21087 if test "${USE_OGG}" != "no"; then
21088 pbxlibdir=""
21089 if test "x${OGG_DIR}" != "x"; then
21090 if test -d ${OGG_DIR}/lib; then
21091 pbxlibdir="-L${OGG_DIR}/lib"
21092 else
21093 pbxlibdir="-L${OGG_DIR}"
21096 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
21097 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
21098 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
21099 echo $ECHO_N "(cached) $ECHO_C" >&6
21100 else
21101 ac_check_lib_save_LIBS=$LIBS
21102 LIBS="-logg ${pbxlibdir} $LIBS"
21103 cat >conftest.$ac_ext <<_ACEOF
21104 /* confdefs.h. */
21105 _ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h. */
21110 /* Override any GCC internal prototype to avoid an error.
21111 Use char because int might match the return type of a GCC
21112 builtin and then its argument prototype would still apply. */
21113 #ifdef __cplusplus
21114 extern "C"
21115 #endif
21116 char ogg_sync_init ();
21118 main ()
21120 return ogg_sync_init ();
21122 return 0;
21124 _ACEOF
21125 rm -f conftest.$ac_objext conftest$ac_exeext
21126 if { (ac_try="$ac_link"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21130 esac
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_link") 2>conftest.er1
21133 ac_status=$?
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } && {
21139 test -z "$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21141 } && test -s conftest$ac_exeext &&
21142 $as_test_x conftest$ac_exeext; then
21143 ac_cv_lib_ogg_ogg_sync_init=yes
21144 else
21145 echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21148 ac_cv_lib_ogg_ogg_sync_init=no
21151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21152 conftest$ac_exeext conftest.$ac_ext
21153 LIBS=$ac_check_lib_save_LIBS
21155 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
21156 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
21157 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
21158 AST_OGG_FOUND=yes
21159 else
21160 AST_OGG_FOUND=no
21164 if test "${AST_OGG_FOUND}" = "yes"; then
21165 OGG_LIB="-logg "
21166 OGG_HEADER_FOUND="1"
21167 if test "x${OGG_DIR}" != "x"; then
21168 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
21169 OGG_INCLUDE="-I${OGG_DIR}/include"
21170 saved_cppflags="${CPPFLAGS}"
21171 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
21172 if test "x" != "x" ; then
21173 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
21174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21175 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
21176 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
21177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 ac_res=`eval echo '${'$as_ac_Header'}'`
21181 { echo "$as_me:$LINENO: result: $ac_res" >&5
21182 echo "${ECHO_T}$ac_res" >&6; }
21183 else
21184 # Is the header compilable?
21185 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
21186 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
21187 cat >conftest.$ac_ext <<_ACEOF
21188 /* confdefs.h. */
21189 _ACEOF
21190 cat confdefs.h >>conftest.$ac_ext
21191 cat >>conftest.$ac_ext <<_ACEOF
21192 /* end confdefs.h. */
21193 $ac_includes_default
21194 #include <${OGG_DIR}/include/>
21195 _ACEOF
21196 rm -f conftest.$ac_objext
21197 if { (ac_try="$ac_compile"
21198 case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21201 esac
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_compile") 2>conftest.er1
21204 ac_status=$?
21205 grep -v '^ *+' conftest.er1 >conftest.err
21206 rm -f conftest.er1
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } && {
21210 test -z "$ac_c_werror_flag" ||
21211 test ! -s conftest.err
21212 } && test -s conftest.$ac_objext; then
21213 ac_header_compiler=yes
21214 else
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21218 ac_header_compiler=no
21221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21223 echo "${ECHO_T}$ac_header_compiler" >&6; }
21225 # Is the header present?
21226 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
21227 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
21228 cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h. */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21234 #include <${OGG_DIR}/include/>
21235 _ACEOF
21236 if { (ac_try="$ac_cpp conftest.$ac_ext"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21243 ac_status=$?
21244 grep -v '^ *+' conftest.er1 >conftest.err
21245 rm -f conftest.er1
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } >/dev/null && {
21249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21251 }; then
21252 ac_header_preproc=yes
21253 else
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21257 ac_header_preproc=no
21260 rm -f conftest.err conftest.$ac_ext
21261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21262 echo "${ECHO_T}$ac_header_preproc" >&6; }
21264 # So? What about this header?
21265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21266 yes:no: )
21267 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
21268 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
21270 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
21271 ac_header_preproc=yes
21273 no:yes:* )
21274 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
21275 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
21276 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
21277 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
21278 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
21279 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
21280 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
21281 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
21283 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
21285 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
21288 esac
21289 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
21290 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
21291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21292 echo $ECHO_N "(cached) $ECHO_C" >&6
21293 else
21294 eval "$as_ac_Header=\$ac_header_preproc"
21296 ac_res=`eval echo '${'$as_ac_Header'}'`
21297 { echo "$as_me:$LINENO: result: $ac_res" >&5
21298 echo "${ECHO_T}$ac_res" >&6; }
21301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21302 OGG_HEADER_FOUND=1
21303 else
21304 OGG_HEADER_FOUND=0
21309 CPPFLAGS="${saved_cppflags}"
21310 else
21311 if test "x" != "x" ; then
21312 if test "${ac_cv_header_+set}" = set; then
21313 { echo "$as_me:$LINENO: checking for " >&5
21314 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21315 if test "${ac_cv_header_+set}" = set; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21319 echo "${ECHO_T}$ac_cv_header_" >&6; }
21320 else
21321 # Is the header compilable?
21322 { echo "$as_me:$LINENO: checking usability" >&5
21323 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21324 cat >conftest.$ac_ext <<_ACEOF
21325 /* confdefs.h. */
21326 _ACEOF
21327 cat confdefs.h >>conftest.$ac_ext
21328 cat >>conftest.$ac_ext <<_ACEOF
21329 /* end confdefs.h. */
21330 $ac_includes_default
21331 #include <>
21332 _ACEOF
21333 rm -f conftest.$ac_objext
21334 if { (ac_try="$ac_compile"
21335 case "(($ac_try" in
21336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21337 *) ac_try_echo=$ac_try;;
21338 esac
21339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21340 (eval "$ac_compile") 2>conftest.er1
21341 ac_status=$?
21342 grep -v '^ *+' conftest.er1 >conftest.err
21343 rm -f conftest.er1
21344 cat conftest.err >&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } && {
21347 test -z "$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21349 } && test -s conftest.$ac_objext; then
21350 ac_header_compiler=yes
21351 else
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21355 ac_header_compiler=no
21358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21360 echo "${ECHO_T}$ac_header_compiler" >&6; }
21362 # Is the header present?
21363 { echo "$as_me:$LINENO: checking presence" >&5
21364 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21365 cat >conftest.$ac_ext <<_ACEOF
21366 /* confdefs.h. */
21367 _ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21371 #include <>
21372 _ACEOF
21373 if { (ac_try="$ac_cpp conftest.$ac_ext"
21374 case "(($ac_try" in
21375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376 *) ac_try_echo=$ac_try;;
21377 esac
21378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21380 ac_status=$?
21381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } >/dev/null && {
21386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21387 test ! -s conftest.err
21388 }; then
21389 ac_header_preproc=yes
21390 else
21391 echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21394 ac_header_preproc=no
21397 rm -f conftest.err conftest.$ac_ext
21398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21399 echo "${ECHO_T}$ac_header_preproc" >&6; }
21401 # So? What about this header?
21402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21403 yes:no: )
21404 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21405 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21406 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21407 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21408 ac_header_preproc=yes
21410 no:yes:* )
21411 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21412 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21413 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21414 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21415 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21416 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21417 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21418 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21419 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21420 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21421 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21422 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21425 esac
21426 { echo "$as_me:$LINENO: checking for " >&5
21427 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21428 if test "${ac_cv_header_+set}" = set; then
21429 echo $ECHO_N "(cached) $ECHO_C" >&6
21430 else
21431 ac_cv_header_=$ac_header_preproc
21433 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21434 echo "${ECHO_T}$ac_cv_header_" >&6; }
21437 if test $ac_cv_header_ = yes; then
21438 OGG_HEADER_FOUND=1
21439 else
21440 OGG_HEADER_FOUND=0
21446 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
21447 if test ! -z "${OGG_MANDATORY}" ;
21448 then
21449 { echo "$as_me:$LINENO: ***" >&5
21450 echo "$as_me: ***" >&6;}
21451 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
21452 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
21453 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
21454 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
21455 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
21456 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
21457 exit 1
21459 OGG_LIB=""
21460 OGG_INCLUDE=""
21461 PBX_OGG=0
21462 else
21463 PBX_OGG=1
21465 cat >>confdefs.h <<_ACEOF
21466 #define HAVE_OGG 1
21467 _ACEOF
21470 elif test ! -z "${OGG_MANDATORY}";
21471 then
21472 { echo "$as_me:$LINENO: ***" >&5
21473 echo "$as_me: ***" >&6;}
21474 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
21475 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
21476 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21477 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21478 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
21479 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
21480 exit 1
21486 if test "${USE_OSPTK}" != "no"; then
21487 pbxlibdir=""
21488 if test "x${OSPTK_DIR}" != "x"; then
21489 if test -d ${OSPTK_DIR}/lib; then
21490 pbxlibdir="-L${OSPTK_DIR}/lib"
21491 else
21492 pbxlibdir="-L${OSPTK_DIR}"
21495 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
21496 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
21497 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
21498 echo $ECHO_N "(cached) $ECHO_C" >&6
21499 else
21500 ac_check_lib_save_LIBS=$LIBS
21501 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
21502 cat >conftest.$ac_ext <<_ACEOF
21503 /* confdefs.h. */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h. */
21509 /* Override any GCC internal prototype to avoid an error.
21510 Use char because int might match the return type of a GCC
21511 builtin and then its argument prototype would still apply. */
21512 #ifdef __cplusplus
21513 extern "C"
21514 #endif
21515 char OSPPCryptoDecrypt ();
21517 main ()
21519 return OSPPCryptoDecrypt ();
21521 return 0;
21523 _ACEOF
21524 rm -f conftest.$ac_objext conftest$ac_exeext
21525 if { (ac_try="$ac_link"
21526 case "(($ac_try" in
21527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528 *) ac_try_echo=$ac_try;;
21529 esac
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531 (eval "$ac_link") 2>conftest.er1
21532 ac_status=$?
21533 grep -v '^ *+' conftest.er1 >conftest.err
21534 rm -f conftest.er1
21535 cat conftest.err >&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } && {
21538 test -z "$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21540 } && test -s conftest$ac_exeext &&
21541 $as_test_x conftest$ac_exeext; then
21542 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
21543 else
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21547 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
21550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21551 conftest$ac_exeext conftest.$ac_ext
21552 LIBS=$ac_check_lib_save_LIBS
21554 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
21555 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
21556 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
21557 AST_OSPTK_FOUND=yes
21558 else
21559 AST_OSPTK_FOUND=no
21563 if test "${AST_OSPTK_FOUND}" = "yes"; then
21564 OSPTK_LIB="-losptk -lcrypto -lssl"
21565 OSPTK_HEADER_FOUND="1"
21566 if test "x${OSPTK_DIR}" != "x"; then
21567 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
21568 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
21569 saved_cppflags="${CPPFLAGS}"
21570 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
21571 if test "xosp/osp.h" != "x" ; then
21572 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
21573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21574 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21575 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21579 ac_res=`eval echo '${'$as_ac_Header'}'`
21580 { echo "$as_me:$LINENO: result: $ac_res" >&5
21581 echo "${ECHO_T}$ac_res" >&6; }
21582 else
21583 # Is the header compilable?
21584 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
21585 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
21586 cat >conftest.$ac_ext <<_ACEOF
21587 /* confdefs.h. */
21588 _ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21592 $ac_includes_default
21593 #include <${OSPTK_DIR}/include/osp/osp.h>
21594 _ACEOF
21595 rm -f conftest.$ac_objext
21596 if { (ac_try="$ac_compile"
21597 case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21600 esac
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_compile") 2>conftest.er1
21603 ac_status=$?
21604 grep -v '^ *+' conftest.er1 >conftest.err
21605 rm -f conftest.er1
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } && {
21609 test -z "$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21611 } && test -s conftest.$ac_objext; then
21612 ac_header_compiler=yes
21613 else
21614 echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21617 ac_header_compiler=no
21620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21622 echo "${ECHO_T}$ac_header_compiler" >&6; }
21624 # Is the header present?
21625 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
21626 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
21627 cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h. */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21633 #include <${OSPTK_DIR}/include/osp/osp.h>
21634 _ACEOF
21635 if { (ac_try="$ac_cpp conftest.$ac_ext"
21636 case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21639 esac
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21642 ac_status=$?
21643 grep -v '^ *+' conftest.er1 >conftest.err
21644 rm -f conftest.er1
21645 cat conftest.err >&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); } >/dev/null && {
21648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21649 test ! -s conftest.err
21650 }; then
21651 ac_header_preproc=yes
21652 else
21653 echo "$as_me: failed program was:" >&5
21654 sed 's/^/| /' conftest.$ac_ext >&5
21656 ac_header_preproc=no
21659 rm -f conftest.err conftest.$ac_ext
21660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21661 echo "${ECHO_T}$ac_header_preproc" >&6; }
21663 # So? What about this header?
21664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21665 yes:no: )
21666 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21667 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
21669 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
21670 ac_header_preproc=yes
21672 no:yes:* )
21673 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
21674 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
21675 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
21676 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
21677 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
21678 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
21679 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21680 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21681 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
21682 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
21683 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
21684 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
21687 esac
21688 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21689 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 else
21693 eval "$as_ac_Header=\$ac_header_preproc"
21695 ac_res=`eval echo '${'$as_ac_Header'}'`
21696 { echo "$as_me:$LINENO: result: $ac_res" >&5
21697 echo "${ECHO_T}$ac_res" >&6; }
21700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21701 OSPTK_HEADER_FOUND=1
21702 else
21703 OSPTK_HEADER_FOUND=0
21708 CPPFLAGS="${saved_cppflags}"
21709 else
21710 if test "xosp/osp.h" != "x" ; then
21711 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21712 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21713 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21714 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21718 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21719 else
21720 # Is the header compilable?
21721 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
21722 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
21723 cat >conftest.$ac_ext <<_ACEOF
21724 /* confdefs.h. */
21725 _ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21729 $ac_includes_default
21730 #include <osp/osp.h>
21731 _ACEOF
21732 rm -f conftest.$ac_objext
21733 if { (ac_try="$ac_compile"
21734 case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21737 esac
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_compile") 2>conftest.er1
21740 ac_status=$?
21741 grep -v '^ *+' conftest.er1 >conftest.err
21742 rm -f conftest.er1
21743 cat conftest.err >&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } && {
21746 test -z "$ac_c_werror_flag" ||
21747 test ! -s conftest.err
21748 } && test -s conftest.$ac_objext; then
21749 ac_header_compiler=yes
21750 else
21751 echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21754 ac_header_compiler=no
21757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21759 echo "${ECHO_T}$ac_header_compiler" >&6; }
21761 # Is the header present?
21762 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
21763 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
21764 cat >conftest.$ac_ext <<_ACEOF
21765 /* confdefs.h. */
21766 _ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h. */
21770 #include <osp/osp.h>
21771 _ACEOF
21772 if { (ac_try="$ac_cpp conftest.$ac_ext"
21773 case "(($ac_try" in
21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775 *) ac_try_echo=$ac_try;;
21776 esac
21777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21779 ac_status=$?
21780 grep -v '^ *+' conftest.er1 >conftest.err
21781 rm -f conftest.er1
21782 cat conftest.err >&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); } >/dev/null && {
21785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21786 test ! -s conftest.err
21787 }; then
21788 ac_header_preproc=yes
21789 else
21790 echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21793 ac_header_preproc=no
21796 rm -f conftest.err conftest.$ac_ext
21797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21798 echo "${ECHO_T}$ac_header_preproc" >&6; }
21800 # So? What about this header?
21801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21802 yes:no: )
21803 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21804 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
21806 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
21807 ac_header_preproc=yes
21809 no:yes:* )
21810 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
21811 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
21812 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
21813 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
21814 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
21815 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
21816 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21817 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21818 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
21819 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
21820 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
21821 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
21824 esac
21825 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21826 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21827 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21828 echo $ECHO_N "(cached) $ECHO_C" >&6
21829 else
21830 ac_cv_header_osp_osp_h=$ac_header_preproc
21832 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21833 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21836 if test $ac_cv_header_osp_osp_h = yes; then
21837 OSPTK_HEADER_FOUND=1
21838 else
21839 OSPTK_HEADER_FOUND=0
21845 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
21846 if test ! -z "${OSPTK_MANDATORY}" ;
21847 then
21848 { echo "$as_me:$LINENO: ***" >&5
21849 echo "$as_me: ***" >&6;}
21850 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
21851 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
21852 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
21853 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
21854 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21855 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21856 exit 1
21858 OSPTK_LIB=""
21859 OSPTK_INCLUDE=""
21860 PBX_OSPTK=0
21861 else
21862 PBX_OSPTK=1
21864 cat >>confdefs.h <<_ACEOF
21865 #define HAVE_OSPTK 1
21866 _ACEOF
21869 elif test ! -z "${OSPTK_MANDATORY}";
21870 then
21871 { echo "$as_me:$LINENO: ***" >&5
21872 echo "$as_me: ***" >&6;}
21873 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
21874 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
21875 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21876 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21877 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21878 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21879 exit 1
21884 PBX_OSS=0
21885 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21886 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21887 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21888 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21891 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21892 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21893 else
21894 # Is the header compilable?
21895 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
21896 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
21897 cat >conftest.$ac_ext <<_ACEOF
21898 /* confdefs.h. */
21899 _ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 $ac_includes_default
21904 #include <linux/soundcard.h>
21905 _ACEOF
21906 rm -f conftest.$ac_objext
21907 if { (ac_try="$ac_compile"
21908 case "(($ac_try" in
21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21911 esac
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913 (eval "$ac_compile") 2>conftest.er1
21914 ac_status=$?
21915 grep -v '^ *+' conftest.er1 >conftest.err
21916 rm -f conftest.er1
21917 cat conftest.err >&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } && {
21920 test -z "$ac_c_werror_flag" ||
21921 test ! -s conftest.err
21922 } && test -s conftest.$ac_objext; then
21923 ac_header_compiler=yes
21924 else
21925 echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21928 ac_header_compiler=no
21931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21933 echo "${ECHO_T}$ac_header_compiler" >&6; }
21935 # Is the header present?
21936 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
21937 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
21938 cat >conftest.$ac_ext <<_ACEOF
21939 /* confdefs.h. */
21940 _ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21944 #include <linux/soundcard.h>
21945 _ACEOF
21946 if { (ac_try="$ac_cpp conftest.$ac_ext"
21947 case "(($ac_try" in
21948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21949 *) ac_try_echo=$ac_try;;
21950 esac
21951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21953 ac_status=$?
21954 grep -v '^ *+' conftest.er1 >conftest.err
21955 rm -f conftest.er1
21956 cat conftest.err >&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } >/dev/null && {
21959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21960 test ! -s conftest.err
21961 }; then
21962 ac_header_preproc=yes
21963 else
21964 echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21967 ac_header_preproc=no
21970 rm -f conftest.err conftest.$ac_ext
21971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21972 echo "${ECHO_T}$ac_header_preproc" >&6; }
21974 # So? What about this header?
21975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21976 yes:no: )
21977 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21978 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21979 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
21980 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
21981 ac_header_preproc=yes
21983 no:yes:* )
21984 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
21985 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
21986 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
21987 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
21988 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
21989 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
21990 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21991 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21992 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
21993 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
21994 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
21995 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
21998 esac
21999 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22000 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22001 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22004 ac_cv_header_linux_soundcard_h=$ac_header_preproc
22006 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22007 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22010 if test $ac_cv_header_linux_soundcard_h = yes; then
22012 PBX_OSS=1
22014 cat >>confdefs.h <<_ACEOF
22015 #define HAVE_OSS 1
22016 _ACEOF
22022 if test "$PBX_OSS" = "0"; then
22023 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22024 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22025 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22026 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22027 echo $ECHO_N "(cached) $ECHO_C" >&6
22029 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22030 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22031 else
22032 # Is the header compilable?
22033 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
22034 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
22035 cat >conftest.$ac_ext <<_ACEOF
22036 /* confdefs.h. */
22037 _ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22041 $ac_includes_default
22042 #include <sys/soundcard.h>
22043 _ACEOF
22044 rm -f conftest.$ac_objext
22045 if { (ac_try="$ac_compile"
22046 case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22049 esac
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051 (eval "$ac_compile") 2>conftest.er1
22052 ac_status=$?
22053 grep -v '^ *+' conftest.er1 >conftest.err
22054 rm -f conftest.er1
22055 cat conftest.err >&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); } && {
22058 test -z "$ac_c_werror_flag" ||
22059 test ! -s conftest.err
22060 } && test -s conftest.$ac_objext; then
22061 ac_header_compiler=yes
22062 else
22063 echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22066 ac_header_compiler=no
22069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22071 echo "${ECHO_T}$ac_header_compiler" >&6; }
22073 # Is the header present?
22074 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
22075 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
22076 cat >conftest.$ac_ext <<_ACEOF
22077 /* confdefs.h. */
22078 _ACEOF
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h. */
22082 #include <sys/soundcard.h>
22083 _ACEOF
22084 if { (ac_try="$ac_cpp conftest.$ac_ext"
22085 case "(($ac_try" in
22086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087 *) ac_try_echo=$ac_try;;
22088 esac
22089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22091 ac_status=$?
22092 grep -v '^ *+' conftest.er1 >conftest.err
22093 rm -f conftest.er1
22094 cat conftest.err >&5
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); } >/dev/null && {
22097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22098 test ! -s conftest.err
22099 }; then
22100 ac_header_preproc=yes
22101 else
22102 echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22105 ac_header_preproc=no
22108 rm -f conftest.err conftest.$ac_ext
22109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22110 echo "${ECHO_T}$ac_header_preproc" >&6; }
22112 # So? What about this header?
22113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22114 yes:no: )
22115 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22116 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22117 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
22118 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
22119 ac_header_preproc=yes
22121 no:yes:* )
22122 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
22123 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
22124 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
22125 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
22126 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
22127 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
22128 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22129 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22130 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
22131 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
22132 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
22133 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
22136 esac
22137 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22138 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22139 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22141 else
22142 ac_cv_header_sys_soundcard_h=$ac_header_preproc
22144 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22145 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22148 if test $ac_cv_header_sys_soundcard_h = yes; then
22150 PBX_OSS=1
22152 cat >>confdefs.h <<_ACEOF
22153 #define HAVE_OSS 1
22154 _ACEOF
22161 if test "$PBX_OSS" = "0"; then
22163 if test "${USE_OSS}" != "no"; then
22164 pbxlibdir=""
22165 if test "x${OSS_DIR}" != "x"; then
22166 if test -d ${OSS_DIR}/lib; then
22167 pbxlibdir="-L${OSS_DIR}/lib"
22168 else
22169 pbxlibdir="-L${OSS_DIR}"
22172 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
22173 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
22174 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22176 else
22177 ac_check_lib_save_LIBS=$LIBS
22178 LIBS="-lossaudio ${pbxlibdir} $LIBS"
22179 cat >conftest.$ac_ext <<_ACEOF
22180 /* confdefs.h. */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h. */
22186 /* Override any GCC internal prototype to avoid an error.
22187 Use char because int might match the return type of a GCC
22188 builtin and then its argument prototype would still apply. */
22189 #ifdef __cplusplus
22190 extern "C"
22191 #endif
22192 char oss_ioctl_mixer ();
22194 main ()
22196 return oss_ioctl_mixer ();
22198 return 0;
22200 _ACEOF
22201 rm -f conftest.$ac_objext conftest$ac_exeext
22202 if { (ac_try="$ac_link"
22203 case "(($ac_try" in
22204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205 *) ac_try_echo=$ac_try;;
22206 esac
22207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22208 (eval "$ac_link") 2>conftest.er1
22209 ac_status=$?
22210 grep -v '^ *+' conftest.er1 >conftest.err
22211 rm -f conftest.er1
22212 cat conftest.err >&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); } && {
22215 test -z "$ac_c_werror_flag" ||
22216 test ! -s conftest.err
22217 } && test -s conftest$ac_exeext &&
22218 $as_test_x conftest$ac_exeext; then
22219 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
22220 else
22221 echo "$as_me: failed program was:" >&5
22222 sed 's/^/| /' conftest.$ac_ext >&5
22224 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
22227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22228 conftest$ac_exeext conftest.$ac_ext
22229 LIBS=$ac_check_lib_save_LIBS
22231 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
22232 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
22233 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
22234 AST_OSS_FOUND=yes
22235 else
22236 AST_OSS_FOUND=no
22240 if test "${AST_OSS_FOUND}" = "yes"; then
22241 OSS_LIB="-lossaudio "
22242 OSS_HEADER_FOUND="1"
22243 if test "x${OSS_DIR}" != "x"; then
22244 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
22245 OSS_INCLUDE="-I${OSS_DIR}/include"
22246 saved_cppflags="${CPPFLAGS}"
22247 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include"
22248 if test "xsoundcard.h" != "x" ; then
22249 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
22250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22251 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
22252 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
22253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22254 echo $ECHO_N "(cached) $ECHO_C" >&6
22256 ac_res=`eval echo '${'$as_ac_Header'}'`
22257 { echo "$as_me:$LINENO: result: $ac_res" >&5
22258 echo "${ECHO_T}$ac_res" >&6; }
22259 else
22260 # Is the header compilable?
22261 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
22262 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
22263 cat >conftest.$ac_ext <<_ACEOF
22264 /* confdefs.h. */
22265 _ACEOF
22266 cat confdefs.h >>conftest.$ac_ext
22267 cat >>conftest.$ac_ext <<_ACEOF
22268 /* end confdefs.h. */
22269 $ac_includes_default
22270 #include <${OSS_DIR}/include/soundcard.h>
22271 _ACEOF
22272 rm -f conftest.$ac_objext
22273 if { (ac_try="$ac_compile"
22274 case "(($ac_try" in
22275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22276 *) ac_try_echo=$ac_try;;
22277 esac
22278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22279 (eval "$ac_compile") 2>conftest.er1
22280 ac_status=$?
22281 grep -v '^ *+' conftest.er1 >conftest.err
22282 rm -f conftest.er1
22283 cat conftest.err >&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } && {
22286 test -z "$ac_c_werror_flag" ||
22287 test ! -s conftest.err
22288 } && test -s conftest.$ac_objext; then
22289 ac_header_compiler=yes
22290 else
22291 echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22294 ac_header_compiler=no
22297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22299 echo "${ECHO_T}$ac_header_compiler" >&6; }
22301 # Is the header present?
22302 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
22303 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
22304 cat >conftest.$ac_ext <<_ACEOF
22305 /* confdefs.h. */
22306 _ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h. */
22310 #include <${OSS_DIR}/include/soundcard.h>
22311 _ACEOF
22312 if { (ac_try="$ac_cpp conftest.$ac_ext"
22313 case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22316 esac
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22319 ac_status=$?
22320 grep -v '^ *+' conftest.er1 >conftest.err
22321 rm -f conftest.er1
22322 cat conftest.err >&5
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); } >/dev/null && {
22325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22326 test ! -s conftest.err
22327 }; then
22328 ac_header_preproc=yes
22329 else
22330 echo "$as_me: failed program was:" >&5
22331 sed 's/^/| /' conftest.$ac_ext >&5
22333 ac_header_preproc=no
22336 rm -f conftest.err conftest.$ac_ext
22337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22338 echo "${ECHO_T}$ac_header_preproc" >&6; }
22340 # So? What about this header?
22341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22342 yes:no: )
22343 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22344 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22345 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
22346 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
22347 ac_header_preproc=yes
22349 no:yes:* )
22350 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
22351 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
22352 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
22353 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
22354 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
22355 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
22356 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22357 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22358 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
22359 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
22360 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
22361 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
22364 esac
22365 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
22366 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
22367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22368 echo $ECHO_N "(cached) $ECHO_C" >&6
22369 else
22370 eval "$as_ac_Header=\$ac_header_preproc"
22372 ac_res=`eval echo '${'$as_ac_Header'}'`
22373 { echo "$as_me:$LINENO: result: $ac_res" >&5
22374 echo "${ECHO_T}$ac_res" >&6; }
22377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22378 OSS_HEADER_FOUND=1
22379 else
22380 OSS_HEADER_FOUND=0
22385 CPPFLAGS="${saved_cppflags}"
22386 else
22387 if test "xsoundcard.h" != "x" ; then
22388 if test "${ac_cv_header_soundcard_h+set}" = set; then
22389 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22390 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22391 if test "${ac_cv_header_soundcard_h+set}" = set; then
22392 echo $ECHO_N "(cached) $ECHO_C" >&6
22394 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22395 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22396 else
22397 # Is the header compilable?
22398 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
22399 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
22400 cat >conftest.$ac_ext <<_ACEOF
22401 /* confdefs.h. */
22402 _ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h. */
22406 $ac_includes_default
22407 #include <soundcard.h>
22408 _ACEOF
22409 rm -f conftest.$ac_objext
22410 if { (ac_try="$ac_compile"
22411 case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22414 esac
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_compile") 2>conftest.er1
22417 ac_status=$?
22418 grep -v '^ *+' conftest.er1 >conftest.err
22419 rm -f conftest.er1
22420 cat conftest.err >&5
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } && {
22423 test -z "$ac_c_werror_flag" ||
22424 test ! -s conftest.err
22425 } && test -s conftest.$ac_objext; then
22426 ac_header_compiler=yes
22427 else
22428 echo "$as_me: failed program was:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22431 ac_header_compiler=no
22434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22436 echo "${ECHO_T}$ac_header_compiler" >&6; }
22438 # Is the header present?
22439 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
22440 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
22441 cat >conftest.$ac_ext <<_ACEOF
22442 /* confdefs.h. */
22443 _ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 #include <soundcard.h>
22448 _ACEOF
22449 if { (ac_try="$ac_cpp conftest.$ac_ext"
22450 case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22453 esac
22454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22456 ac_status=$?
22457 grep -v '^ *+' conftest.er1 >conftest.err
22458 rm -f conftest.er1
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } >/dev/null && {
22462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22463 test ! -s conftest.err
22464 }; then
22465 ac_header_preproc=yes
22466 else
22467 echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22470 ac_header_preproc=no
22473 rm -f conftest.err conftest.$ac_ext
22474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22475 echo "${ECHO_T}$ac_header_preproc" >&6; }
22477 # So? What about this header?
22478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22479 yes:no: )
22480 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22481 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22482 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
22483 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
22484 ac_header_preproc=yes
22486 no:yes:* )
22487 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
22488 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
22489 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
22490 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
22491 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
22492 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
22493 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22494 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22495 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
22496 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
22497 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
22498 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
22501 esac
22502 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22503 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22504 if test "${ac_cv_header_soundcard_h+set}" = set; then
22505 echo $ECHO_N "(cached) $ECHO_C" >&6
22506 else
22507 ac_cv_header_soundcard_h=$ac_header_preproc
22509 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22510 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22513 if test $ac_cv_header_soundcard_h = yes; then
22514 OSS_HEADER_FOUND=1
22515 else
22516 OSS_HEADER_FOUND=0
22522 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
22523 if test ! -z "${OSS_MANDATORY}" ;
22524 then
22525 { echo "$as_me:$LINENO: ***" >&5
22526 echo "$as_me: ***" >&6;}
22527 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
22528 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
22529 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
22530 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
22531 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22532 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
22533 exit 1
22535 OSS_LIB=""
22536 OSS_INCLUDE=""
22537 PBX_OSS=0
22538 else
22539 PBX_OSS=1
22541 cat >>confdefs.h <<_ACEOF
22542 #define HAVE_OSS 1
22543 _ACEOF
22546 elif test ! -z "${OSS_MANDATORY}";
22547 then
22548 { echo "$as_me:$LINENO: ***" >&5
22549 echo "$as_me: ***" >&6;}
22550 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
22551 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
22552 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22553 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22554 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22555 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
22556 exit 1
22562 PG_CONFIG=No
22563 if test "${USE_PGSQL}" != "no"; then
22564 if test "x${PGSQL_DIR}" != "x"; then
22565 if test -n "$ac_tool_prefix"; then
22566 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22567 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22570 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22571 echo $ECHO_N "(cached) $ECHO_C" >&6
22572 else
22573 case $PG_CONFIG in
22574 [\\/]* | ?:[\\/]*)
22575 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22579 for as_dir in ${PGSQL_DIR}/bin
22581 IFS=$as_save_IFS
22582 test -z "$as_dir" && as_dir=.
22583 for ac_exec_ext in '' $ac_executable_extensions; do
22584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22585 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22587 break 2
22589 done
22590 done
22591 IFS=$as_save_IFS
22594 esac
22596 PG_CONFIG=$ac_cv_path_PG_CONFIG
22597 if test -n "$PG_CONFIG"; then
22598 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22599 echo "${ECHO_T}$PG_CONFIG" >&6; }
22600 else
22601 { echo "$as_me:$LINENO: result: no" >&5
22602 echo "${ECHO_T}no" >&6; }
22607 if test -z "$ac_cv_path_PG_CONFIG"; then
22608 ac_pt_PG_CONFIG=$PG_CONFIG
22609 # Extract the first word of "pg_config", so it can be a program name with args.
22610 set dummy pg_config; ac_word=$2
22611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22613 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22614 echo $ECHO_N "(cached) $ECHO_C" >&6
22615 else
22616 case $ac_pt_PG_CONFIG in
22617 [\\/]* | ?:[\\/]*)
22618 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22622 for as_dir in ${PGSQL_DIR}/bin
22624 IFS=$as_save_IFS
22625 test -z "$as_dir" && as_dir=.
22626 for ac_exec_ext in '' $ac_executable_extensions; do
22627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22628 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22630 break 2
22632 done
22633 done
22634 IFS=$as_save_IFS
22637 esac
22639 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22640 if test -n "$ac_pt_PG_CONFIG"; then
22641 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22642 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22643 else
22644 { echo "$as_me:$LINENO: result: no" >&5
22645 echo "${ECHO_T}no" >&6; }
22648 if test "x$ac_pt_PG_CONFIG" = x; then
22649 PG_CONFIG="No"
22650 else
22651 case $cross_compiling:$ac_tool_warned in
22652 yes:)
22653 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22654 whose name does not start with the host triplet. If you think this
22655 configuration is useful to you, please write to autoconf@gnu.org." >&5
22656 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22657 whose name does not start with the host triplet. If you think this
22658 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22659 ac_tool_warned=yes ;;
22660 esac
22661 PG_CONFIG=$ac_pt_PG_CONFIG
22663 else
22664 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22667 if test x"${PG_CONFIG}" = xNo; then
22668 { echo "$as_me:$LINENO: ***" >&5
22669 echo "$as_me: ***" >&6;}
22670 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
22671 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
22672 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
22673 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
22674 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22675 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22676 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22677 echo "$as_me: *** including --without-postgres" >&6;}
22678 exit 1
22680 else
22681 if test -n "$ac_tool_prefix"; then
22682 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22683 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22686 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22688 else
22689 case $PG_CONFIG in
22690 [\\/]* | ?:[\\/]*)
22691 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22695 for as_dir in $PATH
22697 IFS=$as_save_IFS
22698 test -z "$as_dir" && as_dir=.
22699 for ac_exec_ext in '' $ac_executable_extensions; do
22700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22701 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22703 break 2
22705 done
22706 done
22707 IFS=$as_save_IFS
22710 esac
22712 PG_CONFIG=$ac_cv_path_PG_CONFIG
22713 if test -n "$PG_CONFIG"; then
22714 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22715 echo "${ECHO_T}$PG_CONFIG" >&6; }
22716 else
22717 { echo "$as_me:$LINENO: result: no" >&5
22718 echo "${ECHO_T}no" >&6; }
22723 if test -z "$ac_cv_path_PG_CONFIG"; then
22724 ac_pt_PG_CONFIG=$PG_CONFIG
22725 # Extract the first word of "pg_config", so it can be a program name with args.
22726 set dummy pg_config; ac_word=$2
22727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22729 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
22731 else
22732 case $ac_pt_PG_CONFIG in
22733 [\\/]* | ?:[\\/]*)
22734 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22738 for as_dir in $PATH
22740 IFS=$as_save_IFS
22741 test -z "$as_dir" && as_dir=.
22742 for ac_exec_ext in '' $ac_executable_extensions; do
22743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22744 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22746 break 2
22748 done
22749 done
22750 IFS=$as_save_IFS
22753 esac
22755 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22756 if test -n "$ac_pt_PG_CONFIG"; then
22757 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22758 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22759 else
22760 { echo "$as_me:$LINENO: result: no" >&5
22761 echo "${ECHO_T}no" >&6; }
22764 if test "x$ac_pt_PG_CONFIG" = x; then
22765 PG_CONFIG="No"
22766 else
22767 case $cross_compiling:$ac_tool_warned in
22768 yes:)
22769 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22770 whose name does not start with the host triplet. If you think this
22771 configuration is useful to you, please write to autoconf@gnu.org." >&5
22772 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22773 whose name does not start with the host triplet. If you think this
22774 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22775 ac_tool_warned=yes ;;
22776 esac
22777 PG_CONFIG=$ac_pt_PG_CONFIG
22779 else
22780 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22785 if test "${PG_CONFIG}" != No; then
22786 PGSQL_libdir=`${PG_CONFIG} --libdir`
22787 PGSQL_includedir=`${PG_CONFIG} --includedir`
22789 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
22790 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
22791 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
22792 echo $ECHO_N "(cached) $ECHO_C" >&6
22793 else
22794 ac_check_lib_save_LIBS=$LIBS
22795 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
22796 cat >conftest.$ac_ext <<_ACEOF
22797 /* confdefs.h. */
22798 _ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h. */
22803 /* Override any GCC internal prototype to avoid an error.
22804 Use char because int might match the return type of a GCC
22805 builtin and then its argument prototype would still apply. */
22806 #ifdef __cplusplus
22807 extern "C"
22808 #endif
22809 char PQexec ();
22811 main ()
22813 return PQexec ();
22815 return 0;
22817 _ACEOF
22818 rm -f conftest.$ac_objext conftest$ac_exeext
22819 if { (ac_try="$ac_link"
22820 case "(($ac_try" in
22821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822 *) ac_try_echo=$ac_try;;
22823 esac
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825 (eval "$ac_link") 2>conftest.er1
22826 ac_status=$?
22827 grep -v '^ *+' conftest.er1 >conftest.err
22828 rm -f conftest.er1
22829 cat conftest.err >&5
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); } && {
22832 test -z "$ac_c_werror_flag" ||
22833 test ! -s conftest.err
22834 } && test -s conftest$ac_exeext &&
22835 $as_test_x conftest$ac_exeext; then
22836 ac_cv_lib_pq_PQexec=yes
22837 else
22838 echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22841 ac_cv_lib_pq_PQexec=no
22844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22845 conftest$ac_exeext conftest.$ac_ext
22846 LIBS=$ac_check_lib_save_LIBS
22848 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
22849 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
22850 if test $ac_cv_lib_pq_PQexec = yes; then
22852 cat >>confdefs.h <<_ACEOF
22853 #define HAVE_PGSQL 1
22854 _ACEOF
22859 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
22860 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
22861 PGSQL_INCLUDE="-I${PGSQL_includedir}"
22862 PBX_PGSQL=1
22863 elif test ! -z "${PGSQL_MANDATORY}";
22864 then
22865 { echo "$as_me:$LINENO: ***" >&5
22866 echo "$as_me: ***" >&6;}
22867 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22868 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22869 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22870 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22871 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22872 echo "$as_me: *** including --without-postgres" >&6;}
22873 exit 1
22875 elif test ! -z "${PGSQL_MANDATORY}";
22876 then
22877 { echo "$as_me:$LINENO: ***" >&5
22878 echo "$as_me: ***" >&6;}
22879 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22880 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22881 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22882 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22883 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22884 echo "$as_me: *** including --without-postgres" >&6;}
22885 exit 1
22889 if test "${USE_POPT}" != "no"; then
22890 pbxlibdir=""
22891 if test "x${POPT_DIR}" != "x"; then
22892 if test -d ${POPT_DIR}/lib; then
22893 pbxlibdir="-L${POPT_DIR}/lib"
22894 else
22895 pbxlibdir="-L${POPT_DIR}"
22898 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
22899 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
22900 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22902 else
22903 ac_check_lib_save_LIBS=$LIBS
22904 LIBS="-lpopt ${pbxlibdir} $LIBS"
22905 cat >conftest.$ac_ext <<_ACEOF
22906 /* confdefs.h. */
22907 _ACEOF
22908 cat confdefs.h >>conftest.$ac_ext
22909 cat >>conftest.$ac_ext <<_ACEOF
22910 /* end confdefs.h. */
22912 /* Override any GCC internal prototype to avoid an error.
22913 Use char because int might match the return type of a GCC
22914 builtin and then its argument prototype would still apply. */
22915 #ifdef __cplusplus
22916 extern "C"
22917 #endif
22918 char poptStrerror ();
22920 main ()
22922 return poptStrerror ();
22924 return 0;
22926 _ACEOF
22927 rm -f conftest.$ac_objext conftest$ac_exeext
22928 if { (ac_try="$ac_link"
22929 case "(($ac_try" in
22930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22931 *) ac_try_echo=$ac_try;;
22932 esac
22933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22934 (eval "$ac_link") 2>conftest.er1
22935 ac_status=$?
22936 grep -v '^ *+' conftest.er1 >conftest.err
22937 rm -f conftest.er1
22938 cat conftest.err >&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } && {
22941 test -z "$ac_c_werror_flag" ||
22942 test ! -s conftest.err
22943 } && test -s conftest$ac_exeext &&
22944 $as_test_x conftest$ac_exeext; then
22945 ac_cv_lib_popt_poptStrerror=yes
22946 else
22947 echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22950 ac_cv_lib_popt_poptStrerror=no
22953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22954 conftest$ac_exeext conftest.$ac_ext
22955 LIBS=$ac_check_lib_save_LIBS
22957 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
22958 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
22959 if test $ac_cv_lib_popt_poptStrerror = yes; then
22960 AST_POPT_FOUND=yes
22961 else
22962 AST_POPT_FOUND=no
22966 if test "${AST_POPT_FOUND}" = "yes"; then
22967 POPT_LIB="-lpopt "
22968 POPT_HEADER_FOUND="1"
22969 if test "x${POPT_DIR}" != "x"; then
22970 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
22971 POPT_INCLUDE="-I${POPT_DIR}/include"
22972 saved_cppflags="${CPPFLAGS}"
22973 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include"
22974 if test "xpopt.h" != "x" ; then
22975 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
22976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22977 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
22978 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
22979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22982 ac_res=`eval echo '${'$as_ac_Header'}'`
22983 { echo "$as_me:$LINENO: result: $ac_res" >&5
22984 echo "${ECHO_T}$ac_res" >&6; }
22985 else
22986 # Is the header compilable?
22987 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
22988 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
22989 cat >conftest.$ac_ext <<_ACEOF
22990 /* confdefs.h. */
22991 _ACEOF
22992 cat confdefs.h >>conftest.$ac_ext
22993 cat >>conftest.$ac_ext <<_ACEOF
22994 /* end confdefs.h. */
22995 $ac_includes_default
22996 #include <${POPT_DIR}/include/popt.h>
22997 _ACEOF
22998 rm -f conftest.$ac_objext
22999 if { (ac_try="$ac_compile"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23003 esac
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_compile") 2>conftest.er1
23006 ac_status=$?
23007 grep -v '^ *+' conftest.er1 >conftest.err
23008 rm -f conftest.er1
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } && {
23012 test -z "$ac_c_werror_flag" ||
23013 test ! -s conftest.err
23014 } && test -s conftest.$ac_objext; then
23015 ac_header_compiler=yes
23016 else
23017 echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23020 ac_header_compiler=no
23023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23025 echo "${ECHO_T}$ac_header_compiler" >&6; }
23027 # Is the header present?
23028 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
23029 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
23030 cat >conftest.$ac_ext <<_ACEOF
23031 /* confdefs.h. */
23032 _ACEOF
23033 cat confdefs.h >>conftest.$ac_ext
23034 cat >>conftest.$ac_ext <<_ACEOF
23035 /* end confdefs.h. */
23036 #include <${POPT_DIR}/include/popt.h>
23037 _ACEOF
23038 if { (ac_try="$ac_cpp conftest.$ac_ext"
23039 case "(($ac_try" in
23040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23041 *) ac_try_echo=$ac_try;;
23042 esac
23043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23045 ac_status=$?
23046 grep -v '^ *+' conftest.er1 >conftest.err
23047 rm -f conftest.er1
23048 cat conftest.err >&5
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); } >/dev/null && {
23051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23052 test ! -s conftest.err
23053 }; then
23054 ac_header_preproc=yes
23055 else
23056 echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23059 ac_header_preproc=no
23062 rm -f conftest.err conftest.$ac_ext
23063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23064 echo "${ECHO_T}$ac_header_preproc" >&6; }
23066 # So? What about this header?
23067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23068 yes:no: )
23069 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23070 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23071 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
23072 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
23073 ac_header_preproc=yes
23075 no:yes:* )
23076 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
23077 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
23078 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
23079 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
23080 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
23081 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
23082 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
23083 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23084 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
23085 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
23086 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
23087 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
23090 esac
23091 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
23092 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
23093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23094 echo $ECHO_N "(cached) $ECHO_C" >&6
23095 else
23096 eval "$as_ac_Header=\$ac_header_preproc"
23098 ac_res=`eval echo '${'$as_ac_Header'}'`
23099 { echo "$as_me:$LINENO: result: $ac_res" >&5
23100 echo "${ECHO_T}$ac_res" >&6; }
23103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23104 POPT_HEADER_FOUND=1
23105 else
23106 POPT_HEADER_FOUND=0
23111 CPPFLAGS="${saved_cppflags}"
23112 else
23113 if test "xpopt.h" != "x" ; then
23114 if test "${ac_cv_header_popt_h+set}" = set; then
23115 { echo "$as_me:$LINENO: checking for popt.h" >&5
23116 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23117 if test "${ac_cv_header_popt_h+set}" = set; then
23118 echo $ECHO_N "(cached) $ECHO_C" >&6
23120 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23121 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23122 else
23123 # Is the header compilable?
23124 { echo "$as_me:$LINENO: checking popt.h usability" >&5
23125 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
23126 cat >conftest.$ac_ext <<_ACEOF
23127 /* confdefs.h. */
23128 _ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h. */
23132 $ac_includes_default
23133 #include <popt.h>
23134 _ACEOF
23135 rm -f conftest.$ac_objext
23136 if { (ac_try="$ac_compile"
23137 case "(($ac_try" in
23138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139 *) ac_try_echo=$ac_try;;
23140 esac
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142 (eval "$ac_compile") 2>conftest.er1
23143 ac_status=$?
23144 grep -v '^ *+' conftest.er1 >conftest.err
23145 rm -f conftest.er1
23146 cat conftest.err >&5
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); } && {
23149 test -z "$ac_c_werror_flag" ||
23150 test ! -s conftest.err
23151 } && test -s conftest.$ac_objext; then
23152 ac_header_compiler=yes
23153 else
23154 echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23157 ac_header_compiler=no
23160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23162 echo "${ECHO_T}$ac_header_compiler" >&6; }
23164 # Is the header present?
23165 { echo "$as_me:$LINENO: checking popt.h presence" >&5
23166 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
23167 cat >conftest.$ac_ext <<_ACEOF
23168 /* confdefs.h. */
23169 _ACEOF
23170 cat confdefs.h >>conftest.$ac_ext
23171 cat >>conftest.$ac_ext <<_ACEOF
23172 /* end confdefs.h. */
23173 #include <popt.h>
23174 _ACEOF
23175 if { (ac_try="$ac_cpp conftest.$ac_ext"
23176 case "(($ac_try" in
23177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23178 *) ac_try_echo=$ac_try;;
23179 esac
23180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23182 ac_status=$?
23183 grep -v '^ *+' conftest.er1 >conftest.err
23184 rm -f conftest.er1
23185 cat conftest.err >&5
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } >/dev/null && {
23188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23189 test ! -s conftest.err
23190 }; then
23191 ac_header_preproc=yes
23192 else
23193 echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23196 ac_header_preproc=no
23199 rm -f conftest.err conftest.$ac_ext
23200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23201 echo "${ECHO_T}$ac_header_preproc" >&6; }
23203 # So? What about this header?
23204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23205 yes:no: )
23206 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23207 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23208 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
23209 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
23210 ac_header_preproc=yes
23212 no:yes:* )
23213 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
23214 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
23215 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
23216 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
23217 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
23218 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
23219 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
23220 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23221 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
23222 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
23223 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
23224 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
23227 esac
23228 { echo "$as_me:$LINENO: checking for popt.h" >&5
23229 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23230 if test "${ac_cv_header_popt_h+set}" = set; then
23231 echo $ECHO_N "(cached) $ECHO_C" >&6
23232 else
23233 ac_cv_header_popt_h=$ac_header_preproc
23235 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23236 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23239 if test $ac_cv_header_popt_h = yes; then
23240 POPT_HEADER_FOUND=1
23241 else
23242 POPT_HEADER_FOUND=0
23248 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
23249 if test ! -z "${POPT_MANDATORY}" ;
23250 then
23251 { echo "$as_me:$LINENO: ***" >&5
23252 echo "$as_me: ***" >&6;}
23253 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
23254 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
23255 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
23256 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
23257 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23258 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23259 exit 1
23261 POPT_LIB=""
23262 POPT_INCLUDE=""
23263 PBX_POPT=0
23264 else
23265 PBX_POPT=1
23267 cat >>confdefs.h <<_ACEOF
23268 #define HAVE_POPT 1
23269 _ACEOF
23272 elif test ! -z "${POPT_MANDATORY}";
23273 then
23274 { echo "$as_me:$LINENO: ***" >&5
23275 echo "$as_me: ***" >&6;}
23276 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
23277 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
23278 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23279 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23280 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23281 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23282 exit 1
23288 if test "${USE_PRI}" != "no"; then
23289 pbxlibdir=""
23290 if test "x${PRI_DIR}" != "x"; then
23291 if test -d ${PRI_DIR}/lib; then
23292 pbxlibdir="-L${PRI_DIR}/lib"
23293 else
23294 pbxlibdir="-L${PRI_DIR}"
23297 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
23298 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
23299 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23301 else
23302 ac_check_lib_save_LIBS=$LIBS
23303 LIBS="-lpri ${pbxlibdir} $LIBS"
23304 cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h. */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23311 /* Override any GCC internal prototype to avoid an error.
23312 Use char because int might match the return type of a GCC
23313 builtin and then its argument prototype would still apply. */
23314 #ifdef __cplusplus
23315 extern "C"
23316 #endif
23317 char pri_call ();
23319 main ()
23321 return pri_call ();
23323 return 0;
23325 _ACEOF
23326 rm -f conftest.$ac_objext conftest$ac_exeext
23327 if { (ac_try="$ac_link"
23328 case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23331 esac
23332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23333 (eval "$ac_link") 2>conftest.er1
23334 ac_status=$?
23335 grep -v '^ *+' conftest.er1 >conftest.err
23336 rm -f conftest.er1
23337 cat conftest.err >&5
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); } && {
23340 test -z "$ac_c_werror_flag" ||
23341 test ! -s conftest.err
23342 } && test -s conftest$ac_exeext &&
23343 $as_test_x conftest$ac_exeext; then
23344 ac_cv_lib_pri_pri_call=yes
23345 else
23346 echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23349 ac_cv_lib_pri_pri_call=no
23352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23353 conftest$ac_exeext conftest.$ac_ext
23354 LIBS=$ac_check_lib_save_LIBS
23356 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
23357 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
23358 if test $ac_cv_lib_pri_pri_call = yes; then
23359 AST_PRI_FOUND=yes
23360 else
23361 AST_PRI_FOUND=no
23365 if test "${AST_PRI_FOUND}" = "yes"; then
23366 PRI_LIB="-lpri "
23367 PRI_HEADER_FOUND="1"
23368 if test "x${PRI_DIR}" != "x"; then
23369 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
23370 PRI_INCLUDE="-I${PRI_DIR}/include"
23371 saved_cppflags="${CPPFLAGS}"
23372 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
23373 if test "xlibpri.h" != "x" ; then
23374 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
23375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23376 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
23377 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
23378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23379 echo $ECHO_N "(cached) $ECHO_C" >&6
23381 ac_res=`eval echo '${'$as_ac_Header'}'`
23382 { echo "$as_me:$LINENO: result: $ac_res" >&5
23383 echo "${ECHO_T}$ac_res" >&6; }
23384 else
23385 # Is the header compilable?
23386 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
23387 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
23388 cat >conftest.$ac_ext <<_ACEOF
23389 /* confdefs.h. */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h. */
23394 $ac_includes_default
23395 #include <${PRI_DIR}/include/libpri.h>
23396 _ACEOF
23397 rm -f conftest.$ac_objext
23398 if { (ac_try="$ac_compile"
23399 case "(($ac_try" in
23400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23401 *) ac_try_echo=$ac_try;;
23402 esac
23403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23404 (eval "$ac_compile") 2>conftest.er1
23405 ac_status=$?
23406 grep -v '^ *+' conftest.er1 >conftest.err
23407 rm -f conftest.er1
23408 cat conftest.err >&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } && {
23411 test -z "$ac_c_werror_flag" ||
23412 test ! -s conftest.err
23413 } && test -s conftest.$ac_objext; then
23414 ac_header_compiler=yes
23415 else
23416 echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23419 ac_header_compiler=no
23422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23424 echo "${ECHO_T}$ac_header_compiler" >&6; }
23426 # Is the header present?
23427 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
23428 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
23429 cat >conftest.$ac_ext <<_ACEOF
23430 /* confdefs.h. */
23431 _ACEOF
23432 cat confdefs.h >>conftest.$ac_ext
23433 cat >>conftest.$ac_ext <<_ACEOF
23434 /* end confdefs.h. */
23435 #include <${PRI_DIR}/include/libpri.h>
23436 _ACEOF
23437 if { (ac_try="$ac_cpp conftest.$ac_ext"
23438 case "(($ac_try" in
23439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23440 *) ac_try_echo=$ac_try;;
23441 esac
23442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23444 ac_status=$?
23445 grep -v '^ *+' conftest.er1 >conftest.err
23446 rm -f conftest.er1
23447 cat conftest.err >&5
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); } >/dev/null && {
23450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23451 test ! -s conftest.err
23452 }; then
23453 ac_header_preproc=yes
23454 else
23455 echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23458 ac_header_preproc=no
23461 rm -f conftest.err conftest.$ac_ext
23462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23463 echo "${ECHO_T}$ac_header_preproc" >&6; }
23465 # So? What about this header?
23466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23467 yes:no: )
23468 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23469 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23470 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
23471 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
23472 ac_header_preproc=yes
23474 no:yes:* )
23475 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
23476 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
23477 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
23478 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
23479 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
23480 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
23481 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23482 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23483 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
23484 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
23485 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
23486 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
23489 esac
23490 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
23491 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
23492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23493 echo $ECHO_N "(cached) $ECHO_C" >&6
23494 else
23495 eval "$as_ac_Header=\$ac_header_preproc"
23497 ac_res=`eval echo '${'$as_ac_Header'}'`
23498 { echo "$as_me:$LINENO: result: $ac_res" >&5
23499 echo "${ECHO_T}$ac_res" >&6; }
23502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23503 PRI_HEADER_FOUND=1
23504 else
23505 PRI_HEADER_FOUND=0
23510 CPPFLAGS="${saved_cppflags}"
23511 else
23512 if test "xlibpri.h" != "x" ; then
23513 if test "${ac_cv_header_libpri_h+set}" = set; then
23514 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23515 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23516 if test "${ac_cv_header_libpri_h+set}" = set; then
23517 echo $ECHO_N "(cached) $ECHO_C" >&6
23519 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23520 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23521 else
23522 # Is the header compilable?
23523 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
23524 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
23525 cat >conftest.$ac_ext <<_ACEOF
23526 /* confdefs.h. */
23527 _ACEOF
23528 cat confdefs.h >>conftest.$ac_ext
23529 cat >>conftest.$ac_ext <<_ACEOF
23530 /* end confdefs.h. */
23531 $ac_includes_default
23532 #include <libpri.h>
23533 _ACEOF
23534 rm -f conftest.$ac_objext
23535 if { (ac_try="$ac_compile"
23536 case "(($ac_try" in
23537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23538 *) ac_try_echo=$ac_try;;
23539 esac
23540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23541 (eval "$ac_compile") 2>conftest.er1
23542 ac_status=$?
23543 grep -v '^ *+' conftest.er1 >conftest.err
23544 rm -f conftest.er1
23545 cat conftest.err >&5
23546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547 (exit $ac_status); } && {
23548 test -z "$ac_c_werror_flag" ||
23549 test ! -s conftest.err
23550 } && test -s conftest.$ac_objext; then
23551 ac_header_compiler=yes
23552 else
23553 echo "$as_me: failed program was:" >&5
23554 sed 's/^/| /' conftest.$ac_ext >&5
23556 ac_header_compiler=no
23559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23561 echo "${ECHO_T}$ac_header_compiler" >&6; }
23563 # Is the header present?
23564 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
23565 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
23566 cat >conftest.$ac_ext <<_ACEOF
23567 /* confdefs.h. */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572 #include <libpri.h>
23573 _ACEOF
23574 if { (ac_try="$ac_cpp conftest.$ac_ext"
23575 case "(($ac_try" in
23576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23577 *) ac_try_echo=$ac_try;;
23578 esac
23579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23581 ac_status=$?
23582 grep -v '^ *+' conftest.er1 >conftest.err
23583 rm -f conftest.er1
23584 cat conftest.err >&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); } >/dev/null && {
23587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23588 test ! -s conftest.err
23589 }; then
23590 ac_header_preproc=yes
23591 else
23592 echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23595 ac_header_preproc=no
23598 rm -f conftest.err conftest.$ac_ext
23599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23600 echo "${ECHO_T}$ac_header_preproc" >&6; }
23602 # So? What about this header?
23603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23604 yes:no: )
23605 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23606 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23607 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
23608 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
23609 ac_header_preproc=yes
23611 no:yes:* )
23612 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
23613 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
23614 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
23615 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
23616 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
23617 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
23618 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23619 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23620 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
23621 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
23622 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
23623 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
23626 esac
23627 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23628 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23629 if test "${ac_cv_header_libpri_h+set}" = set; then
23630 echo $ECHO_N "(cached) $ECHO_C" >&6
23631 else
23632 ac_cv_header_libpri_h=$ac_header_preproc
23634 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23635 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23638 if test $ac_cv_header_libpri_h = yes; then
23639 PRI_HEADER_FOUND=1
23640 else
23641 PRI_HEADER_FOUND=0
23647 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
23648 if test ! -z "${PRI_MANDATORY}" ;
23649 then
23650 { echo "$as_me:$LINENO: ***" >&5
23651 echo "$as_me: ***" >&6;}
23652 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
23653 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
23654 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
23655 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
23656 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23657 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23658 exit 1
23660 PRI_LIB=""
23661 PRI_INCLUDE=""
23662 PBX_PRI=0
23663 else
23664 PBX_PRI=1
23666 cat >>confdefs.h <<_ACEOF
23667 #define HAVE_PRI 1
23668 _ACEOF
23671 elif test ! -z "${PRI_MANDATORY}";
23672 then
23673 { echo "$as_me:$LINENO: ***" >&5
23674 echo "$as_me: ***" >&6;}
23675 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
23676 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
23677 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23678 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23679 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23680 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23681 exit 1
23686 if test "${USE_PWLIB}" != "no"; then
23687 if test ! -z "${PWLIB_DIR}"; then
23688 PWLIBDIR="${PWLIB_DIR}"
23691 PWLIB_INCDIR=
23692 PWLIB_LIBDIR=
23693 if test "${PWLIBDIR:-unset}" != "unset" ; then
23694 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
23695 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
23696 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
23697 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23698 echo $ECHO_N "(cached) $ECHO_C" >&6
23699 else
23700 test "$cross_compiling" = yes &&
23701 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23702 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23703 { (exit 1); exit 1; }; }
23704 if test -r "${PWLIBDIR}/version.h"; then
23705 eval "$as_ac_File=yes"
23706 else
23707 eval "$as_ac_File=no"
23710 ac_res=`eval echo '${'$as_ac_File'}'`
23711 { echo "$as_me:$LINENO: result: $ac_res" >&5
23712 echo "${ECHO_T}$ac_res" >&6; }
23713 if test `eval echo '${'$as_ac_File'}'` = yes; then
23714 HAS_PWLIB=1
23718 if test "${HAS_PWLIB:-unset}" = "unset" ; then
23719 if test "${OPENH323DIR:-unset}" != "unset"; then
23720 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
23721 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
23722 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
23723 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23724 echo $ECHO_N "(cached) $ECHO_C" >&6
23725 else
23726 test "$cross_compiling" = yes &&
23727 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23728 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23729 { (exit 1); exit 1; }; }
23730 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
23731 eval "$as_ac_File=yes"
23732 else
23733 eval "$as_ac_File=no"
23736 ac_res=`eval echo '${'$as_ac_File'}'`
23737 { echo "$as_me:$LINENO: result: $ac_res" >&5
23738 echo "${ECHO_T}$ac_res" >&6; }
23739 if test `eval echo '${'$as_ac_File'}'` = yes; then
23740 HAS_PWLIB=1
23744 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23745 PWLIBDIR="${OPENH323DIR}/../pwlib"
23746 else
23747 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
23748 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
23749 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
23750 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23751 echo $ECHO_N "(cached) $ECHO_C" >&6
23752 else
23753 test "$cross_compiling" = yes &&
23754 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23755 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23756 { (exit 1); exit 1; }; }
23757 if test -r "${HOME}/pwlib/include/ptlib.h"; then
23758 eval "$as_ac_File=yes"
23759 else
23760 eval "$as_ac_File=no"
23763 ac_res=`eval echo '${'$as_ac_File'}'`
23764 { echo "$as_me:$LINENO: result: $ac_res" >&5
23765 echo "${ECHO_T}$ac_res" >&6; }
23766 if test `eval echo '${'$as_ac_File'}'` = yes; then
23767 HAS_PWLIB=1
23770 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23771 PWLIBDIR="${HOME}/pwlib"
23772 else
23773 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
23774 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
23775 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
23776 echo $ECHO_N "(cached) $ECHO_C" >&6
23777 else
23778 test "$cross_compiling" = yes &&
23779 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23780 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23781 { (exit 1); exit 1; }; }
23782 if test -r "/usr/local/include/ptlib.h"; then
23783 ac_cv_file__usr_local_include_ptlib_h=yes
23784 else
23785 ac_cv_file__usr_local_include_ptlib_h=no
23788 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
23789 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
23790 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
23791 HAS_PWLIB=1
23794 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23795 # Extract the first word of "ptlib-config", so it can be a program name with args.
23796 set dummy ptlib-config; ac_word=$2
23797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23799 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23800 echo $ECHO_N "(cached) $ECHO_C" >&6
23801 else
23802 case $PTLIB_CONFIG in
23803 [\\/]* | ?:[\\/]*)
23804 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23808 for as_dir in /usr/local/bin
23810 IFS=$as_save_IFS
23811 test -z "$as_dir" && as_dir=.
23812 for ac_exec_ext in '' $ac_executable_extensions; do
23813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23814 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23816 break 2
23818 done
23819 done
23820 IFS=$as_save_IFS
23823 esac
23825 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23826 if test -n "$PTLIB_CONFIG"; then
23827 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23828 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23829 else
23830 { echo "$as_me:$LINENO: result: no" >&5
23831 echo "${ECHO_T}no" >&6; }
23835 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
23836 # Extract the first word of "ptlib-config", so it can be a program name with args.
23837 set dummy ptlib-config; ac_word=$2
23838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23840 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23841 echo $ECHO_N "(cached) $ECHO_C" >&6
23842 else
23843 case $PTLIB_CONFIG in
23844 [\\/]* | ?:[\\/]*)
23845 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23849 for as_dir in /usr/local/share/pwlib/make
23851 IFS=$as_save_IFS
23852 test -z "$as_dir" && as_dir=.
23853 for ac_exec_ext in '' $ac_executable_extensions; do
23854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23855 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23857 break 2
23859 done
23860 done
23861 IFS=$as_save_IFS
23864 esac
23866 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23867 if test -n "$PTLIB_CONFIG"; then
23868 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23869 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23870 else
23871 { echo "$as_me:$LINENO: result: no" >&5
23872 echo "${ECHO_T}no" >&6; }
23877 PWLIB_INCDIR="/usr/local/include"
23878 PWLIB_LIBDIR="/usr/local/lib"
23879 else
23880 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
23881 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
23882 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
23883 echo $ECHO_N "(cached) $ECHO_C" >&6
23884 else
23885 test "$cross_compiling" = yes &&
23886 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23887 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23888 { (exit 1); exit 1; }; }
23889 if test -r "/usr/include/ptlib.h"; then
23890 ac_cv_file__usr_include_ptlib_h=yes
23891 else
23892 ac_cv_file__usr_include_ptlib_h=no
23895 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
23896 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
23897 if test $ac_cv_file__usr_include_ptlib_h = yes; then
23898 HAS_PWLIB=1
23901 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23902 # Extract the first word of "ptlib-config", so it can be a program name with args.
23903 set dummy ptlib-config; ac_word=$2
23904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23906 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23907 echo $ECHO_N "(cached) $ECHO_C" >&6
23908 else
23909 case $PTLIB_CONFIG in
23910 [\\/]* | ?:[\\/]*)
23911 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23915 for as_dir in /usr/share/pwlib/make
23917 IFS=$as_save_IFS
23918 test -z "$as_dir" && as_dir=.
23919 for ac_exec_ext in '' $ac_executable_extensions; do
23920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23921 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23923 break 2
23925 done
23926 done
23927 IFS=$as_save_IFS
23930 esac
23932 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23933 if test -n "$PTLIB_CONFIG"; then
23934 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23935 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23936 else
23937 { echo "$as_me:$LINENO: result: no" >&5
23938 echo "${ECHO_T}no" >&6; }
23942 PWLIB_INCDIR="/usr/include"
23943 PWLIB_LIBDIR="/usr/lib"
23950 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
23951 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
23952 # exit
23955 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23956 if test "${PWLIBDIR:-unset}" = "unset" ; then
23957 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
23958 PWLIBDIR=`$PTLIB_CONFIG --prefix`
23959 else
23960 echo "Cannot find ptlib-config - please install and try again"
23961 exit
23965 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
23966 PWLIBDIR="/usr/share/pwlib"
23967 PWLIB_INCDIR="/usr/include"
23968 PWLIB_LIBDIR="/usr/lib"
23970 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
23971 PWLIBDIR="/usr/local/share/pwlib"
23972 PWLIB_INCDIR="/usr/local/include"
23973 PWLIB_LIBDIR="/usr/local/lib"
23976 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
23977 PWLIB_INCDIR="${PWLIBDIR}/include"
23979 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
23980 PWLIB_LIBDIR="${PWLIBDIR}/lib"
23989 if test "${HAS_PWLIB:-unset}" != "unset"; then
23990 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
23991 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
23992 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
23993 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
23994 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
23995 let PWLIB_REQ=1*10000+9*100+2
23997 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
23998 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23999 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
24000 { echo "$as_me:$LINENO: result: no" >&5
24001 echo "${ECHO_T}no" >&6; }
24002 unset HAS_PWLIB
24003 else
24004 { echo "$as_me:$LINENO: result: yes" >&5
24005 echo "${ECHO_T}yes" >&6; }
24010 if test "${HAS_PWLIB:-unset}" != "unset"; then
24012 PWLIB_OSTYPE=
24013 case "$host_os" in
24014 linux*) PWLIB_OSTYPE=linux ;
24016 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
24018 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
24019 ENDLDLIBS="-lossaudio" ;
24021 netbsd* ) PWLIB_OSTYPE=NetBSD ;
24022 ENDLDLIBS="-lossaudio" ;
24024 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
24026 darwin* ) PWLIB_OSTYPE=Darwin ;
24028 beos*) PWLIB_OSTYPE=beos ;
24029 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
24031 cygwin*) PWLIB_OSTYPE=cygwin ;
24033 mingw*) PWLIB_OSTYPE=mingw ;
24034 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
24035 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
24037 * ) PWLIB_OSTYPE="$host_os" ;
24038 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
24039 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
24041 esac
24043 PWLIB_MACHTYPE=
24044 case "$host_cpu" in
24045 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
24048 x86_64) PWLIB_MACHTYPE=x86_64 ;
24049 P_64BIT=1 ;
24050 LIB64=1 ;
24053 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
24054 P_64BIT=1 ;
24057 sparc ) PWLIB_MACHTYPE=sparc ;
24060 powerpc ) PWLIB_MACHTYPE=ppc ;
24063 ppc ) PWLIB_MACHTYPE=ppc ;
24066 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
24067 P_64BIT=1 ;
24068 LIB64=1 ;
24071 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
24072 P_64BIT=1 ;
24073 LIB64=1 ;
24076 ia64) PWLIB_MACHTYPE=ia64 ;
24077 P_64BIT=1 ;
24080 s390x) PWLIB_MACHTYPE=s390x ;
24081 P_64BIT=1 ;
24082 LIB64=1 ;
24085 s390) PWLIB_MACHTYPE=s390 ;
24088 * ) PWLIB_MACHTYPE="$host_cpu";
24089 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
24090 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
24091 esac
24093 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
24098 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
24101 if test "${HAS_PWLIB:-unset}" != "unset"; then
24102 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
24103 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
24105 saved_cppflags="${CPPFLAGS}"
24106 saved_libs="${LIBS}"
24107 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
24108 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
24110 ac_ext=cpp
24111 ac_cpp='$CXXCPP $CPPFLAGS'
24112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24117 cat >conftest.$ac_ext <<_ACEOF
24118 /* confdefs.h. */
24119 _ACEOF
24120 cat confdefs.h >>conftest.$ac_ext
24121 cat >>conftest.$ac_ext <<_ACEOF
24122 /* end confdefs.h. */
24123 #include "ptlib.h"
24125 main ()
24127 BOOL q = PTime::IsDaylightSavings();
24129 return 0;
24131 _ACEOF
24132 rm -f conftest.$ac_objext conftest$ac_exeext
24133 if { (ac_try="$ac_link"
24134 case "(($ac_try" in
24135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136 *) ac_try_echo=$ac_try;;
24137 esac
24138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24139 (eval "$ac_link") 2>conftest.er1
24140 ac_status=$?
24141 grep -v '^ *+' conftest.er1 >conftest.err
24142 rm -f conftest.er1
24143 cat conftest.err >&5
24144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); } && {
24146 test -z "$ac_cxx_werror_flag" ||
24147 test ! -s conftest.err
24148 } && test -s conftest$ac_exeext &&
24149 $as_test_x conftest$ac_exeext; then
24150 { echo "$as_me:$LINENO: result: yes" >&5
24151 echo "${ECHO_T}yes" >&6; }
24152 ac_cv_lib_PWLIB="yes"
24154 else
24155 echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24158 { echo "$as_me:$LINENO: result: no" >&5
24159 echo "${ECHO_T}no" >&6; }
24160 ac_cv_lib_PWLIB="no"
24165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24166 conftest$ac_exeext conftest.$ac_ext
24168 ac_ext=c
24169 ac_cpp='$CPP $CPPFLAGS'
24170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24175 LIBS="${saved_libs}"
24176 CPPFLAGS="${saved_cppflags}"
24178 if test "${ac_cv_lib_PWLIB}" = "yes"; then
24179 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
24180 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
24181 else
24182 PWLIB_LIB="-l${PLATFORM_PWLIB}"
24184 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
24185 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
24187 PBX_PWLIB=1
24189 cat >>confdefs.h <<\_ACEOF
24190 #define HAVE_PWLIB 1
24191 _ACEOF
24199 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
24200 { echo "$as_me:$LINENO: ***" >&5
24201 echo "$as_me: ***" >&6;}
24202 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
24203 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
24204 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24205 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24206 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
24207 echo "$as_me: *** including --without-pwlib" >&6;}
24208 exit 1
24211 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
24212 if test ! -z "${OPENH323_DIR}"; then
24213 OPENH323DIR="${OPENH323_DIR}"
24216 OPENH323_INCDIR=
24217 OPENH323_LIBDIR=
24218 if test "${OPENH323DIR:-unset}" != "unset" ; then
24219 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" | $as_tr_sh`
24220 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
24221 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
24222 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24223 echo $ECHO_N "(cached) $ECHO_C" >&6
24224 else
24225 test "$cross_compiling" = yes &&
24226 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24227 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24228 { (exit 1); exit 1; }; }
24229 if test -r "${OPENH323DIR}/version.h"; then
24230 eval "$as_ac_File=yes"
24231 else
24232 eval "$as_ac_File=no"
24235 ac_res=`eval echo '${'$as_ac_File'}'`
24236 { echo "$as_me:$LINENO: result: $ac_res" >&5
24237 echo "${ECHO_T}$ac_res" >&6; }
24238 if test `eval echo '${'$as_ac_File'}'` = yes; then
24239 HAS_OPENH323=1
24243 if test "${HAS_OPENH323:-unset}" = "unset" ; then
24244 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
24245 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
24246 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
24247 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24248 echo $ECHO_N "(cached) $ECHO_C" >&6
24249 else
24250 test "$cross_compiling" = yes &&
24251 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24252 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24253 { (exit 1); exit 1; }; }
24254 if test -r "${PWLIBDIR}/../openh323/version.h"; then
24255 eval "$as_ac_File=yes"
24256 else
24257 eval "$as_ac_File=no"
24260 ac_res=`eval echo '${'$as_ac_File'}'`
24261 { echo "$as_me:$LINENO: result: $ac_res" >&5
24262 echo "${ECHO_T}$ac_res" >&6; }
24263 if test `eval echo '${'$as_ac_File'}'` = yes; then
24264 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
24267 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24268 OPENH323DIR="${PWLIBDIR}/../openh323"
24269 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
24270 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
24271 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
24272 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24273 echo $ECHO_N "(cached) $ECHO_C" >&6
24274 else
24275 test "$cross_compiling" = yes &&
24276 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24277 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24278 { (exit 1); exit 1; }; }
24279 if test -r "${OPENH323DIR}/include/h323.h"; then
24280 eval "$as_ac_File=yes"
24281 else
24282 eval "$as_ac_File=no"
24285 ac_res=`eval echo '${'$as_ac_File'}'`
24286 { echo "$as_me:$LINENO: result: $ac_res" >&5
24287 echo "${ECHO_T}$ac_res" >&6; }
24288 if test `eval echo '${'$as_ac_File'}'` = yes; then
24290 else
24291 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
24294 else
24295 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" | $as_tr_sh`
24296 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
24297 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
24298 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24299 echo $ECHO_N "(cached) $ECHO_C" >&6
24300 else
24301 test "$cross_compiling" = yes &&
24302 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24303 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24304 { (exit 1); exit 1; }; }
24305 if test -r "${HOME}/openh323/include/h323.h"; then
24306 eval "$as_ac_File=yes"
24307 else
24308 eval "$as_ac_File=no"
24311 ac_res=`eval echo '${'$as_ac_File'}'`
24312 { echo "$as_me:$LINENO: result: $ac_res" >&5
24313 echo "${ECHO_T}$ac_res" >&6; }
24314 if test `eval echo '${'$as_ac_File'}'` = yes; then
24315 HAS_OPENH323=1
24318 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24319 OPENH323DIR="${HOME}/openh323"
24320 else
24321 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
24322 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
24323 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
24324 echo $ECHO_N "(cached) $ECHO_C" >&6
24325 else
24326 test "$cross_compiling" = yes &&
24327 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24328 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24329 { (exit 1); exit 1; }; }
24330 if test -r "/usr/local/include/openh323/h323.h"; then
24331 ac_cv_file__usr_local_include_openh323_h323_h=yes
24332 else
24333 ac_cv_file__usr_local_include_openh323_h323_h=no
24336 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
24337 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
24338 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
24339 HAS_OPENH323=1
24342 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24343 OPENH323DIR="/usr/local/share/openh323"
24344 OPENH323_INCDIR="/usr/local/include/openh323"
24345 OPENH323_LIBDIR="/usr/local/lib"
24346 else
24347 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
24348 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
24349 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
24350 echo $ECHO_N "(cached) $ECHO_C" >&6
24351 else
24352 test "$cross_compiling" = yes &&
24353 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24354 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24355 { (exit 1); exit 1; }; }
24356 if test -r "/usr/include/openh323/h323.h"; then
24357 ac_cv_file__usr_include_openh323_h323_h=yes
24358 else
24359 ac_cv_file__usr_include_openh323_h323_h=no
24362 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
24363 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
24364 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
24365 HAS_OPENH323=1
24368 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24369 OPENH323DIR="/usr/share/openh323"
24370 OPENH323_INCDIR="/usr/include/openh323"
24371 OPENH323_LIBDIR="/usr/lib"
24378 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24379 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
24380 OPENH323_INCDIR="${OPENH323DIR}/include"
24382 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
24383 OPENH323_LIBDIR="${OPENH323DIR}/lib"
24392 if test "${HAS_OPENH323:-unset}" != "unset"; then
24393 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
24394 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
24395 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
24396 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
24397 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
24398 let OPENH323_REQ=1*10000+17*100+3
24400 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
24401 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
24402 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
24403 { echo "$as_me:$LINENO: result: no" >&5
24404 echo "${ECHO_T}no" >&6; }
24405 unset HAS_OPENH323
24406 else
24407 { echo "$as_me:$LINENO: result: yes" >&5
24408 echo "${ECHO_T}yes" >&6; }
24413 if test "${HAS_OPENH323:-unset}" != "unset"; then
24414 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
24415 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
24416 OPENH323_SUFFIX=
24417 files=`ls -l ${OPENH323_LIBDIR}/libh323_${PWLIB_PLATFORM}_*.so*`
24418 libfile=
24419 if test -n "$files"; then
24420 for f in $files; do
24421 if test -f $f -a ! -L $f; then
24422 libfile=`basename $f`
24423 break;
24425 done
24427 if test "${libfile:-unset}" != "unset"; then
24428 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/libh323_${PWLIB_PLATFORM}_\([^.]*\)\..*/\1/'"`
24430 case "${OPENH323_SUFFIX}" in
24432 OPENH323_BUILD="notrace";;
24434 OPENH323_BUILD="opt";;
24436 OPENH323_BUILD="debug";;
24438 OPENH323_BUILD="notrace";;
24439 esac
24440 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
24441 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
24447 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
24449 if test "${HAS_OPENH323:-unset}" != "unset"; then
24450 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
24451 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
24453 saved_cppflags="${CPPFLAGS}"
24454 saved_libs="${LIBS}"
24455 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
24456 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
24458 ac_ext=cpp
24459 ac_cpp='$CXXCPP $CPPFLAGS'
24460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24465 cat >conftest.$ac_ext <<_ACEOF
24466 /* confdefs.h. */
24467 _ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h. */
24471 #include "ptlib.h"
24472 #include "h323.h"
24473 #include "h323ep.h"
24475 main ()
24477 H323EndPoint ep = H323EndPoint();
24479 return 0;
24481 _ACEOF
24482 rm -f conftest.$ac_objext conftest$ac_exeext
24483 if { (ac_try="$ac_link"
24484 case "(($ac_try" in
24485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486 *) ac_try_echo=$ac_try;;
24487 esac
24488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489 (eval "$ac_link") 2>conftest.er1
24490 ac_status=$?
24491 grep -v '^ *+' conftest.er1 >conftest.err
24492 rm -f conftest.er1
24493 cat conftest.err >&5
24494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495 (exit $ac_status); } && {
24496 test -z "$ac_cxx_werror_flag" ||
24497 test ! -s conftest.err
24498 } && test -s conftest$ac_exeext &&
24499 $as_test_x conftest$ac_exeext; then
24500 { echo "$as_me:$LINENO: result: yes" >&5
24501 echo "${ECHO_T}yes" >&6; }
24502 ac_cv_lib_OPENH323="yes"
24504 else
24505 echo "$as_me: failed program was:" >&5
24506 sed 's/^/| /' conftest.$ac_ext >&5
24508 { echo "$as_me:$LINENO: result: no" >&5
24509 echo "${ECHO_T}no" >&6; }
24510 ac_cv_lib_OPENH323="no"
24515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24516 conftest$ac_exeext conftest.$ac_ext
24518 ac_ext=c
24519 ac_cpp='$CPP $CPPFLAGS'
24520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24525 LIBS="${saved_libs}"
24526 CPPFLAGS="${saved_cppflags}"
24528 if test "${ac_cv_lib_OPENH323}" = "yes"; then
24529 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
24530 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
24531 else
24532 OPENH323_LIB="-l${PLATFORM_OPENH323}"
24534 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
24535 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
24537 PBX_OPENH323=1
24539 cat >>confdefs.h <<\_ACEOF
24540 #define HAVE_OPENH323 1
24541 _ACEOF
24547 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
24548 { echo "$as_me:$LINENO: ***" >&5
24549 echo "$as_me: ***" >&6;}
24550 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
24551 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
24552 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24553 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24554 { echo "$as_me:$LINENO: *** including --without-h323" >&5
24555 echo "$as_me: *** including --without-h323" >&6;}
24556 exit 1
24560 ac_ext=cpp
24561 ac_cpp='$CXXCPP $CPPFLAGS'
24562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24567 if test "${USE_QT}" != "no"; then
24568 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
24569 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
24570 saved_libs="${LIBS}"
24571 saved_cppflags="${CPPFLAGS}"
24572 if test "x${QT_DIR}" != "x"; then
24573 LIBS="${LIBS} -L${QT_DIR}/lib"
24574 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
24576 LIBS="${LIBS} -lqt"
24577 qtlib="qt"
24578 cat >conftest.$ac_ext <<_ACEOF
24580 /* confdefs.h. */
24581 _ACEOF
24582 cat confdefs.h >>conftest.$ac_ext
24583 cat >>conftest.$ac_ext <<_ACEOF
24584 /* end confdefs.h. */
24585 #include <qt3/qdatetime.h>
24587 main ()
24589 QDate date();
24591 return 0;
24594 _ACEOF
24595 rm -f conftest.$ac_objext conftest$ac_exeext
24596 if { (ac_try="$ac_link"
24597 case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24600 esac
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602 (eval "$ac_link") 2>conftest.er1
24603 ac_status=$?
24604 grep -v '^ *+' conftest.er1 >conftest.err
24605 rm -f conftest.er1
24606 cat conftest.err >&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } && {
24609 test -z "$ac_cxx_werror_flag" ||
24610 test ! -s conftest.err
24611 } && test -s conftest$ac_exeext &&
24612 $as_test_x conftest$ac_exeext; then
24613 ac_cv_lib_qt_qt_date="yes"
24614 else
24615 echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24618 ac_cv_lib_qt_qt_date="no"
24621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24622 conftest$ac_exeext conftest.$ac_ext
24623 LIBS="${saved_libs}"
24624 CPPFLAGS="${saved_cppflags}"
24626 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
24627 saved_libs="${LIBS}"
24628 saved_cppflags="${CPPFLAGS}"
24629 if test "x${QT_DIR}" != "x"; then
24630 LIBS="${LIBS} -L${QT_DIR}/lib"
24631 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
24633 LIBS="${LIBS} -lqt-mt"
24634 qtlib="qt-mt"
24635 cat >conftest.$ac_ext <<_ACEOF
24637 /* confdefs.h. */
24638 _ACEOF
24639 cat confdefs.h >>conftest.$ac_ext
24640 cat >>conftest.$ac_ext <<_ACEOF
24641 /* end confdefs.h. */
24642 #include <qt3/qdatetime.h>
24644 main ()
24646 QDate date();
24648 return 0;
24651 _ACEOF
24652 rm -f conftest.$ac_objext conftest$ac_exeext
24653 if { (ac_try="$ac_link"
24654 case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24657 esac
24658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659 (eval "$ac_link") 2>conftest.er1
24660 ac_status=$?
24661 grep -v '^ *+' conftest.er1 >conftest.err
24662 rm -f conftest.er1
24663 cat conftest.err >&5
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } && {
24666 test -z "$ac_cxx_werror_flag" ||
24667 test ! -s conftest.err
24668 } && test -s conftest$ac_exeext &&
24669 $as_test_x conftest$ac_exeext; then
24670 ac_cv_lib_qt_qt_date="yes"
24671 else
24672 echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24675 ac_cv_lib_qt_qt_date="no"
24678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24679 conftest$ac_exeext conftest.$ac_ext
24680 LIBS="${saved_libs}"
24681 CPPFLAGS="${saved_cppflags}"
24684 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24685 { echo "$as_me:$LINENO: result: yes" >&5
24686 echo "${ECHO_T}yes" >&6; }
24687 else
24688 { echo "$as_me:$LINENO: result: no" >&5
24689 echo "${ECHO_T}no" >&6; }
24692 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24693 QT_LIB="-l${qtlib}"
24694 if test "${QT_DIR}" != ""; then
24695 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
24696 QT_INCLUDE="-I${QT_DIR}/include"
24698 PBX_QT=1
24700 cat >>confdefs.h <<\_ACEOF
24701 #define HAVE_QT 1
24702 _ACEOF
24704 if test -n "$ac_tool_prefix"; then
24705 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
24706 set dummy ${ac_tool_prefix}moc; ac_word=$2
24707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24709 if test "${ac_cv_path_QTMOC+set}" = set; then
24710 echo $ECHO_N "(cached) $ECHO_C" >&6
24711 else
24712 case $QTMOC in
24713 [\\/]* | ?:[\\/]*)
24714 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
24717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24718 for as_dir in $PATH
24720 IFS=$as_save_IFS
24721 test -z "$as_dir" && as_dir=.
24722 for ac_exec_ext in '' $ac_executable_extensions; do
24723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24724 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
24725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24726 break 2
24728 done
24729 done
24730 IFS=$as_save_IFS
24733 esac
24735 QTMOC=$ac_cv_path_QTMOC
24736 if test -n "$QTMOC"; then
24737 { echo "$as_me:$LINENO: result: $QTMOC" >&5
24738 echo "${ECHO_T}$QTMOC" >&6; }
24739 else
24740 { echo "$as_me:$LINENO: result: no" >&5
24741 echo "${ECHO_T}no" >&6; }
24746 if test -z "$ac_cv_path_QTMOC"; then
24747 ac_pt_QTMOC=$QTMOC
24748 # Extract the first word of "moc", so it can be a program name with args.
24749 set dummy moc; ac_word=$2
24750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24752 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
24753 echo $ECHO_N "(cached) $ECHO_C" >&6
24754 else
24755 case $ac_pt_QTMOC in
24756 [\\/]* | ?:[\\/]*)
24757 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
24760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24761 for as_dir in $PATH
24763 IFS=$as_save_IFS
24764 test -z "$as_dir" && as_dir=.
24765 for ac_exec_ext in '' $ac_executable_extensions; do
24766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24767 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
24768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24769 break 2
24771 done
24772 done
24773 IFS=$as_save_IFS
24776 esac
24778 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
24779 if test -n "$ac_pt_QTMOC"; then
24780 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
24781 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
24782 else
24783 { echo "$as_me:$LINENO: result: no" >&5
24784 echo "${ECHO_T}no" >&6; }
24787 if test "x$ac_pt_QTMOC" = x; then
24788 QTMOC="No"
24789 else
24790 case $cross_compiling:$ac_tool_warned in
24791 yes:)
24792 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24793 whose name does not start with the host triplet. If you think this
24794 configuration is useful to you, please write to autoconf@gnu.org." >&5
24795 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24796 whose name does not start with the host triplet. If you think this
24797 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24798 ac_tool_warned=yes ;;
24799 esac
24800 QTMOC=$ac_pt_QTMOC
24802 else
24803 QTMOC="$ac_cv_path_QTMOC"
24806 elif test ! -z "${QT_MANDATORY}";
24807 then
24808 { echo "$as_me:$LINENO: ***" >&5
24809 echo "$as_me: ***" >&6;}
24810 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
24811 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
24812 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24813 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24814 { echo "$as_me:$LINENO: *** including --without-qt." >&5
24815 echo "$as_me: *** including --without-qt." >&6;}
24816 exit 1
24820 ac_ext=c
24821 ac_cpp='$CPP $CPPFLAGS'
24822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24828 if test "${USE_RADIUS}" != "no"; then
24829 pbxlibdir=""
24830 if test "x${RADIUS_DIR}" != "x"; then
24831 if test -d ${RADIUS_DIR}/lib; then
24832 pbxlibdir="-L${RADIUS_DIR}/lib"
24833 else
24834 pbxlibdir="-L${RADIUS_DIR}"
24837 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
24838 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
24839 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
24840 echo $ECHO_N "(cached) $ECHO_C" >&6
24841 else
24842 ac_check_lib_save_LIBS=$LIBS
24843 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
24844 cat >conftest.$ac_ext <<_ACEOF
24845 /* confdefs.h. */
24846 _ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h. */
24851 /* Override any GCC internal prototype to avoid an error.
24852 Use char because int might match the return type of a GCC
24853 builtin and then its argument prototype would still apply. */
24854 #ifdef __cplusplus
24855 extern "C"
24856 #endif
24857 char rc_read_config ();
24859 main ()
24861 return rc_read_config ();
24863 return 0;
24865 _ACEOF
24866 rm -f conftest.$ac_objext conftest$ac_exeext
24867 if { (ac_try="$ac_link"
24868 case "(($ac_try" in
24869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24870 *) ac_try_echo=$ac_try;;
24871 esac
24872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24873 (eval "$ac_link") 2>conftest.er1
24874 ac_status=$?
24875 grep -v '^ *+' conftest.er1 >conftest.err
24876 rm -f conftest.er1
24877 cat conftest.err >&5
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); } && {
24880 test -z "$ac_c_werror_flag" ||
24881 test ! -s conftest.err
24882 } && test -s conftest$ac_exeext &&
24883 $as_test_x conftest$ac_exeext; then
24884 ac_cv_lib_radiusclient_ng_rc_read_config=yes
24885 else
24886 echo "$as_me: failed program was:" >&5
24887 sed 's/^/| /' conftest.$ac_ext >&5
24889 ac_cv_lib_radiusclient_ng_rc_read_config=no
24892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24893 conftest$ac_exeext conftest.$ac_ext
24894 LIBS=$ac_check_lib_save_LIBS
24896 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
24897 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
24898 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
24899 AST_RADIUS_FOUND=yes
24900 else
24901 AST_RADIUS_FOUND=no
24905 if test "${AST_RADIUS_FOUND}" = "yes"; then
24906 RADIUS_LIB="-lradiusclient-ng "
24907 RADIUS_HEADER_FOUND="1"
24908 if test "x${RADIUS_DIR}" != "x"; then
24909 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
24910 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
24911 saved_cppflags="${CPPFLAGS}"
24912 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
24913 if test "xradiusclient-ng.h" != "x" ; then
24914 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
24915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24916 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24917 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24919 echo $ECHO_N "(cached) $ECHO_C" >&6
24921 ac_res=`eval echo '${'$as_ac_Header'}'`
24922 { echo "$as_me:$LINENO: result: $ac_res" >&5
24923 echo "${ECHO_T}$ac_res" >&6; }
24924 else
24925 # Is the header compilable?
24926 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
24927 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
24928 cat >conftest.$ac_ext <<_ACEOF
24929 /* confdefs.h. */
24930 _ACEOF
24931 cat confdefs.h >>conftest.$ac_ext
24932 cat >>conftest.$ac_ext <<_ACEOF
24933 /* end confdefs.h. */
24934 $ac_includes_default
24935 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24936 _ACEOF
24937 rm -f conftest.$ac_objext
24938 if { (ac_try="$ac_compile"
24939 case "(($ac_try" in
24940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24941 *) ac_try_echo=$ac_try;;
24942 esac
24943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24944 (eval "$ac_compile") 2>conftest.er1
24945 ac_status=$?
24946 grep -v '^ *+' conftest.er1 >conftest.err
24947 rm -f conftest.er1
24948 cat conftest.err >&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } && {
24951 test -z "$ac_c_werror_flag" ||
24952 test ! -s conftest.err
24953 } && test -s conftest.$ac_objext; then
24954 ac_header_compiler=yes
24955 else
24956 echo "$as_me: failed program was:" >&5
24957 sed 's/^/| /' conftest.$ac_ext >&5
24959 ac_header_compiler=no
24962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24964 echo "${ECHO_T}$ac_header_compiler" >&6; }
24966 # Is the header present?
24967 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
24968 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
24969 cat >conftest.$ac_ext <<_ACEOF
24970 /* confdefs.h. */
24971 _ACEOF
24972 cat confdefs.h >>conftest.$ac_ext
24973 cat >>conftest.$ac_ext <<_ACEOF
24974 /* end confdefs.h. */
24975 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24976 _ACEOF
24977 if { (ac_try="$ac_cpp conftest.$ac_ext"
24978 case "(($ac_try" in
24979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24980 *) ac_try_echo=$ac_try;;
24981 esac
24982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24984 ac_status=$?
24985 grep -v '^ *+' conftest.er1 >conftest.err
24986 rm -f conftest.er1
24987 cat conftest.err >&5
24988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); } >/dev/null && {
24990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24991 test ! -s conftest.err
24992 }; then
24993 ac_header_preproc=yes
24994 else
24995 echo "$as_me: failed program was:" >&5
24996 sed 's/^/| /' conftest.$ac_ext >&5
24998 ac_header_preproc=no
25001 rm -f conftest.err conftest.$ac_ext
25002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25003 echo "${ECHO_T}$ac_header_preproc" >&6; }
25005 # So? What about this header?
25006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25007 yes:no: )
25008 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
25009 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25010 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
25011 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
25012 ac_header_preproc=yes
25014 no:yes:* )
25015 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
25016 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
25017 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
25018 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
25019 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
25020 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
25021 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
25022 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
25023 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
25024 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
25025 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
25026 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
25029 esac
25030 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
25031 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
25032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25033 echo $ECHO_N "(cached) $ECHO_C" >&6
25034 else
25035 eval "$as_ac_Header=\$ac_header_preproc"
25037 ac_res=`eval echo '${'$as_ac_Header'}'`
25038 { echo "$as_me:$LINENO: result: $ac_res" >&5
25039 echo "${ECHO_T}$ac_res" >&6; }
25042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25043 RADIUS_HEADER_FOUND=1
25044 else
25045 RADIUS_HEADER_FOUND=0
25050 CPPFLAGS="${saved_cppflags}"
25051 else
25052 if test "xradiusclient-ng.h" != "x" ; then
25053 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25054 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
25055 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
25056 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25057 echo $ECHO_N "(cached) $ECHO_C" >&6
25059 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
25060 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
25061 else
25062 # Is the header compilable?
25063 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
25064 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
25065 cat >conftest.$ac_ext <<_ACEOF
25066 /* confdefs.h. */
25067 _ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h. */
25071 $ac_includes_default
25072 #include <radiusclient-ng.h>
25073 _ACEOF
25074 rm -f conftest.$ac_objext
25075 if { (ac_try="$ac_compile"
25076 case "(($ac_try" in
25077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078 *) ac_try_echo=$ac_try;;
25079 esac
25080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25081 (eval "$ac_compile") 2>conftest.er1
25082 ac_status=$?
25083 grep -v '^ *+' conftest.er1 >conftest.err
25084 rm -f conftest.er1
25085 cat conftest.err >&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } && {
25088 test -z "$ac_c_werror_flag" ||
25089 test ! -s conftest.err
25090 } && test -s conftest.$ac_objext; then
25091 ac_header_compiler=yes
25092 else
25093 echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25096 ac_header_compiler=no
25099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25101 echo "${ECHO_T}$ac_header_compiler" >&6; }
25103 # Is the header present?
25104 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
25105 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
25106 cat >conftest.$ac_ext <<_ACEOF
25107 /* confdefs.h. */
25108 _ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h. */
25112 #include <radiusclient-ng.h>
25113 _ACEOF
25114 if { (ac_try="$ac_cpp conftest.$ac_ext"
25115 case "(($ac_try" in
25116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25117 *) ac_try_echo=$ac_try;;
25118 esac
25119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25121 ac_status=$?
25122 grep -v '^ *+' conftest.er1 >conftest.err
25123 rm -f conftest.er1
25124 cat conftest.err >&5
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); } >/dev/null && {
25127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25128 test ! -s conftest.err
25129 }; then
25130 ac_header_preproc=yes
25131 else
25132 echo "$as_me: failed program was:" >&5
25133 sed 's/^/| /' conftest.$ac_ext >&5
25135 ac_header_preproc=no
25138 rm -f conftest.err conftest.$ac_ext
25139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25140 echo "${ECHO_T}$ac_header_preproc" >&6; }
25142 # So? What about this header?
25143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25144 yes:no: )
25145 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
25146 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25147 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
25148 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
25149 ac_header_preproc=yes
25151 no:yes:* )
25152 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
25153 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
25154 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
25155 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
25156 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
25157 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
25158 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
25159 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
25160 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
25161 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
25162 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
25163 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
25166 esac
25167 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
25168 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
25169 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25170 echo $ECHO_N "(cached) $ECHO_C" >&6
25171 else
25172 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
25174 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
25175 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
25178 if test $ac_cv_header_radiusclient_ng_h = yes; then
25179 RADIUS_HEADER_FOUND=1
25180 else
25181 RADIUS_HEADER_FOUND=0
25187 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
25188 if test ! -z "${RADIUS_MANDATORY}" ;
25189 then
25190 { echo "$as_me:$LINENO: ***" >&5
25191 echo "$as_me: ***" >&6;}
25192 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
25193 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
25194 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
25195 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
25196 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
25197 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
25198 exit 1
25200 RADIUS_LIB=""
25201 RADIUS_INCLUDE=""
25202 PBX_RADIUS=0
25203 else
25204 PBX_RADIUS=1
25206 cat >>confdefs.h <<_ACEOF
25207 #define HAVE_RADIUS 1
25208 _ACEOF
25211 elif test ! -z "${RADIUS_MANDATORY}";
25212 then
25213 { echo "$as_me:$LINENO: ***" >&5
25214 echo "$as_me: ***" >&6;}
25215 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
25216 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
25217 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25218 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25219 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
25220 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
25221 exit 1
25227 if test "${USE_SPEEX}" != "no"; then
25228 pbxlibdir=""
25229 if test "x${SPEEX_DIR}" != "x"; then
25230 if test -d ${SPEEX_DIR}/lib; then
25231 pbxlibdir="-L${SPEEX_DIR}/lib"
25232 else
25233 pbxlibdir="-L${SPEEX_DIR}"
25236 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
25237 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
25238 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
25239 echo $ECHO_N "(cached) $ECHO_C" >&6
25240 else
25241 ac_check_lib_save_LIBS=$LIBS
25242 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
25243 cat >conftest.$ac_ext <<_ACEOF
25244 /* confdefs.h. */
25245 _ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h. */
25250 /* Override any GCC internal prototype to avoid an error.
25251 Use char because int might match the return type of a GCC
25252 builtin and then its argument prototype would still apply. */
25253 #ifdef __cplusplus
25254 extern "C"
25255 #endif
25256 char speex_encode ();
25258 main ()
25260 return speex_encode ();
25262 return 0;
25264 _ACEOF
25265 rm -f conftest.$ac_objext conftest$ac_exeext
25266 if { (ac_try="$ac_link"
25267 case "(($ac_try" in
25268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25269 *) ac_try_echo=$ac_try;;
25270 esac
25271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25272 (eval "$ac_link") 2>conftest.er1
25273 ac_status=$?
25274 grep -v '^ *+' conftest.er1 >conftest.err
25275 rm -f conftest.er1
25276 cat conftest.err >&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); } && {
25279 test -z "$ac_c_werror_flag" ||
25280 test ! -s conftest.err
25281 } && test -s conftest$ac_exeext &&
25282 $as_test_x conftest$ac_exeext; then
25283 ac_cv_lib_speex_speex_encode=yes
25284 else
25285 echo "$as_me: failed program was:" >&5
25286 sed 's/^/| /' conftest.$ac_ext >&5
25288 ac_cv_lib_speex_speex_encode=no
25291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25292 conftest$ac_exeext conftest.$ac_ext
25293 LIBS=$ac_check_lib_save_LIBS
25295 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
25296 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
25297 if test $ac_cv_lib_speex_speex_encode = yes; then
25298 AST_SPEEX_FOUND=yes
25299 else
25300 AST_SPEEX_FOUND=no
25304 if test "${AST_SPEEX_FOUND}" = "yes"; then
25305 SPEEX_LIB="-lspeex -lm"
25306 SPEEX_HEADER_FOUND="1"
25307 if test "x${SPEEX_DIR}" != "x"; then
25308 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
25309 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
25310 saved_cppflags="${CPPFLAGS}"
25311 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
25312 if test "xspeex/speex.h" != "x" ; then
25313 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
25314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25315 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
25316 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
25317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25318 echo $ECHO_N "(cached) $ECHO_C" >&6
25320 ac_res=`eval echo '${'$as_ac_Header'}'`
25321 { echo "$as_me:$LINENO: result: $ac_res" >&5
25322 echo "${ECHO_T}$ac_res" >&6; }
25323 else
25324 # Is the header compilable?
25325 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
25326 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
25327 cat >conftest.$ac_ext <<_ACEOF
25328 /* confdefs.h. */
25329 _ACEOF
25330 cat confdefs.h >>conftest.$ac_ext
25331 cat >>conftest.$ac_ext <<_ACEOF
25332 /* end confdefs.h. */
25333 $ac_includes_default
25334 #include <${SPEEX_DIR}/include/speex/speex.h>
25335 _ACEOF
25336 rm -f conftest.$ac_objext
25337 if { (ac_try="$ac_compile"
25338 case "(($ac_try" in
25339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25340 *) ac_try_echo=$ac_try;;
25341 esac
25342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25343 (eval "$ac_compile") 2>conftest.er1
25344 ac_status=$?
25345 grep -v '^ *+' conftest.er1 >conftest.err
25346 rm -f conftest.er1
25347 cat conftest.err >&5
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); } && {
25350 test -z "$ac_c_werror_flag" ||
25351 test ! -s conftest.err
25352 } && test -s conftest.$ac_objext; then
25353 ac_header_compiler=yes
25354 else
25355 echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25358 ac_header_compiler=no
25361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25363 echo "${ECHO_T}$ac_header_compiler" >&6; }
25365 # Is the header present?
25366 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
25367 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
25368 cat >conftest.$ac_ext <<_ACEOF
25369 /* confdefs.h. */
25370 _ACEOF
25371 cat confdefs.h >>conftest.$ac_ext
25372 cat >>conftest.$ac_ext <<_ACEOF
25373 /* end confdefs.h. */
25374 #include <${SPEEX_DIR}/include/speex/speex.h>
25375 _ACEOF
25376 if { (ac_try="$ac_cpp conftest.$ac_ext"
25377 case "(($ac_try" in
25378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25379 *) ac_try_echo=$ac_try;;
25380 esac
25381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25383 ac_status=$?
25384 grep -v '^ *+' conftest.er1 >conftest.err
25385 rm -f conftest.er1
25386 cat conftest.err >&5
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); } >/dev/null && {
25389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25390 test ! -s conftest.err
25391 }; then
25392 ac_header_preproc=yes
25393 else
25394 echo "$as_me: failed program was:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25397 ac_header_preproc=no
25400 rm -f conftest.err conftest.$ac_ext
25401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25402 echo "${ECHO_T}$ac_header_preproc" >&6; }
25404 # So? What about this header?
25405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25406 yes:no: )
25407 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25408 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25409 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
25410 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
25411 ac_header_preproc=yes
25413 no:yes:* )
25414 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
25415 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
25416 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
25417 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
25418 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
25419 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
25420 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
25421 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25422 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
25423 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
25424 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
25425 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
25428 esac
25429 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
25430 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
25431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25432 echo $ECHO_N "(cached) $ECHO_C" >&6
25433 else
25434 eval "$as_ac_Header=\$ac_header_preproc"
25436 ac_res=`eval echo '${'$as_ac_Header'}'`
25437 { echo "$as_me:$LINENO: result: $ac_res" >&5
25438 echo "${ECHO_T}$ac_res" >&6; }
25441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25442 SPEEX_HEADER_FOUND=1
25443 else
25444 SPEEX_HEADER_FOUND=0
25449 CPPFLAGS="${saved_cppflags}"
25450 else
25451 if test "xspeex/speex.h" != "x" ; then
25452 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25453 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
25454 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
25455 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25456 echo $ECHO_N "(cached) $ECHO_C" >&6
25458 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
25459 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
25460 else
25461 # Is the header compilable?
25462 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
25463 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
25464 cat >conftest.$ac_ext <<_ACEOF
25465 /* confdefs.h. */
25466 _ACEOF
25467 cat confdefs.h >>conftest.$ac_ext
25468 cat >>conftest.$ac_ext <<_ACEOF
25469 /* end confdefs.h. */
25470 $ac_includes_default
25471 #include <speex/speex.h>
25472 _ACEOF
25473 rm -f conftest.$ac_objext
25474 if { (ac_try="$ac_compile"
25475 case "(($ac_try" in
25476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25477 *) ac_try_echo=$ac_try;;
25478 esac
25479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25480 (eval "$ac_compile") 2>conftest.er1
25481 ac_status=$?
25482 grep -v '^ *+' conftest.er1 >conftest.err
25483 rm -f conftest.er1
25484 cat conftest.err >&5
25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486 (exit $ac_status); } && {
25487 test -z "$ac_c_werror_flag" ||
25488 test ! -s conftest.err
25489 } && test -s conftest.$ac_objext; then
25490 ac_header_compiler=yes
25491 else
25492 echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25495 ac_header_compiler=no
25498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25500 echo "${ECHO_T}$ac_header_compiler" >&6; }
25502 # Is the header present?
25503 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
25504 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
25505 cat >conftest.$ac_ext <<_ACEOF
25506 /* confdefs.h. */
25507 _ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h. */
25511 #include <speex/speex.h>
25512 _ACEOF
25513 if { (ac_try="$ac_cpp conftest.$ac_ext"
25514 case "(($ac_try" in
25515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516 *) ac_try_echo=$ac_try;;
25517 esac
25518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25520 ac_status=$?
25521 grep -v '^ *+' conftest.er1 >conftest.err
25522 rm -f conftest.er1
25523 cat conftest.err >&5
25524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525 (exit $ac_status); } >/dev/null && {
25526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25527 test ! -s conftest.err
25528 }; then
25529 ac_header_preproc=yes
25530 else
25531 echo "$as_me: failed program was:" >&5
25532 sed 's/^/| /' conftest.$ac_ext >&5
25534 ac_header_preproc=no
25537 rm -f conftest.err conftest.$ac_ext
25538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25539 echo "${ECHO_T}$ac_header_preproc" >&6; }
25541 # So? What about this header?
25542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25543 yes:no: )
25544 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25545 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25546 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
25547 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
25548 ac_header_preproc=yes
25550 no:yes:* )
25551 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
25552 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
25553 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
25554 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
25555 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
25556 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
25557 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
25558 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25559 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
25560 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
25561 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
25562 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
25565 esac
25566 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
25567 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
25568 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25569 echo $ECHO_N "(cached) $ECHO_C" >&6
25570 else
25571 ac_cv_header_speex_speex_h=$ac_header_preproc
25573 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
25574 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
25577 if test $ac_cv_header_speex_speex_h = yes; then
25578 SPEEX_HEADER_FOUND=1
25579 else
25580 SPEEX_HEADER_FOUND=0
25586 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
25587 if test ! -z "${SPEEX_MANDATORY}" ;
25588 then
25589 { echo "$as_me:$LINENO: ***" >&5
25590 echo "$as_me: ***" >&6;}
25591 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
25592 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
25593 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
25594 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
25595 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
25596 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
25597 exit 1
25599 SPEEX_LIB=""
25600 SPEEX_INCLUDE=""
25601 PBX_SPEEX=0
25602 else
25603 PBX_SPEEX=1
25605 cat >>confdefs.h <<_ACEOF
25606 #define HAVE_SPEEX 1
25607 _ACEOF
25610 elif test ! -z "${SPEEX_MANDATORY}";
25611 then
25612 { echo "$as_me:$LINENO: ***" >&5
25613 echo "$as_me: ***" >&6;}
25614 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
25615 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
25616 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25617 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25618 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
25619 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
25620 exit 1
25626 if test "${USE_SQLITE}" != "no"; then
25627 pbxlibdir=""
25628 if test "x${SQLITE_DIR}" != "x"; then
25629 if test -d ${SQLITE_DIR}/lib; then
25630 pbxlibdir="-L${SQLITE_DIR}/lib"
25631 else
25632 pbxlibdir="-L${SQLITE_DIR}"
25635 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
25636 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
25637 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
25638 echo $ECHO_N "(cached) $ECHO_C" >&6
25639 else
25640 ac_check_lib_save_LIBS=$LIBS
25641 LIBS="-lsqlite ${pbxlibdir} $LIBS"
25642 cat >conftest.$ac_ext <<_ACEOF
25643 /* confdefs.h. */
25644 _ACEOF
25645 cat confdefs.h >>conftest.$ac_ext
25646 cat >>conftest.$ac_ext <<_ACEOF
25647 /* end confdefs.h. */
25649 /* Override any GCC internal prototype to avoid an error.
25650 Use char because int might match the return type of a GCC
25651 builtin and then its argument prototype would still apply. */
25652 #ifdef __cplusplus
25653 extern "C"
25654 #endif
25655 char sqlite_exec ();
25657 main ()
25659 return sqlite_exec ();
25661 return 0;
25663 _ACEOF
25664 rm -f conftest.$ac_objext conftest$ac_exeext
25665 if { (ac_try="$ac_link"
25666 case "(($ac_try" in
25667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25668 *) ac_try_echo=$ac_try;;
25669 esac
25670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25671 (eval "$ac_link") 2>conftest.er1
25672 ac_status=$?
25673 grep -v '^ *+' conftest.er1 >conftest.err
25674 rm -f conftest.er1
25675 cat conftest.err >&5
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); } && {
25678 test -z "$ac_c_werror_flag" ||
25679 test ! -s conftest.err
25680 } && test -s conftest$ac_exeext &&
25681 $as_test_x conftest$ac_exeext; then
25682 ac_cv_lib_sqlite_sqlite_exec=yes
25683 else
25684 echo "$as_me: failed program was:" >&5
25685 sed 's/^/| /' conftest.$ac_ext >&5
25687 ac_cv_lib_sqlite_sqlite_exec=no
25690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25691 conftest$ac_exeext conftest.$ac_ext
25692 LIBS=$ac_check_lib_save_LIBS
25694 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
25695 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
25696 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
25697 AST_SQLITE_FOUND=yes
25698 else
25699 AST_SQLITE_FOUND=no
25703 if test "${AST_SQLITE_FOUND}" = "yes"; then
25704 SQLITE_LIB="-lsqlite "
25705 SQLITE_HEADER_FOUND="1"
25706 if test "x${SQLITE_DIR}" != "x"; then
25707 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
25708 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
25709 saved_cppflags="${CPPFLAGS}"
25710 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
25711 if test "xsqlite.h" != "x" ; then
25712 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
25713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25714 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25715 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25717 echo $ECHO_N "(cached) $ECHO_C" >&6
25719 ac_res=`eval echo '${'$as_ac_Header'}'`
25720 { echo "$as_me:$LINENO: result: $ac_res" >&5
25721 echo "${ECHO_T}$ac_res" >&6; }
25722 else
25723 # Is the header compilable?
25724 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
25725 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
25726 cat >conftest.$ac_ext <<_ACEOF
25727 /* confdefs.h. */
25728 _ACEOF
25729 cat confdefs.h >>conftest.$ac_ext
25730 cat >>conftest.$ac_ext <<_ACEOF
25731 /* end confdefs.h. */
25732 $ac_includes_default
25733 #include <${SQLITE_DIR}/include/sqlite.h>
25734 _ACEOF
25735 rm -f conftest.$ac_objext
25736 if { (ac_try="$ac_compile"
25737 case "(($ac_try" in
25738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25739 *) ac_try_echo=$ac_try;;
25740 esac
25741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25742 (eval "$ac_compile") 2>conftest.er1
25743 ac_status=$?
25744 grep -v '^ *+' conftest.er1 >conftest.err
25745 rm -f conftest.er1
25746 cat conftest.err >&5
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); } && {
25749 test -z "$ac_c_werror_flag" ||
25750 test ! -s conftest.err
25751 } && test -s conftest.$ac_objext; then
25752 ac_header_compiler=yes
25753 else
25754 echo "$as_me: failed program was:" >&5
25755 sed 's/^/| /' conftest.$ac_ext >&5
25757 ac_header_compiler=no
25760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25762 echo "${ECHO_T}$ac_header_compiler" >&6; }
25764 # Is the header present?
25765 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
25766 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
25767 cat >conftest.$ac_ext <<_ACEOF
25768 /* confdefs.h. */
25769 _ACEOF
25770 cat confdefs.h >>conftest.$ac_ext
25771 cat >>conftest.$ac_ext <<_ACEOF
25772 /* end confdefs.h. */
25773 #include <${SQLITE_DIR}/include/sqlite.h>
25774 _ACEOF
25775 if { (ac_try="$ac_cpp conftest.$ac_ext"
25776 case "(($ac_try" in
25777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25778 *) ac_try_echo=$ac_try;;
25779 esac
25780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25782 ac_status=$?
25783 grep -v '^ *+' conftest.er1 >conftest.err
25784 rm -f conftest.er1
25785 cat conftest.err >&5
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); } >/dev/null && {
25788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25789 test ! -s conftest.err
25790 }; then
25791 ac_header_preproc=yes
25792 else
25793 echo "$as_me: failed program was:" >&5
25794 sed 's/^/| /' conftest.$ac_ext >&5
25796 ac_header_preproc=no
25799 rm -f conftest.err conftest.$ac_ext
25800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25801 echo "${ECHO_T}$ac_header_preproc" >&6; }
25803 # So? What about this header?
25804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25805 yes:no: )
25806 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25807 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25808 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
25809 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
25810 ac_header_preproc=yes
25812 no:yes:* )
25813 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
25814 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
25815 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
25816 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
25817 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
25818 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
25819 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25820 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25821 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
25822 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
25823 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
25824 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
25827 esac
25828 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25829 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25831 echo $ECHO_N "(cached) $ECHO_C" >&6
25832 else
25833 eval "$as_ac_Header=\$ac_header_preproc"
25835 ac_res=`eval echo '${'$as_ac_Header'}'`
25836 { echo "$as_me:$LINENO: result: $ac_res" >&5
25837 echo "${ECHO_T}$ac_res" >&6; }
25840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25841 SQLITE_HEADER_FOUND=1
25842 else
25843 SQLITE_HEADER_FOUND=0
25848 CPPFLAGS="${saved_cppflags}"
25849 else
25850 if test "xsqlite.h" != "x" ; then
25851 if test "${ac_cv_header_sqlite_h+set}" = set; then
25852 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25853 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25854 if test "${ac_cv_header_sqlite_h+set}" = set; then
25855 echo $ECHO_N "(cached) $ECHO_C" >&6
25857 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25858 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25859 else
25860 # Is the header compilable?
25861 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
25862 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
25863 cat >conftest.$ac_ext <<_ACEOF
25864 /* confdefs.h. */
25865 _ACEOF
25866 cat confdefs.h >>conftest.$ac_ext
25867 cat >>conftest.$ac_ext <<_ACEOF
25868 /* end confdefs.h. */
25869 $ac_includes_default
25870 #include <sqlite.h>
25871 _ACEOF
25872 rm -f conftest.$ac_objext
25873 if { (ac_try="$ac_compile"
25874 case "(($ac_try" in
25875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25876 *) ac_try_echo=$ac_try;;
25877 esac
25878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25879 (eval "$ac_compile") 2>conftest.er1
25880 ac_status=$?
25881 grep -v '^ *+' conftest.er1 >conftest.err
25882 rm -f conftest.er1
25883 cat conftest.err >&5
25884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885 (exit $ac_status); } && {
25886 test -z "$ac_c_werror_flag" ||
25887 test ! -s conftest.err
25888 } && test -s conftest.$ac_objext; then
25889 ac_header_compiler=yes
25890 else
25891 echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25894 ac_header_compiler=no
25897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25899 echo "${ECHO_T}$ac_header_compiler" >&6; }
25901 # Is the header present?
25902 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
25903 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
25904 cat >conftest.$ac_ext <<_ACEOF
25905 /* confdefs.h. */
25906 _ACEOF
25907 cat confdefs.h >>conftest.$ac_ext
25908 cat >>conftest.$ac_ext <<_ACEOF
25909 /* end confdefs.h. */
25910 #include <sqlite.h>
25911 _ACEOF
25912 if { (ac_try="$ac_cpp conftest.$ac_ext"
25913 case "(($ac_try" in
25914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25915 *) ac_try_echo=$ac_try;;
25916 esac
25917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25919 ac_status=$?
25920 grep -v '^ *+' conftest.er1 >conftest.err
25921 rm -f conftest.er1
25922 cat conftest.err >&5
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); } >/dev/null && {
25925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25926 test ! -s conftest.err
25927 }; then
25928 ac_header_preproc=yes
25929 else
25930 echo "$as_me: failed program was:" >&5
25931 sed 's/^/| /' conftest.$ac_ext >&5
25933 ac_header_preproc=no
25936 rm -f conftest.err conftest.$ac_ext
25937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25938 echo "${ECHO_T}$ac_header_preproc" >&6; }
25940 # So? What about this header?
25941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25942 yes:no: )
25943 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25944 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25945 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
25946 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
25947 ac_header_preproc=yes
25949 no:yes:* )
25950 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
25951 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
25952 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
25953 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
25954 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
25955 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
25956 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25957 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25958 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
25959 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
25960 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
25961 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
25964 esac
25965 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25966 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25967 if test "${ac_cv_header_sqlite_h+set}" = set; then
25968 echo $ECHO_N "(cached) $ECHO_C" >&6
25969 else
25970 ac_cv_header_sqlite_h=$ac_header_preproc
25972 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25973 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25976 if test $ac_cv_header_sqlite_h = yes; then
25977 SQLITE_HEADER_FOUND=1
25978 else
25979 SQLITE_HEADER_FOUND=0
25985 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
25986 if test ! -z "${SQLITE_MANDATORY}" ;
25987 then
25988 { echo "$as_me:$LINENO: ***" >&5
25989 echo "$as_me: ***" >&6;}
25990 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
25991 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
25992 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
25993 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
25994 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25995 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25996 exit 1
25998 SQLITE_LIB=""
25999 SQLITE_INCLUDE=""
26000 PBX_SQLITE=0
26001 else
26002 PBX_SQLITE=1
26004 cat >>confdefs.h <<_ACEOF
26005 #define HAVE_SQLITE 1
26006 _ACEOF
26009 elif test ! -z "${SQLITE_MANDATORY}";
26010 then
26011 { echo "$as_me:$LINENO: ***" >&5
26012 echo "$as_me: ***" >&6;}
26013 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
26014 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
26015 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26016 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26017 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
26018 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
26019 exit 1
26025 if test "${USE_OPENSSL}" != "no"; then
26026 pbxlibdir=""
26027 if test "x${OPENSSL_DIR}" != "x"; then
26028 if test -d ${OPENSSL_DIR}/lib; then
26029 pbxlibdir="-L${OPENSSL_DIR}/lib"
26030 else
26031 pbxlibdir="-L${OPENSSL_DIR}"
26034 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
26035 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
26036 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
26037 echo $ECHO_N "(cached) $ECHO_C" >&6
26038 else
26039 ac_check_lib_save_LIBS=$LIBS
26040 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
26041 cat >conftest.$ac_ext <<_ACEOF
26042 /* confdefs.h. */
26043 _ACEOF
26044 cat confdefs.h >>conftest.$ac_ext
26045 cat >>conftest.$ac_ext <<_ACEOF
26046 /* end confdefs.h. */
26048 /* Override any GCC internal prototype to avoid an error.
26049 Use char because int might match the return type of a GCC
26050 builtin and then its argument prototype would still apply. */
26051 #ifdef __cplusplus
26052 extern "C"
26053 #endif
26054 char ssl2_connect ();
26056 main ()
26058 return ssl2_connect ();
26060 return 0;
26062 _ACEOF
26063 rm -f conftest.$ac_objext conftest$ac_exeext
26064 if { (ac_try="$ac_link"
26065 case "(($ac_try" in
26066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26067 *) ac_try_echo=$ac_try;;
26068 esac
26069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26070 (eval "$ac_link") 2>conftest.er1
26071 ac_status=$?
26072 grep -v '^ *+' conftest.er1 >conftest.err
26073 rm -f conftest.er1
26074 cat conftest.err >&5
26075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076 (exit $ac_status); } && {
26077 test -z "$ac_c_werror_flag" ||
26078 test ! -s conftest.err
26079 } && test -s conftest$ac_exeext &&
26080 $as_test_x conftest$ac_exeext; then
26081 ac_cv_lib_ssl_ssl2_connect=yes
26082 else
26083 echo "$as_me: failed program was:" >&5
26084 sed 's/^/| /' conftest.$ac_ext >&5
26086 ac_cv_lib_ssl_ssl2_connect=no
26089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26090 conftest$ac_exeext conftest.$ac_ext
26091 LIBS=$ac_check_lib_save_LIBS
26093 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
26094 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
26095 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
26096 AST_OPENSSL_FOUND=yes
26097 else
26098 AST_OPENSSL_FOUND=no
26102 if test "${AST_OPENSSL_FOUND}" = "yes"; then
26103 OPENSSL_LIB="-lssl -lcrypto"
26104 OPENSSL_HEADER_FOUND="1"
26105 if test "x${OPENSSL_DIR}" != "x"; then
26106 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
26107 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
26108 saved_cppflags="${CPPFLAGS}"
26109 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
26110 if test "xopenssl/ssl.h" != "x" ; then
26111 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
26112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26113 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
26114 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
26115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26116 echo $ECHO_N "(cached) $ECHO_C" >&6
26118 ac_res=`eval echo '${'$as_ac_Header'}'`
26119 { echo "$as_me:$LINENO: result: $ac_res" >&5
26120 echo "${ECHO_T}$ac_res" >&6; }
26121 else
26122 # Is the header compilable?
26123 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
26124 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
26125 cat >conftest.$ac_ext <<_ACEOF
26126 /* confdefs.h. */
26127 _ACEOF
26128 cat confdefs.h >>conftest.$ac_ext
26129 cat >>conftest.$ac_ext <<_ACEOF
26130 /* end confdefs.h. */
26131 $ac_includes_default
26132 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
26133 _ACEOF
26134 rm -f conftest.$ac_objext
26135 if { (ac_try="$ac_compile"
26136 case "(($ac_try" in
26137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26138 *) ac_try_echo=$ac_try;;
26139 esac
26140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26141 (eval "$ac_compile") 2>conftest.er1
26142 ac_status=$?
26143 grep -v '^ *+' conftest.er1 >conftest.err
26144 rm -f conftest.er1
26145 cat conftest.err >&5
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); } && {
26148 test -z "$ac_c_werror_flag" ||
26149 test ! -s conftest.err
26150 } && test -s conftest.$ac_objext; then
26151 ac_header_compiler=yes
26152 else
26153 echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26156 ac_header_compiler=no
26159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26161 echo "${ECHO_T}$ac_header_compiler" >&6; }
26163 # Is the header present?
26164 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
26165 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
26166 cat >conftest.$ac_ext <<_ACEOF
26167 /* confdefs.h. */
26168 _ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h. */
26172 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
26173 _ACEOF
26174 if { (ac_try="$ac_cpp conftest.$ac_ext"
26175 case "(($ac_try" in
26176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26177 *) ac_try_echo=$ac_try;;
26178 esac
26179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26181 ac_status=$?
26182 grep -v '^ *+' conftest.er1 >conftest.err
26183 rm -f conftest.er1
26184 cat conftest.err >&5
26185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); } >/dev/null && {
26187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26188 test ! -s conftest.err
26189 }; then
26190 ac_header_preproc=yes
26191 else
26192 echo "$as_me: failed program was:" >&5
26193 sed 's/^/| /' conftest.$ac_ext >&5
26195 ac_header_preproc=no
26198 rm -f conftest.err conftest.$ac_ext
26199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26200 echo "${ECHO_T}$ac_header_preproc" >&6; }
26202 # So? What about this header?
26203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26204 yes:no: )
26205 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26206 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26207 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
26208 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
26209 ac_header_preproc=yes
26211 no:yes:* )
26212 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
26213 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
26214 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
26215 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
26216 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
26217 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
26218 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
26219 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26220 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
26221 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
26222 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
26223 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
26226 esac
26227 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
26228 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
26229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26230 echo $ECHO_N "(cached) $ECHO_C" >&6
26231 else
26232 eval "$as_ac_Header=\$ac_header_preproc"
26234 ac_res=`eval echo '${'$as_ac_Header'}'`
26235 { echo "$as_me:$LINENO: result: $ac_res" >&5
26236 echo "${ECHO_T}$ac_res" >&6; }
26239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26240 OPENSSL_HEADER_FOUND=1
26241 else
26242 OPENSSL_HEADER_FOUND=0
26247 CPPFLAGS="${saved_cppflags}"
26248 else
26249 if test "xopenssl/ssl.h" != "x" ; then
26250 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26251 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
26252 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
26253 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26254 echo $ECHO_N "(cached) $ECHO_C" >&6
26256 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
26257 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
26258 else
26259 # Is the header compilable?
26260 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
26261 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
26262 cat >conftest.$ac_ext <<_ACEOF
26263 /* confdefs.h. */
26264 _ACEOF
26265 cat confdefs.h >>conftest.$ac_ext
26266 cat >>conftest.$ac_ext <<_ACEOF
26267 /* end confdefs.h. */
26268 $ac_includes_default
26269 #include <openssl/ssl.h>
26270 _ACEOF
26271 rm -f conftest.$ac_objext
26272 if { (ac_try="$ac_compile"
26273 case "(($ac_try" in
26274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26275 *) ac_try_echo=$ac_try;;
26276 esac
26277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26278 (eval "$ac_compile") 2>conftest.er1
26279 ac_status=$?
26280 grep -v '^ *+' conftest.er1 >conftest.err
26281 rm -f conftest.er1
26282 cat conftest.err >&5
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); } && {
26285 test -z "$ac_c_werror_flag" ||
26286 test ! -s conftest.err
26287 } && test -s conftest.$ac_objext; then
26288 ac_header_compiler=yes
26289 else
26290 echo "$as_me: failed program was:" >&5
26291 sed 's/^/| /' conftest.$ac_ext >&5
26293 ac_header_compiler=no
26296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26298 echo "${ECHO_T}$ac_header_compiler" >&6; }
26300 # Is the header present?
26301 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
26302 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
26303 cat >conftest.$ac_ext <<_ACEOF
26304 /* confdefs.h. */
26305 _ACEOF
26306 cat confdefs.h >>conftest.$ac_ext
26307 cat >>conftest.$ac_ext <<_ACEOF
26308 /* end confdefs.h. */
26309 #include <openssl/ssl.h>
26310 _ACEOF
26311 if { (ac_try="$ac_cpp conftest.$ac_ext"
26312 case "(($ac_try" in
26313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26314 *) ac_try_echo=$ac_try;;
26315 esac
26316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26318 ac_status=$?
26319 grep -v '^ *+' conftest.er1 >conftest.err
26320 rm -f conftest.er1
26321 cat conftest.err >&5
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); } >/dev/null && {
26324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26325 test ! -s conftest.err
26326 }; then
26327 ac_header_preproc=yes
26328 else
26329 echo "$as_me: failed program was:" >&5
26330 sed 's/^/| /' conftest.$ac_ext >&5
26332 ac_header_preproc=no
26335 rm -f conftest.err conftest.$ac_ext
26336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26337 echo "${ECHO_T}$ac_header_preproc" >&6; }
26339 # So? What about this header?
26340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26341 yes:no: )
26342 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26343 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26344 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
26345 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
26346 ac_header_preproc=yes
26348 no:yes:* )
26349 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
26350 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
26351 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
26352 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
26353 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
26354 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
26355 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
26356 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26357 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
26358 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
26359 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
26360 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
26363 esac
26364 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
26365 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
26366 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26367 echo $ECHO_N "(cached) $ECHO_C" >&6
26368 else
26369 ac_cv_header_openssl_ssl_h=$ac_header_preproc
26371 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
26372 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
26375 if test $ac_cv_header_openssl_ssl_h = yes; then
26376 OPENSSL_HEADER_FOUND=1
26377 else
26378 OPENSSL_HEADER_FOUND=0
26384 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
26385 if test ! -z "${OPENSSL_MANDATORY}" ;
26386 then
26387 { echo "$as_me:$LINENO: ***" >&5
26388 echo "$as_me: ***" >&6;}
26389 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
26390 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
26391 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
26392 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
26393 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
26394 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
26395 exit 1
26397 OPENSSL_LIB=""
26398 OPENSSL_INCLUDE=""
26399 PBX_OPENSSL=0
26400 else
26401 PBX_OPENSSL=1
26403 cat >>confdefs.h <<_ACEOF
26404 #define HAVE_OPENSSL 1
26405 _ACEOF
26408 elif test ! -z "${OPENSSL_MANDATORY}";
26409 then
26410 { echo "$as_me:$LINENO: ***" >&5
26411 echo "$as_me: ***" >&6;}
26412 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
26413 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
26414 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26415 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26416 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
26417 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
26418 exit 1
26424 if test "${USE_FREETDS}" != "no"; then
26425 pbxlibdir=""
26426 if test "x${FREETDS_DIR}" != "x"; then
26427 if test -d ${FREETDS_DIR}/lib; then
26428 pbxlibdir="-L${FREETDS_DIR}/lib"
26429 else
26430 pbxlibdir="-L${FREETDS_DIR}"
26433 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
26434 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
26435 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
26436 echo $ECHO_N "(cached) $ECHO_C" >&6
26437 else
26438 ac_check_lib_save_LIBS=$LIBS
26439 LIBS="-ltds ${pbxlibdir} $LIBS"
26440 cat >conftest.$ac_ext <<_ACEOF
26441 /* confdefs.h. */
26442 _ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h. */
26447 /* Override any GCC internal prototype to avoid an error.
26448 Use char because int might match the return type of a GCC
26449 builtin and then its argument prototype would still apply. */
26450 #ifdef __cplusplus
26451 extern "C"
26452 #endif
26453 char tds_version ();
26455 main ()
26457 return tds_version ();
26459 return 0;
26461 _ACEOF
26462 rm -f conftest.$ac_objext conftest$ac_exeext
26463 if { (ac_try="$ac_link"
26464 case "(($ac_try" in
26465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26466 *) ac_try_echo=$ac_try;;
26467 esac
26468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26469 (eval "$ac_link") 2>conftest.er1
26470 ac_status=$?
26471 grep -v '^ *+' conftest.er1 >conftest.err
26472 rm -f conftest.er1
26473 cat conftest.err >&5
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); } && {
26476 test -z "$ac_c_werror_flag" ||
26477 test ! -s conftest.err
26478 } && test -s conftest$ac_exeext &&
26479 $as_test_x conftest$ac_exeext; then
26480 ac_cv_lib_tds_tds_version=yes
26481 else
26482 echo "$as_me: failed program was:" >&5
26483 sed 's/^/| /' conftest.$ac_ext >&5
26485 ac_cv_lib_tds_tds_version=no
26488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26489 conftest$ac_exeext conftest.$ac_ext
26490 LIBS=$ac_check_lib_save_LIBS
26492 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
26493 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
26494 if test $ac_cv_lib_tds_tds_version = yes; then
26495 AST_FREETDS_FOUND=yes
26496 else
26497 AST_FREETDS_FOUND=no
26501 if test "${AST_FREETDS_FOUND}" = "yes"; then
26502 FREETDS_LIB="-ltds "
26503 FREETDS_HEADER_FOUND="1"
26504 if test "x${FREETDS_DIR}" != "x"; then
26505 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
26506 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
26507 saved_cppflags="${CPPFLAGS}"
26508 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
26509 if test "xtds.h" != "x" ; then
26510 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
26511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26512 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
26513 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
26514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26515 echo $ECHO_N "(cached) $ECHO_C" >&6
26517 ac_res=`eval echo '${'$as_ac_Header'}'`
26518 { echo "$as_me:$LINENO: result: $ac_res" >&5
26519 echo "${ECHO_T}$ac_res" >&6; }
26520 else
26521 # Is the header compilable?
26522 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
26523 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
26524 cat >conftest.$ac_ext <<_ACEOF
26525 /* confdefs.h. */
26526 _ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h. */
26530 $ac_includes_default
26531 #include <${FREETDS_DIR}/include/tds.h>
26532 _ACEOF
26533 rm -f conftest.$ac_objext
26534 if { (ac_try="$ac_compile"
26535 case "(($ac_try" in
26536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26537 *) ac_try_echo=$ac_try;;
26538 esac
26539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26540 (eval "$ac_compile") 2>conftest.er1
26541 ac_status=$?
26542 grep -v '^ *+' conftest.er1 >conftest.err
26543 rm -f conftest.er1
26544 cat conftest.err >&5
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); } && {
26547 test -z "$ac_c_werror_flag" ||
26548 test ! -s conftest.err
26549 } && test -s conftest.$ac_objext; then
26550 ac_header_compiler=yes
26551 else
26552 echo "$as_me: failed program was:" >&5
26553 sed 's/^/| /' conftest.$ac_ext >&5
26555 ac_header_compiler=no
26558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26560 echo "${ECHO_T}$ac_header_compiler" >&6; }
26562 # Is the header present?
26563 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
26564 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
26565 cat >conftest.$ac_ext <<_ACEOF
26566 /* confdefs.h. */
26567 _ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h. */
26571 #include <${FREETDS_DIR}/include/tds.h>
26572 _ACEOF
26573 if { (ac_try="$ac_cpp conftest.$ac_ext"
26574 case "(($ac_try" in
26575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576 *) ac_try_echo=$ac_try;;
26577 esac
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26580 ac_status=$?
26581 grep -v '^ *+' conftest.er1 >conftest.err
26582 rm -f conftest.er1
26583 cat conftest.err >&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); } >/dev/null && {
26586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26587 test ! -s conftest.err
26588 }; then
26589 ac_header_preproc=yes
26590 else
26591 echo "$as_me: failed program was:" >&5
26592 sed 's/^/| /' conftest.$ac_ext >&5
26594 ac_header_preproc=no
26597 rm -f conftest.err conftest.$ac_ext
26598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26599 echo "${ECHO_T}$ac_header_preproc" >&6; }
26601 # So? What about this header?
26602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26603 yes:no: )
26604 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26605 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26606 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
26607 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
26608 ac_header_preproc=yes
26610 no:yes:* )
26611 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
26612 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
26613 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
26614 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
26615 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
26616 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
26617 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
26618 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26619 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
26620 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
26621 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
26622 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
26625 esac
26626 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
26627 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
26628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26629 echo $ECHO_N "(cached) $ECHO_C" >&6
26630 else
26631 eval "$as_ac_Header=\$ac_header_preproc"
26633 ac_res=`eval echo '${'$as_ac_Header'}'`
26634 { echo "$as_me:$LINENO: result: $ac_res" >&5
26635 echo "${ECHO_T}$ac_res" >&6; }
26638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26639 FREETDS_HEADER_FOUND=1
26640 else
26641 FREETDS_HEADER_FOUND=0
26646 CPPFLAGS="${saved_cppflags}"
26647 else
26648 if test "xtds.h" != "x" ; then
26649 if test "${ac_cv_header_tds_h+set}" = set; then
26650 { echo "$as_me:$LINENO: checking for tds.h" >&5
26651 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26652 if test "${ac_cv_header_tds_h+set}" = set; then
26653 echo $ECHO_N "(cached) $ECHO_C" >&6
26655 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26656 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26657 else
26658 # Is the header compilable?
26659 { echo "$as_me:$LINENO: checking tds.h usability" >&5
26660 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
26661 cat >conftest.$ac_ext <<_ACEOF
26662 /* confdefs.h. */
26663 _ACEOF
26664 cat confdefs.h >>conftest.$ac_ext
26665 cat >>conftest.$ac_ext <<_ACEOF
26666 /* end confdefs.h. */
26667 $ac_includes_default
26668 #include <tds.h>
26669 _ACEOF
26670 rm -f conftest.$ac_objext
26671 if { (ac_try="$ac_compile"
26672 case "(($ac_try" in
26673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26674 *) ac_try_echo=$ac_try;;
26675 esac
26676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26677 (eval "$ac_compile") 2>conftest.er1
26678 ac_status=$?
26679 grep -v '^ *+' conftest.er1 >conftest.err
26680 rm -f conftest.er1
26681 cat conftest.err >&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); } && {
26684 test -z "$ac_c_werror_flag" ||
26685 test ! -s conftest.err
26686 } && test -s conftest.$ac_objext; then
26687 ac_header_compiler=yes
26688 else
26689 echo "$as_me: failed program was:" >&5
26690 sed 's/^/| /' conftest.$ac_ext >&5
26692 ac_header_compiler=no
26695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26697 echo "${ECHO_T}$ac_header_compiler" >&6; }
26699 # Is the header present?
26700 { echo "$as_me:$LINENO: checking tds.h presence" >&5
26701 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
26702 cat >conftest.$ac_ext <<_ACEOF
26703 /* confdefs.h. */
26704 _ACEOF
26705 cat confdefs.h >>conftest.$ac_ext
26706 cat >>conftest.$ac_ext <<_ACEOF
26707 /* end confdefs.h. */
26708 #include <tds.h>
26709 _ACEOF
26710 if { (ac_try="$ac_cpp conftest.$ac_ext"
26711 case "(($ac_try" in
26712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26713 *) ac_try_echo=$ac_try;;
26714 esac
26715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26717 ac_status=$?
26718 grep -v '^ *+' conftest.er1 >conftest.err
26719 rm -f conftest.er1
26720 cat conftest.err >&5
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); } >/dev/null && {
26723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26724 test ! -s conftest.err
26725 }; then
26726 ac_header_preproc=yes
26727 else
26728 echo "$as_me: failed program was:" >&5
26729 sed 's/^/| /' conftest.$ac_ext >&5
26731 ac_header_preproc=no
26734 rm -f conftest.err conftest.$ac_ext
26735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26736 echo "${ECHO_T}$ac_header_preproc" >&6; }
26738 # So? What about this header?
26739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26740 yes:no: )
26741 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26742 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26743 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
26744 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
26745 ac_header_preproc=yes
26747 no:yes:* )
26748 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
26749 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
26750 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
26751 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
26752 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
26753 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
26754 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
26755 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26756 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
26757 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
26758 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
26759 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
26762 esac
26763 { echo "$as_me:$LINENO: checking for tds.h" >&5
26764 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26765 if test "${ac_cv_header_tds_h+set}" = set; then
26766 echo $ECHO_N "(cached) $ECHO_C" >&6
26767 else
26768 ac_cv_header_tds_h=$ac_header_preproc
26770 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26771 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26774 if test $ac_cv_header_tds_h = yes; then
26775 FREETDS_HEADER_FOUND=1
26776 else
26777 FREETDS_HEADER_FOUND=0
26783 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
26784 if test ! -z "${FREETDS_MANDATORY}" ;
26785 then
26786 { echo "$as_me:$LINENO: ***" >&5
26787 echo "$as_me: ***" >&6;}
26788 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
26789 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
26790 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
26791 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
26792 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26793 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26794 exit 1
26796 FREETDS_LIB=""
26797 FREETDS_INCLUDE=""
26798 PBX_FREETDS=0
26799 else
26800 PBX_FREETDS=1
26802 cat >>confdefs.h <<_ACEOF
26803 #define HAVE_FREETDS 1
26804 _ACEOF
26807 elif test ! -z "${FREETDS_MANDATORY}";
26808 then
26809 { echo "$as_me:$LINENO: ***" >&5
26810 echo "$as_me: ***" >&6;}
26811 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
26812 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
26813 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26814 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26815 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26816 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26817 exit 1
26821 if test "${PBX_FREETDS}" != "0";
26822 then
26823 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
26824 *0.64*)
26825 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
26827 *0.63*)
26828 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
26830 *0.62*)
26831 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
26834 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
26836 esac
26840 if test "${USE_TERMCAP}" != "no"; then
26841 pbxlibdir=""
26842 if test "x${TERMCAP_DIR}" != "x"; then
26843 if test -d ${TERMCAP_DIR}/lib; then
26844 pbxlibdir="-L${TERMCAP_DIR}/lib"
26845 else
26846 pbxlibdir="-L${TERMCAP_DIR}"
26849 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26850 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
26851 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26852 echo $ECHO_N "(cached) $ECHO_C" >&6
26853 else
26854 ac_check_lib_save_LIBS=$LIBS
26855 LIBS="-ltermcap ${pbxlibdir} $LIBS"
26856 cat >conftest.$ac_ext <<_ACEOF
26857 /* confdefs.h. */
26858 _ACEOF
26859 cat confdefs.h >>conftest.$ac_ext
26860 cat >>conftest.$ac_ext <<_ACEOF
26861 /* end confdefs.h. */
26863 /* Override any GCC internal prototype to avoid an error.
26864 Use char because int might match the return type of a GCC
26865 builtin and then its argument prototype would still apply. */
26866 #ifdef __cplusplus
26867 extern "C"
26868 #endif
26869 char tgetent ();
26871 main ()
26873 return tgetent ();
26875 return 0;
26877 _ACEOF
26878 rm -f conftest.$ac_objext conftest$ac_exeext
26879 if { (ac_try="$ac_link"
26880 case "(($ac_try" in
26881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26882 *) ac_try_echo=$ac_try;;
26883 esac
26884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26885 (eval "$ac_link") 2>conftest.er1
26886 ac_status=$?
26887 grep -v '^ *+' conftest.er1 >conftest.err
26888 rm -f conftest.er1
26889 cat conftest.err >&5
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); } && {
26892 test -z "$ac_c_werror_flag" ||
26893 test ! -s conftest.err
26894 } && test -s conftest$ac_exeext &&
26895 $as_test_x conftest$ac_exeext; then
26896 ac_cv_lib_termcap_tgetent=yes
26897 else
26898 echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26901 ac_cv_lib_termcap_tgetent=no
26904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26905 conftest$ac_exeext conftest.$ac_ext
26906 LIBS=$ac_check_lib_save_LIBS
26908 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26909 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
26910 if test $ac_cv_lib_termcap_tgetent = yes; then
26911 AST_TERMCAP_FOUND=yes
26912 else
26913 AST_TERMCAP_FOUND=no
26917 if test "${AST_TERMCAP_FOUND}" = "yes"; then
26918 TERMCAP_LIB="-ltermcap "
26919 TERMCAP_HEADER_FOUND="1"
26920 if test "x${TERMCAP_DIR}" != "x"; then
26921 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
26922 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
26923 saved_cppflags="${CPPFLAGS}"
26924 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
26925 if test "x" != "x" ; then
26926 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
26927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26928 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26929 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26931 echo $ECHO_N "(cached) $ECHO_C" >&6
26933 ac_res=`eval echo '${'$as_ac_Header'}'`
26934 { echo "$as_me:$LINENO: result: $ac_res" >&5
26935 echo "${ECHO_T}$ac_res" >&6; }
26936 else
26937 # Is the header compilable?
26938 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
26939 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $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 $ac_includes_default
26947 #include <${TERMCAP_DIR}/include/>
26948 _ACEOF
26949 rm -f conftest.$ac_objext
26950 if { (ac_try="$ac_compile"
26951 case "(($ac_try" in
26952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953 *) ac_try_echo=$ac_try;;
26954 esac
26955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956 (eval "$ac_compile") 2>conftest.er1
26957 ac_status=$?
26958 grep -v '^ *+' conftest.er1 >conftest.err
26959 rm -f conftest.er1
26960 cat conftest.err >&5
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); } && {
26963 test -z "$ac_c_werror_flag" ||
26964 test ! -s conftest.err
26965 } && test -s conftest.$ac_objext; then
26966 ac_header_compiler=yes
26967 else
26968 echo "$as_me: failed program was:" >&5
26969 sed 's/^/| /' conftest.$ac_ext >&5
26971 ac_header_compiler=no
26974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26976 echo "${ECHO_T}$ac_header_compiler" >&6; }
26978 # Is the header present?
26979 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
26980 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
26981 cat >conftest.$ac_ext <<_ACEOF
26982 /* confdefs.h. */
26983 _ACEOF
26984 cat confdefs.h >>conftest.$ac_ext
26985 cat >>conftest.$ac_ext <<_ACEOF
26986 /* end confdefs.h. */
26987 #include <${TERMCAP_DIR}/include/>
26988 _ACEOF
26989 if { (ac_try="$ac_cpp conftest.$ac_ext"
26990 case "(($ac_try" in
26991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992 *) ac_try_echo=$ac_try;;
26993 esac
26994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26996 ac_status=$?
26997 grep -v '^ *+' conftest.er1 >conftest.err
26998 rm -f conftest.er1
26999 cat conftest.err >&5
27000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001 (exit $ac_status); } >/dev/null && {
27002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27003 test ! -s conftest.err
27004 }; then
27005 ac_header_preproc=yes
27006 else
27007 echo "$as_me: failed program was:" >&5
27008 sed 's/^/| /' conftest.$ac_ext >&5
27010 ac_header_preproc=no
27013 rm -f conftest.err conftest.$ac_ext
27014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27015 echo "${ECHO_T}$ac_header_preproc" >&6; }
27017 # So? What about this header?
27018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27019 yes:no: )
27020 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
27021 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
27022 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
27023 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
27024 ac_header_preproc=yes
27026 no:yes:* )
27027 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
27028 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
27029 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
27030 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
27031 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
27032 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
27033 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
27034 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
27035 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
27036 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
27037 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
27038 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
27041 esac
27042 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
27043 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
27044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27045 echo $ECHO_N "(cached) $ECHO_C" >&6
27046 else
27047 eval "$as_ac_Header=\$ac_header_preproc"
27049 ac_res=`eval echo '${'$as_ac_Header'}'`
27050 { echo "$as_me:$LINENO: result: $ac_res" >&5
27051 echo "${ECHO_T}$ac_res" >&6; }
27054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27055 TERMCAP_HEADER_FOUND=1
27056 else
27057 TERMCAP_HEADER_FOUND=0
27062 CPPFLAGS="${saved_cppflags}"
27063 else
27064 if test "x" != "x" ; then
27065 if test "${ac_cv_header_+set}" = set; then
27066 { echo "$as_me:$LINENO: checking for " >&5
27067 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27068 if test "${ac_cv_header_+set}" = set; then
27069 echo $ECHO_N "(cached) $ECHO_C" >&6
27071 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27072 echo "${ECHO_T}$ac_cv_header_" >&6; }
27073 else
27074 # Is the header compilable?
27075 { echo "$as_me:$LINENO: checking usability" >&5
27076 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27077 cat >conftest.$ac_ext <<_ACEOF
27078 /* confdefs.h. */
27079 _ACEOF
27080 cat confdefs.h >>conftest.$ac_ext
27081 cat >>conftest.$ac_ext <<_ACEOF
27082 /* end confdefs.h. */
27083 $ac_includes_default
27084 #include <>
27085 _ACEOF
27086 rm -f conftest.$ac_objext
27087 if { (ac_try="$ac_compile"
27088 case "(($ac_try" in
27089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27090 *) ac_try_echo=$ac_try;;
27091 esac
27092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27093 (eval "$ac_compile") 2>conftest.er1
27094 ac_status=$?
27095 grep -v '^ *+' conftest.er1 >conftest.err
27096 rm -f conftest.er1
27097 cat conftest.err >&5
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); } && {
27100 test -z "$ac_c_werror_flag" ||
27101 test ! -s conftest.err
27102 } && test -s conftest.$ac_objext; then
27103 ac_header_compiler=yes
27104 else
27105 echo "$as_me: failed program was:" >&5
27106 sed 's/^/| /' conftest.$ac_ext >&5
27108 ac_header_compiler=no
27111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27113 echo "${ECHO_T}$ac_header_compiler" >&6; }
27115 # Is the header present?
27116 { echo "$as_me:$LINENO: checking presence" >&5
27117 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27118 cat >conftest.$ac_ext <<_ACEOF
27119 /* confdefs.h. */
27120 _ACEOF
27121 cat confdefs.h >>conftest.$ac_ext
27122 cat >>conftest.$ac_ext <<_ACEOF
27123 /* end confdefs.h. */
27124 #include <>
27125 _ACEOF
27126 if { (ac_try="$ac_cpp conftest.$ac_ext"
27127 case "(($ac_try" in
27128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27129 *) ac_try_echo=$ac_try;;
27130 esac
27131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27133 ac_status=$?
27134 grep -v '^ *+' conftest.er1 >conftest.err
27135 rm -f conftest.er1
27136 cat conftest.err >&5
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); } >/dev/null && {
27139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27140 test ! -s conftest.err
27141 }; then
27142 ac_header_preproc=yes
27143 else
27144 echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27147 ac_header_preproc=no
27150 rm -f conftest.err conftest.$ac_ext
27151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27152 echo "${ECHO_T}$ac_header_preproc" >&6; }
27154 # So? What about this header?
27155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27156 yes:no: )
27157 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27158 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27159 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27160 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27161 ac_header_preproc=yes
27163 no:yes:* )
27164 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27165 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27166 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27167 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27168 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27169 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27170 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27171 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27172 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27173 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27174 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27175 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27178 esac
27179 { echo "$as_me:$LINENO: checking for " >&5
27180 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27181 if test "${ac_cv_header_+set}" = set; then
27182 echo $ECHO_N "(cached) $ECHO_C" >&6
27183 else
27184 ac_cv_header_=$ac_header_preproc
27186 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27187 echo "${ECHO_T}$ac_cv_header_" >&6; }
27190 if test $ac_cv_header_ = yes; then
27191 TERMCAP_HEADER_FOUND=1
27192 else
27193 TERMCAP_HEADER_FOUND=0
27199 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
27200 if test ! -z "${TERMCAP_MANDATORY}" ;
27201 then
27202 { echo "$as_me:$LINENO: ***" >&5
27203 echo "$as_me: ***" >&6;}
27204 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
27205 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
27206 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
27207 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
27208 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
27209 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
27210 exit 1
27212 TERMCAP_LIB=""
27213 TERMCAP_INCLUDE=""
27214 PBX_TERMCAP=0
27215 else
27216 PBX_TERMCAP=1
27218 cat >>confdefs.h <<_ACEOF
27219 #define HAVE_TERMCAP 1
27220 _ACEOF
27223 elif test ! -z "${TERMCAP_MANDATORY}";
27224 then
27225 { echo "$as_me:$LINENO: ***" >&5
27226 echo "$as_me: ***" >&6;}
27227 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
27228 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
27229 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27230 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27231 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
27232 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
27233 exit 1
27239 if test "${USE_TINFO}" != "no"; then
27240 pbxlibdir=""
27241 if test "x${TINFO_DIR}" != "x"; then
27242 if test -d ${TINFO_DIR}/lib; then
27243 pbxlibdir="-L${TINFO_DIR}/lib"
27244 else
27245 pbxlibdir="-L${TINFO_DIR}"
27248 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
27249 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
27250 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
27251 echo $ECHO_N "(cached) $ECHO_C" >&6
27252 else
27253 ac_check_lib_save_LIBS=$LIBS
27254 LIBS="-ltinfo ${pbxlibdir} $LIBS"
27255 cat >conftest.$ac_ext <<_ACEOF
27256 /* confdefs.h. */
27257 _ACEOF
27258 cat confdefs.h >>conftest.$ac_ext
27259 cat >>conftest.$ac_ext <<_ACEOF
27260 /* end confdefs.h. */
27262 /* Override any GCC internal prototype to avoid an error.
27263 Use char because int might match the return type of a GCC
27264 builtin and then its argument prototype would still apply. */
27265 #ifdef __cplusplus
27266 extern "C"
27267 #endif
27268 char tgetent ();
27270 main ()
27272 return tgetent ();
27274 return 0;
27276 _ACEOF
27277 rm -f conftest.$ac_objext conftest$ac_exeext
27278 if { (ac_try="$ac_link"
27279 case "(($ac_try" in
27280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281 *) ac_try_echo=$ac_try;;
27282 esac
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284 (eval "$ac_link") 2>conftest.er1
27285 ac_status=$?
27286 grep -v '^ *+' conftest.er1 >conftest.err
27287 rm -f conftest.er1
27288 cat conftest.err >&5
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); } && {
27291 test -z "$ac_c_werror_flag" ||
27292 test ! -s conftest.err
27293 } && test -s conftest$ac_exeext &&
27294 $as_test_x conftest$ac_exeext; then
27295 ac_cv_lib_tinfo_tgetent=yes
27296 else
27297 echo "$as_me: failed program was:" >&5
27298 sed 's/^/| /' conftest.$ac_ext >&5
27300 ac_cv_lib_tinfo_tgetent=no
27303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27304 conftest$ac_exeext conftest.$ac_ext
27305 LIBS=$ac_check_lib_save_LIBS
27307 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
27308 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
27309 if test $ac_cv_lib_tinfo_tgetent = yes; then
27310 AST_TINFO_FOUND=yes
27311 else
27312 AST_TINFO_FOUND=no
27316 if test "${AST_TINFO_FOUND}" = "yes"; then
27317 TINFO_LIB="-ltinfo "
27318 TINFO_HEADER_FOUND="1"
27319 if test "x${TINFO_DIR}" != "x"; then
27320 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
27321 TINFO_INCLUDE="-I${TINFO_DIR}/include"
27322 saved_cppflags="${CPPFLAGS}"
27323 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
27324 if test "x" != "x" ; then
27325 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
27326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27327 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
27328 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
27329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27330 echo $ECHO_N "(cached) $ECHO_C" >&6
27332 ac_res=`eval echo '${'$as_ac_Header'}'`
27333 { echo "$as_me:$LINENO: result: $ac_res" >&5
27334 echo "${ECHO_T}$ac_res" >&6; }
27335 else
27336 # Is the header compilable?
27337 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
27338 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
27339 cat >conftest.$ac_ext <<_ACEOF
27340 /* confdefs.h. */
27341 _ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h. */
27345 $ac_includes_default
27346 #include <${TINFO_DIR}/include/>
27347 _ACEOF
27348 rm -f conftest.$ac_objext
27349 if { (ac_try="$ac_compile"
27350 case "(($ac_try" in
27351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27352 *) ac_try_echo=$ac_try;;
27353 esac
27354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27355 (eval "$ac_compile") 2>conftest.er1
27356 ac_status=$?
27357 grep -v '^ *+' conftest.er1 >conftest.err
27358 rm -f conftest.er1
27359 cat conftest.err >&5
27360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); } && {
27362 test -z "$ac_c_werror_flag" ||
27363 test ! -s conftest.err
27364 } && test -s conftest.$ac_objext; then
27365 ac_header_compiler=yes
27366 else
27367 echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27370 ac_header_compiler=no
27373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27375 echo "${ECHO_T}$ac_header_compiler" >&6; }
27377 # Is the header present?
27378 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
27379 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
27380 cat >conftest.$ac_ext <<_ACEOF
27381 /* confdefs.h. */
27382 _ACEOF
27383 cat confdefs.h >>conftest.$ac_ext
27384 cat >>conftest.$ac_ext <<_ACEOF
27385 /* end confdefs.h. */
27386 #include <${TINFO_DIR}/include/>
27387 _ACEOF
27388 if { (ac_try="$ac_cpp conftest.$ac_ext"
27389 case "(($ac_try" in
27390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391 *) ac_try_echo=$ac_try;;
27392 esac
27393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27395 ac_status=$?
27396 grep -v '^ *+' conftest.er1 >conftest.err
27397 rm -f conftest.er1
27398 cat conftest.err >&5
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); } >/dev/null && {
27401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27402 test ! -s conftest.err
27403 }; then
27404 ac_header_preproc=yes
27405 else
27406 echo "$as_me: failed program was:" >&5
27407 sed 's/^/| /' conftest.$ac_ext >&5
27409 ac_header_preproc=no
27412 rm -f conftest.err conftest.$ac_ext
27413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27414 echo "${ECHO_T}$ac_header_preproc" >&6; }
27416 # So? What about this header?
27417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27418 yes:no: )
27419 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
27420 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
27421 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
27422 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
27423 ac_header_preproc=yes
27425 no:yes:* )
27426 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
27427 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
27428 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
27429 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
27430 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
27431 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
27432 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
27433 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
27434 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
27435 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
27436 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
27437 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
27440 esac
27441 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
27442 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
27443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27444 echo $ECHO_N "(cached) $ECHO_C" >&6
27445 else
27446 eval "$as_ac_Header=\$ac_header_preproc"
27448 ac_res=`eval echo '${'$as_ac_Header'}'`
27449 { echo "$as_me:$LINENO: result: $ac_res" >&5
27450 echo "${ECHO_T}$ac_res" >&6; }
27453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27454 TINFO_HEADER_FOUND=1
27455 else
27456 TINFO_HEADER_FOUND=0
27461 CPPFLAGS="${saved_cppflags}"
27462 else
27463 if test "x" != "x" ; then
27464 if test "${ac_cv_header_+set}" = set; then
27465 { echo "$as_me:$LINENO: checking for " >&5
27466 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27467 if test "${ac_cv_header_+set}" = set; then
27468 echo $ECHO_N "(cached) $ECHO_C" >&6
27470 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27471 echo "${ECHO_T}$ac_cv_header_" >&6; }
27472 else
27473 # Is the header compilable?
27474 { echo "$as_me:$LINENO: checking usability" >&5
27475 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27476 cat >conftest.$ac_ext <<_ACEOF
27477 /* confdefs.h. */
27478 _ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h. */
27482 $ac_includes_default
27483 #include <>
27484 _ACEOF
27485 rm -f conftest.$ac_objext
27486 if { (ac_try="$ac_compile"
27487 case "(($ac_try" in
27488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27489 *) ac_try_echo=$ac_try;;
27490 esac
27491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27492 (eval "$ac_compile") 2>conftest.er1
27493 ac_status=$?
27494 grep -v '^ *+' conftest.er1 >conftest.err
27495 rm -f conftest.er1
27496 cat conftest.err >&5
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); } && {
27499 test -z "$ac_c_werror_flag" ||
27500 test ! -s conftest.err
27501 } && test -s conftest.$ac_objext; then
27502 ac_header_compiler=yes
27503 else
27504 echo "$as_me: failed program was:" >&5
27505 sed 's/^/| /' conftest.$ac_ext >&5
27507 ac_header_compiler=no
27510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27512 echo "${ECHO_T}$ac_header_compiler" >&6; }
27514 # Is the header present?
27515 { echo "$as_me:$LINENO: checking presence" >&5
27516 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27517 cat >conftest.$ac_ext <<_ACEOF
27518 /* confdefs.h. */
27519 _ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h. */
27523 #include <>
27524 _ACEOF
27525 if { (ac_try="$ac_cpp conftest.$ac_ext"
27526 case "(($ac_try" in
27527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528 *) ac_try_echo=$ac_try;;
27529 esac
27530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27532 ac_status=$?
27533 grep -v '^ *+' conftest.er1 >conftest.err
27534 rm -f conftest.er1
27535 cat conftest.err >&5
27536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 (exit $ac_status); } >/dev/null && {
27538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27539 test ! -s conftest.err
27540 }; then
27541 ac_header_preproc=yes
27542 else
27543 echo "$as_me: failed program was:" >&5
27544 sed 's/^/| /' conftest.$ac_ext >&5
27546 ac_header_preproc=no
27549 rm -f conftest.err conftest.$ac_ext
27550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27551 echo "${ECHO_T}$ac_header_preproc" >&6; }
27553 # So? What about this header?
27554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27555 yes:no: )
27556 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27557 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27558 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27559 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27560 ac_header_preproc=yes
27562 no:yes:* )
27563 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27564 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27565 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27566 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27567 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27568 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27569 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27570 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27571 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27572 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27573 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27574 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27577 esac
27578 { echo "$as_me:$LINENO: checking for " >&5
27579 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27580 if test "${ac_cv_header_+set}" = set; then
27581 echo $ECHO_N "(cached) $ECHO_C" >&6
27582 else
27583 ac_cv_header_=$ac_header_preproc
27585 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27586 echo "${ECHO_T}$ac_cv_header_" >&6; }
27589 if test $ac_cv_header_ = yes; then
27590 TINFO_HEADER_FOUND=1
27591 else
27592 TINFO_HEADER_FOUND=0
27598 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
27599 if test ! -z "${TINFO_MANDATORY}" ;
27600 then
27601 { echo "$as_me:$LINENO: ***" >&5
27602 echo "$as_me: ***" >&6;}
27603 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
27604 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
27605 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
27606 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
27607 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
27608 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
27609 exit 1
27611 TINFO_LIB=""
27612 TINFO_INCLUDE=""
27613 PBX_TINFO=0
27614 else
27615 PBX_TINFO=1
27617 cat >>confdefs.h <<_ACEOF
27618 #define HAVE_TINFO 1
27619 _ACEOF
27622 elif test ! -z "${TINFO_MANDATORY}";
27623 then
27624 { echo "$as_me:$LINENO: ***" >&5
27625 echo "$as_me: ***" >&6;}
27626 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
27627 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
27628 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27629 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27630 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
27631 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
27632 exit 1
27637 if test "${host_os}" != "linux-gnu" ; then
27638 tonezone_extra="-lm"
27642 if test "${USE_TONEZONE}" != "no"; then
27643 pbxlibdir=""
27644 if test "x${TONEZONE_DIR}" != "x"; then
27645 if test -d ${TONEZONE_DIR}/lib; then
27646 pbxlibdir="-L${TONEZONE_DIR}/lib"
27647 else
27648 pbxlibdir="-L${TONEZONE_DIR}"
27651 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
27652 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
27653 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
27654 echo $ECHO_N "(cached) $ECHO_C" >&6
27655 else
27656 ac_check_lib_save_LIBS=$LIBS
27657 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
27658 cat >conftest.$ac_ext <<_ACEOF
27659 /* confdefs.h. */
27660 _ACEOF
27661 cat confdefs.h >>conftest.$ac_ext
27662 cat >>conftest.$ac_ext <<_ACEOF
27663 /* end confdefs.h. */
27665 /* Override any GCC internal prototype to avoid an error.
27666 Use char because int might match the return type of a GCC
27667 builtin and then its argument prototype would still apply. */
27668 #ifdef __cplusplus
27669 extern "C"
27670 #endif
27671 char tone_zone_find ();
27673 main ()
27675 return tone_zone_find ();
27677 return 0;
27679 _ACEOF
27680 rm -f conftest.$ac_objext conftest$ac_exeext
27681 if { (ac_try="$ac_link"
27682 case "(($ac_try" in
27683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684 *) ac_try_echo=$ac_try;;
27685 esac
27686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27687 (eval "$ac_link") 2>conftest.er1
27688 ac_status=$?
27689 grep -v '^ *+' conftest.er1 >conftest.err
27690 rm -f conftest.er1
27691 cat conftest.err >&5
27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); } && {
27694 test -z "$ac_c_werror_flag" ||
27695 test ! -s conftest.err
27696 } && test -s conftest$ac_exeext &&
27697 $as_test_x conftest$ac_exeext; then
27698 ac_cv_lib_tonezone_tone_zone_find=yes
27699 else
27700 echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.$ac_ext >&5
27703 ac_cv_lib_tonezone_tone_zone_find=no
27706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27707 conftest$ac_exeext conftest.$ac_ext
27708 LIBS=$ac_check_lib_save_LIBS
27710 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
27711 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
27712 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
27713 AST_TONEZONE_FOUND=yes
27714 else
27715 AST_TONEZONE_FOUND=no
27719 if test "${AST_TONEZONE_FOUND}" = "yes"; then
27720 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
27721 TONEZONE_HEADER_FOUND="1"
27722 if test "x${TONEZONE_DIR}" != "x"; then
27723 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
27724 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
27725 saved_cppflags="${CPPFLAGS}"
27726 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
27727 if test "xzaptel/tonezone.h" != "x" ; then
27728 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
27729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27730 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27731 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27733 echo $ECHO_N "(cached) $ECHO_C" >&6
27735 ac_res=`eval echo '${'$as_ac_Header'}'`
27736 { echo "$as_me:$LINENO: result: $ac_res" >&5
27737 echo "${ECHO_T}$ac_res" >&6; }
27738 else
27739 # Is the header compilable?
27740 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
27741 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
27742 cat >conftest.$ac_ext <<_ACEOF
27743 /* confdefs.h. */
27744 _ACEOF
27745 cat confdefs.h >>conftest.$ac_ext
27746 cat >>conftest.$ac_ext <<_ACEOF
27747 /* end confdefs.h. */
27748 $ac_includes_default
27749 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27750 _ACEOF
27751 rm -f conftest.$ac_objext
27752 if { (ac_try="$ac_compile"
27753 case "(($ac_try" in
27754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755 *) ac_try_echo=$ac_try;;
27756 esac
27757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27758 (eval "$ac_compile") 2>conftest.er1
27759 ac_status=$?
27760 grep -v '^ *+' conftest.er1 >conftest.err
27761 rm -f conftest.er1
27762 cat conftest.err >&5
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); } && {
27765 test -z "$ac_c_werror_flag" ||
27766 test ! -s conftest.err
27767 } && test -s conftest.$ac_objext; then
27768 ac_header_compiler=yes
27769 else
27770 echo "$as_me: failed program was:" >&5
27771 sed 's/^/| /' conftest.$ac_ext >&5
27773 ac_header_compiler=no
27776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27778 echo "${ECHO_T}$ac_header_compiler" >&6; }
27780 # Is the header present?
27781 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
27782 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
27783 cat >conftest.$ac_ext <<_ACEOF
27784 /* confdefs.h. */
27785 _ACEOF
27786 cat confdefs.h >>conftest.$ac_ext
27787 cat >>conftest.$ac_ext <<_ACEOF
27788 /* end confdefs.h. */
27789 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27790 _ACEOF
27791 if { (ac_try="$ac_cpp conftest.$ac_ext"
27792 case "(($ac_try" in
27793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794 *) ac_try_echo=$ac_try;;
27795 esac
27796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27798 ac_status=$?
27799 grep -v '^ *+' conftest.er1 >conftest.err
27800 rm -f conftest.er1
27801 cat conftest.err >&5
27802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803 (exit $ac_status); } >/dev/null && {
27804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27805 test ! -s conftest.err
27806 }; then
27807 ac_header_preproc=yes
27808 else
27809 echo "$as_me: failed program was:" >&5
27810 sed 's/^/| /' conftest.$ac_ext >&5
27812 ac_header_preproc=no
27815 rm -f conftest.err conftest.$ac_ext
27816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27817 echo "${ECHO_T}$ac_header_preproc" >&6; }
27819 # So? What about this header?
27820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27821 yes:no: )
27822 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27823 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27824 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
27825 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27826 ac_header_preproc=yes
27828 no:yes:* )
27829 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
27830 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
27831 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27832 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27833 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
27834 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27835 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27836 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27837 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27838 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27839 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27840 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27843 esac
27844 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27845 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27847 echo $ECHO_N "(cached) $ECHO_C" >&6
27848 else
27849 eval "$as_ac_Header=\$ac_header_preproc"
27851 ac_res=`eval echo '${'$as_ac_Header'}'`
27852 { echo "$as_me:$LINENO: result: $ac_res" >&5
27853 echo "${ECHO_T}$ac_res" >&6; }
27856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27857 TONEZONE_HEADER_FOUND=1
27858 else
27859 TONEZONE_HEADER_FOUND=0
27864 CPPFLAGS="${saved_cppflags}"
27865 else
27866 if test "xzaptel/tonezone.h" != "x" ; then
27867 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27868 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27869 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27870 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27871 echo $ECHO_N "(cached) $ECHO_C" >&6
27873 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27874 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27875 else
27876 # Is the header compilable?
27877 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
27878 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
27879 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 $ac_includes_default
27886 #include <zaptel/tonezone.h>
27887 _ACEOF
27888 rm -f conftest.$ac_objext
27889 if { (ac_try="$ac_compile"
27890 case "(($ac_try" in
27891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892 *) ac_try_echo=$ac_try;;
27893 esac
27894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895 (eval "$ac_compile") 2>conftest.er1
27896 ac_status=$?
27897 grep -v '^ *+' conftest.er1 >conftest.err
27898 rm -f conftest.er1
27899 cat conftest.err >&5
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); } && {
27902 test -z "$ac_c_werror_flag" ||
27903 test ! -s conftest.err
27904 } && test -s conftest.$ac_objext; then
27905 ac_header_compiler=yes
27906 else
27907 echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27910 ac_header_compiler=no
27913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27915 echo "${ECHO_T}$ac_header_compiler" >&6; }
27917 # Is the header present?
27918 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
27919 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
27920 cat >conftest.$ac_ext <<_ACEOF
27921 /* confdefs.h. */
27922 _ACEOF
27923 cat confdefs.h >>conftest.$ac_ext
27924 cat >>conftest.$ac_ext <<_ACEOF
27925 /* end confdefs.h. */
27926 #include <zaptel/tonezone.h>
27927 _ACEOF
27928 if { (ac_try="$ac_cpp conftest.$ac_ext"
27929 case "(($ac_try" in
27930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27931 *) ac_try_echo=$ac_try;;
27932 esac
27933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27935 ac_status=$?
27936 grep -v '^ *+' conftest.er1 >conftest.err
27937 rm -f conftest.er1
27938 cat conftest.err >&5
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); } >/dev/null && {
27941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27942 test ! -s conftest.err
27943 }; then
27944 ac_header_preproc=yes
27945 else
27946 echo "$as_me: failed program was:" >&5
27947 sed 's/^/| /' conftest.$ac_ext >&5
27949 ac_header_preproc=no
27952 rm -f conftest.err conftest.$ac_ext
27953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27954 echo "${ECHO_T}$ac_header_preproc" >&6; }
27956 # So? What about this header?
27957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27958 yes:no: )
27959 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27960 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27961 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
27962 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27963 ac_header_preproc=yes
27965 no:yes:* )
27966 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
27967 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
27968 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27969 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27970 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
27971 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27972 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27973 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27974 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27975 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27976 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27977 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27980 esac
27981 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27982 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27983 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27984 echo $ECHO_N "(cached) $ECHO_C" >&6
27985 else
27986 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
27988 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27989 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27992 if test $ac_cv_header_zaptel_tonezone_h = yes; then
27993 TONEZONE_HEADER_FOUND=1
27994 else
27995 TONEZONE_HEADER_FOUND=0
28001 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
28002 if test ! -z "${TONEZONE_MANDATORY}" ;
28003 then
28004 { echo "$as_me:$LINENO: ***" >&5
28005 echo "$as_me: ***" >&6;}
28006 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
28007 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
28008 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
28009 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
28010 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
28011 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
28012 exit 1
28014 TONEZONE_LIB=""
28015 TONEZONE_INCLUDE=""
28016 PBX_TONEZONE=0
28017 else
28018 PBX_TONEZONE=1
28020 cat >>confdefs.h <<_ACEOF
28021 #define HAVE_TONEZONE 1
28022 _ACEOF
28025 elif test ! -z "${TONEZONE_MANDATORY}";
28026 then
28027 { echo "$as_me:$LINENO: ***" >&5
28028 echo "$as_me: ***" >&6;}
28029 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
28030 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
28031 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28032 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28033 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
28034 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
28035 exit 1
28041 if test "${USE_VORBIS}" != "no"; then
28042 pbxlibdir=""
28043 if test "x${VORBIS_DIR}" != "x"; then
28044 if test -d ${VORBIS_DIR}/lib; then
28045 pbxlibdir="-L${VORBIS_DIR}/lib"
28046 else
28047 pbxlibdir="-L${VORBIS_DIR}"
28050 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
28051 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
28052 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
28053 echo $ECHO_N "(cached) $ECHO_C" >&6
28054 else
28055 ac_check_lib_save_LIBS=$LIBS
28056 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
28057 cat >conftest.$ac_ext <<_ACEOF
28058 /* confdefs.h. */
28059 _ACEOF
28060 cat confdefs.h >>conftest.$ac_ext
28061 cat >>conftest.$ac_ext <<_ACEOF
28062 /* end confdefs.h. */
28064 /* Override any GCC internal prototype to avoid an error.
28065 Use char because int might match the return type of a GCC
28066 builtin and then its argument prototype would still apply. */
28067 #ifdef __cplusplus
28068 extern "C"
28069 #endif
28070 char vorbis_info_init ();
28072 main ()
28074 return vorbis_info_init ();
28076 return 0;
28078 _ACEOF
28079 rm -f conftest.$ac_objext conftest$ac_exeext
28080 if { (ac_try="$ac_link"
28081 case "(($ac_try" in
28082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28083 *) ac_try_echo=$ac_try;;
28084 esac
28085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28086 (eval "$ac_link") 2>conftest.er1
28087 ac_status=$?
28088 grep -v '^ *+' conftest.er1 >conftest.err
28089 rm -f conftest.er1
28090 cat conftest.err >&5
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); } && {
28093 test -z "$ac_c_werror_flag" ||
28094 test ! -s conftest.err
28095 } && test -s conftest$ac_exeext &&
28096 $as_test_x conftest$ac_exeext; then
28097 ac_cv_lib_vorbis_vorbis_info_init=yes
28098 else
28099 echo "$as_me: failed program was:" >&5
28100 sed 's/^/| /' conftest.$ac_ext >&5
28102 ac_cv_lib_vorbis_vorbis_info_init=no
28105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28106 conftest$ac_exeext conftest.$ac_ext
28107 LIBS=$ac_check_lib_save_LIBS
28109 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
28110 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
28111 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
28112 AST_VORBIS_FOUND=yes
28113 else
28114 AST_VORBIS_FOUND=no
28118 if test "${AST_VORBIS_FOUND}" = "yes"; then
28119 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
28120 VORBIS_HEADER_FOUND="1"
28121 if test "x${VORBIS_DIR}" != "x"; then
28122 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
28123 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
28124 saved_cppflags="${CPPFLAGS}"
28125 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
28126 if test "xvorbis/codec.h" != "x" ; then
28127 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
28128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28129 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
28130 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
28131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28132 echo $ECHO_N "(cached) $ECHO_C" >&6
28134 ac_res=`eval echo '${'$as_ac_Header'}'`
28135 { echo "$as_me:$LINENO: result: $ac_res" >&5
28136 echo "${ECHO_T}$ac_res" >&6; }
28137 else
28138 # Is the header compilable?
28139 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
28140 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
28141 cat >conftest.$ac_ext <<_ACEOF
28142 /* confdefs.h. */
28143 _ACEOF
28144 cat confdefs.h >>conftest.$ac_ext
28145 cat >>conftest.$ac_ext <<_ACEOF
28146 /* end confdefs.h. */
28147 $ac_includes_default
28148 #include <${VORBIS_DIR}/include/vorbis/codec.h>
28149 _ACEOF
28150 rm -f conftest.$ac_objext
28151 if { (ac_try="$ac_compile"
28152 case "(($ac_try" in
28153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28154 *) ac_try_echo=$ac_try;;
28155 esac
28156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28157 (eval "$ac_compile") 2>conftest.er1
28158 ac_status=$?
28159 grep -v '^ *+' conftest.er1 >conftest.err
28160 rm -f conftest.er1
28161 cat conftest.err >&5
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); } && {
28164 test -z "$ac_c_werror_flag" ||
28165 test ! -s conftest.err
28166 } && test -s conftest.$ac_objext; then
28167 ac_header_compiler=yes
28168 else
28169 echo "$as_me: failed program was:" >&5
28170 sed 's/^/| /' conftest.$ac_ext >&5
28172 ac_header_compiler=no
28175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28177 echo "${ECHO_T}$ac_header_compiler" >&6; }
28179 # Is the header present?
28180 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
28181 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
28182 cat >conftest.$ac_ext <<_ACEOF
28183 /* confdefs.h. */
28184 _ACEOF
28185 cat confdefs.h >>conftest.$ac_ext
28186 cat >>conftest.$ac_ext <<_ACEOF
28187 /* end confdefs.h. */
28188 #include <${VORBIS_DIR}/include/vorbis/codec.h>
28189 _ACEOF
28190 if { (ac_try="$ac_cpp conftest.$ac_ext"
28191 case "(($ac_try" in
28192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28193 *) ac_try_echo=$ac_try;;
28194 esac
28195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28197 ac_status=$?
28198 grep -v '^ *+' conftest.er1 >conftest.err
28199 rm -f conftest.er1
28200 cat conftest.err >&5
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); } >/dev/null && {
28203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28204 test ! -s conftest.err
28205 }; then
28206 ac_header_preproc=yes
28207 else
28208 echo "$as_me: failed program was:" >&5
28209 sed 's/^/| /' conftest.$ac_ext >&5
28211 ac_header_preproc=no
28214 rm -f conftest.err conftest.$ac_ext
28215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28216 echo "${ECHO_T}$ac_header_preproc" >&6; }
28218 # So? What about this header?
28219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28220 yes:no: )
28221 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
28222 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28223 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
28224 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
28225 ac_header_preproc=yes
28227 no:yes:* )
28228 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
28229 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
28230 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
28231 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
28232 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
28233 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
28234 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
28235 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
28236 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
28237 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
28238 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
28239 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
28242 esac
28243 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
28244 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
28245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28246 echo $ECHO_N "(cached) $ECHO_C" >&6
28247 else
28248 eval "$as_ac_Header=\$ac_header_preproc"
28250 ac_res=`eval echo '${'$as_ac_Header'}'`
28251 { echo "$as_me:$LINENO: result: $ac_res" >&5
28252 echo "${ECHO_T}$ac_res" >&6; }
28255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28256 VORBIS_HEADER_FOUND=1
28257 else
28258 VORBIS_HEADER_FOUND=0
28263 CPPFLAGS="${saved_cppflags}"
28264 else
28265 if test "xvorbis/codec.h" != "x" ; then
28266 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
28267 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
28268 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
28269 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
28270 echo $ECHO_N "(cached) $ECHO_C" >&6
28272 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
28273 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
28274 else
28275 # Is the header compilable?
28276 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
28277 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
28278 cat >conftest.$ac_ext <<_ACEOF
28279 /* confdefs.h. */
28280 _ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h. */
28284 $ac_includes_default
28285 #include <vorbis/codec.h>
28286 _ACEOF
28287 rm -f conftest.$ac_objext
28288 if { (ac_try="$ac_compile"
28289 case "(($ac_try" in
28290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28291 *) ac_try_echo=$ac_try;;
28292 esac
28293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28294 (eval "$ac_compile") 2>conftest.er1
28295 ac_status=$?
28296 grep -v '^ *+' conftest.er1 >conftest.err
28297 rm -f conftest.er1
28298 cat conftest.err >&5
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); } && {
28301 test -z "$ac_c_werror_flag" ||
28302 test ! -s conftest.err
28303 } && test -s conftest.$ac_objext; then
28304 ac_header_compiler=yes
28305 else
28306 echo "$as_me: failed program was:" >&5
28307 sed 's/^/| /' conftest.$ac_ext >&5
28309 ac_header_compiler=no
28312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28314 echo "${ECHO_T}$ac_header_compiler" >&6; }
28316 # Is the header present?
28317 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
28318 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
28319 cat >conftest.$ac_ext <<_ACEOF
28320 /* confdefs.h. */
28321 _ACEOF
28322 cat confdefs.h >>conftest.$ac_ext
28323 cat >>conftest.$ac_ext <<_ACEOF
28324 /* end confdefs.h. */
28325 #include <vorbis/codec.h>
28326 _ACEOF
28327 if { (ac_try="$ac_cpp conftest.$ac_ext"
28328 case "(($ac_try" in
28329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28330 *) ac_try_echo=$ac_try;;
28331 esac
28332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28334 ac_status=$?
28335 grep -v '^ *+' conftest.er1 >conftest.err
28336 rm -f conftest.er1
28337 cat conftest.err >&5
28338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339 (exit $ac_status); } >/dev/null && {
28340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28341 test ! -s conftest.err
28342 }; then
28343 ac_header_preproc=yes
28344 else
28345 echo "$as_me: failed program was:" >&5
28346 sed 's/^/| /' conftest.$ac_ext >&5
28348 ac_header_preproc=no
28351 rm -f conftest.err conftest.$ac_ext
28352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28353 echo "${ECHO_T}$ac_header_preproc" >&6; }
28355 # So? What about this header?
28356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28357 yes:no: )
28358 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
28359 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28360 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
28361 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
28362 ac_header_preproc=yes
28364 no:yes:* )
28365 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
28366 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
28367 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
28368 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
28369 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
28370 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
28371 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
28372 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
28373 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
28374 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
28375 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
28376 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
28379 esac
28380 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
28381 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
28382 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
28383 echo $ECHO_N "(cached) $ECHO_C" >&6
28384 else
28385 ac_cv_header_vorbis_codec_h=$ac_header_preproc
28387 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
28388 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
28391 if test $ac_cv_header_vorbis_codec_h = yes; then
28392 VORBIS_HEADER_FOUND=1
28393 else
28394 VORBIS_HEADER_FOUND=0
28400 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
28401 if test ! -z "${VORBIS_MANDATORY}" ;
28402 then
28403 { echo "$as_me:$LINENO: ***" >&5
28404 echo "$as_me: ***" >&6;}
28405 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
28406 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
28407 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
28408 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
28409 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
28410 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
28411 exit 1
28413 VORBIS_LIB=""
28414 VORBIS_INCLUDE=""
28415 PBX_VORBIS=0
28416 else
28417 PBX_VORBIS=1
28419 cat >>confdefs.h <<_ACEOF
28420 #define HAVE_VORBIS 1
28421 _ACEOF
28424 elif test ! -z "${VORBIS_MANDATORY}";
28425 then
28426 { echo "$as_me:$LINENO: ***" >&5
28427 echo "$as_me: ***" >&6;}
28428 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
28429 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
28430 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28431 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28432 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
28433 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
28434 exit 1
28439 ac_ext=cpp
28440 ac_cpp='$CXXCPP $CPPFLAGS'
28441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28446 if test "${USE_VPB}" != "no"; then
28447 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
28448 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
28449 saved_libs="${LIBS}"
28450 saved_cppflags="${CPPFLAGS}"
28451 if test "x${VPB_DIR}" != "x"; then
28452 if test -d ${VPB_DIR}/lib; then
28453 vpblibdir=${VPB_DIR}/lib
28454 else
28455 vpblibdir=${VPB_DIR}
28457 LIBS="${LIBS} -L${vpblibdir}"
28458 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
28460 LIBS="${LIBS} -lvpb -lpthread"
28461 cat >conftest.$ac_ext <<_ACEOF
28463 /* confdefs.h. */
28464 _ACEOF
28465 cat confdefs.h >>conftest.$ac_ext
28466 cat >>conftest.$ac_ext <<_ACEOF
28467 /* end confdefs.h. */
28468 #include <vpbapi.h>
28470 main ()
28472 int q = vpb_open(0,0);
28474 return 0;
28477 _ACEOF
28478 rm -f conftest.$ac_objext conftest$ac_exeext
28479 if { (ac_try="$ac_link"
28480 case "(($ac_try" in
28481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28482 *) ac_try_echo=$ac_try;;
28483 esac
28484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28485 (eval "$ac_link") 2>conftest.er1
28486 ac_status=$?
28487 grep -v '^ *+' conftest.er1 >conftest.err
28488 rm -f conftest.er1
28489 cat conftest.err >&5
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); } && {
28492 test -z "$ac_cxx_werror_flag" ||
28493 test ! -s conftest.err
28494 } && test -s conftest$ac_exeext &&
28495 $as_test_x conftest$ac_exeext; then
28496 { echo "$as_me:$LINENO: result: yes" >&5
28497 echo "${ECHO_T}yes" >&6; }
28498 ac_cv_lib_vpb_vpb_open="yes"
28500 else
28501 echo "$as_me: failed program was:" >&5
28502 sed 's/^/| /' conftest.$ac_ext >&5
28504 { echo "$as_me:$LINENO: result: no" >&5
28505 echo "${ECHO_T}no" >&6; }
28506 ac_cv_lib_vpb_vpb_open="no"
28511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28512 conftest$ac_exeext conftest.$ac_ext
28513 LIBS="${saved_libs}"
28514 CPPFLAGS="${saved_cppflags}"
28515 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
28516 VPB_LIB="-lvpb"
28517 if test "${VPB_DIR}" != ""; then
28518 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
28519 VPB_INCLUDE="-I${VPB_DIR}/include"
28521 PBX_VPB=1
28523 cat >>confdefs.h <<\_ACEOF
28524 #define HAVE_VPB 1
28525 _ACEOF
28527 elif test ! -z "${VPB_MANDATORY}"; then
28528 { echo "$as_me:$LINENO: ***" >&5
28529 echo "$as_me: ***" >&6;}
28530 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
28531 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
28532 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28533 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28534 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
28535 echo "$as_me: *** including --without-vpb." >&6;}
28536 exit 1
28540 ac_ext=c
28541 ac_cpp='$CPP $CPPFLAGS'
28542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28548 if test "${USE_ZLIB}" != "no"; then
28549 pbxlibdir=""
28550 if test "x${ZLIB_DIR}" != "x"; then
28551 if test -d ${ZLIB_DIR}/lib; then
28552 pbxlibdir="-L${ZLIB_DIR}/lib"
28553 else
28554 pbxlibdir="-L${ZLIB_DIR}"
28557 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
28558 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
28559 if test "${ac_cv_lib_z_compress+set}" = set; then
28560 echo $ECHO_N "(cached) $ECHO_C" >&6
28561 else
28562 ac_check_lib_save_LIBS=$LIBS
28563 LIBS="-lz ${pbxlibdir} $LIBS"
28564 cat >conftest.$ac_ext <<_ACEOF
28565 /* confdefs.h. */
28566 _ACEOF
28567 cat confdefs.h >>conftest.$ac_ext
28568 cat >>conftest.$ac_ext <<_ACEOF
28569 /* end confdefs.h. */
28571 /* Override any GCC internal prototype to avoid an error.
28572 Use char because int might match the return type of a GCC
28573 builtin and then its argument prototype would still apply. */
28574 #ifdef __cplusplus
28575 extern "C"
28576 #endif
28577 char compress ();
28579 main ()
28581 return compress ();
28583 return 0;
28585 _ACEOF
28586 rm -f conftest.$ac_objext conftest$ac_exeext
28587 if { (ac_try="$ac_link"
28588 case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28591 esac
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_link") 2>conftest.er1
28594 ac_status=$?
28595 grep -v '^ *+' conftest.er1 >conftest.err
28596 rm -f conftest.er1
28597 cat conftest.err >&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); } && {
28600 test -z "$ac_c_werror_flag" ||
28601 test ! -s conftest.err
28602 } && test -s conftest$ac_exeext &&
28603 $as_test_x conftest$ac_exeext; then
28604 ac_cv_lib_z_compress=yes
28605 else
28606 echo "$as_me: failed program was:" >&5
28607 sed 's/^/| /' conftest.$ac_ext >&5
28609 ac_cv_lib_z_compress=no
28612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28613 conftest$ac_exeext conftest.$ac_ext
28614 LIBS=$ac_check_lib_save_LIBS
28616 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
28617 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
28618 if test $ac_cv_lib_z_compress = yes; then
28619 AST_ZLIB_FOUND=yes
28620 else
28621 AST_ZLIB_FOUND=no
28625 if test "${AST_ZLIB_FOUND}" = "yes"; then
28626 ZLIB_LIB="-lz "
28627 ZLIB_HEADER_FOUND="1"
28628 if test "x${ZLIB_DIR}" != "x"; then
28629 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
28630 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
28631 saved_cppflags="${CPPFLAGS}"
28632 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
28633 if test "xzlib.h" != "x" ; then
28634 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
28635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28636 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28637 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28639 echo $ECHO_N "(cached) $ECHO_C" >&6
28641 ac_res=`eval echo '${'$as_ac_Header'}'`
28642 { echo "$as_me:$LINENO: result: $ac_res" >&5
28643 echo "${ECHO_T}$ac_res" >&6; }
28644 else
28645 # Is the header compilable?
28646 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
28647 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
28648 cat >conftest.$ac_ext <<_ACEOF
28649 /* confdefs.h. */
28650 _ACEOF
28651 cat confdefs.h >>conftest.$ac_ext
28652 cat >>conftest.$ac_ext <<_ACEOF
28653 /* end confdefs.h. */
28654 $ac_includes_default
28655 #include <${ZLIB_DIR}/include/zlib.h>
28656 _ACEOF
28657 rm -f conftest.$ac_objext
28658 if { (ac_try="$ac_compile"
28659 case "(($ac_try" in
28660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28661 *) ac_try_echo=$ac_try;;
28662 esac
28663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28664 (eval "$ac_compile") 2>conftest.er1
28665 ac_status=$?
28666 grep -v '^ *+' conftest.er1 >conftest.err
28667 rm -f conftest.er1
28668 cat conftest.err >&5
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); } && {
28671 test -z "$ac_c_werror_flag" ||
28672 test ! -s conftest.err
28673 } && test -s conftest.$ac_objext; then
28674 ac_header_compiler=yes
28675 else
28676 echo "$as_me: failed program was:" >&5
28677 sed 's/^/| /' conftest.$ac_ext >&5
28679 ac_header_compiler=no
28682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28684 echo "${ECHO_T}$ac_header_compiler" >&6; }
28686 # Is the header present?
28687 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
28688 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
28689 cat >conftest.$ac_ext <<_ACEOF
28690 /* confdefs.h. */
28691 _ACEOF
28692 cat confdefs.h >>conftest.$ac_ext
28693 cat >>conftest.$ac_ext <<_ACEOF
28694 /* end confdefs.h. */
28695 #include <${ZLIB_DIR}/include/zlib.h>
28696 _ACEOF
28697 if { (ac_try="$ac_cpp conftest.$ac_ext"
28698 case "(($ac_try" in
28699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28700 *) ac_try_echo=$ac_try;;
28701 esac
28702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28704 ac_status=$?
28705 grep -v '^ *+' conftest.er1 >conftest.err
28706 rm -f conftest.er1
28707 cat conftest.err >&5
28708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 (exit $ac_status); } >/dev/null && {
28710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28711 test ! -s conftest.err
28712 }; then
28713 ac_header_preproc=yes
28714 else
28715 echo "$as_me: failed program was:" >&5
28716 sed 's/^/| /' conftest.$ac_ext >&5
28718 ac_header_preproc=no
28721 rm -f conftest.err conftest.$ac_ext
28722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28723 echo "${ECHO_T}$ac_header_preproc" >&6; }
28725 # So? What about this header?
28726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28727 yes:no: )
28728 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28729 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28730 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
28731 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
28732 ac_header_preproc=yes
28734 no:yes:* )
28735 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
28736 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
28737 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
28738 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
28739 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
28740 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
28741 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28742 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28743 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
28744 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
28745 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
28746 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
28749 esac
28750 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28751 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28753 echo $ECHO_N "(cached) $ECHO_C" >&6
28754 else
28755 eval "$as_ac_Header=\$ac_header_preproc"
28757 ac_res=`eval echo '${'$as_ac_Header'}'`
28758 { echo "$as_me:$LINENO: result: $ac_res" >&5
28759 echo "${ECHO_T}$ac_res" >&6; }
28762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28763 ZLIB_HEADER_FOUND=1
28764 else
28765 ZLIB_HEADER_FOUND=0
28770 CPPFLAGS="${saved_cppflags}"
28771 else
28772 if test "xzlib.h" != "x" ; then
28773 if test "${ac_cv_header_zlib_h+set}" = set; then
28774 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28775 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28776 if test "${ac_cv_header_zlib_h+set}" = set; then
28777 echo $ECHO_N "(cached) $ECHO_C" >&6
28779 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28780 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28781 else
28782 # Is the header compilable?
28783 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
28784 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
28785 cat >conftest.$ac_ext <<_ACEOF
28786 /* confdefs.h. */
28787 _ACEOF
28788 cat confdefs.h >>conftest.$ac_ext
28789 cat >>conftest.$ac_ext <<_ACEOF
28790 /* end confdefs.h. */
28791 $ac_includes_default
28792 #include <zlib.h>
28793 _ACEOF
28794 rm -f conftest.$ac_objext
28795 if { (ac_try="$ac_compile"
28796 case "(($ac_try" in
28797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798 *) ac_try_echo=$ac_try;;
28799 esac
28800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28801 (eval "$ac_compile") 2>conftest.er1
28802 ac_status=$?
28803 grep -v '^ *+' conftest.er1 >conftest.err
28804 rm -f conftest.er1
28805 cat conftest.err >&5
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); } && {
28808 test -z "$ac_c_werror_flag" ||
28809 test ! -s conftest.err
28810 } && test -s conftest.$ac_objext; then
28811 ac_header_compiler=yes
28812 else
28813 echo "$as_me: failed program was:" >&5
28814 sed 's/^/| /' conftest.$ac_ext >&5
28816 ac_header_compiler=no
28819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28821 echo "${ECHO_T}$ac_header_compiler" >&6; }
28823 # Is the header present?
28824 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
28825 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
28826 cat >conftest.$ac_ext <<_ACEOF
28827 /* confdefs.h. */
28828 _ACEOF
28829 cat confdefs.h >>conftest.$ac_ext
28830 cat >>conftest.$ac_ext <<_ACEOF
28831 /* end confdefs.h. */
28832 #include <zlib.h>
28833 _ACEOF
28834 if { (ac_try="$ac_cpp conftest.$ac_ext"
28835 case "(($ac_try" in
28836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28837 *) ac_try_echo=$ac_try;;
28838 esac
28839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28841 ac_status=$?
28842 grep -v '^ *+' conftest.er1 >conftest.err
28843 rm -f conftest.er1
28844 cat conftest.err >&5
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); } >/dev/null && {
28847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28848 test ! -s conftest.err
28849 }; then
28850 ac_header_preproc=yes
28851 else
28852 echo "$as_me: failed program was:" >&5
28853 sed 's/^/| /' conftest.$ac_ext >&5
28855 ac_header_preproc=no
28858 rm -f conftest.err conftest.$ac_ext
28859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28860 echo "${ECHO_T}$ac_header_preproc" >&6; }
28862 # So? What about this header?
28863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28864 yes:no: )
28865 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28866 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28867 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
28868 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
28869 ac_header_preproc=yes
28871 no:yes:* )
28872 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
28873 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
28874 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
28875 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
28876 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
28877 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
28878 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28879 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28880 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
28881 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
28882 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
28883 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
28886 esac
28887 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28888 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28889 if test "${ac_cv_header_zlib_h+set}" = set; then
28890 echo $ECHO_N "(cached) $ECHO_C" >&6
28891 else
28892 ac_cv_header_zlib_h=$ac_header_preproc
28894 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28895 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28898 if test $ac_cv_header_zlib_h = yes; then
28899 ZLIB_HEADER_FOUND=1
28900 else
28901 ZLIB_HEADER_FOUND=0
28907 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
28908 if test ! -z "${ZLIB_MANDATORY}" ;
28909 then
28910 { echo "$as_me:$LINENO: ***" >&5
28911 echo "$as_me: ***" >&6;}
28912 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
28913 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
28914 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
28915 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
28916 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28917 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28918 exit 1
28920 ZLIB_LIB=""
28921 ZLIB_INCLUDE=""
28922 PBX_ZLIB=0
28923 else
28924 PBX_ZLIB=1
28926 cat >>confdefs.h <<_ACEOF
28927 #define HAVE_ZLIB 1
28928 _ACEOF
28931 elif test ! -z "${ZLIB_MANDATORY}";
28932 then
28933 { echo "$as_me:$LINENO: ***" >&5
28934 echo "$as_me: ***" >&6;}
28935 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
28936 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
28937 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28938 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28939 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28940 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28941 exit 1
28946 if test "${USE_ZAPTEL}" != "no"; then
28947 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
28948 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
28949 saved_cppflags="${CPPFLAGS}"
28950 if test "x${ZAPTEL_DIR}" != "x"; then
28951 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28953 cat >conftest.$ac_ext <<_ACEOF
28955 /* confdefs.h. */
28956 _ACEOF
28957 cat confdefs.h >>conftest.$ac_ext
28958 cat >>conftest.$ac_ext <<_ACEOF
28959 /* end confdefs.h. */
28960 #include <zaptel/zaptel.h>
28962 main ()
28964 int foo = ZT_DIAL_OP_CANCEL;
28966 return 0;
28969 _ACEOF
28970 rm -f conftest.$ac_objext
28971 if { (ac_try="$ac_compile"
28972 case "(($ac_try" in
28973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974 *) ac_try_echo=$ac_try;;
28975 esac
28976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977 (eval "$ac_compile") 2>conftest.er1
28978 ac_status=$?
28979 grep -v '^ *+' conftest.er1 >conftest.err
28980 rm -f conftest.er1
28981 cat conftest.err >&5
28982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983 (exit $ac_status); } && {
28984 test -z "$ac_c_werror_flag" ||
28985 test ! -s conftest.err
28986 } && test -s conftest.$ac_objext; then
28987 { echo "$as_me:$LINENO: result: yes" >&5
28988 echo "${ECHO_T}yes" >&6; }
28989 ac_cv_zaptel_h="yes"
28991 else
28992 echo "$as_me: failed program was:" >&5
28993 sed 's/^/| /' conftest.$ac_ext >&5
28995 { echo "$as_me:$LINENO: result: no" >&5
28996 echo "${ECHO_T}no" >&6; }
28997 ac_cv_zaptel_h="no"
29002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29003 CPPFLAGS="${saved_cppflags}"
29004 if test "${ac_cv_zaptel_h}" = "yes"; then
29005 if test "${ZAPTEL_DIR}" != ""; then
29006 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
29008 PBX_ZAPTEL=1
29010 cat >>confdefs.h <<\_ACEOF
29011 #define HAVE_ZAPTEL 1
29012 _ACEOF
29014 elif test ! -z "${ZAPTEL_MANDATORY}";
29015 then
29016 { echo "$as_me:$LINENO: ***" >&5
29017 echo "$as_me: ***" >&6;}
29018 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
29019 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
29020 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29021 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29022 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
29023 echo "$as_me: *** including --without-zaptel." >&6;}
29024 exit 1
29028 if test "${PBX_ZAPTEL}" = 1; then
29029 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h" >&5
29030 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h... $ECHO_C" >&6; }
29031 saved_cppflags="${CPPFLAGS}"
29032 if test "x${ZAPTEL_DIR}" != "x"; then
29033 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
29035 cat >conftest.$ac_ext <<_ACEOF
29037 /* confdefs.h. */
29038 _ACEOF
29039 cat confdefs.h >>conftest.$ac_ext
29040 cat >>conftest.$ac_ext <<_ACEOF
29041 /* end confdefs.h. */
29042 #include <zaptel/zaptel.h>
29044 main ()
29046 int foo = ZT_TONE_DTMF_BASE;
29048 return 0;
29051 _ACEOF
29052 rm -f conftest.$ac_objext
29053 if { (ac_try="$ac_compile"
29054 case "(($ac_try" in
29055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29056 *) ac_try_echo=$ac_try;;
29057 esac
29058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29059 (eval "$ac_compile") 2>conftest.er1
29060 ac_status=$?
29061 grep -v '^ *+' conftest.er1 >conftest.err
29062 rm -f conftest.er1
29063 cat conftest.err >&5
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); } && {
29066 test -z "$ac_c_werror_flag" ||
29067 test ! -s conftest.err
29068 } && test -s conftest.$ac_objext; then
29069 { echo "$as_me:$LINENO: result: yes" >&5
29070 echo "${ECHO_T}yes" >&6; }
29071 ac_cv_zaptel_vldtmf="yes"
29073 else
29074 echo "$as_me: failed program was:" >&5
29075 sed 's/^/| /' conftest.$ac_ext >&5
29077 { echo "$as_me:$LINENO: result: no" >&5
29078 echo "${ECHO_T}no" >&6; }
29079 ac_cv_zaptel_vldtmf="no"
29084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29085 CPPFLAGS="${saved_cppflags}"
29086 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
29087 PBX_ZAPTEL_VLDTMF=1
29089 { echo "$as_me:$LINENO: checking for ZT_TCOP_TRANSCODE in zaptel/zaptel.h" >&5
29090 echo $ECHO_N "checking for ZT_TCOP_TRANSCODE in zaptel/zaptel.h... $ECHO_C" >&6; }
29091 saved_cppflags="${CPPFLAGS}"
29092 if test "x${ZAPTEL_DIR}" != "x"; then
29093 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
29095 cat >conftest.$ac_ext <<_ACEOF
29097 /* confdefs.h. */
29098 _ACEOF
29099 cat confdefs.h >>conftest.$ac_ext
29100 cat >>conftest.$ac_ext <<_ACEOF
29101 /* end confdefs.h. */
29102 #include <zaptel/zaptel.h>
29104 main ()
29106 int foo = ZT_TCOP_TRANSCODE;
29108 return 0;
29111 _ACEOF
29112 rm -f conftest.$ac_objext
29113 if { (ac_try="$ac_compile"
29114 case "(($ac_try" in
29115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116 *) ac_try_echo=$ac_try;;
29117 esac
29118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119 (eval "$ac_compile") 2>conftest.er1
29120 ac_status=$?
29121 grep -v '^ *+' conftest.er1 >conftest.err
29122 rm -f conftest.er1
29123 cat conftest.err >&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } && {
29126 test -z "$ac_c_werror_flag" ||
29127 test ! -s conftest.err
29128 } && test -s conftest.$ac_objext; then
29129 { echo "$as_me:$LINENO: result: yes" >&5
29130 echo "${ECHO_T}yes" >&6; }
29131 ac_cv_zaptel_transcode="yes"
29133 else
29134 echo "$as_me: failed program was:" >&5
29135 sed 's/^/| /' conftest.$ac_ext >&5
29137 { echo "$as_me:$LINENO: result: no" >&5
29138 echo "${ECHO_T}no" >&6; }
29139 ac_cv_zaptel_transcode="no"
29144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29145 CPPFLAGS="${saved_cppflags}"
29146 if test "${ac_cv_zaptel_transcode}" = "yes"; then
29147 PBX_ZAPTEL_TRANSCODE=1
29153 EDITLINE_LIB=""
29154 if test "x$TERMCAP_LIB" != "x" ; then
29155 EDITLINE_LIB="$TERMCAP_LIB"
29156 elif test "x$TINFO_LIB" != "x" ; then
29157 EDITLINE_LIB="$TINFO_LIB"
29158 elif test "x$CURSES_LIB" != "x" ; then
29159 EDITLINE_LIB="$CURSES_LIB"
29160 elif test "x$NCURSES_LIB" != "x" ; then
29161 EDITLINE_LIB="$NCURSES_LIB"
29162 else
29163 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
29164 echo "$as_me: error: *** termcap support not found" >&2;}
29165 { (exit 1); exit 1; }; }
29169 if test "${ac_cv_header_h323_h+set}" = set; then
29170 { echo "$as_me:$LINENO: checking for h323.h" >&5
29171 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
29172 if test "${ac_cv_header_h323_h+set}" = set; then
29173 echo $ECHO_N "(cached) $ECHO_C" >&6
29175 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
29176 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
29177 else
29178 # Is the header compilable?
29179 { echo "$as_me:$LINENO: checking h323.h usability" >&5
29180 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
29181 cat >conftest.$ac_ext <<_ACEOF
29182 /* confdefs.h. */
29183 _ACEOF
29184 cat confdefs.h >>conftest.$ac_ext
29185 cat >>conftest.$ac_ext <<_ACEOF
29186 /* end confdefs.h. */
29187 $ac_includes_default
29188 #include <h323.h>
29189 _ACEOF
29190 rm -f conftest.$ac_objext
29191 if { (ac_try="$ac_compile"
29192 case "(($ac_try" in
29193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29194 *) ac_try_echo=$ac_try;;
29195 esac
29196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29197 (eval "$ac_compile") 2>conftest.er1
29198 ac_status=$?
29199 grep -v '^ *+' conftest.er1 >conftest.err
29200 rm -f conftest.er1
29201 cat conftest.err >&5
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); } && {
29204 test -z "$ac_c_werror_flag" ||
29205 test ! -s conftest.err
29206 } && test -s conftest.$ac_objext; then
29207 ac_header_compiler=yes
29208 else
29209 echo "$as_me: failed program was:" >&5
29210 sed 's/^/| /' conftest.$ac_ext >&5
29212 ac_header_compiler=no
29215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29217 echo "${ECHO_T}$ac_header_compiler" >&6; }
29219 # Is the header present?
29220 { echo "$as_me:$LINENO: checking h323.h presence" >&5
29221 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
29222 cat >conftest.$ac_ext <<_ACEOF
29223 /* confdefs.h. */
29224 _ACEOF
29225 cat confdefs.h >>conftest.$ac_ext
29226 cat >>conftest.$ac_ext <<_ACEOF
29227 /* end confdefs.h. */
29228 #include <h323.h>
29229 _ACEOF
29230 if { (ac_try="$ac_cpp conftest.$ac_ext"
29231 case "(($ac_try" in
29232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29233 *) ac_try_echo=$ac_try;;
29234 esac
29235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29237 ac_status=$?
29238 grep -v '^ *+' conftest.er1 >conftest.err
29239 rm -f conftest.er1
29240 cat conftest.err >&5
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); } >/dev/null && {
29243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29244 test ! -s conftest.err
29245 }; then
29246 ac_header_preproc=yes
29247 else
29248 echo "$as_me: failed program was:" >&5
29249 sed 's/^/| /' conftest.$ac_ext >&5
29251 ac_header_preproc=no
29254 rm -f conftest.err conftest.$ac_ext
29255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29256 echo "${ECHO_T}$ac_header_preproc" >&6; }
29258 # So? What about this header?
29259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29260 yes:no: )
29261 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
29262 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29263 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
29264 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
29265 ac_header_preproc=yes
29267 no:yes:* )
29268 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
29269 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
29270 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
29271 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
29272 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
29273 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
29274 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
29275 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
29276 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
29277 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
29278 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
29279 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
29282 esac
29283 { echo "$as_me:$LINENO: checking for h323.h" >&5
29284 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
29285 if test "${ac_cv_header_h323_h+set}" = set; then
29286 echo $ECHO_N "(cached) $ECHO_C" >&6
29287 else
29288 ac_cv_header_h323_h=$ac_header_preproc
29290 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
29291 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
29294 if test $ac_cv_header_h323_h = yes; then
29295 PBX_H323=1
29296 else
29297 PBX_H323=0
29303 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
29304 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
29305 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
29306 echo $ECHO_N "(cached) $ECHO_C" >&6
29307 else
29308 cat >conftest.$ac_ext <<_ACEOF
29309 /* confdefs.h. */
29310 _ACEOF
29311 cat confdefs.h >>conftest.$ac_ext
29312 cat >>conftest.$ac_ext <<_ACEOF
29313 /* end confdefs.h. */
29315 #include <linux/version.h>
29316 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
29317 #include <linux/compiler.h>
29318 #endif
29321 #include <linux/ixjuser.h>
29322 _ACEOF
29323 rm -f conftest.$ac_objext
29324 if { (ac_try="$ac_compile"
29325 case "(($ac_try" in
29326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327 *) ac_try_echo=$ac_try;;
29328 esac
29329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330 (eval "$ac_compile") 2>conftest.er1
29331 ac_status=$?
29332 grep -v '^ *+' conftest.er1 >conftest.err
29333 rm -f conftest.er1
29334 cat conftest.err >&5
29335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 (exit $ac_status); } && {
29337 test -z "$ac_c_werror_flag" ||
29338 test ! -s conftest.err
29339 } && test -s conftest.$ac_objext; then
29340 ac_cv_header_linux_ixjuser_h=yes
29341 else
29342 echo "$as_me: failed program was:" >&5
29343 sed 's/^/| /' conftest.$ac_ext >&5
29345 ac_cv_header_linux_ixjuser_h=no
29348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29350 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
29351 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
29352 if test $ac_cv_header_linux_ixjuser_h = yes; then
29353 PBX_IXJUSER=1
29354 else
29355 PBX_IXJUSER=0
29361 PBX_GTK=0
29362 if test -n "$ac_tool_prefix"; then
29363 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
29364 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
29365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29367 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
29368 echo $ECHO_N "(cached) $ECHO_C" >&6
29369 else
29370 if test -n "$GTKCONFIG"; then
29371 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
29372 else
29373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29374 for as_dir in $PATH
29376 IFS=$as_save_IFS
29377 test -z "$as_dir" && as_dir=.
29378 for ac_exec_ext in '' $ac_executable_extensions; do
29379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29380 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
29381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29382 break 2
29384 done
29385 done
29386 IFS=$as_save_IFS
29390 GTKCONFIG=$ac_cv_prog_GTKCONFIG
29391 if test -n "$GTKCONFIG"; then
29392 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
29393 echo "${ECHO_T}$GTKCONFIG" >&6; }
29394 else
29395 { echo "$as_me:$LINENO: result: no" >&5
29396 echo "${ECHO_T}no" >&6; }
29401 if test -z "$ac_cv_prog_GTKCONFIG"; then
29402 ac_ct_GTKCONFIG=$GTKCONFIG
29403 # Extract the first word of "gtk-config", so it can be a program name with args.
29404 set dummy gtk-config; ac_word=$2
29405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29407 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
29408 echo $ECHO_N "(cached) $ECHO_C" >&6
29409 else
29410 if test -n "$ac_ct_GTKCONFIG"; then
29411 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
29412 else
29413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29414 for as_dir in $PATH
29416 IFS=$as_save_IFS
29417 test -z "$as_dir" && as_dir=.
29418 for ac_exec_ext in '' $ac_executable_extensions; do
29419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29420 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
29421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29422 break 2
29424 done
29425 done
29426 IFS=$as_save_IFS
29430 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
29431 if test -n "$ac_ct_GTKCONFIG"; then
29432 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
29433 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
29434 else
29435 { echo "$as_me:$LINENO: result: no" >&5
29436 echo "${ECHO_T}no" >&6; }
29439 if test "x$ac_ct_GTKCONFIG" = x; then
29440 GTKCONFIG="No"
29441 else
29442 case $cross_compiling:$ac_tool_warned in
29443 yes:)
29444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29445 whose name does not start with the host triplet. If you think this
29446 configuration is useful to you, please write to autoconf@gnu.org." >&5
29447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29448 whose name does not start with the host triplet. If you think this
29449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29450 ac_tool_warned=yes ;;
29451 esac
29452 GTKCONFIG=$ac_ct_GTKCONFIG
29454 else
29455 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
29458 if test ! "x${GTKCONFIG}" = xNo; then
29459 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
29460 GTK_LIB=$(${GTKCONFIG} --libs gthread)
29461 PBX_GTK=1
29463 cat >>confdefs.h <<\_ACEOF
29464 #define HAVE_GTK 1
29465 _ACEOF
29472 if test "${USE_CURL}" != "no"; then
29473 if test -n "$ac_tool_prefix"; then
29474 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
29475 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
29476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29478 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
29479 echo $ECHO_N "(cached) $ECHO_C" >&6
29480 else
29481 case $CURL_CONFIG in
29482 [\\/]* | ?:[\\/]*)
29483 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
29486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29487 for as_dir in $PATH
29489 IFS=$as_save_IFS
29490 test -z "$as_dir" && as_dir=.
29491 for ac_exec_ext in '' $ac_executable_extensions; do
29492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29493 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29495 break 2
29497 done
29498 done
29499 IFS=$as_save_IFS
29502 esac
29504 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
29505 if test -n "$CURL_CONFIG"; then
29506 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
29507 echo "${ECHO_T}$CURL_CONFIG" >&6; }
29508 else
29509 { echo "$as_me:$LINENO: result: no" >&5
29510 echo "${ECHO_T}no" >&6; }
29515 if test -z "$ac_cv_path_CURL_CONFIG"; then
29516 ac_pt_CURL_CONFIG=$CURL_CONFIG
29517 # Extract the first word of "curl-config", so it can be a program name with args.
29518 set dummy curl-config; ac_word=$2
29519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29521 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
29522 echo $ECHO_N "(cached) $ECHO_C" >&6
29523 else
29524 case $ac_pt_CURL_CONFIG in
29525 [\\/]* | ?:[\\/]*)
29526 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
29529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29530 for as_dir in $PATH
29532 IFS=$as_save_IFS
29533 test -z "$as_dir" && as_dir=.
29534 for ac_exec_ext in '' $ac_executable_extensions; do
29535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29536 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29538 break 2
29540 done
29541 done
29542 IFS=$as_save_IFS
29545 esac
29547 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
29548 if test -n "$ac_pt_CURL_CONFIG"; then
29549 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
29550 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
29551 else
29552 { echo "$as_me:$LINENO: result: no" >&5
29553 echo "${ECHO_T}no" >&6; }
29556 if test "x$ac_pt_CURL_CONFIG" = x; then
29557 CURL_CONFIG="No"
29558 else
29559 case $cross_compiling:$ac_tool_warned in
29560 yes:)
29561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29562 whose name does not start with the host triplet. If you think this
29563 configuration is useful to you, please write to autoconf@gnu.org." >&5
29564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29565 whose name does not start with the host triplet. If you think this
29566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29567 ac_tool_warned=yes ;;
29568 esac
29569 CURL_CONFIG=$ac_pt_CURL_CONFIG
29571 else
29572 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
29575 if test ! x"${CURL_CONFIG}" = xNo; then
29576 # check for version
29577 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
29578 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
29579 CURL_LIB=$(${CURL_CONFIG} --libs)
29580 PBX_CURL=1
29582 cat >>confdefs.h <<\_ACEOF
29583 #define HAVE_CURL 1
29584 _ACEOF
29590 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
29592 cat >confcache <<\_ACEOF
29593 # This file is a shell script that caches the results of configure
29594 # tests run on this system so they can be shared between configure
29595 # scripts and configure runs, see configure's option --config-cache.
29596 # It is not useful on other systems. If it contains results you don't
29597 # want to keep, you may remove or edit it.
29599 # config.status only pays attention to the cache file if you give it
29600 # the --recheck option to rerun configure.
29602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29604 # following values.
29606 _ACEOF
29608 # The following way of writing the cache mishandles newlines in values,
29609 # but we know of no workaround that is simple, portable, and efficient.
29610 # So, we kill variables containing newlines.
29611 # Ultrix sh set writes to stderr and can't be redirected directly,
29612 # and sets the high bit in the cache file unless we assign to the vars.
29614 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29615 eval ac_val=\$$ac_var
29616 case $ac_val in #(
29617 *${as_nl}*)
29618 case $ac_var in #(
29619 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29620 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29621 esac
29622 case $ac_var in #(
29623 _ | IFS | as_nl) ;; #(
29624 *) $as_unset $ac_var ;;
29625 esac ;;
29626 esac
29627 done
29629 (set) 2>&1 |
29630 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29631 *${as_nl}ac_space=\ *)
29632 # `set' does not quote correctly, so add quotes (double-quote
29633 # substitution turns \\\\ into \\, and sed turns \\ into \).
29634 sed -n \
29635 "s/'/'\\\\''/g;
29636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29637 ;; #(
29639 # `set' quotes correctly as required by POSIX, so do not add quotes.
29640 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29642 esac |
29643 sort
29645 sed '
29646 /^ac_cv_env_/b end
29647 t clear
29648 :clear
29649 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29650 t end
29651 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29652 :end' >>confcache
29653 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29654 if test -w "$cache_file"; then
29655 test "x$cache_file" != "x/dev/null" &&
29656 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29657 echo "$as_me: updating cache $cache_file" >&6;}
29658 cat confcache >$cache_file
29659 else
29660 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29661 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29664 rm -f confcache
29666 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29667 # Let make expand exec_prefix.
29668 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29670 DEFS=-DHAVE_CONFIG_H
29672 ac_libobjs=
29673 ac_ltlibobjs=
29674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29675 # 1. Remove the extension, and $U if already installed.
29676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29677 ac_i=`echo "$ac_i" | sed "$ac_script"`
29678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29679 # will be set to the directory where LIBOBJS objects are built.
29680 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29681 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29682 done
29683 LIBOBJS=$ac_libobjs
29685 LTLIBOBJS=$ac_ltlibobjs
29689 : ${CONFIG_STATUS=./config.status}
29690 ac_clean_files_save=$ac_clean_files
29691 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29692 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29693 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29694 cat >$CONFIG_STATUS <<_ACEOF
29695 #! $SHELL
29696 # Generated by $as_me.
29697 # Run this file to recreate the current configuration.
29698 # Compiler output produced by configure, useful for debugging
29699 # configure, is in config.log if it exists.
29701 debug=false
29702 ac_cs_recheck=false
29703 ac_cs_silent=false
29704 SHELL=\${CONFIG_SHELL-$SHELL}
29705 _ACEOF
29707 cat >>$CONFIG_STATUS <<\_ACEOF
29708 ## --------------------- ##
29709 ## M4sh Initialization. ##
29710 ## --------------------- ##
29712 # Be more Bourne compatible
29713 DUALCASE=1; export DUALCASE # for MKS sh
29714 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29715 emulate sh
29716 NULLCMD=:
29717 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29718 # is contrary to our usage. Disable this feature.
29719 alias -g '${1+"$@"}'='"$@"'
29720 setopt NO_GLOB_SUBST
29721 else
29722 case `(set -o) 2>/dev/null` in
29723 *posix*) set -o posix ;;
29724 esac
29731 # PATH needs CR
29732 # Avoid depending upon Character Ranges.
29733 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29734 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29735 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29736 as_cr_digits='0123456789'
29737 as_cr_alnum=$as_cr_Letters$as_cr_digits
29739 # The user is always right.
29740 if test "${PATH_SEPARATOR+set}" != set; then
29741 echo "#! /bin/sh" >conf$$.sh
29742 echo "exit 0" >>conf$$.sh
29743 chmod +x conf$$.sh
29744 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29745 PATH_SEPARATOR=';'
29746 else
29747 PATH_SEPARATOR=:
29749 rm -f conf$$.sh
29752 # Support unset when possible.
29753 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29754 as_unset=unset
29755 else
29756 as_unset=false
29760 # IFS
29761 # We need space, tab and new line, in precisely that order. Quoting is
29762 # there to prevent editors from complaining about space-tab.
29763 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29764 # splitting by setting IFS to empty value.)
29765 as_nl='
29767 IFS=" "" $as_nl"
29769 # Find who we are. Look in the path if we contain no directory separator.
29770 case $0 in
29771 *[\\/]* ) as_myself=$0 ;;
29772 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29773 for as_dir in $PATH
29775 IFS=$as_save_IFS
29776 test -z "$as_dir" && as_dir=.
29777 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29778 done
29779 IFS=$as_save_IFS
29782 esac
29783 # We did not find ourselves, most probably we were run as `sh COMMAND'
29784 # in which case we are not to be found in the path.
29785 if test "x$as_myself" = x; then
29786 as_myself=$0
29788 if test ! -f "$as_myself"; then
29789 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29790 { (exit 1); exit 1; }
29793 # Work around bugs in pre-3.0 UWIN ksh.
29794 for as_var in ENV MAIL MAILPATH
29795 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29796 done
29797 PS1='$ '
29798 PS2='> '
29799 PS4='+ '
29801 # NLS nuisances.
29802 for as_var in \
29803 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29804 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29805 LC_TELEPHONE LC_TIME
29807 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29808 eval $as_var=C; export $as_var
29809 else
29810 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29812 done
29814 # Required to use basename.
29815 if expr a : '\(a\)' >/dev/null 2>&1 &&
29816 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29817 as_expr=expr
29818 else
29819 as_expr=false
29822 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29823 as_basename=basename
29824 else
29825 as_basename=false
29829 # Name of the executable.
29830 as_me=`$as_basename -- "$0" ||
29831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29832 X"$0" : 'X\(//\)$' \| \
29833 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29834 echo X/"$0" |
29835 sed '/^.*\/\([^/][^/]*\)\/*$/{
29836 s//\1/
29839 /^X\/\(\/\/\)$/{
29840 s//\1/
29843 /^X\/\(\/\).*/{
29844 s//\1/
29847 s/.*/./; q'`
29849 # CDPATH.
29850 $as_unset CDPATH
29854 as_lineno_1=$LINENO
29855 as_lineno_2=$LINENO
29856 test "x$as_lineno_1" != "x$as_lineno_2" &&
29857 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29859 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29860 # uniformly replaced by the line number. The first 'sed' inserts a
29861 # line-number line after each line using $LINENO; the second 'sed'
29862 # does the real work. The second script uses 'N' to pair each
29863 # line-number line with the line containing $LINENO, and appends
29864 # trailing '-' during substitution so that $LINENO is not a special
29865 # case at line end.
29866 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29867 # scripts with optimization help from Paolo Bonzini. Blame Lee
29868 # E. McMahon (1931-1989) for sed's syntax. :-)
29869 sed -n '
29871 /[$]LINENO/=
29872 ' <$as_myself |
29873 sed '
29874 s/[$]LINENO.*/&-/
29875 t lineno
29877 :lineno
29879 :loop
29880 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29881 t loop
29882 s/-\n.*//
29883 ' >$as_me.lineno &&
29884 chmod +x "$as_me.lineno" ||
29885 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29886 { (exit 1); exit 1; }; }
29888 # Don't try to exec as it changes $[0], causing all sort of problems
29889 # (the dirname of $[0] is not the place where we might find the
29890 # original and so on. Autoconf is especially sensitive to this).
29891 . "./$as_me.lineno"
29892 # Exit status is that of the last command.
29893 exit
29897 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29898 as_dirname=dirname
29899 else
29900 as_dirname=false
29903 ECHO_C= ECHO_N= ECHO_T=
29904 case `echo -n x` in
29905 -n*)
29906 case `echo 'x\c'` in
29907 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29908 *) ECHO_C='\c';;
29909 esac;;
29911 ECHO_N='-n';;
29912 esac
29914 if expr a : '\(a\)' >/dev/null 2>&1 &&
29915 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29916 as_expr=expr
29917 else
29918 as_expr=false
29921 rm -f conf$$ conf$$.exe conf$$.file
29922 if test -d conf$$.dir; then
29923 rm -f conf$$.dir/conf$$.file
29924 else
29925 rm -f conf$$.dir
29926 mkdir conf$$.dir
29928 echo >conf$$.file
29929 if ln -s conf$$.file conf$$ 2>/dev/null; then
29930 as_ln_s='ln -s'
29931 # ... but there are two gotchas:
29932 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29933 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29934 # In both cases, we have to default to `cp -p'.
29935 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29936 as_ln_s='cp -p'
29937 elif ln conf$$.file conf$$ 2>/dev/null; then
29938 as_ln_s=ln
29939 else
29940 as_ln_s='cp -p'
29942 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29943 rmdir conf$$.dir 2>/dev/null
29945 if mkdir -p . 2>/dev/null; then
29946 as_mkdir_p=:
29947 else
29948 test -d ./-p && rmdir ./-p
29949 as_mkdir_p=false
29952 if test -x / >/dev/null 2>&1; then
29953 as_test_x='test -x'
29954 else
29955 if ls -dL / >/dev/null 2>&1; then
29956 as_ls_L_option=L
29957 else
29958 as_ls_L_option=
29960 as_test_x='
29961 eval sh -c '\''
29962 if test -d "$1"; then
29963 test -d "$1/.";
29964 else
29965 case $1 in
29966 -*)set "./$1";;
29967 esac;
29968 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29969 ???[sx]*):;;*)false;;esac;fi
29970 '\'' sh
29973 as_executable_p=$as_test_x
29975 # Sed expression to map a string onto a valid CPP name.
29976 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29978 # Sed expression to map a string onto a valid variable name.
29979 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29982 exec 6>&1
29984 # Save the log message, to keep $[0] and so on meaningful, and to
29985 # report actual input values of CONFIG_FILES etc. instead of their
29986 # values after options handling.
29987 ac_log="
29988 This file was extended by $as_me, which was
29989 generated by GNU Autoconf 2.61. Invocation command line was
29991 CONFIG_FILES = $CONFIG_FILES
29992 CONFIG_HEADERS = $CONFIG_HEADERS
29993 CONFIG_LINKS = $CONFIG_LINKS
29994 CONFIG_COMMANDS = $CONFIG_COMMANDS
29995 $ $0 $@
29997 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30000 _ACEOF
30002 cat >>$CONFIG_STATUS <<_ACEOF
30003 # Files that config.status was made for.
30004 config_files="$ac_config_files"
30005 config_headers="$ac_config_headers"
30007 _ACEOF
30009 cat >>$CONFIG_STATUS <<\_ACEOF
30010 ac_cs_usage="\
30011 \`$as_me' instantiates files from templates according to the
30012 current configuration.
30014 Usage: $0 [OPTIONS] [FILE]...
30016 -h, --help print this help, then exit
30017 -V, --version print version number and configuration settings, then exit
30018 -q, --quiet do not print progress messages
30019 -d, --debug don't remove temporary files
30020 --recheck update $as_me by reconfiguring in the same conditions
30021 --file=FILE[:TEMPLATE]
30022 instantiate the configuration file FILE
30023 --header=FILE[:TEMPLATE]
30024 instantiate the configuration header FILE
30026 Configuration files:
30027 $config_files
30029 Configuration headers:
30030 $config_headers
30032 Report bugs to <bug-autoconf@gnu.org>."
30034 _ACEOF
30035 cat >>$CONFIG_STATUS <<_ACEOF
30036 ac_cs_version="\\
30037 config.status
30038 configured by $0, generated by GNU Autoconf 2.61,
30039 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30041 Copyright (C) 2006 Free Software Foundation, Inc.
30042 This config.status script is free software; the Free Software Foundation
30043 gives unlimited permission to copy, distribute and modify it."
30045 ac_pwd='$ac_pwd'
30046 srcdir='$srcdir'
30047 INSTALL='$INSTALL'
30048 _ACEOF
30050 cat >>$CONFIG_STATUS <<\_ACEOF
30051 # If no file are specified by the user, then we need to provide default
30052 # value. By we need to know if files were specified by the user.
30053 ac_need_defaults=:
30054 while test $# != 0
30056 case $1 in
30057 --*=*)
30058 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30060 ac_shift=:
30063 ac_option=$1
30064 ac_optarg=$2
30065 ac_shift=shift
30067 esac
30069 case $ac_option in
30070 # Handling of the options.
30071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30072 ac_cs_recheck=: ;;
30073 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30074 echo "$ac_cs_version"; exit ;;
30075 --debug | --debu | --deb | --de | --d | -d )
30076 debug=: ;;
30077 --file | --fil | --fi | --f )
30078 $ac_shift
30079 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30080 ac_need_defaults=false;;
30081 --header | --heade | --head | --hea )
30082 $ac_shift
30083 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30084 ac_need_defaults=false;;
30085 --he | --h)
30086 # Conflict between --help and --header
30087 { echo "$as_me: error: ambiguous option: $1
30088 Try \`$0 --help' for more information." >&2
30089 { (exit 1); exit 1; }; };;
30090 --help | --hel | -h )
30091 echo "$ac_cs_usage"; exit ;;
30092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30093 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30094 ac_cs_silent=: ;;
30096 # This is an error.
30097 -*) { echo "$as_me: error: unrecognized option: $1
30098 Try \`$0 --help' for more information." >&2
30099 { (exit 1); exit 1; }; } ;;
30101 *) ac_config_targets="$ac_config_targets $1"
30102 ac_need_defaults=false ;;
30104 esac
30105 shift
30106 done
30108 ac_configure_extra_args=
30110 if $ac_cs_silent; then
30111 exec 6>/dev/null
30112 ac_configure_extra_args="$ac_configure_extra_args --silent"
30115 _ACEOF
30116 cat >>$CONFIG_STATUS <<_ACEOF
30117 if \$ac_cs_recheck; then
30118 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30119 CONFIG_SHELL=$SHELL
30120 export CONFIG_SHELL
30121 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30124 _ACEOF
30125 cat >>$CONFIG_STATUS <<\_ACEOF
30126 exec 5>>config.log
30128 echo
30129 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30130 ## Running $as_me. ##
30131 _ASBOX
30132 echo "$ac_log"
30133 } >&5
30135 _ACEOF
30136 cat >>$CONFIG_STATUS <<_ACEOF
30137 _ACEOF
30139 cat >>$CONFIG_STATUS <<\_ACEOF
30141 # Handling of arguments.
30142 for ac_config_target in $ac_config_targets
30144 case $ac_config_target in
30145 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
30146 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
30147 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
30148 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
30150 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30151 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30152 { (exit 1); exit 1; }; };;
30153 esac
30154 done
30157 # If the user did not use the arguments to specify the items to instantiate,
30158 # then the envvar interface is used. Set only those that are not.
30159 # We use the long form for the default assignment because of an extremely
30160 # bizarre bug on SunOS 4.1.3.
30161 if $ac_need_defaults; then
30162 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30163 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30166 # Have a temporary directory for convenience. Make it in the build tree
30167 # simply because there is no reason against having it here, and in addition,
30168 # creating and moving files from /tmp can sometimes cause problems.
30169 # Hook for its removal unless debugging.
30170 # Note that there is a small window in which the directory will not be cleaned:
30171 # after its creation but before its name has been assigned to `$tmp'.
30172 $debug ||
30174 tmp=
30175 trap 'exit_status=$?
30176 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30178 trap '{ (exit 1); exit 1; }' 1 2 13 15
30180 # Create a (secure) tmp directory for tmp files.
30183 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30184 test -n "$tmp" && test -d "$tmp"
30185 } ||
30187 tmp=./conf$$-$RANDOM
30188 (umask 077 && mkdir "$tmp")
30189 } ||
30191 echo "$me: cannot create a temporary directory in ." >&2
30192 { (exit 1); exit 1; }
30196 # Set up the sed scripts for CONFIG_FILES section.
30199 # No need to generate the scripts if there are no CONFIG_FILES.
30200 # This happens for instance when ./config.status config.h
30201 if test -n "$CONFIG_FILES"; then
30203 _ACEOF
30207 ac_delim='%!_!# '
30208 for ac_last_try in false false false false false :; do
30209 cat >conf$$subs.sed <<_ACEOF
30210 SHELL!$SHELL$ac_delim
30211 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30212 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30213 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30214 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30215 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30216 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30217 exec_prefix!$exec_prefix$ac_delim
30218 prefix!$prefix$ac_delim
30219 program_transform_name!$program_transform_name$ac_delim
30220 bindir!$bindir$ac_delim
30221 sbindir!$sbindir$ac_delim
30222 libexecdir!$libexecdir$ac_delim
30223 datarootdir!$datarootdir$ac_delim
30224 datadir!$datadir$ac_delim
30225 sysconfdir!$sysconfdir$ac_delim
30226 sharedstatedir!$sharedstatedir$ac_delim
30227 localstatedir!$localstatedir$ac_delim
30228 includedir!$includedir$ac_delim
30229 oldincludedir!$oldincludedir$ac_delim
30230 docdir!$docdir$ac_delim
30231 infodir!$infodir$ac_delim
30232 htmldir!$htmldir$ac_delim
30233 dvidir!$dvidir$ac_delim
30234 pdfdir!$pdfdir$ac_delim
30235 psdir!$psdir$ac_delim
30236 libdir!$libdir$ac_delim
30237 localedir!$localedir$ac_delim
30238 mandir!$mandir$ac_delim
30239 DEFS!$DEFS$ac_delim
30240 ECHO_C!$ECHO_C$ac_delim
30241 ECHO_N!$ECHO_N$ac_delim
30242 ECHO_T!$ECHO_T$ac_delim
30243 LIBS!$LIBS$ac_delim
30244 build_alias!$build_alias$ac_delim
30245 host_alias!$host_alias$ac_delim
30246 target_alias!$target_alias$ac_delim
30247 build!$build$ac_delim
30248 build_cpu!$build_cpu$ac_delim
30249 build_vendor!$build_vendor$ac_delim
30250 build_os!$build_os$ac_delim
30251 host!$host$ac_delim
30252 host_cpu!$host_cpu$ac_delim
30253 host_vendor!$host_vendor$ac_delim
30254 host_os!$host_os$ac_delim
30255 CC!$CC$ac_delim
30256 CFLAGS!$CFLAGS$ac_delim
30257 LDFLAGS!$LDFLAGS$ac_delim
30258 CPPFLAGS!$CPPFLAGS$ac_delim
30259 ac_ct_CC!$ac_ct_CC$ac_delim
30260 EXEEXT!$EXEEXT$ac_delim
30261 OBJEXT!$OBJEXT$ac_delim
30262 CPP!$CPP$ac_delim
30263 GREP!$GREP$ac_delim
30264 EGREP!$EGREP$ac_delim
30265 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
30266 BUILD_CPU!$BUILD_CPU$ac_delim
30267 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
30268 BUILD_OS!$BUILD_OS$ac_delim
30269 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
30270 HOST_CPU!$HOST_CPU$ac_delim
30271 HOST_VENDOR!$HOST_VENDOR$ac_delim
30272 HOST_OS!$HOST_OS$ac_delim
30273 OSARCH!$OSARCH$ac_delim
30274 UNAME!$UNAME$ac_delim
30275 PBX_OSREV!$PBX_OSREV$ac_delim
30276 CXX!$CXX$ac_delim
30277 LD!$LD$ac_delim
30278 RANLIB!$RANLIB$ac_delim
30279 AR!$AR$ac_delim
30280 CXXFLAGS!$CXXFLAGS$ac_delim
30281 ac_ct_CXX!$ac_ct_CXX$ac_delim
30282 CXXCPP!$CXXCPP$ac_delim
30283 SED!$SED$ac_delim
30284 AWK!$AWK$ac_delim
30285 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30286 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30287 INSTALL_DATA!$INSTALL_DATA$ac_delim
30288 LN_S!$LN_S$ac_delim
30289 GNU_MAKE!$GNU_MAKE$ac_delim
30290 GNU_LD!$GNU_LD$ac_delim
30291 FIND!$FIND$ac_delim
30292 COMPRESS!$COMPRESS$ac_delim
30293 BASENAME!$BASENAME$ac_delim
30294 ID!$ID$ac_delim
30295 DIRNAME!$DIRNAME$ac_delim
30296 LN!$LN$ac_delim
30297 DOT!$DOT$ac_delim
30298 STRIP!$STRIP$ac_delim
30299 WGET!$WGET$ac_delim
30300 FETCH!$FETCH$ac_delim
30301 DOWNLOAD!$DOWNLOAD$ac_delim
30302 acx_pthread_config!$acx_pthread_config$ac_delim
30303 PTHREAD_CC!$PTHREAD_CC$ac_delim
30304 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
30305 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
30306 AST_DEVMODE!$AST_DEVMODE$ac_delim
30307 _ACEOF
30309 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30310 break
30311 elif $ac_last_try; then
30312 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30313 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30314 { (exit 1); exit 1; }; }
30315 else
30316 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30318 done
30320 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30321 if test -n "$ac_eof"; then
30322 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30323 ac_eof=`expr $ac_eof + 1`
30326 cat >>$CONFIG_STATUS <<_ACEOF
30327 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30329 _ACEOF
30330 sed '
30331 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30332 s/^/s,@/; s/!/@,|#_!!_#|/
30335 s/'"$ac_delim"'$/,g/; t
30336 s/$/\\/; p
30337 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30338 ' >>$CONFIG_STATUS <conf$$subs.sed
30339 rm -f conf$$subs.sed
30340 cat >>$CONFIG_STATUS <<_ACEOF
30341 CEOF$ac_eof
30342 _ACEOF
30345 ac_delim='%!_!# '
30346 for ac_last_try in false false false false false :; do
30347 cat >conf$$subs.sed <<_ACEOF
30348 ALSA_LIB!$ALSA_LIB$ac_delim
30349 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
30350 ALSA_DIR!$ALSA_DIR$ac_delim
30351 PBX_ALSA!$PBX_ALSA$ac_delim
30352 CURL_LIB!$CURL_LIB$ac_delim
30353 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
30354 CURL_DIR!$CURL_DIR$ac_delim
30355 PBX_CURL!$PBX_CURL$ac_delim
30356 CURSES_LIB!$CURSES_LIB$ac_delim
30357 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
30358 CURSES_DIR!$CURSES_DIR$ac_delim
30359 PBX_CURSES!$PBX_CURSES$ac_delim
30360 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
30361 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
30362 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
30363 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
30364 GSM_LIB!$GSM_LIB$ac_delim
30365 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
30366 GSM_DIR!$GSM_DIR$ac_delim
30367 PBX_GSM!$PBX_GSM$ac_delim
30368 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
30369 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
30370 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
30371 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
30372 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
30373 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
30374 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
30375 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
30376 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
30377 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
30378 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
30379 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
30380 KDE_LIB!$KDE_LIB$ac_delim
30381 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
30382 KDE_DIR!$KDE_DIR$ac_delim
30383 PBX_KDE!$PBX_KDE$ac_delim
30384 MISDN_LIB!$MISDN_LIB$ac_delim
30385 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
30386 MISDN_DIR!$MISDN_DIR$ac_delim
30387 PBX_MISDN!$PBX_MISDN$ac_delim
30388 NBS_LIB!$NBS_LIB$ac_delim
30389 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
30390 NBS_DIR!$NBS_DIR$ac_delim
30391 PBX_NBS!$PBX_NBS$ac_delim
30392 NCURSES_LIB!$NCURSES_LIB$ac_delim
30393 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
30394 NCURSES_DIR!$NCURSES_DIR$ac_delim
30395 PBX_NCURSES!$PBX_NCURSES$ac_delim
30396 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
30397 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
30398 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
30399 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
30400 NEWT_LIB!$NEWT_LIB$ac_delim
30401 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
30402 NEWT_DIR!$NEWT_DIR$ac_delim
30403 PBX_NEWT!$PBX_NEWT$ac_delim
30404 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
30405 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
30406 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
30407 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
30408 OGG_LIB!$OGG_LIB$ac_delim
30409 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
30410 OGG_DIR!$OGG_DIR$ac_delim
30411 PBX_OGG!$PBX_OGG$ac_delim
30412 OSPTK_LIB!$OSPTK_LIB$ac_delim
30413 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
30414 OSPTK_DIR!$OSPTK_DIR$ac_delim
30415 PBX_OSPTK!$PBX_OSPTK$ac_delim
30416 OSS_LIB!$OSS_LIB$ac_delim
30417 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
30418 OSS_DIR!$OSS_DIR$ac_delim
30419 PBX_OSS!$PBX_OSS$ac_delim
30420 POPT_LIB!$POPT_LIB$ac_delim
30421 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
30422 POPT_DIR!$POPT_DIR$ac_delim
30423 PBX_POPT!$PBX_POPT$ac_delim
30424 PGSQL_LIB!$PGSQL_LIB$ac_delim
30425 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
30426 PGSQL_DIR!$PGSQL_DIR$ac_delim
30427 PBX_PGSQL!$PBX_PGSQL$ac_delim
30428 PRI_LIB!$PRI_LIB$ac_delim
30429 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
30430 PRI_DIR!$PRI_DIR$ac_delim
30431 PBX_PRI!$PBX_PRI$ac_delim
30432 PWLIB_LIB!$PWLIB_LIB$ac_delim
30433 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
30434 PWLIB_DIR!$PWLIB_DIR$ac_delim
30435 PBX_PWLIB!$PBX_PWLIB$ac_delim
30436 OPENH323_LIB!$OPENH323_LIB$ac_delim
30437 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
30438 OPENH323_DIR!$OPENH323_DIR$ac_delim
30439 PBX_OPENH323!$PBX_OPENH323$ac_delim
30440 QT_LIB!$QT_LIB$ac_delim
30441 QT_INCLUDE!$QT_INCLUDE$ac_delim
30442 QT_DIR!$QT_DIR$ac_delim
30443 PBX_QT!$PBX_QT$ac_delim
30444 RADIUS_LIB!$RADIUS_LIB$ac_delim
30445 _ACEOF
30447 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30448 break
30449 elif $ac_last_try; then
30450 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30451 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30452 { (exit 1); exit 1; }; }
30453 else
30454 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30456 done
30458 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30459 if test -n "$ac_eof"; then
30460 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30461 ac_eof=`expr $ac_eof + 1`
30464 cat >>$CONFIG_STATUS <<_ACEOF
30465 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30467 _ACEOF
30468 sed '
30469 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30470 s/^/s,@/; s/!/@,|#_!!_#|/
30473 s/'"$ac_delim"'$/,g/; t
30474 s/$/\\/; p
30475 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30476 ' >>$CONFIG_STATUS <conf$$subs.sed
30477 rm -f conf$$subs.sed
30478 cat >>$CONFIG_STATUS <<_ACEOF
30479 CEOF$ac_eof
30480 _ACEOF
30483 ac_delim='%!_!# '
30484 for ac_last_try in false false false false false :; do
30485 cat >conf$$subs.sed <<_ACEOF
30486 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
30487 RADIUS_DIR!$RADIUS_DIR$ac_delim
30488 PBX_RADIUS!$PBX_RADIUS$ac_delim
30489 SPEEX_LIB!$SPEEX_LIB$ac_delim
30490 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
30491 SPEEX_DIR!$SPEEX_DIR$ac_delim
30492 PBX_SPEEX!$PBX_SPEEX$ac_delim
30493 SQLITE_LIB!$SQLITE_LIB$ac_delim
30494 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
30495 SQLITE_DIR!$SQLITE_DIR$ac_delim
30496 PBX_SQLITE!$PBX_SQLITE$ac_delim
30497 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
30498 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
30499 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
30500 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
30501 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
30502 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
30503 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
30504 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
30505 FREETDS_LIB!$FREETDS_LIB$ac_delim
30506 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
30507 FREETDS_DIR!$FREETDS_DIR$ac_delim
30508 PBX_FREETDS!$PBX_FREETDS$ac_delim
30509 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
30510 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
30511 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
30512 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
30513 TINFO_LIB!$TINFO_LIB$ac_delim
30514 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
30515 TINFO_DIR!$TINFO_DIR$ac_delim
30516 PBX_TINFO!$PBX_TINFO$ac_delim
30517 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
30518 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
30519 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
30520 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
30521 VORBIS_LIB!$VORBIS_LIB$ac_delim
30522 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
30523 VORBIS_DIR!$VORBIS_DIR$ac_delim
30524 PBX_VORBIS!$PBX_VORBIS$ac_delim
30525 VPB_LIB!$VPB_LIB$ac_delim
30526 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
30527 VPB_DIR!$VPB_DIR$ac_delim
30528 PBX_VPB!$PBX_VPB$ac_delim
30529 ZLIB_LIB!$ZLIB_LIB$ac_delim
30530 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
30531 ZLIB_DIR!$ZLIB_DIR$ac_delim
30532 PBX_ZLIB!$PBX_ZLIB$ac_delim
30533 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
30534 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
30535 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
30536 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
30537 ALLOCA!$ALLOCA$ac_delim
30538 LIBOBJS!$LIBOBJS$ac_delim
30539 POW_LIB!$POW_LIB$ac_delim
30540 GC_CFLAGS!$GC_CFLAGS$ac_delim
30541 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
30542 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
30543 KDEINIT!$KDEINIT$ac_delim
30544 KDEDIR!$KDEDIR$ac_delim
30545 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
30546 PG_CONFIG!$PG_CONFIG$ac_delim
30547 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
30548 PWLIBDIR!$PWLIBDIR$ac_delim
30549 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
30550 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
30551 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
30552 OPENH323DIR!$OPENH323DIR$ac_delim
30553 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
30554 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
30555 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
30556 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
30557 QTMOC!$QTMOC$ac_delim
30558 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
30559 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
30560 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
30561 PBX_H323!$PBX_H323$ac_delim
30562 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
30563 GTKCONFIG!$GTKCONFIG$ac_delim
30564 PBX_GTK!$PBX_GTK$ac_delim
30565 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
30566 GTK_LIB!$GTK_LIB$ac_delim
30567 CURL_CONFIG!$CURL_CONFIG$ac_delim
30568 LTLIBOBJS!$LTLIBOBJS$ac_delim
30569 _ACEOF
30571 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
30572 break
30573 elif $ac_last_try; then
30574 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30575 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30576 { (exit 1); exit 1; }; }
30577 else
30578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30580 done
30582 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30583 if test -n "$ac_eof"; then
30584 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30585 ac_eof=`expr $ac_eof + 1`
30588 cat >>$CONFIG_STATUS <<_ACEOF
30589 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
30590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30591 _ACEOF
30592 sed '
30593 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30594 s/^/s,@/; s/!/@,|#_!!_#|/
30597 s/'"$ac_delim"'$/,g/; t
30598 s/$/\\/; p
30599 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30600 ' >>$CONFIG_STATUS <conf$$subs.sed
30601 rm -f conf$$subs.sed
30602 cat >>$CONFIG_STATUS <<_ACEOF
30603 :end
30604 s/|#_!!_#|//g
30605 CEOF$ac_eof
30606 _ACEOF
30609 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30610 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30611 # trailing colons and then remove the whole line if VPATH becomes empty
30612 # (actually we leave an empty line to preserve line numbers).
30613 if test "x$srcdir" = x.; then
30614 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30615 s/:*\$(srcdir):*/:/
30616 s/:*\${srcdir}:*/:/
30617 s/:*@srcdir@:*/:/
30618 s/^\([^=]*=[ ]*\):*/\1/
30619 s/:*$//
30620 s/^[^=]*=[ ]*$//
30624 cat >>$CONFIG_STATUS <<\_ACEOF
30625 fi # test -n "$CONFIG_FILES"
30628 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
30630 case $ac_tag in
30631 :[FHLC]) ac_mode=$ac_tag; continue;;
30632 esac
30633 case $ac_mode$ac_tag in
30634 :[FHL]*:*);;
30635 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30636 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30637 { (exit 1); exit 1; }; };;
30638 :[FH]-) ac_tag=-:-;;
30639 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30640 esac
30641 ac_save_IFS=$IFS
30642 IFS=:
30643 set x $ac_tag
30644 IFS=$ac_save_IFS
30645 shift
30646 ac_file=$1
30647 shift
30649 case $ac_mode in
30650 :L) ac_source=$1;;
30651 :[FH])
30652 ac_file_inputs=
30653 for ac_f
30655 case $ac_f in
30656 -) ac_f="$tmp/stdin";;
30657 *) # Look for the file first in the build tree, then in the source tree
30658 # (if the path is not absolute). The absolute path cannot be DOS-style,
30659 # because $ac_f cannot contain `:'.
30660 test -f "$ac_f" ||
30661 case $ac_f in
30662 [\\/$]*) false;;
30663 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30664 esac ||
30665 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30666 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30667 { (exit 1); exit 1; }; };;
30668 esac
30669 ac_file_inputs="$ac_file_inputs $ac_f"
30670 done
30672 # Let's still pretend it is `configure' which instantiates (i.e., don't
30673 # use $as_me), people would be surprised to read:
30674 # /* config.h. Generated by config.status. */
30675 configure_input="Generated from "`IFS=:
30676 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30677 if test x"$ac_file" != x-; then
30678 configure_input="$ac_file. $configure_input"
30679 { echo "$as_me:$LINENO: creating $ac_file" >&5
30680 echo "$as_me: creating $ac_file" >&6;}
30683 case $ac_tag in
30684 *:-:* | *:-) cat >"$tmp/stdin";;
30685 esac
30687 esac
30689 ac_dir=`$as_dirname -- "$ac_file" ||
30690 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30691 X"$ac_file" : 'X\(//\)[^/]' \| \
30692 X"$ac_file" : 'X\(//\)$' \| \
30693 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30694 echo X"$ac_file" |
30695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30696 s//\1/
30699 /^X\(\/\/\)[^/].*/{
30700 s//\1/
30703 /^X\(\/\/\)$/{
30704 s//\1/
30707 /^X\(\/\).*/{
30708 s//\1/
30711 s/.*/./; q'`
30712 { as_dir="$ac_dir"
30713 case $as_dir in #(
30714 -*) as_dir=./$as_dir;;
30715 esac
30716 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30717 as_dirs=
30718 while :; do
30719 case $as_dir in #(
30720 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30721 *) as_qdir=$as_dir;;
30722 esac
30723 as_dirs="'$as_qdir' $as_dirs"
30724 as_dir=`$as_dirname -- "$as_dir" ||
30725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30726 X"$as_dir" : 'X\(//\)[^/]' \| \
30727 X"$as_dir" : 'X\(//\)$' \| \
30728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30729 echo X"$as_dir" |
30730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30731 s//\1/
30734 /^X\(\/\/\)[^/].*/{
30735 s//\1/
30738 /^X\(\/\/\)$/{
30739 s//\1/
30742 /^X\(\/\).*/{
30743 s//\1/
30746 s/.*/./; q'`
30747 test -d "$as_dir" && break
30748 done
30749 test -z "$as_dirs" || eval "mkdir $as_dirs"
30750 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30751 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30752 { (exit 1); exit 1; }; }; }
30753 ac_builddir=.
30755 case "$ac_dir" in
30756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30758 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30759 # A ".." for each directory in $ac_dir_suffix.
30760 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30761 case $ac_top_builddir_sub in
30762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30764 esac ;;
30765 esac
30766 ac_abs_top_builddir=$ac_pwd
30767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30768 # for backward compatibility:
30769 ac_top_builddir=$ac_top_build_prefix
30771 case $srcdir in
30772 .) # We are building in place.
30773 ac_srcdir=.
30774 ac_top_srcdir=$ac_top_builddir_sub
30775 ac_abs_top_srcdir=$ac_pwd ;;
30776 [\\/]* | ?:[\\/]* ) # Absolute name.
30777 ac_srcdir=$srcdir$ac_dir_suffix;
30778 ac_top_srcdir=$srcdir
30779 ac_abs_top_srcdir=$srcdir ;;
30780 *) # Relative name.
30781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30782 ac_top_srcdir=$ac_top_build_prefix$srcdir
30783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30784 esac
30785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30788 case $ac_mode in
30791 # CONFIG_FILE
30794 case $INSTALL in
30795 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30796 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30797 esac
30798 _ACEOF
30800 cat >>$CONFIG_STATUS <<\_ACEOF
30801 # If the template does not know about datarootdir, expand it.
30802 # FIXME: This hack should be removed a few years after 2.60.
30803 ac_datarootdir_hack=; ac_datarootdir_seen=
30805 case `sed -n '/datarootdir/ {
30809 /@datadir@/p
30810 /@docdir@/p
30811 /@infodir@/p
30812 /@localedir@/p
30813 /@mandir@/p
30814 ' $ac_file_inputs` in
30815 *datarootdir*) ac_datarootdir_seen=yes;;
30816 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30817 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30818 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30819 _ACEOF
30820 cat >>$CONFIG_STATUS <<_ACEOF
30821 ac_datarootdir_hack='
30822 s&@datadir@&$datadir&g
30823 s&@docdir@&$docdir&g
30824 s&@infodir@&$infodir&g
30825 s&@localedir@&$localedir&g
30826 s&@mandir@&$mandir&g
30827 s&\\\${datarootdir}&$datarootdir&g' ;;
30828 esac
30829 _ACEOF
30831 # Neutralize VPATH when `$srcdir' = `.'.
30832 # Shell code in configure.ac might set extrasub.
30833 # FIXME: do we really want to maintain this feature?
30834 cat >>$CONFIG_STATUS <<_ACEOF
30835 sed "$ac_vpsub
30836 $extrasub
30837 _ACEOF
30838 cat >>$CONFIG_STATUS <<\_ACEOF
30840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30841 s&@configure_input@&$configure_input&;t t
30842 s&@top_builddir@&$ac_top_builddir_sub&;t t
30843 s&@srcdir@&$ac_srcdir&;t t
30844 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30845 s&@top_srcdir@&$ac_top_srcdir&;t t
30846 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30847 s&@builddir@&$ac_builddir&;t t
30848 s&@abs_builddir@&$ac_abs_builddir&;t t
30849 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30850 s&@INSTALL@&$ac_INSTALL&;t t
30851 $ac_datarootdir_hack
30852 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
30854 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30855 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30856 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30857 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30858 which seems to be undefined. Please make sure it is defined." >&5
30859 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30860 which seems to be undefined. Please make sure it is defined." >&2;}
30862 rm -f "$tmp/stdin"
30863 case $ac_file in
30864 -) cat "$tmp/out"; rm -f "$tmp/out";;
30865 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30866 esac
30870 # CONFIG_HEADER
30872 _ACEOF
30874 # Transform confdefs.h into a sed script `conftest.defines', that
30875 # substitutes the proper values into config.h.in to produce config.h.
30876 rm -f conftest.defines conftest.tail
30877 # First, append a space to every undef/define line, to ease matching.
30878 echo 's/$/ /' >conftest.defines
30879 # Then, protect against being on the right side of a sed subst, or in
30880 # an unquoted here document, in config.status. If some macros were
30881 # called several times there might be several #defines for the same
30882 # symbol, which is useless. But do not sort them, since the last
30883 # AC_DEFINE must be honored.
30884 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30885 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30886 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30887 # PARAMS is the parameter list in the macro definition--in most cases, it's
30888 # just an empty string.
30889 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30890 ac_dB='\\)[ (].*,\\1define\\2'
30891 ac_dC=' '
30892 ac_dD=' ,'
30894 uniq confdefs.h |
30895 sed -n '
30896 t rset
30897 :rset
30898 s/^[ ]*#[ ]*define[ ][ ]*//
30899 t ok
30902 s/[\\&,]/\\&/g
30903 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30904 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30905 ' >>conftest.defines
30907 # Remove the space that was appended to ease matching.
30908 # Then replace #undef with comments. This is necessary, for
30909 # example, in the case of _POSIX_SOURCE, which is predefined and required
30910 # on some systems where configure will not decide to define it.
30911 # (The regexp can be short, since the line contains either #define or #undef.)
30912 echo 's/ $//
30913 s,^[ #]*u.*,/* & */,' >>conftest.defines
30915 # Break up conftest.defines:
30916 ac_max_sed_lines=50
30918 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30919 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30920 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30921 # et cetera.
30922 ac_in='$ac_file_inputs'
30923 ac_out='"$tmp/out1"'
30924 ac_nxt='"$tmp/out2"'
30926 while :
30928 # Write a here document:
30929 cat >>$CONFIG_STATUS <<_ACEOF
30930 # First, check the format of the line:
30931 cat >"\$tmp/defines.sed" <<\\CEOF
30932 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30933 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30935 :def
30936 _ACEOF
30937 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30938 echo 'CEOF
30939 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30940 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30941 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30942 grep . conftest.tail >/dev/null || break
30943 rm -f conftest.defines
30944 mv conftest.tail conftest.defines
30945 done
30946 rm -f conftest.defines conftest.tail
30948 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30949 cat >>$CONFIG_STATUS <<\_ACEOF
30950 if test x"$ac_file" != x-; then
30951 echo "/* $configure_input */" >"$tmp/config.h"
30952 cat "$ac_result" >>"$tmp/config.h"
30953 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30954 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30955 echo "$as_me: $ac_file is unchanged" >&6;}
30956 else
30957 rm -f $ac_file
30958 mv "$tmp/config.h" $ac_file
30960 else
30961 echo "/* $configure_input */"
30962 cat "$ac_result"
30964 rm -f "$tmp/out12"
30968 esac
30970 done # for ac_tag
30973 { (exit 0); exit 0; }
30974 _ACEOF
30975 chmod +x $CONFIG_STATUS
30976 ac_clean_files=$ac_clean_files_save
30979 # configure is writing to config.log, and then calls config.status.
30980 # config.status does its own redirection, appending to config.log.
30981 # Unfortunately, on DOS this fails, as config.log is still kept open
30982 # by configure, so config.status won't be able to write to it; its
30983 # output is simply discarded. So we exec the FD to /dev/null,
30984 # effectively closing config.log, so it can be properly (re)opened and
30985 # appended to by config.status. When coming back to configure, we
30986 # need to make the FD available again.
30987 if test "$no_create" != yes; then
30988 ac_cs_success=:
30989 ac_config_status_args=
30990 test "$silent" = yes &&
30991 ac_config_status_args="$ac_config_status_args --quiet"
30992 exec 5>/dev/null
30993 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30994 exec 5>>config.log
30995 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30996 # would make configure fail if this is the last instruction.
30997 $ac_cs_success || { (exit 1); exit 1; }
31001 if test "x${silent}" != "xyes" ; then
31002 echo
31003 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
31004 echo " .\$7\$7.. .7\$\$7:. "
31005 echo " .\$\$:. ,\$7.7 "
31006 echo " .\$7. 7\$\$\$\$ .\$\$77 "
31007 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
31008 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
31009 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
31010 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
31011 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
31012 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
31013 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
31014 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
31015 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
31016 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
31017 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
31018 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
31019 echo " \$\$\$\$\$ \$\$\$ "
31020 echo " \$\$\$\$7. \$\$ (TM) "
31021 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
31022 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
31023 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
31024 echo
31027 { echo "$as_me:$LINENO: Package configured for: " >&5
31028 echo "$as_me: Package configured for: " >&6;}
31029 { echo "$as_me:$LINENO: OS type : $host_os" >&5
31030 echo "$as_me: OS type : $host_os" >&6;}
31031 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
31032 echo "$as_me: Host CPU : $host_cpu" >&6;}
31033 if test "${cross_compiling}" = "yes"; then
31034 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
31035 echo "$as_me: Cross Compilation = YES" >&6;}